/* ════════════════════════════════════════════════════════════
   Rivera International Advisors — Mexico · United States · Colombia
   Palette taken from the gold emblem: ink navy + brushed gold + ivory.
   ════════════════════════════════════════════════════════════ */
:root {
  --ink-0: #070a11;
  --ink-1: #0b0f19;
  --ink-2: #111726;
  --ink-3: #182034;
  --gold: #d9aa3c;
  --gold-hi: #f5d980;
  --gold-lo: #a37a1d;
  --gold-grad: linear-gradient(135deg, #f7dc86 0%, #d9aa3c 48%, #a37a1d 100%);
  --ivory: #f6f1e6;
  --paper: #fcfaf4;
  --text-d: #16120b;      /* text on light */
  --muted-d: #5e5749;
  --text-l: #f1ede2;      /* text on dark */
  --muted-l: #a9aebb;
  --line-d: rgba(22, 18, 11, 0.12);
  --line-l: rgba(217, 170, 60, 0.22);
  --us: #7f9fd6;
  --mx: #6fcf97;
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 30px 60px -30px rgba(7, 10, 17, 0.55);
  --header-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-l);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, .clock-row time, .card-no, .step-no, .ribbon-track { font-variant-numeric: lining-nums; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.005em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: italic; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink-0); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 13.5px; letter-spacing: 0.02em; line-height: 1;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold-grad); color: #1a1306; box-shadow: 0 10px 30px -10px rgba(217, 170, 60, 0.7); }
.btn-gold:hover { box-shadow: 0 16px 38px -10px rgba(245, 217, 128, 0.85); }
.btn-ghost { border-color: var(--line-l); color: var(--gold-hi); background: rgba(217, 170, 60, 0.05); }
.btn-ghost:hover { border-color: var(--gold); background: rgba(217, 170, 60, 0.12); }
.btn-dark { background: var(--ink-1); color: var(--gold-hi); }
.btn-dark:hover { background: var(--ink-3); }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 10, 17, 0.55);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease;
}
.site-header.is-scrolled { background: rgba(7, 10, 17, 0.88); border-bottom-color: var(--line-l); }
.header-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { height: 36px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text b { font-family: var(--serif); font-size: 22px; letter-spacing: 0.2em; font-weight: 700; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-text small { margin-top: 4px; font-size: 8.5px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-l); }

.nav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 13px; font-weight: 600; }
.nav a { position: relative; color: var(--muted-l); padding: 6px 0; transition: color .2s; white-space: nowrap; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.nav a:hover, .nav a.is-active { color: var(--gold-hi); }
.nav a:not(.nav-cta):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav-cta { color: #1a1306 !important; background: var(--gold-grad); padding: 9px 16px !important; border-radius: 999px; font-weight: 700; }
.nav-cta:hover { filter: brightness(1.08); }

.header-tools { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-l); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; color: var(--muted-l); transition: all .2s; }
.lang button[aria-pressed="true"] { background: var(--gold-grad); color: #1a1306; }
.burger { display: none; width: 38px; height: 38px; border: 1px solid var(--line-l); border-radius: 12px; background: none; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1.6px; background: var(--gold-hi); transition: transform .3s, top .3s; }
.burger span:first-child { top: 15px; } .burger span:last-child { top: 21px; }
.burger[aria-expanded="true"] span:first-child { top: 18px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 18px; transform: rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  /* The first screen fills the whole viewport (width and height) on desktop and phones. */
  height: 100vh; height: 100svh; min-height: 520px;
  display: flex; flex-direction: column;
  padding: var(--header-h) 0 0;
  background:
    radial-gradient(900px 600px at 82% 38%, rgba(217, 170, 60, 0.2), transparent 62%),
    radial-gradient(700px 500px at 5% 100%, rgba(63, 90, 160, 0.22), transparent 65%),
    linear-gradient(180deg, var(--ink-0), var(--ink-1));
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.meridians { position: absolute; right: -14%; top: 50%; width: min(920px, 90vw); transform: translateY(-50%); stroke: rgba(217, 170, 60, 0.13); stroke-width: 1; animation: spin 140s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

.hero-grid { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 40px; }
.hero-copy { position: relative; z-index: 3; align-self: center; padding: 2vh 0; }
.kicker { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: clamp(10px, 2vh, 18px); }
.kicker-line { width: 32px; height: 1px; background: var(--gold); flex: none; }
.hero h1 { font-size: clamp(28px, min(3.9vw, 6.8vh), 54px); font-weight: 600; letter-spacing: -0.02em; }
.hero h1 span { display: block; color: var(--text-l); }
.hero h1 em { display: block; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.08em; }
.lead { margin-top: clamp(10px, 2vh, 18px); max-width: 50ch; font-size: clamp(13.5px, 1.9vh, 16px); color: var(--muted-l); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(14px, 2.8vh, 26px); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: clamp(12px, 2.6vh, 24px); font-size: 12.5px; font-weight: 600; color: var(--text-l); }
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points svg { width: 15px; height: 15px; stroke: var(--gold); stroke-width: 2.4; }

/* Portrait stands free (no frame): a soft golden glow behind, shoulders resting on the gold ribbon. */
.hero-art { position: relative; min-height: 0; width: 100%; line-height: 0; }
.art-glow { position: absolute; left: 50%; top: 4%; height: 90%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(245, 217, 128, 0.32), rgba(217, 170, 60, 0.1) 55%, transparent 100%); pointer-events: none; }
.portrait { position: absolute; z-index: 2; bottom: 0; left: 50%; transform: translateX(-50%); display: block; height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom center; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }

.clock-card { position: absolute; z-index: 5; left: 0; bottom: 5%; line-height: 1.5; min-width: 200px; padding: 12px 14px; border-radius: 12px; background: rgba(11, 15, 25, 0.82); border: 1px solid var(--line-l); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.clock-title { font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.clock-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #4cd58a; box-shadow: 0 0 0 0 rgba(76, 213, 138, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(76, 213, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 213, 138, 0); } }
.clock-row { display: flex; justify-content: space-between; gap: 18px; font-size: 12px; padding: 2px 0; color: var(--muted-l); }
.clock-row time { font-family: var(--serif); font-size: 17px; font-weight: 600; color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; line-height: 1.1; }

.seal { position: absolute; z-index: 5; top: 12%; right: 2%; line-height: 1; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: var(--ink-1); border: 1px solid var(--line-l); box-shadow: var(--shadow); }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--gold); stroke: none; animation: rot 24s linear infinite; }
.seal text { font-size: 7.2px; letter-spacing: 0.16em; font-weight: 700; font-family: var(--sans); }
.seal span { font-family: var(--serif); font-size: 22px; color: var(--gold-hi); }
@keyframes rot { to { transform: rotate(360deg); } }

.ribbon { flex: none; background: var(--gold-grad); color: #1a1306; overflow: hidden; border-block: 1px solid rgba(0, 0, 0, 0.18); }
.ribbon-track { display: flex; width: max-content; gap: 22px; padding: 9px 0; animation: marquee 42s linear infinite; font-family: var(--serif); font-size: 16px; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.ribbon-track i { font-style: normal; font-size: 10px; align-self: center; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Sections (shared) ─────────────────────────────────── */
.section { padding: clamp(44px, 6vw, 72px) 0; position: relative; }
.section.light { background: var(--ivory); color: var(--text-d); }
.section.dark { background: var(--ink-1); }
.section-head { max-width: 680px; margin-bottom: clamp(22px, 3vw, 34px); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-lo); margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.dark .eyebrow { color: var(--gold); }
.section-head h2, .why-copy h2, .contact-copy h2 { font-size: clamp(25px, 3.3vw, 38px); letter-spacing: -0.01em; }
h2 em { color: var(--gold-lo); }
.dark h2 em { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-lead { margin-top: 12px; font-size: 14.5px; color: var(--muted-d); max-width: 62ch; }
.dark .section-lead { color: var(--muted-l); }

/* ── Services ──────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card {
  position: relative; overflow: hidden; padding: 22px 20px 20px; background: var(--paper);
  border: 1px solid var(--line-d); border-radius: var(--radius);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -28px rgba(22, 18, 11, 0.4); border-color: rgba(163, 122, 29, 0.45); }
.card:hover::after { transform: scaleX(1); }
.card-no { position: absolute; top: 12px; right: 16px; font-family: var(--serif); font-size: 38px; font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(163, 122, 29, 0.38); }
.card-ico { width: 32px; height: 32px; stroke: var(--gold-lo); stroke-width: 1.7; margin-bottom: 14px; }
.card-ico .fill { fill: rgba(217, 170, 60, 0.25); }
.card h3 { font-size: 20px; line-height: 1.1; margin-bottom: 8px; color: var(--text-d); }
.card p { font-size: 13px; line-height: 1.55; color: var(--muted-d); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips li { font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em; padding: 4px 9px; border-radius: 999px; background: rgba(217, 170, 60, 0.14); color: #7a5a12; }
.note { margin-top: 20px; max-width: 78ch; padding: 12px 16px; border-left: 3px solid var(--gold); background: rgba(217, 170, 60, 0.1); border-radius: 0 10px 10px 0; font-size: 13px; color: var(--muted-d); }

/* ── Bridge ────────────────────────────────────────────── */
.bridge { background: radial-gradient(800px 400px at 100% 0, rgba(63, 90, 160, 0.2), transparent 60%), var(--ink-1); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-l); border-radius: 999px; margin-bottom: 16px; background: rgba(255, 255, 255, 0.02); }
.tabs button { background: none; border: 0; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 12.5px; color: var(--muted-l); transition: all .25s; }
.tabs button:hover { color: var(--gold-hi); }
.tabs button[aria-selected="true"] { background: var(--gold-grad); color: #1a1306; }
.panel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; animation: fade .5s ease; }
.panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } }
.side { position: relative; padding: 20px 20px 18px; border-radius: var(--radius); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, 0.08); }
.side::before { content: ""; position: absolute; left: 20px; top: 0; width: 40px; height: 3px; border-radius: 0 0 3px 3px; }
.side.us::before { background: var(--us); }
.side.mx::before { background: var(--mx); }
.side.co::before { background: var(--gold); }
.side-tag { display: inline-block; margin-bottom: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; }
.us .side-tag { color: var(--us); } .co .side-tag { color: var(--gold); } .mx .side-tag { color: var(--mx); }
.side p { font-family: var(--serif); font-size: 17px; line-height: 1.35; color: var(--text-l); }
.takeaway { grid-column: 1 / -1; padding: 12px 16px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(217, 170, 60, 0.16), rgba(217, 170, 60, 0.03)); border: 1px solid var(--line-l); color: var(--gold-hi); font-weight: 600; font-size: 13px; }
.takeaway::before { content: "⇄  "; color: var(--gold); font-weight: 800; }

/* ── Process ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 8%; right: 8%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold-lo) 0 6px, transparent 6px 14px); opacity: 0.6; }
.step { position: relative; text-align: left; }
.step-no { position: relative; display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 50%; background: var(--ink-1); color: var(--gold-hi); font-family: var(--serif); font-size: 22px; font-weight: 700; box-shadow: 0 0 0 5px var(--ivory), 0 0 0 6px var(--gold-lo); }
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { font-size: 13px; line-height: 1.55; color: var(--muted-d); }

/* ── Why ───────────────────────────────────────────────── */
.why { background: radial-gradient(700px 500px at 0 50%, rgba(217, 170, 60, 0.16), transparent 65%), var(--ink-0); overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.why-logo img { height: auto; width: min(100%, 420px); margin-inline: auto; filter: saturate(1.05); }
.values { margin-top: 18px; display: grid; gap: 0; }
.values li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line-l); }
.values li:last-child { border-bottom: 1px solid var(--line-l); }
.values li::before { content: "◆"; position: absolute; left: 2px; top: 17px; font-size: 10px; color: var(--gold); }
.values b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--gold-hi); margin-bottom: 2px; }
.values span { color: var(--muted-l); font-size: 13px; }

/* ── FAQ ───────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 20px); margin-bottom: 0; }
.faq-grid .btn { margin-top: 18px; }
.faq details { border-bottom: 1px solid var(--line-d); }
.faq details:first-child { border-top: 1px solid var(--line-d); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 2px; cursor: pointer; font-family: var(--serif); font-size: 18px; font-weight: 600; line-height: 1.2; transition: color .2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--gold-lo); color: var(--gold-lo); font-family: var(--sans); font-size: 16px; font-weight: 400; transition: transform .3s, background .3s, color .3s; }
.faq details[open] summary { color: var(--gold-lo); }
.faq details[open] summary::after { content: "–"; transform: rotate(180deg); background: var(--gold-lo); color: var(--paper); }
.faq summary:hover { color: var(--gold-lo); }
.faq p { padding: 0 40px 16px 2px; color: var(--muted-d); font-size: 13.5px; animation: fade .4s ease; }

/* ── Contact ───────────────────────────────────────────── */
.contact { background: radial-gradient(900px 500px at 100% 100%, rgba(217, 170, 60, 0.15), transparent 60%), radial-gradient(700px 400px at 0 0, rgba(63, 90, 160, 0.2), transparent 60%), var(--ink-1); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
.contact-list { margin-top: 18px; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.ci { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line-l); background: rgba(217, 170, 60, 0.08); }
.ci svg { width: 18px; height: 18px; stroke: var(--gold-hi); }
.contact-list small { display: block; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-l); }
.contact-list a { font-weight: 700; font-size: 15px; color: var(--gold-hi); word-break: break-all; }
.contact-list a:hover { text-decoration: underline; }
.contact-list div > span { font-size: 13px; color: var(--text-l); display: block; max-width: 36ch; line-height: 1.45; }

.form { padding: clamp(16px, 2.6vw, 24px); border-radius: 18px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line-l); backdrop-filter: blur(6px); box-shadow: var(--shadow); display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 5px; }
.form label > span { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--text-l); background: rgba(7, 10, 17, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 10px; padding: 10px 12px; transition: border-color .2s, box-shadow .2s;
}
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form option { background: var(--ink-1); color: var(--text-l); }
.form textarea { resize: vertical; min-height: 84px; }
.form input::placeholder, .form textarea::placeholder { color: #6c7385; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 170, 60, 0.22); }
.form .invalid { border-color: #ef7a6a !important; }
.form-err { color: #ff9d8f; font-size: 12.5px; font-weight: 600; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fine { font-size: 11.5px; color: var(--muted-l); }

/* ── Footer ────────────────────────────────────────────── */
.footer { background: var(--ink-0); padding: 0 0 18px; border-top: 1px solid var(--line-l); }
.flagline { height: 4px; background: linear-gradient(90deg, #fcd116 0 50%, #003893 50% 75%, #ce1126 75% 100%); opacity: 0.9; }
.footer-grid { display: grid; grid-template-columns: 1fr 0.7fr 1.3fr; gap: 32px; padding: 32px 0 24px; align-items: start; }
.f-brand img { height: auto; width: min(200px, 100%); }
.footer h4 { font-size: 16px; color: var(--gold-hi); margin-bottom: 10px; letter-spacing: 0.04em; }
.f-nav a { display: block; padding: 3px 0; color: var(--muted-l); font-size: 13px; transition: color .2s, transform .2s; }
.f-nav a:hover { color: var(--gold-hi); transform: translateX(4px); }
.f-legal p { font-size: 12px; line-height: 1.6; color: #8a90a0; max-width: 62ch; }
.copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 12px; color: #7d8393; }

.fab { position: fixed; z-index: 40; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #1fa855; box-shadow: 0 14px 30px -8px rgba(31, 168, 85, 0.65); transition: transform .25s; }
.fab:hover { transform: scale(1.08) rotate(-6deg); }
.fab svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 1.8; }
.fab .fill { fill: #fff; stroke: none; }

/* ── Reveal on scroll ──────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2), .steps .reveal:nth-child(2) { transition-delay: .1s; }
.cards .reveal:nth-child(3n+3), .steps .reveal:nth-child(3) { transition-delay: .2s; }
.steps .reveal:nth-child(4) { transition-delay: .3s; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 24px 20px; }
  .steps::before { display: none; }
  .nav { gap: 18px; }
}
@media (max-width: 1120px) {
  .burger { display: block; }
  .header-tools { margin-left: auto; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 8px 20px 18px; background: rgba(7, 10, 17, 0.97); border-bottom: 1px solid var(--line-l);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 13px 4px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav a::after { display: none; }
  .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0 !important; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 0; }
  .hero-copy { align-self: start; padding: clamp(14px, 3vh, 30px) 0 8px; }
  .hero-art { min-height: 180px; }
  /* Phone/tablet: the portrait is taller than its box; its empty top slides under the buttons so the face gets more room. */
  .portrait { height: 135%; }
  .hero h1 { font-size: clamp(26px, min(7.4vw, 5.4vh), 42px); }
  .kicker { font-size: 10px; letter-spacing: 0.14em; gap: 8px; }
  .kicker-line { width: 20px; }
  .lead { max-width: none; font-size: clamp(13px, 1.8vh, 15px); }
  .hero-points { display: none; }
  .hero-actions { flex-wrap: nowrap; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; padding: 12px 8px; font-size: 13px; }
  .clock-card { left: 0; bottom: 4%; }
  .seal { right: 2%; top: 6%; width: 64px; height: 64px; }
  .seal span { font-size: 18px; }
  .seal text { font-size: 6.4px; }
  .panel { grid-template-columns: 1fr; }
  .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .f-brand { grid-column: 1 / -1; }
  .f-legal { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .wrap { width: calc(100% - 32px); }
  .brand-text small { display: none; }
  .brand-text b { font-size: 20px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; width: 100%; }
  .tabs button { padding: 9px 8px; }
  .side p { font-size: 16px; }
  .faq summary { font-size: 17px; }
  .faq p { padding-right: 2px; }
  .cards { gap: 10px; }
  .card { padding: 16px 16px 14px; }
  .card-ico { width: 26px; height: 26px; margin-bottom: 8px; }
  .chips { display: none; }
  .card-no { font-size: 30px; top: 10px; right: 14px; }
  .clock-card, .seal { display: none; }
  .clock-card { min-width: 0; padding: 10px 12px; border-radius: 12px; }
  .clock-title { margin-bottom: 6px; font-size: 9.5px; }
  .clock-row { gap: 14px; font-size: 11.5px; padding: 1px 0; }
  .clock-row time { font-size: 16px; }
  .form-actions .btn { flex: 1 1 100%; }
  .fab { right: 12px; bottom: 12px; }
}
/* Short screens: keep the first view uncluttered. */
@media (max-height: 700px) and (max-width: 900px) { .lead { display: none; } }
@media (max-height: 640px) { .hero-points { display: none; } .clock-card .clock-row:nth-of-type(3) { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
