/* ==========================================================================
   Chartered Economist® — economicscourses.org redesign
   Design system: trust navy + premium gold · Fraunces display / Inter body
   ========================================================================== */

/* Fonts are loaded via <link rel="preload"/stylesheet> in the page head
   (faster than @import — avoids a render-blocking request chain). */

:root {
  /* Color tokens */
  --ink: #0b1526;
  --navy-900: #0e1b33;
  --navy-800: #122443;
  --navy-700: #1a3158;
  --navy-600: #234070;
  --navy-100: #e3eaf5;
  --navy-50: #eef3fa;
  --gold-600: #a16207;
  --gold-500: #b8860b;
  --gold-400: #d4a017;
  --gold-300: #e8c468;
  --gold-100: #faf3e0;
  --paper: #fbfaf7;
  --surface: #ffffff;
  --text: #1c2536;
  --text-muted: #51607a;
  --text-faint: #7b89a1;
  --border: #e4e8ef;
  --border-dark: rgba(255, 255, 255, 0.14);
  --success: #15803d;
  --error: #dc2626;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 51, 0.06), 0 2px 8px rgba(14, 27, 51, 0.05);
  --shadow-md: 0 2px 6px rgba(14, 27, 51, 0.06), 0 12px 32px rgba(14, 27, 51, 0.10);
  --shadow-lg: 0 4px 12px rgba(14, 27, 51, 0.08), 0 24px 64px rgba(14, 27, 51, 0.16);
  --shadow-gold: 0 8px 24px rgba(184, 134, 11, 0.28);
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
ul, ol { list-style: none; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 2000;
  background: var(--navy-900); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Typography --------------------------------------------------------------- */
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.3; }
h4 { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
p { max-width: 70ch; }
.lead { font-size: 1.18rem; line-height: 1.7; color: var(--text-muted); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p, .on-dark .lead { color: #b9c5d9; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); }
.on-dark .eyebrow { color: var(--gold-300); }
.on-dark .eyebrow::before { background: var(--gold-300); }

/* Layout ------------------------------------------------------------------ */
.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-sm { padding: clamp(48px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center p { margin-inline: auto; }
.section-head p { margin-top: 16px; }
.grid { display: grid; gap: 28px; }
.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: 1020px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.bg-dark { background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%); color: #cfd9e8; }
.bg-tint { background: var(--navy-50); }
.bg-surface { background: var(--surface); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 0.99rem; letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  cursor: pointer; text-align: center;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #fff; box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(184, 134, 11, 0.4); }
.btn-navy { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border: 1.5px solid var(--border); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--navy-600); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.on-dark .btn-outline { border-color: var(--border-dark); color: #fff; background: rgba(255, 255, 255, 0.04); }
.on-dark .btn-outline:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.09); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(251, 250, 247, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.94); border-color: var(--border); box-shadow: 0 4px 24px rgba(14, 27, 51, 0.07); }
.header-inner { display: flex; align-items: center; gap: 28px; width: min(1320px, 100% - 48px); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }

/* Co-branded header lockup: AAFM India wordmark + Chartered Economist */
.brand-lockup { gap: 14px; }
.brand-logo {
  height: 50px; width: auto; display: block; flex: none; box-sizing: border-box;
  background: #fff; padding: 6px 11px; border-radius: 10px;
  border: 1px solid var(--border); box-shadow: 0 1px 4px rgba(14, 27, 51, 0.10);
}
.brand-div { width: 1px; height: 32px; background: var(--border); flex: none; }
.brand-ce { display: flex; flex-direction: column; line-height: 1.15; }
.brand-ce strong { font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.brand-ce strong sup { font-size: 0.56em; top: -0.7em; }
.brand-ce span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-600); }
@media (max-width: 600px) {
  .brand-div, .brand-ce { display: none; }
  .brand-logo { height: 44px; padding: 5px 9px; }
}
.brand-mark {
  width: 46px; height: 46px; border-radius: 999px; flex: none;
  display: block; object-fit: contain;
  box-shadow: var(--shadow-sm);
}
.brand-text { line-height: 1.18; }
.brand-text strong { display: block; font-family: var(--font-display); font-size: 1.06rem; color: var(--ink); font-weight: 700; }
.brand-text span { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-600); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  font-size: 0.93rem; font-weight: 550; color: var(--text); white-space: nowrap; cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.nav-link:hover, .nav-item.open > .nav-link { background: var(--navy-50); color: var(--navy-700); }
.nav-link.active { color: var(--gold-600); }
.nav-link .chev { width: 14px; height: 14px; transition: transform 0.22s var(--ease); }
.nav-item.open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 8px);
  min-width: 280px; padding: 10px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dropdown a { display: flex; flex-direction: column; gap: 1px; padding: 11px 14px; border-radius: 10px; transition: background 0.15s; }
.dropdown a:hover { background: var(--navy-50); }
.dropdown a b { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.dropdown a small { font-size: 0.78rem; color: var(--text-faint); }
.dropdown .dd-divider { height: 1px; background: var(--border); margin: 8px 10px; }

.header-cta { flex: none; min-height: 44px; padding: 10px 22px; font-size: 0.9rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 12px; margin-left: auto; border-radius: 10px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 2px;
    margin: 0; padding: 20px 24px 48px; overflow-y: auto;
    background: var(--paper); border-top: 1px solid var(--border);
    transform: translateX(100%); transition: transform 0.3s var(--ease);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 1.05rem; }
  .dropdown {
    position: static; transform: none; min-width: 0; box-shadow: none; border: none;
    background: var(--navy-50); margin: 4px 0 8px; display: none;
  }
  .nav-item.open .dropdown { display: block; }
}

/* Hero -------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #cfd9e8;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(35, 64, 112, 0.55), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(184, 134, 11, 0.16), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  padding: calc(var(--header-h) + clamp(64px, 9vw, 110px)) 0 clamp(72px, 9vw, 120px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(900px 600px at 70% 20%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 600px at 70% 20%, #000 30%, transparent 75%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em { font-style: italic; color: var(--gold-300); }
.hero .lead { color: #b9c5d9; max-width: 56ch; margin-top: 24px; }
.hero .btn-row { margin-top: 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 8px 18px 8px 10px; border-radius: 999px; font-size: 0.84rem; font-weight: 600; color: #e8edf5;
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border-dark);
}
.hero-badge .dot { width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: #fff; }
.hero-badge .dot svg { width: 14px; height: 14px; }

/* Hero side card */
.cred-card {
  position: relative; border-radius: var(--radius-lg); padding: 36px 34px;
  background: linear-gradient(155deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  border: 1px solid var(--border-dark); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.cred-card .seal {
  width: 84px; height: 84px; border-radius: 999px; margin-bottom: 24px;
  background: radial-gradient(circle at 35% 30%, var(--gold-300), var(--gold-600) 75%);
  display: grid; place-items: center; color: var(--navy-900);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 0 0 6px rgba(212, 160, 23, 0.15), var(--shadow-gold);
}
.cred-card .seal-img {
  width: 96px; height: 96px; border-radius: 999px; margin-bottom: 24px;
  background: #fff; padding: 8px; object-fit: contain;
  box-shadow: 0 0 0 5px rgba(212, 160, 23, 0.22), var(--shadow-gold);
}
.cred-card h3 { color: #fff; margin-bottom: 6px; }
.cred-card .sub { font-size: 0.9rem; color: #9fb0c8; margin-bottom: 22px; }
.cred-list { display: grid; gap: 13px; }
.cred-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; color: #d4dce9; }
.cred-list svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--gold-300); }

/* Stats ------------------------------------------------------------------- */
.stat-band { position: relative; }
.stat-band .grid { gap: 18px; }
.stat {
  padding: 30px 28px; border-radius: var(--radius); text-align: left;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.stat .num { font-family: var(--font-display); font-size: clamp(2.1rem, 3.4vw, 2.9rem); font-weight: 700; color: var(--navy-800); line-height: 1; }
.stat .num em { font-style: normal; color: var(--gold-500); }
.stat .lbl { margin-top: 10px; font-size: 0.92rem; color: var(--text-muted); }
.on-dark .stat { background: rgba(255,255,255,0.05); border-color: var(--border-dark); }
.on-dark .stat .num { color: #fff; }
.on-dark .stat .lbl { color: #9fb0c8; }

/* Cards ------------------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 34px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
a.card:hover, .card.hoverable:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(35, 64, 112, 0.25); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-50); color: var(--navy-700);
}
.card .icon svg { width: 25px; height: 25px; }
.card h3 { font-size: 1.22rem; }
.card p { font-size: 0.95rem; color: var(--text-muted); }
.card .card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--gold-600); }
.card .card-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
a.card:hover .card-link svg { transform: translateX(4px); }
.card .tag {
  position: absolute; top: 24px; right: 24px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600);
  background: var(--gold-100); padding: 5px 12px; border-radius: 999px;
}

/* Specialization cards (dark) */
.spec-card {
  display: flex; flex-direction: column; gap: 12px; padding: 32px 28px;
  border-radius: var(--radius); border: 1px solid var(--border-dark);
  background: linear-gradient(160deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.spec-card:hover { transform: translateY(-6px); background: linear-gradient(160deg, rgba(255,255,255,0.11), rgba(255,255,255,0.04)); border-color: rgba(212, 160, 23, 0.45); }
.spec-card .code { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--gold-300); }
.spec-card .spec-logo {
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 10px; padding: 12px 16px; margin-bottom: 6px;
}
.spec-card .spec-logo img { width: 100%; max-width: 260px; height: auto; max-height: 64px; object-fit: contain; }
.spec-card h3 { color: #fff; font-size: 1.18rem; }
.spec-card p { font-size: 0.9rem; color: #9fb0c8; }
.spec-card .card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--gold-300); }
.spec-card .card-link svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.spec-card:hover .card-link svg { transform: translateX(4px); }

/* Feature rows ------------------------------------------------------------- */
.feature-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.feature-split > *, .grid > * { min-width: 0; }
@media (max-width: 920px) { .feature-split { grid-template-columns: 1fr; } }
.check-list { display: grid; gap: 16px; margin-top: 28px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .ck {
  width: 26px; height: 26px; flex: none; margin-top: 1px; border-radius: 999px;
  display: grid; place-items: center; background: var(--gold-100); color: var(--gold-600);
}
.check-list .ck svg { width: 14px; height: 14px; }
.check-list b { display: block; color: var(--ink); font-weight: 600; }
.check-list span { font-size: 0.93rem; color: var(--text-muted); }
.on-dark .check-list b { color: #fff; }
.on-dark .check-list span { color: #9fb0c8; }
.on-dark .check-list .ck { background: rgba(212,160,23,0.18); color: var(--gold-300); }

/* Numbered steps ------------------------------------------------------------ */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { position: relative; display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 28px 0; }
.step + .step { border-top: 1px solid var(--border); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--gold-500); line-height: 1.1;
}
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { font-size: 0.97rem; color: var(--text-muted); }

/* Module accordion ----------------------------------------------------------- */
.accordion { display: grid; gap: 14px; }
.acc-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: box-shadow 0.25s; }
.acc-item.open { box-shadow: var(--shadow-md); }
.acc-btn {
  width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 26px; text-align: left;
}
.acc-btn .acc-no { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--gold-500); flex: none; min-width: 34px; }
.acc-btn .acc-title { font-weight: 600; font-size: 1.05rem; color: var(--ink); flex: 1; }
.acc-btn .acc-chev { width: 22px; height: 22px; flex: none; color: var(--text-faint); transition: transform 0.25s var(--ease); }
.acc-item.open .acc-chev { transform: rotate(180deg); color: var(--gold-600); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }
.acc-panel-inner > div { padding: 0 26px 26px 78px; color: var(--text-muted); font-size: 0.97rem; display: grid; gap: 12px; }
@media (max-width: 680px) { .acc-panel-inner > div { padding-left: 26px; } }

/* Tables ------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 540px; }
table.data th {
  text-align: left; padding: 16px 22px; background: var(--navy-800); color: #fff;
  font-weight: 600; font-size: 0.84rem; letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap;
}
table.data td { padding: 15px 22px; border-top: 1px solid var(--border); color: var(--text); vertical-align: top; }
table.data tbody tr:nth-child(even) { background: var(--navy-50); }
table.data td.num, table.data th.num { font-variant-numeric: tabular-nums; }
table.data .hl { font-weight: 600; color: var(--navy-800); }

/* Quote / testimonial -------------------------------------------------------- */
.quote-card {
  display: flex; flex-direction: column; gap: 20px; padding: 36px 32px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.quote-card .q-mark { font-family: var(--font-display); font-size: 3.4rem; line-height: 0.6; color: var(--gold-400); margin-top: 12px; }
.quote-card blockquote { font-size: 1.02rem; line-height: 1.7; color: var(--text); font-style: italic; }
.quote-card .who { margin-top: auto; display: flex; align-items: center; gap: 14px; }
.quote-card .who .avatar {
  width: 46px; height: 46px; border-radius: 999px; flex: none; display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-700); font-weight: 700; font-size: 0.95rem;
}
.quote-card .who b { display: block; font-size: 0.95rem; color: var(--ink); }
.quote-card .who span { font-size: 0.83rem; color: var(--text-faint); }

/* Logos / recognition -------------------------------------------------------- */
.logo-band { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.logo-chip {
  padding: 12px 24px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
}

/* Breadcrumb / page hero ------------------------------------------------------ */
.page-hero {
  position: relative; overflow: hidden; color: #cfd9e8;
  background:
    radial-gradient(900px 420px at 90% -20%, rgba(35, 64, 112, 0.5), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-800) 70%, var(--navy-700));
  padding: calc(var(--header-h) + clamp(48px, 7vw, 88px)) 0 clamp(48px, 7vw, 80px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.45;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 480px at 75% 10%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(800px 480px at 75% 10%, #000 25%, transparent 75%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero .lead { margin-top: 18px; max-width: 62ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.84rem; color: #8fa1bd; margin-bottom: 26px; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }
.crumbs .here { color: var(--gold-300); font-weight: 600; }

/* Prose (long-form pages) ----------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { margin: 56px 0 20px; }
.prose h3 { margin: 40px 0 14px; }
.prose h4 { margin: 32px 0 12px; }
.prose p { margin-bottom: 18px; color: var(--text); }
.prose p.muted { color: var(--text-muted); }
.prose ul { display: grid; gap: 10px; margin: 18px 0 24px; }
.prose ul li { position: relative; padding-left: 30px; color: var(--text); }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px;
  border-radius: 3px; background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); transform: rotate(45deg);
}
.prose .note {
  border-left: 3px solid var(--gold-500); background: var(--gold-100);
  padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 24px 0; font-size: 0.95rem;
}

/* Sidebar layout for content pages */
.content-layout { display: grid; grid-template-columns: 1fr 320px; gap: clamp(40px, 5vw, 72px); align-items: start; }
.content-layout > * { min-width: 0; }
@media (max-width: 980px) { .content-layout { grid-template-columns: 1fr; } }
.side-rail { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
@media (max-width: 980px) { .side-rail { position: static; } }
.rail-card { padding: 28px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.rail-card.dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); border: none; color: #cfd9e8; }
.rail-card.dark h3 { color: #fff; }
.rail-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.rail-card p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 18px; }
.rail-card.dark p { color: #9fb0c8; }
.rail-card .btn { width: 100%; }
.rail-links { display: grid; gap: 2px; }
.rail-links a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 9px; font-size: 0.92rem; font-weight: 550; color: var(--text); transition: background 0.15s; }
.rail-links a:hover { background: var(--navy-50); color: var(--navy-700); }
.rail-links a.current { background: var(--gold-100); color: var(--gold-600); }
.rail-links svg { width: 15px; height: 15px; flex: none; color: var(--gold-500); }

/* Forms ------------------------------------------------------------------- */
.form-card {
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 18px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--paper);
  font: inherit; font-size: 0.97rem; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(184, 134, 11, 0.13);
}
.field .hint { font-size: 0.8rem; color: var(--text-faint); }
.form-msg { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-size: 0.93rem; font-weight: 550; }
.form-msg.ok { display: block; background: #e9f7ef; color: var(--success); border: 1px solid #bfe6cd; }

/* CTA band ------------------------------------------------------------------ */
.cta-band { position: relative; overflow: hidden; }
.cta-band .inner {
  position: relative; border-radius: var(--radius-lg); padding: clamp(44px, 6vw, 80px);
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(212, 160, 23, 0.22), transparent 55%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #cfd9e8; text-align: center;
}
.cta-band h2 { color: #fff; max-width: 24ch; margin-inline: auto; }
.cta-band p { margin: 18px auto 0; max-width: 56ch; color: #b9c5d9; }
.cta-band .btn-row { justify-content: center; margin-top: 36px; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #9fb0c8; font-size: 0.92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; padding: clamp(56px, 7vw, 80px) 0 48px; }
@media (max-width: 1020px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand p { margin-top: 18px; font-size: 0.88rem; line-height: 1.7; max-width: 34ch; }
.footer-logos { margin-top: 24px; }
.footer-logos > span { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 12px; }
.footer-logo-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-logo-row img { height: 46px; width: auto; background: #fff; border-radius: 8px; padding: 7px 12px; object-fit: contain; }
.footer-col h4 { color: #fff; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { transition: color 0.15s; }
.footer-col a:hover { color: var(--gold-300); }
.footer-contact { display: grid; gap: 12px; margin-top: 20px; }
.footer-contact a, .footer-contact div { display: flex; gap: 11px; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--gold-300); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
  padding: 26px 0; border-top: 1px solid var(--border-dark); font-size: 0.82rem; color: #768aa8;
}
.footer-legal { font-size: 0.78rem; line-height: 1.7; color: #67799a; padding: 28px 0 0; border-top: 1px solid var(--border-dark); margin-top: 8px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-dark); color: #b9c5d9;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social a:hover { background: var(--gold-600); color: #fff; transform: translateY(-3px); }
.footer-social svg { width: 17px; height: 17px; }

/* Blog cards ------------------------------------------------------------------ */
.post-card { overflow: hidden; padding: 0; }
.post-card .post-banner {
  height: 170px; display: flex; align-items: flex-end; padding: 20px 26px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: var(--gold-300); font-family: var(--font-display); font-size: 1rem;
}
.post-card .post-banner.alt { background: linear-gradient(150deg, var(--navy-700), var(--gold-600)); color: #fff; }
.post-card .post-body { display: flex; flex-direction: column; gap: 12px; padding: 26px; flex: 1; }
.post-card .meta { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-600); }
.post-card h3 { font-size: 1.16rem; }

/* FAQ ------------------------------------------------------------------------- */
.faq-cat { font-family: var(--font-display); font-size: 1.4rem; margin: 48px 0 20px; }

/* Reveal animations ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Utility ----------------------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }
.center { text-align: center; }
.gold { color: var(--gold-600); }
.small { font-size: 0.88rem; color: var(--text-faint); }
