/* ============================================================
   GURU Discovery — Design System
   Authoritative · editorial · technical.
   Corporate shell: deep navy + restrained gold.
   Display = Playfair Display · Body = Hanken Grotesk.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — from official logo files (#0B2644 / #D4A637) */
  --navy:        #0B2644;
  --navy-deep:   #081a31;   /* richest background */
  --navy-700:    #0f2e52;
  --navy-600:    #16406f;
  --gold:        #D4A637;
  --gold-soft:   #C9A97A;
  --gold-bright: #e6bf52;

  /* Neutrals */
  --ink:      #15202e;
  --slate:    #4a586b;
  --mist:     #8a97a8;
  --line:     #e2e6ec;
  --cloud:    #f4f6f9;
  --paper:    #fbfcfd;
  --white:    #ffffff;

  /* GMD product accents (used only on .theme-gmd) */
  --gmd-purple: #5B47E5;
  --gmd-coral:  #FF6B6B;
  --gmd-amber:  #FFB347;

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Fluid type scale */
  --fs-xs:   0.78rem;
  --fs-sm:   0.9rem;
  --fs-base: 1.0625rem;
  --fs-md:   clamp(1.125rem, 1.05rem + 0.4vw, 1.3rem);
  --fs-lg:   clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  --fs-xl:   clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem);
  --fs-2xl:  clamp(2.6rem, 1.8rem + 3.6vw, 4.6rem);
  --fs-3xl:  clamp(3.2rem, 2rem + 5vw, 5.8rem);

  /* Spacing / layout */
  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7.5rem);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(11,38,68,.06), 0 6px 18px rgba(11,38,68,.05);
  --shadow-md: 0 10px 30px rgba(11,38,68,.10), 0 4px 10px rgba(11,38,68,.06);
  --shadow-lg: 0 30px 70px rgba(11,38,68,.18);

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); font-weight: 700; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
p { color: var(--slate); }
p + p { margin-top: 1rem; }
strong { color: var(--ink); font-weight: 600; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.lead { font-size: var(--fs-md); color: var(--slate); line-height: 1.6; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--navy { background: var(--navy-deep); color: #cdd7e3; }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--cloud { background: var(--cloud); }

.section-head { max-width: 680px; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 + p { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .02em;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 8px 22px rgba(212,166,55,.30); }
.btn--gold:hover { background: var(--gold-bright); box-shadow: 0 12px 30px rgba(212,166,55,.40); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--navy); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--ghost-light { border: 1.5px solid rgba(255,255,255,.3); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn--lg { padding: 1.05rem 2.1rem; font-size: var(--fs-base); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,252,253,.82);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(251,252,253,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .65rem; }
.brand img { height: 38px; width: auto; }
.brand .wordmark { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .04em; color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.9rem); }
.nav-links a {
  font-size: var(--fs-sm); font-weight: 500; color: var(--slate);
  position: relative; padding: .35rem 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .25s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: .5rem; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-links, .nav-cta .btn--text { display: none; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.25rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav-links.open { display: flex; opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { width: 100%; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
  .nav-links a:last-child { border-bottom: none; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: #cdd7e3; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(212,166,55,.14), transparent 60%),
    radial-gradient(800px 500px at 10% 110%, rgba(22,64,111,.55), transparent 55%);
  pointer-events: none;
}
.hero .container { position: relative; padding-block: clamp(4.5rem, 11vw, 9rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { color: #fff; }
.hero .tagline { font-family: var(--font-display); font-style: italic; color: var(--gold-soft); font-size: var(--fs-lg); margin-bottom: 1.1rem; }
.hero .lead { color: #aebcce; max-width: 46ch; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-visual { display: flex; justify-content: center; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2.1rem);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d2d9e3; }
.card h3 { font-size: var(--fs-md); margin-bottom: .6rem; }
.card p { font-size: var(--fs-sm); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: linear-gradient(145deg, var(--navy), var(--navy-600));
  color: var(--gold);
}
.card .icon svg { width: 24px; height: 24px; }
.card .num { font-family: var(--font-display); font-size: 2rem; color: var(--gold); line-height: 1; margin-bottom: .75rem; }

/* ---------- Stat band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2,1fr); gap: 2.5rem 1rem; } }
.stat .num { font-family: var(--font-display); font-size: var(--fs-xl); color: var(--gold); }
.stat .label { font-size: var(--fs-sm); color: #9fb0c4; letter-spacing: .04em; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split, .split.reverse { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
.checklist { margin-top: 1.5rem; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; color: var(--slate); font-size: var(--fs-sm); }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23081a31' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-deep), var(--navy-700)); border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 50% -20%, rgba(212,166,55,.18), transparent 60%); pointer-events:none; }
.cta-band h2 { color:#fff; position: relative; }
.cta-band p { color:#aebcce; max-width: 50ch; margin: 1rem auto 0; position: relative; }
.cta-band .hero-actions { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #93a3b8; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand img { height: 34px; filter: brightness(0) invert(1); opacity:.95; }
.site-footer h5 { color:#fff; font-family: var(--font-body); font-size: var(--fs-xs); letter-spacing:.18em; text-transform:uppercase; margin-bottom: 1.1rem; }
.site-footer a { font-size: var(--fs-sm); color:#93a3b8; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer .footer-links { display:grid; gap:.7rem; }
.footer-contact p { font-size: var(--fs-sm); color:#93a3b8; }
.footer-contact a { color: var(--gold-soft); }
.footer-bottom { margin-top: clamp(2.5rem,5vw,3.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); display:flex; flex-wrap:wrap; gap: 1rem; justify-content: space-between; align-items:center; font-size: var(--fs-xs); color:#6b7d92; }

/* ---------- Locations ---------- */
.loc { padding: 1.5rem 0; border-top: 1px solid var(--line); display:grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: baseline; }
.loc:last-child { border-bottom: 1px solid var(--line); }
.loc .city { font-family: var(--font-display); font-size: var(--fs-md); color: var(--navy); min-width: 160px; }
.loc .addr { color: var(--slate); font-size: var(--fs-sm); }
.loc .state-tag { color: var(--gold); font-weight:600; font-size: var(--fs-xs); letter-spacing:.1em; }

/* ---------- Article list ---------- */
.article-card { display:flex; flex-direction:column; gap:.6rem; padding: 1.75rem 0; border-bottom:1px solid var(--line); transition: padding-left .25s var(--ease); }
.article-card:hover { padding-left: .5rem; }
.article-card .meta { font-size: var(--fs-xs); letter-spacing:.1em; text-transform:uppercase; color: var(--mist); }
.article-card h3 { color: var(--navy); transition: color .2s var(--ease); }
.article-card:hover h3 { color: var(--gold); }

/* ---------- Page-load reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-reveal-seq] > * { opacity: 0; transform: translateY(22px); }
[data-reveal-seq].in > * { animation: rise .8s var(--ease) forwards; }
[data-reveal-seq].in > *:nth-child(1) { animation-delay: .05s; }
[data-reveal-seq].in > *:nth-child(2) { animation-delay: .15s; }
[data-reveal-seq].in > *:nth-child(3) { animation-delay: .25s; }
[data-reveal-seq].in > *:nth-child(4) { animation-delay: .35s; }
[data-reveal-seq].in > *:nth-child(5) { animation-delay: .45s; }
[data-reveal-seq].in > *:nth-child(6) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.75rem; }
.muted { color: var(--mist); }
.divider-rule { height:1px; background: var(--line); border:0; margin: 0; }
.tag-row { display:flex; flex-wrap:wrap; gap:.6rem; margin-top: 1.25rem; }
.tag { font-size: var(--fs-xs); font-weight:600; letter-spacing:.04em; padding:.35rem .8rem; border-radius:999px; background: var(--cloud); color: var(--slate); border:1px solid var(--line); }
.skip-link { position:absolute; left:-9999px; top:0; background:var(--navy); color:#fff; padding:.6rem 1rem; border-radius:0 0 8px 0; z-index:200; }
.skip-link:focus { left:0; }
