/* ==========================================================================
   Auralys AI — Paper Light design system (shared stylesheet)
   Direction 3, chosen 2026-11-22. Single source of truth for colour,
   type, spacing, and shared components. Every page links this file
   AFTER its own inline <style> block, so these rules win on equal
   specificity, and the :root tokens below replace each page's old
   duplicated :root block (removed during the migration).
   Fonts: Libre Baskerville (display) + Figtree (body), via Google Fonts.
   ========================================================================== */

:root {
    --gold:        #9a7b1e;   /* quiet gold: labels, rules, small accents */
    --gold-strong: #b9903f;   /* warm gold: hover states, highlights */
    --gold-faint:  #efe6c8;   /* pale gold wash for chips and highlights */
    --bg:          #faf7f1;   /* warm paper page background */
    --bg-raised:   #f3ede2;   /* raised warm surface */
    --bg-surface:  #ffffff;   /* card surface */
    --text:        #1c1710;   /* ink */
    --text-mid:    #6f6455;   /* secondary text */
    --text-low:    #9a8f7d;   /* tertiary text */
    --border:      #e4d9c2;   /* hairlines */
    --border-gold: #c9b896;   /* stronger hairline, gold tinted */
    --dark:        #1c1710;   /* dark band (CTA) */
    --on-dark:     #faf7f1;
    --radius:      12px;
    --safe-bottom: env(safe-area-inset-bottom, 0px); /* iPhone home-indicator inset */
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: 'Figtree', sans-serif;
    background-color: var(--bg) !important;
    color: var(--text) !important;
    line-height: 1.65;
    overflow-x: hidden;
}
h1, h2, h3, .serif { font-family: 'Libre Baskerville', serif; }
a { color: var(--gold); }
img { max-width: 100%; }
::selection { background: var(--gold-faint); color: var(--text); }

/* ---------- Layout helpers ---------- */
.wrap, .container { max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
section { padding: clamp(56px, 8vw, 88px) 0; }

/* ---------- Navigation ---------- */
nav {
    background: rgba(250, 247, 241, 0.92) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border) !important;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none; font-weight: 700; font-size: 18px; }
.nav-logo img { border-radius: 50%; }
.nav-links { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav-links a { color: var(--text-mid) !important; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--gold) !important; }
.nav-cta { background: var(--dark) !important; color: var(--on-dark) !important; }
.nav-cta:hover { background: var(--gold-strong) !important; color: var(--dark) !important; }
.nav-dropdown .dropdown-menu { background: var(--bg-surface) !important; border: 1px solid var(--border) !important; box-shadow: 0 12px 32px rgba(28, 23, 16, 0.12); }
.dropdown-item-desc { color: var(--text-mid) !important; }

/* ---------- Buttons ---------- */
.btn-primary {
    background: var(--dark) !important;
    color: var(--on-dark) !important;
    box-shadow: 0 4px 20px rgba(28, 23, 16, 0.18) !important;
}
.btn-primary:hover { background: var(--gold-strong) !important; color: var(--dark) !important; transform: translateY(-1px); }
.btn-ghost {
    border: 1px solid var(--border-gold) !important;
    color: var(--text) !important;
    background: transparent !important;
}
.btn-ghost:hover { border-color: var(--gold) !important; color: var(--gold) !important; }

/* ---------- Section labels, headings ---------- */
.section-label { color: var(--gold) !important; }
.section-label::before, .section-label::after { background: var(--gold); }
.hero-kicker { color: var(--gold) !important; }
.hero-sub { color: var(--text-mid) !important; }

/* ---------- Cards and surfaces ---------- */
.consult-card, .insight-card, .faq-item, .card, .panel {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 12px rgba(28, 23, 16, 0.05);
}
.consult-card:hover, .insight-card:hover { border-color: var(--border-gold) !important; box-shadow: 0 8px 28px rgba(28, 23, 16, 0.09); }
.service-num, .step-num { color: var(--gold) !important; }
.insight-tag, .tag, .flag {
    background: var(--gold-faint) !important;
    color: var(--gold) !important;
    border: 1px solid var(--border-gold);
}
.insight-meta, .consult-row-desc, .metric-lbl { color: var(--text-mid) !important; }

/* ---------- Founder / pull quotes ---------- */
.founder-pull { border-left: 3px solid var(--gold) !important; color: var(--text) !important; }
.founder-sign-name { color: var(--text) !important; }
.founder-sign-title, .founder-photo-sub, .founder-photo-note { color: var(--text-mid) !important; }

/* ---------- CTA band (dark ink band on paper) ---------- */
.cta-band, .cta-block {
    background: var(--dark) !important;
    color: var(--on-dark) !important;
}
.cta-band h2, .cta-block h2, .cta-band h3, .cta-block h3 { color: var(--on-dark) !important; }
.cta-band p, .cta-block p { color: #cfc4ae !important; }
.cta-band .btn-primary, .cta-block .btn-primary { background: var(--gold-strong) !important; color: var(--dark) !important; box-shadow: none !important; }
.cta-band .btn-ghost, .cta-block .btn-ghost { border-color: rgba(250, 247, 241, 0.5) !important; color: var(--on-dark) !important; }

/* ---------- FAQ ---------- */
.faq-item { border-radius: var(--radius); }
.q-text { color: var(--text) !important; }
.a-body, .faq-answer { color: var(--text-mid) !important; }
.q-toggle { color: var(--gold) !important; }

/* ---------- Forms ---------- */
.form-group label { color: var(--text) !important; }
.form-group input, .form-group textarea, .form-group select {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    color: var(--text) !important;
    border-radius: 8px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--gold) !important;
    outline: 2px solid var(--gold-faint);
}

/* ---------- Trust strip, marquee, ticks ---------- */
.trust-item, .marquee-item { color: var(--text-mid) !important; }
.tick { color: var(--gold) !important; }
.trust-strip-desc { color: var(--text-mid) !important; }
.trust-strip-desc a { color: var(--gold) !important; }

/* ---------- Footer ---------- */
footer { background: var(--bg-raised) !important; border-top: 1px solid var(--border) !important; }
footer p, footer li, footer a { color: var(--text-mid) !important; }
footer h4 { color: var(--text) !important; }
footer a:hover { color: var(--gold) !important; }
.footer-bottom { border-top: 1px solid var(--border) !important; color: var(--text-low) !important; }
.footer-logo { color: var(--text) !important; }

/* ---------- Article / long-form content ---------- */
article p, .article-body p { color: var(--text) !important; }
article li { color: var(--text-mid) !important; }
blockquote { border-left: 3px solid var(--gold) !important; color: var(--text-mid) !important; }
code { background: var(--bg-raised) !important; color: var(--text) !important; }
hr { border-color: var(--border) !important; }

/* ---------- Hero decoration (light treatment) ---------- */
.deck-mockup, .hero-right-deco, .hero-right-deco2 {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 16px 40px rgba(28, 23, 16, 0.10);
}
.bar-track { background: var(--bg-raised) !important; }
.bar-fill { background: var(--gold-strong) !important; }
.bar-name, .chart-label { color: var(--text-mid) !important; }
.deco-label { color: var(--text-low) !important; }

/* ---------- Anchors under the sticky header ---------- */
/* Anchor jumps (#consulting, #faq, #source-N...) used to land with the
   target heading hidden behind the sticky nav. This offsets every
   in-page target on desktop and mobile alike; it changes no layout. */
[id] { scroll-margin-top: 96px; }

/* ---------- Mobile navigation (shared, all pages) ---------- */
/* One menu pattern everywhere: a 44px hamburger in the nav and a
   full-width panel below it. Switches on at 1340px: the 9-link desktop
   nav needs about 1324px to fit (measured 2026-11-24), so below that
   the links would crowd and the Book button would be clipped off the
   right edge. One breakpoint for every page, so there is no width
   where a visitor has neither links nor a menu. The panel lists the
   full standard nav on every page; the Book button mirrors the page's
   own desktop CTA. */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
}
.hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: rgba(250, 247, 241, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    z-index: 899;
    padding: 16px clamp(24px, 5vw, 64px) calc(24px + var(--safe-bottom, 0px));
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.3s;
    pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; margin: 0; padding: 0; }
.mobile-menu a {
    font-family: 'Libre Baskerville', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    min-height: 44px;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .m-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--text);
    border: none;
    padding: 16px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'Figtree', sans-serif;
    text-decoration: none;
    width: 100%;
    margin-top: 16px;
}

/* ---------- Responsive ---------- */
/* Laptop widths: trim the nav's side padding so the 9-link row keeps
   comfortable gaps at 1366px (the most common laptop width). The
   per-page nav rules set 64px sides; this override only narrows them. */
@media (max-width: 1500px) {
    nav { padding-left: clamp(24px, 4vw, 48px) !important; padding-right: clamp(24px, 4vw, 48px) !important; }
}
@media (max-width: 1340px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .mobile-menu { display: block; }
}
@media (max-width: 640px) {
    section { padding: 48px 0; }
    /* Footer bottom bar: let the copyright, locations and legal
       links wrap instead of squeezing into one row. */
    .footer-bottom { flex-wrap: wrap; justify-content: center; gap: 8px 20px; text-align: center; }
}
