/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
    /* Colour — ink */
    --ink:              #1a2535;
    --ink-muted:        #4a5a6e;
    --ink-faint:        #8394a8;

    /* Colour — accent */
    --accent:           #1d4c8a;
    --accent-hover:     #163a6e;
    --accent-light:     #e6eef7;

    /* Colour — surfaces */
    --surface:          #ffffff;
    --surface-subtle:   #f3f5f8;
    --surface-dark:     #141c2a;

    /* Colour — borders */
    --border:           #dce2ea;
    --border-subtle:    #eaeff5;

    /* Colour — on dark */
    --on-dark:          #edf2f8;
    --on-dark-muted:    #8fa5be;
    --on-dark-accent:   #80b3e8;

    /* Spacing */
    --space-xs:    0.5rem;     /*  8px */
    --space-sm:    1rem;       /* 16px */
    --space-md:    1.5rem;     /* 24px */
    --space-lg:    2.5rem;     /* 40px */
    --space-xl:    4rem;       /* 64px */
    --space-2xl:   6rem;       /* 96px */

    /* Layout */
    --container-wide:    1120px;
    --container-narrow:   760px;
    --container-reading:  660px;

    /* Typography */
    --font-base: 'Inter', system-ui, -apple-system, sans-serif;

    /* Shape */
    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg: 12px;

    /* Elevation */
    --shadow-sm: 0 1px 3px rgba(26, 37, 53, 0.07), 0 1px 2px rgba(26, 37, 53, 0.04);
    --shadow-md: 0 4px 16px rgba(26, 37, 53, 0.09), 0 2px 4px rgba(26, 37, 53, 0.05);
}


/* ============================================================
   RESET & BASE
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-base);
    color: var(--ink);
    background-color: var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 600;
    color: var(--ink);
}

p {
    color: var(--ink-muted);
}


/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
    width: 100%;
    max-width: var(--container-wide);
    margin-inline: auto;
    padding-inline: var(--space-sm);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--reading {
    max-width: var(--container-reading);
}

.container--hero {
    max-width: 880px;
}

.section {
    padding-block: var(--space-xl);
}

.section--subtle {
    background-color: var(--surface-subtle);
}

.section--dark {
    background-color: var(--surface-dark);
}

@media (min-width: 768px) {
    .container {
        padding-inline: var(--space-md);
    }

    .section {
        padding-block: var(--space-2xl);
    }
}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-base);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 48px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* Primary — dark blue fill */
.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Secondary — outlined */
.btn-secondary {
    background-color: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
}

/* Primary light — white fill for dark backgrounds */
.btn-primary-light {
    background-color: #ffffff;
    color: var(--accent);
    border-color: #ffffff;
}

.btn-primary-light:hover {
    background-color: var(--on-dark);
    border-color: var(--on-dark);
}

/* Nav CTA — compact */
.btn-nav {
    background-color: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    padding: 0.5rem 1.125rem;
    font-size: 0.875rem;
    min-height: 40px;
}

.btn-nav:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
}


/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    height: 64px;
}

/* Brand / site name */
.site-brand {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 0.15s ease;
}

.site-brand:hover {
    color: var(--accent);
}

.site-brand-logo {
    height: 3rem;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.site-brand-text {
    display: inline-block;
    line-height: 1.2;
}

.site-brand-name {
    display: block;
    font-size: 1.0625rem;
    font-weight: 700;
}

.site-brand-tagline {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--ink-muted);
}

/* Desktop nav — hidden on mobile by default */
.site-nav {
    display: none;
    align-items: center;
    gap: var(--space-lg);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ink-muted);
    padding-block: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Hamburger toggle button */
.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Hamburger icon bars */
.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
}

.nav-toggle-icon::before { top: -7px; }
.nav-toggle-icon::after  { top:  7px; }

/* Open state — animate to X */
.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
    background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav panel */
.site-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-xs) var(--space-sm) var(--space-md);
    box-shadow: var(--shadow-md);
}

.site-nav.is-open .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
}

.site-nav.is-open .nav-list li {
    width: 100%;
}

.site-nav.is-open .nav-link {
    display: block;
    padding: 0.75rem 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: none;
    border-top: 1px solid var(--border-subtle);
}

.site-nav.is-open .nav-list li:first-child .nav-link {
    border-top: none;
}

.site-nav.is-open .btn-nav {
    margin-top: var(--space-sm);
    width: 100%;
}

/* Desktop nav — override mobile-open state at wider viewport */
@media (min-width: 900px) {
    .site-nav,
    .site-nav.is-open {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--space-lg);
        position: static;
        border-bottom: none;
        padding: 0;
        box-shadow: none;
    }

    .site-nav.is-open .nav-list,
    .site-nav .nav-list {
        flex-direction: row;
        align-items: center;
        gap: var(--space-md);
        width: auto;
    }

    .site-nav.is-open .nav-list li,
    .site-nav .nav-list li {
        width: auto;
    }

    .site-nav.is-open .nav-link,
    .site-nav .nav-link {
        display: inline;
        padding-block: 0.25rem;
        width: auto;
        font-size: 0.875rem;
        border-top: none;
        border-bottom: 2px solid transparent;
    }

    .site-nav.is-open .nav-link:hover,
    .site-nav .nav-link:hover {
        border-bottom-color: var(--accent);
    }

    .site-nav.is-open .btn-nav {
        margin-top: 0;
        width: auto;
    }

    .nav-toggle {
        display: none;
    }
}


/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
    padding-block: var(--space-xl);
}

/* Two-column inner layout */
.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.hero-image-frame {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    line-height: 0;
}

.hero-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-lg);
}

@media (min-width: 768px) {
    .hero-inner {
        grid-template-columns: 55fr 45fr;
        gap: var(--space-xl);
    }
}

@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }
}

.hero-eyebrow {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.015em;
    margin-bottom: var(--space-sm);
}

.hero-heading {
    font-size: clamp(1.75rem, 4.5vw, 2.875rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: var(--space-md);
}

.hero-body {
    font-size: 1.0625rem;
    line-height: 1.72;
    color: var(--ink-muted);
    margin-bottom: var(--space-sm);
    max-width: 62ch;
}

.hero-body + .hero-body {
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.hero-proof {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--ink-faint);
    letter-spacing: 0.005em;
}

@media (min-width: 768px) {
    .hero {
        padding-block: var(--space-2xl);
    }
}


/* ============================================================
   SECTION HEADINGS
   ============================================================ */

.section-heading {
    margin-bottom: var(--space-lg);
    max-width: var(--container-narrow);
}

@media (min-width: 768px) {
    .section-heading {
        margin-bottom: var(--space-xl);
    }
}

.section-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background-color: var(--accent-light);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.875rem;
}

.section-heading h2 {
    font-size: clamp(1.375rem, 3vw, 1.875rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: var(--space-sm);
}

.section-intro {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--ink-muted);
    max-width: 62ch;
}


/* ============================================================
   CHALLENGE CARDS
   ============================================================ */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.card-icon {
    width: 36px;
    height: 36px;
    color: var(--accent);
    margin-bottom: 0.875rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}

/* Responsive card grid */
@media (min-width: 560px) {
    .card-grid--challenges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .card-grid--challenges {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ============================================================
   EXAMPLE WORK
   ============================================================ */

.work-panel {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    max-width: var(--container-narrow);
}

.work-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: var(--space-md);
}

.work-item {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
}

.work-item-marker {
    display: block;
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background-color: var(--accent);
    margin-top: 0.45em;
    flex-shrink: 0;
}

.work-item-text {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.55;
}

.work-panel-note {
    font-size: 0.9375rem;
    color: var(--ink-muted);
    line-height: 1.65;
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-md);
}

@media (min-width: 640px) {
    .work-panel {
        padding: var(--space-lg);
    }
}


/* ============================================================
   OUTCOMES
   ============================================================ */

.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-sm);
}

.outcome-item {
    display: flex;
    gap: var(--space-sm);
    align-items: flex-start;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
}

.outcome-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    color: var(--accent);
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.outcome-icon svg {
    width: 100%;
    height: 100%;
}

.outcome-title {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--ink);
    padding-top: 0.2rem;
}

@media (min-width: 640px) {
    .outcomes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ============================================================
   APPROACH SECTION
   ============================================================ */

.approach-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.approach-body p {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink-muted);
}

.approach-body .approach-lead {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--ink);
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */

.about-inner {
    display: block;
}

.about-heading-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.about-photo {
    flex-shrink: 0;
    width: 120px;
}

.about-image-frame {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    line-height: 0;
}

.about-image-frame img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
}

.about-heading {
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.about-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.about-credentials {
    list-style: none;
    padding: 0;
    margin-top: var(--space-md);
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: var(--space-md);
}

.about-credentials li {
    font-size: 0.75rem;
    color: var(--ink-subtle, #9ca3af);
    letter-spacing: 0.01em;
}

.about-body p {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--ink-muted);
}



/* ============================================================
   CONTACT / CTA SECTION
   ============================================================ */

.cta-heading {
    font-size: clamp(1.5rem, 3.5vw, 2.125rem);
    font-weight: 700;
    color: var(--on-dark);
    letter-spacing: -0.015em;
    margin-bottom: var(--space-md);
}

.cta-body {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--on-dark-muted);
    margin-bottom: var(--space-sm);
    max-width: 58ch;
}

.cta-actions {
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.cta-secondary {
    font-size: 0.9rem;
    color: var(--on-dark-muted);
    margin-top: var(--space-sm);
}

.cta-link {
    color: var(--on-dark-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}

.cta-link:hover {
    color: var(--on-dark);
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
    background-color: var(--surface-dark);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding-block: var(--space-xl);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.footer-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--on-dark);
}

.footer-descriptor {
    font-size: 0.875rem;
    color: var(--on-dark-muted);
}

.footer-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-nav-list a {
    font-size: 0.875rem;
    color: var(--on-dark-muted);
    transition: color 0.15s ease;
}

.footer-nav-list a:hover {
    color: var(--on-dark);
}

.footer-nav-list a:focus-visible {
    outline: 2px solid var(--on-dark-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--on-dark-muted);
    transition: color 0.15s ease;
}

.footer-link:hover {
    color: var(--on-dark);
}

.footer-link:focus-visible {
    outline: 2px solid var(--on-dark-accent);
    outline-offset: 3px;
    border-radius: 2px;
}

.footer-base {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-block: var(--space-sm);
}

.footer-base .container {
    display: flex;
    align-items: center;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.28);
}

.footer-privacy-link {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.28);
    margin-left: var(--space-md);
    transition: color 0.15s ease;
}

.footer-privacy-link:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* ============================================================
   PRIVACY PAGE
   ============================================================ */

.privacy-body {
    max-width: 680px;
}

.privacy-body h2 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--ink);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.01em;
}

.privacy-body p {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--ink-muted);
    margin-bottom: var(--space-sm);
}

.privacy-body ul {
    margin: 0 0 var(--space-sm) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.privacy-body ul li {
    font-size: 1rem;
    line-height: 1.72;
    color: var(--ink-muted);
}

.privacy-body a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (min-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .footer-inner {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}
