/* ===== Cases carousel ===== */
.carousel { position: relative; max-width: 1200px; margin: 0 auto; }
.carousel-track { display: flex; gap: 1.75rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 4px 12px; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { height: 6px; }
.carousel-track::-webkit-scrollbar-track { background: transparent; }
.carousel-track::-webkit-scrollbar-thumb { background: rgba(201,162,39,.4); border-radius: 3px; }
.carousel-track > * { min-width: min(360px, 80vw); scroll-snap-align: start; flex: 0 0 auto; }
.carousel-btn { position: absolute; top: 44%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--copper-gold); background: var(--pure-white); color: var(--deep-navy); font-size: 1.5rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 2; transition: background .3s ease, color .3s ease; box-shadow: 0 6px 20px rgba(10,22,40,.14); }
.carousel-btn:hover { background: var(--copper-gold); }
.carousel-btn.prev { left: -14px; }
.carousel-btn.next { right: -14px; }
@media (max-width: 768px) { .carousel-btn { display: none; } }

/* ===== FAQ / Resources ===== */
.faq-list { max-width: 860px; }
.faq-item { padding: 1.6rem 0; border-bottom: 1px solid rgba(10,22,40,.08); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { color: var(--deep-navy); font-size: 1.3rem; margin-bottom: .6rem; }
.faq-item p { color: var(--medium-grey); font-size: 1rem; line-height: 1.8; }
.faq-item p + p { margin-top: .6rem; }

/* ===== Memberships ===== */
.memberships { padding: 70px 10%; background: var(--pure-white); border-top: 1px solid rgba(10,22,40,.06); }
.memberships h4 { text-align: center; color: var(--medium-grey); font-family: 'Source Sans Pro', sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 2.5rem; }
.memberships-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 4rem; max-width: 900px; margin: 0 auto; }
.member { display: flex; align-items: center; justify-content: center; min-height: 64px; text-decoration: none; }
.member img { max-height: 64px; max-width: 190px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .3s ease, opacity .3s ease; }
.member img:hover { filter: none; opacity: 1; }
.member-name { text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--deep-navy); letter-spacing: 1px; }
.member-name small { display: block; font-family: 'Source Sans Pro', sans-serif; font-size: .68rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--medium-grey); font-weight: 600; margin-top: .35rem; }

:root {
    --deep-navy: #0A1628;
    --slate-blue: #1E3A5F;
    --pure-white: #FFFFFF;
    --copper-gold: #C9A227;
    --warm-bronze: #8B6914;
    --light-grey: #F5F7FA;
    --medium-grey: #6B7280;
}

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

body {
    font-family: 'Source Sans Pro', sans-serif;
    color: var(--deep-navy);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--pure-white);
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    line-height: 1.2;
}

a { color: inherit; }

/* ===== Header ===== */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pure-white);
    text-decoration: none;
    letter-spacing: 2px;
}
.logo span { color: var(--copper-gold); }

nav { display: flex; align-items: center; gap: 2.5rem; }
.nav-item { position: relative; }
.nav-item.has-dropdown > a::after { content: ' \25BE'; font-size: 0.7rem; margin-left: 4px; }

.dropdown {
    position: absolute;
    top: 100%; left: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(10px);
    min-width: 220px;
    padding: 0.75rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-top: 2px solid var(--copper-gold);
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
    display: block;
    padding: 0.6rem 1.5rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}
.dropdown a:hover { background: rgba(201, 162, 39, 0.1); color: var(--copper-gold); padding-left: 1.8rem; }
.dropdown a::after { display: none; }

nav a {
    color: var(--pure-white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: var(--copper-gold);
    transition: width 0.3s ease;
}
nav a:hover { color: var(--copper-gold); }
nav a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 1.5rem; }
.lang-switch { font-size: 0.85rem; }
.lang-switch a { color: var(--medium-grey); text-decoration: none; transition: color 0.3s ease; }
.lang-switch a:hover { color: var(--copper-gold); }
.lang-switch a.active { color: var(--pure-white); font-weight: 600; }

.btn-primary {
    background: var(--copper-gold);
    color: var(--deep-navy);
    padding: 0.75rem 1.5rem;
    border: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover { background: var(--warm-bronze); transform: translateY(-2px); }

/* ===== Solution hero ===== */
.sol-hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--slate-blue) 100%);
    padding: 160px 10% 90px;
    position: relative;
    overflow: hidden;
}
.sol-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 70%; height: 180%;
    background: radial-gradient(ellipse, rgba(201, 162, 39, 0.10) 0%, transparent 70%);
    pointer-events: none;
}
.sol-hero-inner { max-width: 820px; position: relative; z-index: 1; }

.breadcrumb {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.3s ease; }
.breadcrumb a:hover { color: var(--copper-gold); }
.breadcrumb span { color: var(--copper-gold); }

.sol-overtitle {
    color: var(--copper-gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.sol-hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    color: var(--pure-white);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}
.sol-hero .lead {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-weight: 300;
}

/* ===== Generic section ===== */
.section { padding: 90px 10%; }
.section.alt { background: var(--light-grey); }
.section.dark { background: var(--deep-navy); }
.section-inner { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
    color: var(--copper-gold);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.section h2 {
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    color: var(--deep-navy);
    margin-bottom: 2.5rem;
}
.section.dark h2 { color: var(--pure-white); }
.section h2 .accent { color: var(--copper-gold); }

/* ===== Client questions ===== */
.questions { display: grid; gap: 0; max-width: 850px; }
.question {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(10,22,40,0.08);
    font-size: 1.1rem;
    color: var(--deep-navy);
}
.question::before {
    content: '\201C';
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--copper-gold);
    flex-shrink: 0;
}

/* ===== Value cards ===== */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}
.value-card {
    background: var(--pure-white);
    border: 1px solid rgba(10,22,40,0.08);
    border-top: 3px solid var(--copper-gold);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.value-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(10, 22, 40, 0.1); }
.value-card h3 { font-size: 1.35rem; color: var(--deep-navy); margin-bottom: 0.9rem; }
.value-card p { color: var(--medium-grey); font-size: 0.98rem; line-height: 1.7; }
.value-card .tag {
    display: inline-block;
    margin-top: 1.1rem;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--warm-bronze);
    font-weight: 600;
}

/* ===== Situations ===== */
.chips { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.chip {
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.3);
    color: var(--deep-navy);
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
    border-radius: 2px;
}
.section.dark .chip { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.05); border-color: rgba(201,162,39,0.4); }

/* ===== Outcomes ===== */
.outcomes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}
.outcome { padding: 0.5rem 0; }
.outcome .num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem;
    color: var(--copper-gold);
    line-height: 1;
    margin-bottom: 0.75rem;
}
.outcome h3 { color: var(--pure-white); font-size: 1.25rem; margin-bottom: 0.5rem; }
.outcome p { color: rgba(255,255,255,0.7); font-size: 0.95rem; line-height: 1.6; }

/* ===== CTA ===== */
.cta-section {
    padding: 110px 10%;
    background: linear-gradient(135deg, var(--slate-blue) 0%, var(--deep-navy) 100%);
    text-align: center;
}
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); color: var(--pure-white); margin-bottom: 1.5rem; }
.cta-section p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; max-width: 620px; margin: 0 auto 2.5rem; line-height: 1.7; }

/* ===== Footer ===== */
footer { background: var(--deep-navy); padding: 60px 10% 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}
.footer-col h4 { color: var(--pure-white); font-size: 1.1rem; margin-bottom: 1.5rem; }
.footer-col p, .footer-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 2;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--copper-gold); }
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.3s ease; }
.footer-bottom a:hover { color: var(--copper-gold); }

/* ===== Legal pages ===== */
.legal-hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, var(--slate-blue) 100%);
    padding: 150px 10% 60px;
}
.legal-hero h1 { color: var(--pure-white); font-size: clamp(2rem, 4vw, 3rem); }
.legal-hero p { color: rgba(255, 255, 255, 0.7); margin-top: 0.75rem; font-size: 1rem; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.legal-toc a {
    color: var(--copper-gold);
    text-decoration: none;
    font-size: 0.85rem;
    border: 1px solid rgba(201, 162, 39, 0.4);
    padding: 0.45rem 1rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.legal-toc a:hover { background: rgba(201, 162, 39, 0.12); }
.legal-body { max-width: 820px; margin: 0 auto; padding: 60px 6% 90px; }
.legal-body h2 {
    color: var(--deep-navy);
    font-size: 1.7rem;
    margin: 2.75rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--copper-gold);
    scroll-margin-top: 90px;
}
.legal-body h3 { color: var(--deep-navy); font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.legal-body p, .legal-body li { color: #3a4658; font-size: 1rem; line-height: 1.8; }
.legal-body ul { margin: 0.5rem 0 1.25rem 1.25rem; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body a { color: var(--warm-bronze); }
.legal-body .updated { color: var(--medium-grey); font-size: 0.9rem; margin-top: 0.5rem; }
.todo {
    background: rgba(201, 162, 39, 0.18);
    border-bottom: 1px dashed var(--warm-bronze);
    padding: 0 5px;
    font-weight: 600;
    color: var(--warm-bronze);
}

/* ===== Scroll animations ===== */
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== Solution hero illustration ===== */
.sol-hero-visual {
    position: absolute;
    right: 7%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    max-width: 26%;
    z-index: 0;
}
.sol-hero-visual svg { width: 100%; height: auto; }
@media (max-width: 1100px) { .sol-hero-visual { display: none; } }

.sol-hero-visual .ring { opacity: 0; animation: fadeSoft 1.4s ease-out 0.2s forwards; }
.sol-hero-visual .axis { opacity: 0; animation: fadeSoft 0.8s ease-out 0.4s forwards; }
.sol-hero-visual .draw {
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: drawLine 1.2s ease-out 0.6s forwards;
}
.sol-hero-visual .fade { opacity: 0; animation: fadeSoft 0.6s ease-out 1.5s forwards; }
.sol-hero-visual .grow {
    transform-box: fill-box;
    transform-origin: bottom;
    transform: scaleY(0);
    animation: growBar 0.9s cubic-bezier(0.2, 0.85, 0.3, 1) forwards;
}
.sol-hero-visual .d1 { animation-delay: 0.4s; }
.sol-hero-visual .d2 { animation-delay: 0.55s; }
.sol-hero-visual .d3 { animation-delay: 0.7s; }
.sol-hero-visual .pop {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation: popIn 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) 1.7s forwards,
               peakPulse 2.6s ease-in-out 2.3s infinite;
}

@keyframes growBar { to { transform: scaleY(1); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeSoft { to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes peakPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav { display: none; }
    .sol-hero { padding: 130px 6% 70px; }
    .section { padding: 60px 6%; }
    .cta-section { padding: 80px 6%; }
    .value-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
    .sol-hero-visual .ring,
    .sol-hero-visual .axis,
    .sol-hero-visual .draw,
    .sol-hero-visual .fade,
    .sol-hero-visual .grow,
    .sol-hero-visual .pop {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        stroke-dashoffset: 0 !important;
    }
}
