/* ==========================================================================
   ExclusIV — Health & Wellness division design system
   Used by /wellness/* pages and the division landing pages.
   Inherits brand tokens from /css/main.css (loaded first).
   ========================================================================== */

:root {
    --ink: #16130f;
    --ink-soft: #241f18;
    --w-radius: 20px;
    --w-radius-sm: 12px;
    --w-pad: clamp(4rem, 9vw, 7.5rem);
    --w-pad-x: clamp(1.25rem, 4vw, 2.5rem);
    /* Division accents (subtle — hairlines and icon tints only) */
    --div-wellness: #8b7355;
    --div-training: #55613f;
    --div-equipment: #46545f;
    --div-direction: #2b2620;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-secondary);
    background: var(--bg-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 76px;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    color: var(--text-primary);
}

h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.02em; }

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

::selection { background: rgba(139, 115, 85, 0.22); }

/* ---------- Header ---------- */
.w-header {
    position: fixed;
    inset: 0 0 auto 0;
    background: linear-gradient(to bottom, rgba(250, 249, 247, 0.82), rgba(255, 255, 255, 0.72));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(232, 226, 217, 0.4);
    z-index: 1000;
}

.w-header-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0.9rem var(--w-pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.w-brandrow {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.w-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    min-width: 0;
}

.w-brand img { height: 42px; width: auto; }

.w-division-mark {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-left: 0.9rem;
    border-left: 1px solid var(--border-warm);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-warm);
    text-decoration: none;
    white-space: nowrap;
}

.w-nav {
    display: flex;
    align-items: center;
    gap: 1.9rem;
}

.w-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    position: relative;
    padding: 0.35rem 0;
    transition: color 0.2s;
}

.w-nav a:hover, .w-nav a[aria-current="page"] { color: var(--text-primary); }

.w-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: var(--accent-warm);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.w-nav a:hover::after, .w-nav a[aria-current="page"]::after { transform: scaleX(1); }

.w-nav-cta {
    background: var(--ink);
    color: #fff !important;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s;
}

.w-nav-cta::after { display: none !important; }
.w-nav-cta:hover { background: var(--accent-warm-dark); }

/* Mobile menu */
.w-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: none;
    border: 1px solid var(--border-warm);
    border-radius: 10px;
    cursor: pointer;
    padding: 0 10px;
}

.w-menu-btn span {
    display: block;
    height: 1.5px;
    background: var(--text-primary);
    transition: transform 0.25s, opacity 0.25s;
}

.w-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.w-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.w-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Breadcrumb ---------- */
.w-crumb {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.w-crumb a { color: var(--text-warm); text-decoration: none; }
.w-crumb a:hover { color: var(--accent-warm-dark); }
.w-crumb span::before { content: '/'; margin-right: 0.6rem; color: var(--border-warm); }

/* ---------- Eyebrow + display type ---------- */
.w-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-warm);
    margin-bottom: 1.5rem;
}

.w-eyebrow::before {
    content: '';
    width: 2.25rem;
    height: 1px;
    background: var(--accent-warm);
}

.w-display {
    font-size: clamp(2.4rem, 5vw, 3.9rem);
    line-height: 1.06;
    margin-bottom: 1.5rem;
}

.w-display strong { font-weight: 500; }

.w-lede {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.8;
    max-width: 40rem;
}

/* ---------- Sections & grid ---------- */
.w-section { padding: var(--w-pad) var(--w-pad-x); }
.w-section-tight { padding: clamp(2.5rem, 5vw, 4rem) var(--w-pad-x); }
.w-alt { background: linear-gradient(160deg, var(--bg-warm) 0%, var(--bg-cream) 55%, var(--bg-eggshell) 100%); }
.w-container { max-width: 1200px; margin: 0 auto; }
.w-container-narrow { max-width: 880px; margin: 0 auto; }

.w-section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.w-section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.w-section-head.centered .w-eyebrow { justify-content: center; }
.w-section-head.centered .w-eyebrow::before { display: none; }

.w-h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.12; margin-bottom: 1.1rem; }

.w-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: center;
}

.w-split.reverse > :first-child { order: 2; }
.w-split.reverse > :last-child { order: 1; }

/* ---------- Hero ---------- */
.w-hero { padding: clamp(3rem, 7vw, 5.5rem) var(--w-pad-x) var(--w-pad); }

.w-hero-media {
    position: relative;
    border-radius: var(--w-radius);
    overflow: hidden;
    box-shadow: var(--shadow-intense);
}

.w-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 380px;
    max-height: 560px;
    object-fit: cover;
}

.w-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(139, 115, 85, 0.0) 55%, rgba(22, 19, 15, 0.28) 100%);
}

/* Facts rail — hairline separated micro-facts */
.w-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-warm);
}

.w-facts > div {
    flex: 1 1 160px;
    padding: 1.1rem 1.25rem 0 0;
    border-right: 1px solid var(--border-warm);
    margin-right: 1.25rem;
}

.w-facts > div:last-child { border-right: none; margin-right: 0; }

.w-facts strong {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.02rem;
    color: var(--text-primary);
    margin-bottom: 0.15rem;
}

.w-facts span { font-size: 0.82rem; line-height: 1.55; display: block; }

/* ---------- Buttons ---------- */
.w-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.95rem 2.1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.w-btn:hover { transform: translateY(-2px); }

.w-btn-primary { background: var(--accent-warm); color: #fff; }
.w-btn-primary:hover { background: var(--accent-warm-dark); }

.w-btn-ink { background: var(--ink); color: #fff; }
.w-btn-ink:hover { background: var(--accent-warm-dark); }

.w-btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-warm);
}

.w-btn-ghost:hover { border-color: var(--accent-warm); color: var(--accent-warm-dark); }

.w-btn-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2.25rem; }

.w-textlink {
    color: var(--text-warm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 1px solid var(--border-warm);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.w-textlink:hover { color: var(--accent-warm-dark); border-color: var(--accent-warm); }

/* ---------- Pillar cards (hub) ---------- */
.w-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.w-pillar {
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border: 1px solid var(--border-warm);
    border-radius: var(--w-radius);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.w-pillar:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-warm);
    border-color: var(--accent-soft);
}

.w-pillar-media { height: 210px; overflow: hidden; }

.w-pillar-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.w-pillar:hover .w-pillar-media img { transform: scale(1.04); }

.w-pillar-body { padding: 1.6rem 1.6rem 1.75rem; flex: 1; display: flex; flex-direction: column; }

.w-pillar-body h3 {
    font-size: 1.35rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.w-pillar-body p { font-size: 0.92rem; line-height: 1.65; flex: 1; color: var(--text-secondary); }

.w-pillar-go {
    margin-top: 1.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-warm);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: gap 0.2s ease;
}

.w-pillar:hover .w-pillar-go { gap: 0.75rem; }

/* ---------- Lab-first band ---------- */
.w-labfirst {
    background: var(--bg-primary);
    border: 1px solid var(--border-warm);
    border-left: 3px solid var(--accent-warm);
    border-radius: var(--w-radius);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-warm);
}

.w-labfirst blockquote {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.55;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.w-labfirst footer { margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Editorial numbered steps ---------- */
.w-steps { counter-reset: wstep; }

.w-step {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border-warm);
}

.w-step:last-child { border-bottom: 1px solid var(--border-warm); }

.w-step::before {
    counter-increment: wstep;
    content: counter(wstep, decimal-leading-zero);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 2.4rem;
    line-height: 1;
    color: var(--accent-soft);
    letter-spacing: -0.02em;
}

.w-step h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.w-step p { font-size: 0.95rem; max-width: 38rem; }

/* ---------- Feature list (hairline rows) ---------- */
.w-rows { border-top: 1px solid var(--border-warm); }

.w-row {
    display: grid;
    grid-template-columns: minmax(160px, 240px) 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-warm);
}

.w-row h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text-primary);
}

.w-row p { font-size: 0.95rem; max-width: 40rem; }

/* ---------- Category cards (labs, modalities) ---------- */
.w-cats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
}

.w-cat {
    background: var(--bg-primary);
    border: 1px solid var(--border-warm);
    border-radius: var(--w-radius);
    padding: 1.75rem 1.6rem;
    transition: border-color 0.25s, transform 0.25s;
}

.w-cat:hover { border-color: var(--accent-soft); transform: translateY(-3px); }

.w-cat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--accent-warm);
    margin-bottom: 1.1rem;
}

.w-cat h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 0.55rem; }
.w-cat p { font-size: 0.9rem; line-height: 1.65; }

.w-cat ul { list-style: none; margin-top: 0.75rem; }

.w-cat li {
    font-size: 0.88rem;
    padding: 0.45rem 0;
    border-top: 1px solid var(--bg-tertiary);
    color: var(--text-secondary);
}

/* ---------- FAQ ---------- */
.w-faq { border-top: 1px solid var(--border-warm); }

.w-faq details { border-bottom: 1px solid var(--border-warm); }

.w-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 0;
    cursor: pointer;
    list-style: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    transition: color 0.2s;
}

.w-faq summary::-webkit-details-marker { display: none; }

.w-faq summary::after {
    content: '+';
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--accent-warm);
    flex-shrink: 0;
    transition: transform 0.25s;
}

.w-faq details[open] summary::after { transform: rotate(45deg); }
.w-faq summary:hover { color: var(--accent-warm-dark); }

.w-faq details p {
    padding: 0 0 1.5rem;
    font-size: 0.95rem;
    max-width: 44rem;
}

/* ---------- Dark CTA band ---------- */
.w-band {
    background: linear-gradient(140deg, var(--ink) 0%, var(--ink-soft) 100%);
    color: rgba(255, 255, 255, 0.78);
    border-radius: var(--w-radius);
    padding: clamp(2.75rem, 6vw, 4.5rem);
    text-align: center;
}

.w-band h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    margin-bottom: 1rem;
}

.w-band p { max-width: 38rem; margin: 0 auto 2rem; font-size: 1.02rem; }

.w-band .w-btn-primary { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35); }

/* ---------- Compliance small print ---------- */
.w-compliance {
    border-top: 1px solid var(--border-warm);
    padding: 1.75rem 0 0;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 56rem;
}

/* ---------- Credential strip ---------- */
.w-creds {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 2.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.w-creds img { height: 58px; width: auto; }

/* ---------- Footer ---------- */
.w-footer {
    background: var(--bg-footer);
    color: var(--text-footer);
    padding: clamp(3.5rem, 7vw, 5rem) var(--w-pad-x) 2.5rem;
    margin-top: var(--w-pad);
}

.w-footer-grid {
    max-width: 1200px;
    margin: 0 auto 3.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.w-footer h4 {
    color: var(--text-footer);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.w-footer-links { display: flex; flex-direction: column; gap: 0.65rem; }

.w-footer-links a {
    color: var(--text-footer-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 300;
    transition: color 0.2s;
}

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

.w-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-footer-muted);
}

.w-footer-creds {
    margin-top: 0.9rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-footer-muted);
}

.w-footer-disclaimer {
    max-width: 920px;
    margin: 2.25rem auto 0;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.65;
    text-align: center;
}

/* ---------- Reveal animation (fail-safe, opt-in via html.js-anim) ---------- */
.js-anim .fade-up {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.js-anim .fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .js-anim .fade-up { opacity: 1 !important; transform: none !important; }
    html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
    .w-nav { gap: 1.3rem; }
    .w-nav a { font-size: 0.85rem; }
}

@media (max-width: 920px) {
    .w-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-warm);
        box-shadow: var(--shadow-soft);
        padding: 0.75rem var(--w-pad-x) 1.25rem;
    }

    .w-nav.open { display: flex; }

    .w-nav a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--bg-tertiary);
        font-size: 1rem;
    }

    .w-nav a::after { display: none; }

    .w-nav-cta {
        margin-top: 1rem;
        text-align: center;
        justify-content: center;
        display: inline-flex;
        border-bottom: none !important;
    }

    .w-menu-btn { display: flex; }

    .w-split, .w-split.reverse { grid-template-columns: 1fr; }
    .w-split.reverse > :first-child { order: 1; }
    .w-split.reverse > :last-child { order: 2; }

    .w-hero-media img { min-height: 260px; max-height: 380px; }
}

@media (max-width: 640px) {
    .w-division-mark { display: none; }
    .w-step { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
    .w-step::before { font-size: 1.8rem; }
    .w-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.25rem 0; }
    .w-facts > div { flex-basis: 100%; border-right: none; margin-right: 0; }
    .w-band { border-radius: var(--w-radius-sm); }
}
