/* =========================================================
   Maison Santé Consulting — Design tokens
   Palette drawn from the brand mark: deep clinical navy,
   a muted sage/teal (the "S" in the logo), warm sand for
   breathing room, and a low, restrained gold used once.
   ========================================================= */
:root {
    --navy-950: #0d1a2b;
    --navy-900: #11233a;
    --navy-800: #17304d;
    --navy-700: #203f63;
    --teal-700: #2f5c53;
    --teal-600: #3d7367;
    --teal-500: #4f8c7e;
    --sand-100: #f6f2ea;
    --sand-050: #fbf9f5;
    --ink: #1c231f;
    --ink-soft: #4a534d;
    --line: #dcd5c6;
    --line-dark: #2a3c52;
    --gold-500: #ab8a52;
    --white: #ffffff;

    --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
    --font-body: "Source Sans 3", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1180px;
    --radius: 2px;
    --shadow-soft: 0 18px 40px -24px rgba(13, 26, 43, 0.35);
}

/* =========================================================
   Reset & base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--sand-050);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

:focus-visible {
    outline: 2px solid var(--teal-500);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: var(--teal-600);
    font-weight: 600;
    margin: 0 0 10px;
}

.section {
    padding: 88px 0;
}
.section--tight { padding: 56px 0; }
.section--navy { background: var(--navy-900); color: var(--sand-100); }
.section--sand { background: var(--sand-100); }

.section-head {
    max-width: 640px;
    margin-bottom: 48px;
}
.section-head h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.4rem);
    color: var(--navy-900);
}
.section--navy .section-head h2 { color: var(--white); }
.section-head p {
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 1.06rem;
}
.section--navy .section-head p { color: #c9d3d0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.96rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn--primary {
    background: var(--teal-600);
    color: var(--white);
}
.btn--primary:hover { background: var(--teal-700); }
.btn--ghost {
    border-color: rgba(255,255,255,0.4);
    color: var(--white);
}
.btn--ghost:hover { background: rgba(255,255,255,0.1); }
.btn--outline-navy {
    border-color: var(--navy-800);
    color: var(--navy-900);
}
.btn--outline-navy:hover { background: var(--navy-900); color: var(--white); }

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 249, 245, 0.94);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand img { height: 46px; width: auto; }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
    padding: 8px 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--navy-900);
    margin: 4px 0;
    transition: transform 160ms ease, opacity 160ms ease;
}

.main-nav__list {
    display: flex;
    gap: 30px;
    align-items: center;
}
.main-nav__list a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-900);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 160ms ease, color 160ms ease;
}
.main-nav__list a:hover,
.main-nav__list a[aria-current="page"] {
    border-bottom-color: var(--teal-500);
    color: var(--teal-700);
}
.main-nav__cta {
    margin-left: 6px;
    padding: 10px 20px;
    background: var(--navy-900);
    color: var(--white) !important;
    border-radius: var(--radius);
}
.main-nav__cta:hover { background: var(--teal-700); border-bottom-color: transparent !important; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    color: var(--white);
    overflow: hidden;
}
.hero__media {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
    background-color: #0d1a2b;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.hero__overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color: rgba(13, 26, 43, 0.6);
    background-image: linear-gradient(100deg, rgba(13,26,43,0.97) 0%, rgba(13,26,43,0.90) 32%, rgba(13,26,43,0.55) 62%, rgba(13,26,43,0.32) 100%);
}
.hero__content {
    position: relative;
    z-index: 1;
    padding: 150px 0 110px;
    max-width: 660px;
}
.hero__content .eyebrow { color: #a9c9be; }
.hero__content h1 {
    font-size: clamp(2.3rem, 5vw, 3.6rem);
    letter-spacing: -0.01em;
}
.hero__content p.lede {
    margin-top: 20px;
    font-size: 1.15rem;
    color: #d8ded9;
    max-width: 540px;
}
.hero__actions {
    margin-top: 34px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero--page {
    background: var(--navy-900);
}
.hero--page .hero__content {
    padding: 96px 0 64px;
    max-width: 760px;
}

/* =========================================================
   Stat strip
   ========================================================= */
.stat-strip {
    background: var(--navy-950);
    color: var(--white);
    border-top: 1px solid var(--line-dark);
}
.stat-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 34px 24px;
}
.stat {
    border-left: 2px solid var(--teal-500);
    padding-left: 16px;
}
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.9rem;
}
.stat span {
    font-size: 0.88rem;
    color: #aebcc4;
}

/* =========================================================
   Overview / two-column intro
   ========================================================= */
.intro-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: start;
}
.intro-split h2 {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    color: var(--navy-900);
    max-width: 480px;
}
.intro-split__lead {
    margin-top: 18px;
    font-size: 1.08rem;
    color: var(--ink-soft);
}
.intro-split__body p { color: var(--ink-soft); }

.pillars {
    display: grid;
    gap: 22px;
}
.pillar {
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.pillar:first-child { border-top: none; padding-top: 0; }
.pillar h3 {
    font-size: 1.05rem;
    color: var(--navy-900);
    margin-bottom: 6px;
}
.pillar p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

/* =========================================================
   Value proposition question list
   ========================================================= */
.question-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--line-dark);
    border: 1px solid var(--line-dark);
}
.question-grid__item {
    background: var(--navy-900);
    padding: 26px 28px;
    color: #dbe3e0;
    font-size: 1.02rem;
    font-family: var(--font-display);
    font-weight: 500;
}

/* =========================================================
   Services (teaser cards + accordion on services.php)
   ========================================================= */
.service-teasers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}
.service-teaser {
    background: var(--white);
    padding: 30px 28px;
}
.service-teaser .code {
    font-family: var(--font-display);
    color: var(--teal-600);
    font-size: 0.95rem;
}
.service-teaser h3 {
    margin: 10px 0 10px;
    font-size: 1.14rem;
    color: var(--navy-900);
}
.service-teaser p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0;
}

.service-accordion {
    border-top: 1px solid var(--line);
}
.service-item {
    border-bottom: 1px solid var(--line);
}
.service-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: none;
    border: none;
    text-align: left;
    padding: 24px 4px;
    cursor: pointer;
}
.service-item__trigger:hover .service-item__title { color: var(--teal-700); }
.service-item__heading {
    display: flex;
    align-items: baseline;
    gap: 18px;
}
.service-item__code {
    font-family: var(--font-display);
    color: var(--teal-600);
    font-size: 0.95rem;
    width: 34px;
    flex-shrink: 0;
}
.service-item__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--navy-900);
    transition: color 160ms ease;
}
.service-item__icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    position: relative;
}
.service-item__icon::before,
.service-item__icon::after {
    content: "";
    position: absolute;
    background: var(--navy-800);
    transition: transform 200ms ease, opacity 200ms ease;
}
.service-item__icon::before {
    top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%);
}
.service-item__icon::after {
    left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%);
}
.service-item[data-open="true"] .service-item__icon::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }

.service-item__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 240ms ease;
}
.service-item[data-open="true"] .service-item__panel {
    grid-template-rows: 1fr;
}
.service-item__panel-inner {
    overflow: hidden;
}
.service-item__body {
    padding: 0 4px 28px 52px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 32px;
}
.service-item__summary {
    color: var(--ink-soft);
    grid-column: 1 / -1;
    margin-bottom: 6px;
    max-width: 640px;
}
.service-item__body ul { display: grid; gap: 8px; }
.service-item__body li {
    position: relative;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 0.96rem;
}
.service-item__body li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.62em;
    width: 6px; height: 6px;
    background: var(--teal-500);
    border-radius: 50%;
}

/* =========================================================
   Lifecycle stepper
   ========================================================= */
.lifecycle {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
}
.lifecycle__step {
    padding: 26px 18px 26px 0;
    border-right: 1px solid var(--line-dark);
    position: relative;
}
.lifecycle__step:last-child { border-right: none; }
.lifecycle__num {
    font-family: var(--font-display);
    color: var(--teal-500);
    font-size: 0.85rem;
}
.lifecycle__stage {
    font-family: var(--font-display);
    font-size: 1.08rem;
    margin: 8px 0 8px;
    color: var(--white);
}
.lifecycle__desc {
    font-size: 0.88rem;
    color: #b7c3ca;
}

/* =========================================================
   Capability tags / audience list
   ========================================================= */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-cloud span {
    border: 1px solid var(--line);
    padding: 9px 16px;
    font-size: 0.92rem;
    border-radius: 999px;
    color: var(--navy-800);
    background: var(--white);
}

.check-list { display: grid; gap: 14px; }
.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--ink-soft);
}
.check-list li::before {
    content: "";
    flex-shrink: 0;
    margin-top: 6px;
    width: 8px;
    height: 8px;
    background: var(--teal-500);
}

/* =========================================================
   How we work — principle rows
   ========================================================= */
.principle-list {
    display: grid;
    gap: 0;
}
.principle {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}
.principle:first-child { border-top: none; }
.principle h3 {
    font-size: 1.1rem;
    color: var(--navy-900);
}
.principle p { color: var(--ink-soft); margin: 0; }

/* =========================================================
   Leadership
   ========================================================= */
.leader-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 40px;
}
.leader-card__portrait {
    aspect-ratio: 3/4;
    background: linear-gradient(155deg, var(--navy-800), var(--teal-700));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 3.2rem;
}
.leader-card h3 { font-size: 1.5rem; color: var(--navy-900); }
.leader-card .role { color: var(--teal-600); font-weight: 600; margin: 6px 0 18px; }
.leader-card p { color: var(--ink-soft); }
.leader-card__quals {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
    color: var(--navy-800);
}

/* =========================================================
   CTA band
   ========================================================= */
.cta-band {
    background: var(--teal-700);
    color: var(--white);
    padding: 70px 0;
}
.cta-band .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); max-width: 520px; }
.cta-band p { color: #dcece6; margin-top: 10px; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
}
.contact-info h2 { color: var(--navy-900); font-size: 1.6rem; }
.contact-info p { color: var(--ink-soft); }
.contact-detail {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.contact-detail:first-of-type { margin-top: 26px; }
.contact-detail dt {
    font-weight: 600;
    color: var(--navy-900);
    width: 110px;
    flex-shrink: 0;
    font-size: 0.9rem;
}
.contact-detail dd { margin: 0; color: var(--ink-soft); }

.form-card {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--navy-900);
    margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--sand-050);
    font-family: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    border-radius: var(--radius);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--teal-500);
    outline: none;
}
.form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-hint { font-size: 0.82rem; color: var(--ink-soft); margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-alert {
    padding: 16px 18px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.form-alert--success {
    background: #e6f2ec;
    color: #1f4d3d;
    border: 1px solid #b9dccb;
}
.form-alert--error {
    background: #fbeceb;
    color: #7a2a24;
    border: 1px solid #f0c4c0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    background: var(--navy-950);
    color: #aebcc4;
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--line-dark);
}
.footer-brand__mark {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.3rem;
}
.footer-brand__tag {
    margin-top: 10px;
    font-size: 0.92rem;
    max-width: 260px;
}
.footer-col h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { font-size: 0.92rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 24px;
    font-size: 0.82rem;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
    .intro-split { grid-template-columns: 1fr; gap: 40px; }
    .question-grid { grid-template-columns: 1fr; }
    .service-teasers { grid-template-columns: 1fr; }
    .lifecycle { grid-template-columns: repeat(3, 1fr); }
    .lifecycle__step:nth-child(3) { border-right: none; }
    .lifecycle__step { border-bottom: 1px solid var(--line-dark); }
    .contact-grid { grid-template-columns: 1fr; }
    .leader-card { grid-template-columns: 1fr; }
    .leader-card__portrait { max-width: 220px; }
    .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
    .principle { grid-template-columns: 1fr; gap: 8px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        position: fixed;
        inset: 66px 0 0 0;
        background: var(--sand-050);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 180ms ease, transform 180ms ease;
        overflow-y: auto;
        padding: 20px 24px 40px;
    }
    .main-nav.is-open {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .main-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .main-nav__list a {
        width: 100%;
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
    }
    .main-nav__cta { margin-left: 0; margin-top: 10px; text-align: center; justify-content: center; display: flex; }

    .hero__content { padding: 120px 0 70px; }
    .lifecycle { grid-template-columns: 1fr 1fr; }
    .lifecycle__step:nth-child(2n) { border-right: none; }
    .service-item__body { grid-template-columns: 1fr; }
    .form-row--split { grid-template-columns: 1fr; }
    .leader-card { padding: 26px; }
    .cta-band .container { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
}
