/* ==========================================================================
   Jurisa — Legal Process Outsourcing
   Design system & site styles
   Palette: Sapphire navy + gold (a nod to Sri Lanka's famed gemstones)
   Type:    Fraunces (display serif) + Inter (UI/body)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Sapphire navy */
  --navy-900: #071B30;
  --navy-800: #0A2440;
  --navy-700: #0C2A48;
  --navy-600: #123B63;
  --navy-500: #1C5C7A;
  --navy-400: #3E7D97;

  /* Gold */
  --gold-600: #B0863A;
  --gold-500: #C9A24B;
  --gold-400: #D8B970;
  --gold-200: #E8DCBB;
  --gold-050: #F4ECD8;

  /* Sea / sapphire accent */
  --sea-500: #2E7D8A;
  --sea-300: #7FC7D9;

  /* Neutrals */
  --ink: #13202E;
  --slate-800: #24313F;
  --slate-700: #33465A;
  --slate-600: #4C5E70;
  --slate-500: #6A7B8C;
  --slate-400: #98A6B4;
  --slate-300: #C6D0D9;
  --line: #E7E4DC;
  --line-soft: #F0EDE5;
  --paper: #F7F5EF;
  --paper-2: #FBFAF5;
  --white: #FFFFFF;

  /* Semantic */
  --bg: var(--paper);
  --text: var(--slate-700);
  --heading: var(--navy-800);

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(10, 36, 64, 0.06);
  --shadow-sm: 0 4px 14px rgba(10, 36, 64, 0.07);
  --shadow-md: 0 18px 40px -18px rgba(10, 36, 64, 0.22);
  --shadow-lg: 0 40px 80px -30px rgba(7, 27, 48, 0.35);

  /* Layout */
  --container: 1200px;
  --container-narrow: 780px;
  --gutter: clamp(20px, 5vw, 48px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--navy-600); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--gold-600); }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--heading);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  overflow-wrap: break-word;
}
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.16rem; }

.lead {
  font-size: clamp(1.12rem, 1.6vw, 1.32rem);
  line-height: 1.6;
  color: var(--slate-600);
}

strong { color: var(--slate-800); font-weight: 600; }
em { font-style: italic; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.container.mid { max-width: 960px; }

.section { padding-block: clamp(64px, 9vw, 120px); }
.section.tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--gold-500);
  display: inline-block;
}
.section-head.center .eyebrow { justify-content: center; }

.muted { color: var(--slate-500); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn svg { width: 18px; height: 18px; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: linear-gradient(135deg, var(--gold-400), var(--gold-600)); --btn-fg: var(--navy-900); box-shadow: 0 10px 26px -10px rgba(176, 134, 58, 0.7); }
.btn--primary:hover { box-shadow: 0 16px 34px -12px rgba(176, 134, 58, 0.85); }

.btn--dark { --btn-bg: var(--navy-800); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--navy-700); box-shadow: var(--shadow-md); }

.btn--light { --btn-bg: #fff; --btn-fg: var(--navy-800); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn--light:hover { border-color: var(--gold-400); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-700); border-color: rgba(12, 42, 72, 0.22); }
.btn--ghost:hover { --btn-bg: rgba(12, 42, 72, 0.04); border-color: var(--navy-600); color: var(--navy-700); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,0.32); }
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.6); }

.btn--sm { padding: 11px 18px; font-size: 0.9rem; }
.btn--lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.textlink {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--navy-700);
}
.textlink svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.textlink:hover { color: var(--gold-600); }
.textlink:hover svg { transform: translateX(4px); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 245, 239, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { background: rgba(247, 245, 239, 0.94); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(10,36,64,0.4); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy-800); }
.brand:hover { color: var(--navy-800); }
.brand__mark { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 6px 12px rgba(10,36,64,0.18)); }
.brand__word { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1; }
.brand__word b { color: var(--gold-600); font-weight: 600; }

.nav-menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-menu a {
  display: inline-block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--slate-700);
  font-weight: 550;
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-menu a:hover { color: var(--navy-800); background: rgba(12,42,72,0.05); }
.nav-menu a.active { color: var(--navy-800); }
.nav-menu a.active::after {
  content: ""; display: block; height: 2px; width: 18px; margin: 3px auto 0;
  background: var(--gold-500); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--navy-800);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-800) 45%, var(--navy-900) 100%);
  color: #E7EEF5;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 85% 12%, rgba(28, 92, 122, 0.55), transparent 60%),
    radial-gradient(45% 45% at 12% 90%, rgba(201, 162, 75, 0.14), transparent 60%);
}
.hero__facets { position: absolute; inset: 0; z-index: -1; opacity: 0.5; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(70px, 11vw, 130px); }
.hero-grid > * { min-width: 0; }
.hero h1 { color: #fff; font-weight: 500; }
.hero .lead { color: #B9C9D6; }
.hero .eyebrow { color: var(--gold-400); }
.hero .eyebrow::before { background: var(--gold-400); }

.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 500; color: #CBD8E3;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 14px; border-radius: var(--r-pill);
}
.badge svg { width: 15px; height: 15px; color: var(--gold-400); }

/* Hero card / floating panel */
.hero-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.hero-panel h3 { color: #fff; font-size: 1.15rem; }
.hero-panel .panel-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.10); }
.hero-panel .panel-row:first-of-type { border-top: none; }
.hero-panel .panel-ico {
  width: 44px; height: 44px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(201,162,75,0.16); color: var(--gold-400);
}
.hero-panel .panel-ico svg { width: 22px; height: 22px; }
.hero-panel .panel-row strong { color: #fff; display: block; font-size: 0.98rem; }
.hero-panel .panel-row span { color: #A9BBC9; font-size: 0.86rem; }

/* ---------- Interior page hero ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #E7EEF5; position: relative; overflow: hidden; isolation: isolate;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 88% 0%, rgba(28,92,122,0.5), transparent 60%);
}
.page-hero__inner { padding-block: clamp(56px, 8vw, 104px); max-width: 820px; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: #B9C9D6; }
.page-hero .eyebrow { color: var(--gold-400); }
.page-hero .eyebrow::before { background: var(--gold-400); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.85rem; color: #90A6B7; margin-bottom: 22px; }
.breadcrumb a { color: #A9BBC9; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: 0.5; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 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); }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold-200); }
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { color: var(--slate-600); font-size: 0.98rem; }

.icon-badge {
  width: 54px; height: 54px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-800));
  color: var(--gold-400);
  box-shadow: inset 0 0 0 1px rgba(201,162,75,0.2);
}
.icon-badge svg { width: 26px; height: 26px; }
.icon-badge.gold { background: linear-gradient(150deg, var(--gold-050), var(--gold-200)); color: var(--gold-600); box-shadow: inset 0 0 0 1px rgba(201,162,75,0.35); }

.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; color: var(--navy-700); font-size: 0.95rem; }
.card-link svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card--hover:hover .card-link svg { transform: translateX(4px); }

/* Service card with top rule */
.card--service { position: relative; overflow: hidden; }
.card--service::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card--service:hover::before { transform: scaleX(1); }

/* Checklist */
.checklist { display: grid; gap: 14px; }
.checklist li { display: flex; gap: 13px; align-items: flex-start; color: var(--slate-700); }
.checklist li svg { width: 22px; height: 22px; flex: none; color: var(--gold-600); margin-top: 1px; }
.checklist.light li { color: #C9D6E1; }
.checklist.light li svg { color: var(--gold-400); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 40px); }
.stat { position: relative; padding-left: 22px; }
.stat::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(var(--gold-400), var(--gold-600)); }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.1rem); font-weight: 500; line-height: 1; color: var(--heading); letter-spacing: -0.02em; }
.stat__label { margin-top: 10px; font-size: 0.92rem; color: var(--slate-500); font-weight: 500; }
.stats.on-dark .stat__num { color: #fff; }
.stats.on-dark .stat__label { color: #9FB2C4; }

/* ---------- Split media/text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }
.grid > * { min-width: 0; }
.split--media-right .split__media { order: 2; }
.split__media { position: relative; }

.feature-panel {
  border-radius: var(--r-lg);
  padding: 34px;
  background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #DCE6EF;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden; isolation: isolate;
}
.feature-panel::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 50% at 80% 10%, rgba(28,92,122,0.5), transparent 60%);
}
.feature-panel h3 { color: #fff; }

/* ---------- Steps / process ---------- */
.steps { display: grid; gap: 4px; counter-reset: step; }
.step { position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 24px; row-gap: 2px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: none; }
.step__num {
  counter-increment: step;
  grid-column: 1; grid-row: 1 / span 2; align-self: start;
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  color: var(--gold-600);
  background: var(--gold-050);
  box-shadow: inset 0 0 0 1px var(--gold-200);
}
.step__num::before { content: "0" counter(step); }
.step > :not(.step__num) { grid-column: 2; }
.step h3 { margin-top: 2px; }
.step h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step p { color: var(--slate-600); margin: 0; }

/* Numbered card grid */
.numbered { counter-reset: n; }
.numbered .card { position: relative; }
.numbered .card .n {
  font-family: var(--font-display); color: var(--gold-500);
  font-size: 1.05rem; font-weight: 600; letter-spacing: 0.05em;
  display: block; margin-bottom: 14px;
}

/* ---------- Accordion / FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-trigger {
  width: 100%; text-align: left; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px; font-size: 1.1rem; font-weight: 600; color: var(--navy-800);
  font-family: var(--font-display);
}
.acc-trigger .plus { position: relative; width: 20px; height: 20px; flex: none; }
.acc-trigger .plus::before, .acc-trigger .plus::after {
  content: ""; position: absolute; background: var(--gold-600); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.acc-trigger .plus::before { top: 9px; left: 0; width: 20px; height: 2px; }
.acc-trigger .plus::after { top: 0; left: 9px; width: 2px; height: 20px; }
.acc-item.open .plus::after { transform: rotate(90deg); opacity: 0; }
.acc-body { overflow: hidden; height: 0; transition: height 0.35s var(--ease); }
.acc-body-inner { padding: 0 4px 26px; color: var(--slate-600); max-width: 760px; }

/* ---------- Quote / testimonial ---------- */
.quote-band { background: var(--navy-800); color: #E7EEF5; position: relative; overflow: hidden; isolation: isolate; }
.quote-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 15% 20%, rgba(28,92,122,0.5), transparent 60%); }
.quote-mark { font-family: var(--font-display); font-size: 5rem; line-height: 0.6; color: var(--gold-400); opacity: 0.55; height: 44px; }
.quote-text { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.32; color: #fff; font-weight: 400; letter-spacing: -0.01em; }
.quote-cite { display: flex; align-items: center; gap: 14px; margin-top: 28px; }

.testimonial-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 18px; height: 100%; }
.testimonial-card p { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; color: var(--slate-800); font-weight: 400; }
.testimonial-card .stars { color: var(--gold-500); display: flex; gap: 3px; }
.testimonial-card .stars svg { width: 17px; height: 17px; }

/* Avatar */
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--navy-900); background: linear-gradient(150deg, var(--gold-200), var(--gold-400)); box-shadow: inset 0 0 0 1px rgba(176,134,58,0.4); }
.avatar.on-dark { color: #fff; background: linear-gradient(150deg, var(--navy-500), var(--navy-700)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
.cite-name { font-weight: 600; color: var(--navy-800); font-family: var(--font-sans); }
.cite-role { font-size: 0.86rem; color: var(--slate-500); }
.quote-cite .cite-name { color: #fff; }
.quote-cite .cite-role { color: #9FB2C4; }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 60px); }
.logo-strip .client { display: flex; align-items: center; gap: 10px; color: var(--slate-500); font-weight: 600; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.01em; opacity: 0.8; }
.logo-strip .client svg { width: 26px; height: 26px; color: var(--slate-400); }

/* ---------- Bands / backgrounds ---------- */
.bg-paper2 { background: var(--paper-2); }
.bg-white { background: #fff; }
.bg-navy { background: var(--navy-800); color: #D8E2EC; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }
.bg-gradient-soft { background: linear-gradient(180deg, var(--paper), #fff); }
.hairline { border: none; border-top: 1px solid var(--line); margin: 0; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--navy-700), var(--navy-900));
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  color: #E7EEF5;
  box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 85% 10%, rgba(28,92,122,0.55), transparent 60%), radial-gradient(40% 60% at 10% 100%, rgba(201,162,75,0.16), transparent 60%); }
.cta h2 { color: #fff; }
.cta .lead { color: #B9C9D6; }
.cta__facet { position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; opacity: 0.25; z-index: -1; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper-2); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-400); background: #fff;
  box-shadow: 0 0 0 4px rgba(201,162,75,0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-note { font-size: 0.82rem; color: var(--slate-500); margin-top: 6px; }
.form-success { display: none; padding: 16px 18px; border-radius: var(--r-sm); background: var(--gold-050); border: 1px solid var(--gold-200); color: var(--slate-800); font-weight: 500; margin-bottom: 20px; }
.form-success.show { display: block; }

/* ---------- Misc ---------- */
.tag { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy-600); background: var(--gold-050); border: 1px solid var(--gold-200); padding: 5px 12px; border-radius: var(--r-pill); }
.tag.plain { background: rgba(12,42,72,0.05); border-color: transparent; color: var(--slate-600); }

.callout { border-left: 3px solid var(--gold-500); background: var(--paper-2); padding: 20px 24px; border-radius: 0 var(--r-md) var(--r-md) 0; }

.value-item { display: flex; gap: 18px; align-items: flex-start; }
.value-item .icon-badge { margin-bottom: 0; }

.mini-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--gold-050); color: var(--gold-600); flex: none; box-shadow: inset 0 0 0 1px var(--gold-200); }
.mini-ico svg { width: 20px; height: 20px; }

.dl-grid { display: grid; gap: 2px; }
.dl-grid .row { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); align-items: baseline; }
.dl-grid .row:first-child { border-top: none; }
.dl-grid dt { font-weight: 600; color: var(--navy-800); font-family: var(--font-display); font-size: 1.05rem; }
.dl-grid dd { margin: 0; color: var(--slate-600); }

/* Article cards */
.article-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.article-card__thumb { aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.article-card__thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.article-card__meta { display: flex; gap: 12px; align-items: center; font-size: 0.82rem; color: var(--slate-500); margin-bottom: 12px; }
.article-card h3 { font-size: 1.24rem; margin-bottom: 10px; }
.article-card h3 a { color: var(--navy-800); }
.article-card h3 a:hover { color: var(--gold-600); }
.article-card p { color: var(--slate-600); font-size: 0.96rem; }
.article-card .card-link { margin-top: auto; padding-top: 16px; }

/* Prose (article body) */
.prose { max-width: 720px; }
.prose > * { margin-bottom: 1.4em; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.32rem; margin-top: 1.3em; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 26px; color: var(--slate-700); }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--gold-500); }
.prose blockquote { margin: 0; padding: 18px 26px; border-left: 3px solid var(--gold-500); background: var(--paper-2); font-family: var(--font-display); font-size: 1.2rem; color: var(--slate-800); border-radius: 0 var(--r-md) var(--r-md) 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #9FB2C4; padding-block: clamp(56px, 7vw, 84px) 34px; position: relative; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 88% 0%, rgba(28,92,122,0.35), transparent 55%); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.footer-brand .brand__word { color: #fff; }
.footer-brand p { color: #93A7B9; max-width: 320px; margin-top: 18px; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: #9FB2C4; font-size: 0.96rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.95rem; color: #9FB2C4; margin-bottom: 12px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-400); flex: none; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 22px; }
.footer-social a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); color: #C9D6E1; }
.footer-social a:hover { background: rgba(201,162,75,0.16); color: var(--gold-400); border-color: rgba(201,162,75,0.35); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: clamp(40px, 5vw, 60px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.10); font-size: 0.86rem; color: #7E93A6; }
.footer-bottom a { color: #93A7B9; }
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn, .card, .article-card { transition: none !important; }
}

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy-800); color: #fff; padding: 10px 18px; border-radius: var(--r-sm); transition: top 0.2s var(--ease); }
.skip-link:focus { top: 16px; color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
  .dl-grid .row { grid-template-columns: 1fr; gap: 4px; }

  /* Mobile nav */
  .nav-menu, .nav-actions .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { height: 66px; }
  .mobile-menu {
    position: fixed; inset: 66px 0 0; z-index: 99;
    background: var(--paper);
    transform: translateX(100%); transition: transform 0.35s var(--ease);
    padding: 24px var(--gutter) 40px; overflow-y: auto;
    display: flex; flex-direction: column;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .mobile-menu { transform: none; }
  .mobile-menu a.m-link { display: block; padding: 16px 4px; font-size: 1.25rem; font-family: var(--font-display); color: var(--navy-800); border-bottom: 1px solid var(--line); }
  .mobile-menu a.m-link:hover { color: var(--gold-600); }
  .mobile-menu .btn { margin-top: 26px; width: 100%; }
}
@media (min-width: 901px) { .mobile-menu { display: none; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .btn { width: 100%; }
  .btn-row .btn { width: auto; }
  .hero .btn-row .btn, .cta .btn-row .btn { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
