/*
Theme Name: Ravinder Tulsiani Executive Platform
Theme URI: https://www.ravindertulsiani.ca/
Author: Ravinder Tulsiani
Description: Custom WordPress theme for the RavinderTulsiani.ca executive capability platform.
Version: 1.0.0
Text Domain: ravindertulsiani-ca
Requires at least: 6.4
Requires PHP: 7.4
*/

:root {
    --navy: #0b1f33;
    --navy-2: #102a43;
    --slate: #334155;
    --muted: #64748b;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --gold: #c49a3a;
    --surface: #ffffff;
    --soft: #f4f7fa;
    --border: #e2e8f0;
    --text: #162033;
    --shadow: 0 18px 45px rgba(11, 31, 51, 0.08);
    --container: 1180px;
    --readable: 800px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.65;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
}

body.nav-is-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--blue);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--blue-dark);
}

h1,
h2,
h3 {
    margin: 0 0 0.55em;
    color: var(--navy);
    font-weight: 760;
    line-height: 1.08;
    letter-spacing: 0;
}

h1 {
    max-width: 900px;
    font-size: 3.55rem;
}

h2 {
    font-size: 2.35rem;
}

h3 {
    font-size: 1.25rem;
    line-height: 1.25;
}

p {
    margin: 0 0 1.1em;
}

ul,
ol {
    margin: 0 0 1.25em;
    padding-left: 1.25em;
}

li + li {
    margin-top: 0.45em;
}

strong {
    color: var(--navy);
}

:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.55);
    outline-offset: 3px;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.readable {
    max-width: var(--readable);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 1000;
    padding: 10px 14px;
    color: #fff;
    background: var(--navy);
    border-radius: var(--radius);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 24px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    color: var(--navy);
    font-size: 1.02rem;
    font-weight: 780;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand::before {
    content: "";
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--navy);
    box-shadow: inset 0 0 0 8px rgba(196, 154, 58, 0.35);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    color: var(--slate);
    font-size: 0.9rem;
    font-weight: 680;
    text-decoration: none;
}

.menu a:hover {
    color: var(--blue);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle-line,
.nav-toggle-line::before,
.nav-toggle-line::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy);
    content: "";
}

.nav-toggle-line {
    position: relative;
}

.nav-toggle-line::before,
.nav-toggle-line::after {
    position: absolute;
    left: 0;
}

.nav-toggle-line::before {
    top: -7px;
}

.nav-toggle-line::after {
    top: 7px;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: 0.94rem;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button--small {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 0.86rem;
    white-space: nowrap;
}

.button--primary {
    color: #fff;
    background: var(--blue);
    border-color: var(--blue);
}

.button--primary:hover {
    color: #fff;
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.button--secondary {
    color: var(--navy);
    background: #fff;
    border-color: var(--border);
}

.button--secondary:hover {
    color: var(--blue);
    border-color: rgba(37, 99, 235, 0.45);
}

.button--ghost {
    color: var(--navy);
    background: transparent;
    border-color: transparent;
}

.button--disabled {
    color: var(--muted);
    background: var(--soft);
    border-color: var(--border);
    cursor: not-allowed;
}

.page-hero {
    padding: 96px 0 82px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border);
}

.page-hero--split {
    padding-bottom: 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.page-hero--split .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
}

.hero-copy {
    max-width: 920px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 820;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-subhead {
    max-width: 820px;
    color: var(--slate);
    font-size: 1.22rem;
    line-height: 1.62;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.portrait-panel {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
}

.portrait-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portrait-placeholder {
    display: grid;
    min-height: 285px;
    place-items: center;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(11, 31, 51, 0.96), rgba(16, 42, 67, 0.95)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 24px);
}

.portrait-placeholder span {
    display: grid;
    width: 124px;
    height: 124px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 820;
}

.portrait-caption {
    padding: 24px;
}

.portrait-caption strong,
.portrait-caption span {
    display: block;
}

.portrait-caption span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.96rem;
    line-height: 1.45;
}

.trust-bar {
    padding: 18px 0;
    color: #fff;
    background: var(--navy);
}

.trust-bar p {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 660;
    text-align: center;
}

.section {
    padding: 78px 0;
}

.section--compact {
    padding: 42px 0 78px;
}

.section--tint {
    background: var(--soft);
}

.section--navy {
    color: #dbeafe;
    background: var(--navy);
}

.section--navy h2,
.section--navy h3,
.section--navy .content-card h3 {
    color: #fff;
}

.section--navy .section-intro p,
.section--navy .content-card p {
    color: #dbeafe;
}

.section--navy .content-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.section--navy .text-link {
    color: #bfdbfe;
}

.section--cta {
    padding: 70px 0;
    color: #fff;
    background: var(--navy);
}

.section--cta h2,
.section--cta p {
    color: #fff;
}

.section-intro {
    max-width: 820px;
    margin-bottom: 34px;
}

.section-intro p {
    color: var(--slate);
    font-size: 1.08rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric-card,
.content-card,
.framework-card,
.related-panel,
.contact-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.metric-card {
    padding: 24px;
}

.metric-value {
    margin: 0 0 8px;
    color: var(--gold);
    font-size: 2rem;
    font-weight: 820;
    line-height: 1;
}

.metric-card h3 {
    margin-bottom: 10px;
}

.metric-card p:last-child,
.content-card p:last-child,
.framework-card p:last-child {
    margin-bottom: 0;
}

.metric-card p,
.content-card p,
.framework-card p {
    color: var(--slate);
    font-size: 0.98rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    box-shadow: 0 1px 0 rgba(11, 31, 51, 0.02);
}

.card-kicker,
.card-metrics {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.card-metrics {
    margin-top: auto;
    padding-top: 16px;
    color: var(--blue);
}

.text-link {
    display: inline-flex;
    margin-top: auto;
    padding-top: 14px;
    color: var(--blue);
    font-size: 0.94rem;
    font-weight: 780;
    text-decoration: none;
}

.text-link::after {
    content: ">";
    margin-left: 8px;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.framework-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
}

.book-cover {
    display: grid;
    min-height: 152px;
    place-items: end start;
    padding: 16px;
    color: #fff;
    background: var(--navy);
    border-radius: 6px;
    box-shadow: inset 0 -38px 0 rgba(196, 154, 58, 0.18);
}

.book-cover span {
    font-size: 0.95rem;
    font-weight: 820;
    line-height: 1.2;
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 44px;
}

.check-list {
    padding-left: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 26px;
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    content: "";
}

.story-section + .story-section {
    margin-top: 46px;
    padding-top: 42px;
    border-top: 1px solid var(--border);
}

.article-body {
    font-size: 1.08rem;
}

.answer-block {
    padding: 58px 0;
    color: #fff;
    background: var(--navy-2);
}

.answer-block h2,
.answer-block p {
    max-width: 880px;
    color: #fff;
}

.answer-block .eyebrow {
    color: #93c5fd;
}

.answer-block p:last-child {
    margin-bottom: 0;
    font-size: 1.1rem;
}

.related-panel {
    padding: 28px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.related-links a {
    display: inline-flex;
    padding: 8px 12px;
    color: var(--slate);
    background: var(--soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.related-links a:hover {
    color: var(--blue);
    border-color: rgba(37, 99, 235, 0.35);
}

.cta-panel {
    max-width: 900px;
}

.download-card .button,
.contact-card .button {
    margin-top: auto;
}

.contact-card {
    padding: 30px;
    box-shadow: var(--shadow);
}

.contact-card a {
    font-weight: 760;
}

.site-footer {
    color: #dbeafe;
    background: #071827;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 54px;
    padding: 56px 0 36px;
}

.footer-brand h2 {
    max-width: 620px;
    color: #fff;
    font-size: 2rem;
}

.footer-brand p {
    max-width: 680px;
    color: #dbeafe;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
}

.footer-nav a {
    color: #dbeafe;
    font-size: 0.95rem;
    font-weight: 680;
    text-decoration: none;
}

.footer-nav a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 22px 0 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;
    color: #bfdbfe;
    font-size: 0.9rem;
}

@media (max-width: 1080px) {
    body {
        font-size: 17px;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.05rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .primary-nav {
        position: fixed;
        inset: 78px 0 auto;
        display: none;
        max-height: calc(100vh - 78px);
        flex-direction: column;
        align-items: stretch;
        padding: 22px 20px 30px;
        overflow: auto;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .menu a {
        display: block;
        padding: 13px 0;
        font-size: 1rem;
    }

    .primary-nav .button {
        width: 100%;
        margin-top: 10px;
    }

    .page-hero--split .hero-grid,
    .split-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .metric-grid,
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .header-inner {
        min-height: 70px;
    }

    .primary-nav {
        inset: 70px 0 auto;
        max-height: calc(100vh - 70px);
    }

    .site-brand {
        font-size: 0.96rem;
    }

    .site-brand::before {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }

    .page-hero {
        padding: 62px 0 54px;
    }

    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 1.72rem;
    }

    .hero-subhead {
        font-size: 1.05rem;
    }

    .hero-actions,
    .related-links {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button,
    .related-links a {
        width: 100%;
    }

    .section {
        padding: 56px 0;
    }

    .metric-grid,
    .card-grid,
    .card-grid--two,
    .framework-grid {
        grid-template-columns: 1fr;
    }

    .framework-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 16px;
        padding: 18px;
    }

    .book-cover {
        min-height: 118px;
        padding: 12px;
    }

    .book-cover span {
        font-size: 0.78rem;
    }

    .portrait-panel {
        min-height: 0;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }
}
