/* ZOS Base Styles — dsm.promo shared across all pages */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --navy: #0A1628;
    --white: #FFFFFF;
    --gold: #C0B283;
    --gold-text: #756840;
    --gold-light: rgba(192,178,131,0.12);
    --gold-border: rgba(192,178,131,0.15);
    --steel: #819FA7;
    --bg-alt: #F0EFEB;
    --text: #1A1A2E;
    --text-muted: #5A5A6E;
    --text-dim: #8A8A9E;
    --muted: #5A5A6E;
    --glass-bg: #FFFFFF;
    --glass-border: rgba(10,22,40,0.06);
    --max-w: 1100px;
    --page-px: clamp(24px, 5vw, 80px);
    --input-bg: rgba(255,255,255,0.06);
    --input-border: rgba(255,255,255,0.12);
    --input-focus: rgba(192,178,131,0.3);
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', system-ui, sans-serif;
    --mono: 'Fira Code', monospace;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: var(--sans);
    background: #F8F7F4;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

.bg-glow {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(192,178,131,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 70% at 0% 50%, rgba(192,178,131,0.03) 0%, transparent 50%),
        radial-gradient(ellipse 50% 50% at 100% 80%, rgba(192,178,131,0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.7s ease-out both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }
.fade-up-6 { animation-delay: 0.6s; }

/* Hero + above-fold content visible immediately for LCP */
.hero.fade-up, .cs-hero.fade-up,
.hero .fade-up, .cs-hero .fade-up,
.hero .fade-up-1, .cs-hero .fade-up-1,
.hero .fade-up-2, .cs-hero .fade-up-2,
.services-grid .fade-up,
.service-card.fade-up,
.fcs-section.fade-up,
.cta-section.fade-up { animation: none; opacity: 1; transform: none; }

/* Navigation */
nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(248,247,244,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

/* Brand logo — used in nav and footer */
.brand {
    text-decoration: none;
    color: var(--navy);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand span { color: var(--gold-text); }

/* Legacy nav-logo — kept for any remaining references */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.nav-logo .dot { color: var(--gold-text); }

.nav-logo-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #003f8c, #bb5500);
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover, .nav-links a.active { color: var(--navy); }

.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
    color: var(--gold-text) !important;
    border: 1px solid rgba(192,178,131,0.3);
    padding: 0.45rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s !important;
}

.nav-cta:hover {
    background: rgba(192,178,131,0.1) !important;
    border-color: var(--gold) !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

/* ─── Mobile Drawer ─── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10,22,40,0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

#mobileMenu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: rgba(248,247,244,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(10,22,40,0.08);
    box-shadow: -8px 0 32px rgba(10,22,40,0.12);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
}

#mobileMenu.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(10,22,40,0.06);
    flex-shrink: 0;
}

.drawer-header .drawer-brand {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
}

.drawer-header .drawer-brand .dot { color: var(--gold-text); }

.drawer-close {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(10,22,40,0.08);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.drawer-close:hover {
    background: rgba(10,22,40,0.04);
    color: var(--text);
}

.drawer-nav {
    flex: 1;
    padding: 0.75rem 0;
}

#mobileMenu a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 44px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

#mobileMenu a:hover {
    color: var(--text);
    background: rgba(10,22,40,0.03);
}

#mobileMenu a.active-link {
    color: var(--gold-text);
    border-left-color: var(--gold);
    background: rgba(192,178,131,0.06);
    font-weight: 600;
}

.drawer-footer {
    padding: 1rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(10,22,40,0.06);
    flex-shrink: 0;
}

#mobileMenu .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.25rem;
    color: var(--gold-text);
    border: 1px solid rgba(192,178,131,0.3);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s;
    min-height: 44px;
    border-left: none;
}

#mobileMenu .mobile-cta:hover {
    background: rgba(192,178,131,0.12);
    border-color: var(--gold);
}

body.drawer-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    #mobileMenu { transition: none; }
    .drawer-overlay { transition: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive nav */
@media (max-width: 768px) {
    .nav-links { gap: 1rem; }
    .nav-links a:not(.nav-cta) { display: none; }
    .nav-links a:first-child { display: inline-flex; }
    .nav-links a[href*="pricing"] { display: inline-flex; }
    .nav-links .nav-cta { display: inline-flex; }
    .mobile-toggle { display: block; }
}

/* Nav slide-down */
nav.visible { transform: translateY(0); }

/* Progress bar */
#progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #C0B283, #819FA7);
    transition: width 0.15s ease-out;
}

/* Breadcrumb */
.bc-breadcrumb { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 0.75rem 1.5rem 0; }
.bc-inner { font-size: 0.8rem; color: var(--text-muted, #5A5A6E); }
.bc-breadcrumb a { color: var(--text-muted, #5A5A6E); text-decoration: none; transition: color 0.2s; }
.bc-breadcrumb a:hover { color: var(--gold-text, #756840); }
.bc-sep { margin: 0 0.4rem; opacity: 0.4; }
.bc-current { color: var(--gold-text, #756840); }

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-text);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.35rem 1.1rem;
    border: 1px solid rgba(192,178,131,0.25);
    background: rgba(192,178,131,0.06);
    border-radius: 9999px;
    margin-bottom: 1.75rem;
}

.hero-badge svg {
    width: 14px;
    height: 14px;
    stroke: var(--gold);
    fill: none;
}

/* CTA Section */
.cta-section {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(10,22,40,0.06);
    border-bottom: 1px solid var(--glass-border);
    padding: 5rem 1.5rem;
    text-align: center;
}

.cta-inner { max-width: 700px; margin: 0 auto; }

.cta-section h2 {
    font-family: var(--serif);
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gold-text);
    border: 1px solid rgba(192,178,131,0.3);
    background: transparent;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: rgba(192,178,131,0.12);
    border-color: var(--gold);
}

.cta-btn svg { width: 18px; height: 18px; stroke: var(--gold); fill: none; }

/* Footer */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(10,22,40,0.06);
    padding: 3rem 1.5rem;
}

.footer-inner { max-width: 1100px; margin: 0 auto; }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 0.75rem;
}

.footer-col h4,
.footer-col .footer-heading {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

/* Footer brand reset */
footer .nav-logo { margin-bottom: 0; }
.footer-brand-link { margin-bottom: 12px; display: inline-block; }

.footer-bottom {
    border-top: 1px solid rgba(10,22,40,0.06);
    padding-top: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.social-links a { color: var(--text-dim); transition: color 0.2s; }
.social-links a:hover { color: var(--gold-text); }
.social-links svg { width: 14px; height: 14px; }

.footer-copy {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Cross-Page Shared Classes ─── */

/* Gold links — replaces inline color: var(--gold-text);text-decoration:none;font-weight:500 */
.gold-link { color: var(--gold-text); text-decoration: none; font-weight: 500; }
.gold-link:hover { text-decoration: underline; }
.gold-link-bold { color: var(--gold-text); text-decoration: none; font-weight: 600; }
.gold-link-bold:hover { text-decoration: underline; }
.gold-inline { color: var(--gold-text); }

/* Text alignment helpers */
.text-center { text-align: center; }

/* Section header — centered heading + bottom margin */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-label { display: block; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.5rem; color: var(--accent, #C5A04E); }

/* Section-sub auto-center */
.section-sub { margin: 0 auto; }

/* Resource bullet list items (article cross-cluster links) */
.ccl-item { margin-bottom: 0.6rem; font-size: 0.9rem; line-height: 1.6; color: #5A5A6E; }
.ccl-item:last-child { margin-bottom: 0; }

/* Stat value/label pairs (research cards) */
.rc-stat-value { font-family: var(--mono); font-size: 1.3rem; font-weight: 700; color: var(--navy); }
.rc-stat-label { font-size: 0.75rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

/* ─── Featured Case Study Cards ─── */
.fcs-section { padding: 3rem 1.5rem; max-width: 900px; margin: 0 auto; }
.fcs-heading { font-family: var(--serif); font-size: 1.8rem; text-align: center; margin-bottom: 2rem; }
.fcs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.fcs-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; padding: 1.5rem; text-decoration: none; color: inherit; transition: border-color 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.fcs-card:hover { border-color: var(--gold); }
.fcs-value { color: var(--gold-text); font-size: 2rem; font-weight: 700; font-family: var(--serif); }
.fcs-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.fcs-title { font-size: 0.9rem; font-weight: 600; }
.fcs-industry { font-size: 0.75rem; color: var(--muted); }
.fcs-more { text-align: center; margin-top: 1.5rem; }
.fcs-related { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }
.fcs-related-link { color: var(--muted); font-size: 0.85rem; text-decoration: none; border-bottom: 1px solid rgba(10,22,40,0.1); padding-bottom: 2px; }
.fcs-related-link:hover { color: var(--text); border-color: var(--gold); }

/* ─── Spacing Utilities ─── */
.mb-1 { margin-bottom: 1rem; }
.mb-half { margin-bottom: 0.5rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-1-5 { margin-bottom: 1.5rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-2-5 { margin-bottom: 2.5rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
.mt-1-5 { margin-top: 1.5rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.pt-3 { padding-top: 3rem; }
.max-w-700 { max-width: 700px; }
.max-w-720 { max-width: 720px; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid-1 { grid-template-columns: 1fr; gap: 2rem; }
.btn-sm { font-size: 0.85rem; padding: 0.5rem 1.25rem; }

/* ─── Layout Utilities ─── */
.flex-center-gap { display: flex; align-items: center; gap: 1rem; }
.flex-center-wrap { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── Text Utilities ─── */
.text-sm { font-size: 0.85rem; line-height: 1.6; }
.text-sm-muted { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.text-xs-dim { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 0.75rem; }
.text-body { font-size: 1rem; color: var(--text); line-height: 1.8; margin-bottom: 0; }
.gold-highlight { color: var(--gold-text); font-weight: 600; }

/* ─── Section Padding ─── */
.section-padded { padding: 4.5rem 0; }
.section-padded-sm { padding: 3.5rem 0; }
.no-padding { padding: 0; overflow: hidden; }

/* ─── Page-Specific Badges ─── */
.compare-badge { background: rgba(245,158,11,0.06); color: #b45309; border: 1px solid rgba(245,158,11,0.12); }
.event-badge { background: rgba(139,92,246,0.06); color: #7c3aed; border: 1px solid rgba(139,92,246,0.12); }
.partner-badge { background: rgba(16,185,129,0.06); color: #059669; border: 1px solid rgba(16,185,129,0.12); }
.roi-badge { background: rgba(59,130,246,0.06); color: #2563eb; border: 1px solid rgba(59,130,246,0.12); }

/* ─── Assessment Form (case-studies) ─── */
.assess-subtitle { text-align: center; color: var(--text-muted); max-width: 700px; margin: -0.5rem auto 2rem; font-size: 0.95rem; line-height: 1.7; }
.assess-form { display: flex; gap: 0.75rem; max-width: 480px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.assess-note { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.75rem; }
.assess-success-title { font-weight: 600; color: var(--navy); margin-bottom: 0.25rem; }
.assess-success-text { font-size: 0.9rem; color: var(--text-muted); }

/* ─── Resources Playbook ─── */
.playbook-subtitle { margin-bottom: 2rem; text-align: left; max-width: none; }

/* DSM-008: Mobile touch targets — WCAG 2.5.5 */
@media (max-width: 768px) {
    .nav-links a, #mobileMenu a { min-height: 44px; display: inline-flex; align-items: center; }
    .social-icons a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .bc-breadcrumb a, .breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
    footer a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* DSM-016: Below 600px hide all nav links */
@media (max-width: 600px) {
    .nav-links { display: none; }
}

/* DSM-019: Mobile overflow fix — constrain all containers to viewport */
@media (max-width: 600px) {
    .section-inner, .cta-inner, .footer-inner, .nav-inner,
    .hero-inner, .container, .faq-container, .calc-container,
    .research-form-card, .cta-box, .assumptions, .positions-list,
    .fcs-section, .max-w-700, .max-w-720, .max-w-800,
    .assess-form, .bc-breadcrumb,
    .subtitle, .section-subtitle, .chat-bubble { max-width: 100%; }
    .cta-section h2 { font-size: 1.6rem; }
    .cta-section p { font-size: 0.95rem; }
    .fcs-heading { font-size: 1.4rem; }
    h1, h2, h3 { overflow-wrap: break-word; word-wrap: break-word; }
}
