/* ==========================================================================
   Brazilian Portuguese for Travelers - lead capture site
   Design tokens taken verbatim from the design handoff.
   ========================================================================== */

:root {
  --navy:        #0E2A4E;
  --navy-deep:   #0A2140;
  --navy-lift:   #10304f;
  --cream:       #F2ECDC;
  --muted:       #C7D0DE;
  --gold:        #E7B15A;
  --mint:        #6BC7A0;
  --coral:       #E8735C;

  --line:        rgba(242, 236, 220, 0.18);
  --line-soft:   rgba(242, 236, 220, 0.14);
  --line-strong: rgba(242, 236, 220, 0.28);

  --serif: Lora, Georgia, "Times New Roman", serif;
  --sans:  Poppins, "Helvetica Neue", Helvetica, Arial, sans-serif;

  --section-y: clamp(72px, 12vw, 140px);
  --section-x: clamp(20px, 5vw, 64px);
  --wrap: 1120px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: rgba(231, 177, 90, 0.18);
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--gold); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--cream); }

button { font-family: var(--sans); cursor: pointer; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

/* Visible keyboard focus everywhere - the design prototype had none. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 22px;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--navy); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------- primitives -- */

.page { position: relative; overflow-x: hidden; background: var(--navy); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; }
.wrap--narrow { max-width: 820px; }
.wrap--prose { max-width: 760px; }

.section { position: relative; padding: var(--section-y) var(--section-x); }
.section--deep { background: var(--navy-deep); }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 20px;
}
.eyebrow--gold { color: var(--gold); }

.label {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
}

.h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 6.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.5px;
  max-width: 17ch;
  text-wrap: balance;
}
.h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 50px);
  line-height: 1.15;
  text-wrap: balance;
}
.h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.3; }

.accent { font-style: italic; color: var(--gold); }

.lede {
  font-family: var(--serif);
  font-size: clamp(17px, 2.1vw, 23px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}

.body-text { font-family: var(--serif); font-size: 16px; line-height: 1.65; color: var(--muted); }

/* --------------------------------------------------------------- CTAs --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  padding: 20px 34px;
  border: 1px solid transparent;
  border-radius: 2px;
  min-height: 48px;
  text-align: center;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  animation: ctaGlow 3.4s ease-in-out infinite;
}
.btn--gold:hover { background: var(--cream); color: var(--navy); }
.btn--gold .btn__arrow path { stroke: var(--navy); }

.btn--ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
  padding: 19px 34px;
}
.btn--ghost:hover { background: var(--gold); color: var(--navy); }

.btn--block { width: 100%; }
.btn__arrow { width: 16px; height: 16px; flex: none; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
}

/* --------------------------------------------------------------- hero --- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 80px) var(--section-x) clamp(60px, 10vw, 120px);
  overflow: hidden;
}

.hero__sky {
  position: absolute;
  inset: -10% 0;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-lift) 100%);
  will-change: transform;
}

.hero__emblem {
  position: absolute;
  right: -8%;
  top: 3%;
  width: clamp(300px, 50vw, 700px);
  aspect-ratio: 1;
  pointer-events: none;
  will-change: transform;
}
.hero__emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .3;
  mix-blend-mode: screen;
  /* The source is flattened onto black (identical result under `screen`, and
     1/20th the weight of the original PNG). This radial mask dissolves the
     image's straight edges, which JPEG noise would otherwise make faintly
     visible against the gradient. */
  -webkit-mask-image: radial-gradient(closest-side circle, #000 62%, rgba(0, 0, 0, 0) 92%);
          mask-image: radial-gradient(closest-side circle, #000 62%, rgba(0, 0, 0, 0) 92%);
}
.hero__emblem::before,
.hero__emblem::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero__emblem::before { inset: 8%; border: 1px solid rgba(231, 177, 90, 0.20); }
.hero__emblem::after  { inset: 1%; border: 1px solid rgba(231, 177, 90, 0.10); }

.hero__ridge {
  position: absolute;
  left: 0; right: 0; bottom: 6%;
  width: 120%;
  height: clamp(180px, 34vh, 340px);
  opacity: .55;
  will-change: transform;
}
.hero__wave {
  position: absolute;
  left: -5%; bottom: 0;
  width: 130%;
  height: clamp(80px, 14vh, 150px);
  opacity: .5;
  will-change: transform;
}

.hero__inner { position: relative; }

.brandmark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 7vh, 72px);
}
.brandmark svg { width: 34px; height: 34px; flex: none; }
.brandmark span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 22px;
}
.hero__lede { margin: clamp(22px, 3vh, 32px) 0 clamp(30px, 4vh, 44px); }
.hero__note {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

.social-proof {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: clamp(40px, 9vh, 90px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-proof svg { width: 18px; height: 18px; flex: none; }
.social-proof p {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ------------------------------------------------------------ problem --- */

.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(24px, 4vw, 52px);
}
.problem__item { padding-top: 26px; border-top: 1px solid var(--line); }
.problem__item svg { width: 30px; height: 30px; margin-bottom: 20px; }
.problem__item h3 { margin: 0 0 12px; }
.problem__item p { margin: 0; }

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.55;
  color: var(--cream);
  margin: clamp(44px, 7vw, 80px) 0 0;
  max-width: 34ch;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

/* ------------------------------------------------------------ modules --- */

.modules__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

/* The card is a plain container; the <button> inside it is stretched over the
   whole card by its ::after. That keeps "click anywhere" behaviour while
   staying valid HTML — a <button> may not contain <h3>, <p> or <div>. */
.module {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  background: var(--navy-deep);
  transition: border-color .35s ease, transform .35s ease;
}
.module:hover { border-color: var(--gold); transform: translateY(-3px); }
.module[data-accent="coral"]:hover { border-color: var(--coral); }
.module[data-accent="mint"]:hover  { border-color: var(--mint); }
.module.is-open { border-color: var(--gold); }

.module__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.module__top svg { width: 28px; height: 28px; flex: none; }
.module__num { font-family: var(--sans); font-size: 10px; letter-spacing: 2.4px; color: var(--muted); }

.module__title { margin: 20px 0 8px; }
.module__trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.3;
  color: var(--cream);
}
.module__trigger::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
}
.module__trigger:focus-visible { outline: none; }
.module__trigger:focus-visible::after { outline: 2px solid var(--gold); outline-offset: 3px; }

.module__desc { font-family: var(--serif); font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; }

.phrase {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  animation: revealUp .4s ease both;
}
.phrase[hidden] { display: none; }
.phrase__pt {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  margin: 0 0 6px;
  color: var(--cream);
}
.phrase__say {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--mint);
  margin: 0 0 8px;
}
.phrase__en {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}
.phrase__lock {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
}
.phrase__lock svg { width: 13px; height: 13px; flex: none; }
.phrase__lock span {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------------------------------------------------------------- map --- */

.map__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.map__figure { position: relative; margin: 0; }
.map__svg { width: 100%; height: auto; display: block; }

.map__pin { cursor: pointer; }
.map__pin .map__hit { fill: transparent; }
.map__ring { animation: pinPulse 3.6s ease-in-out infinite; }
.map__pin[data-region="1"] .map__ring { animation-delay: .6s; }
.map__pin[data-region="2"] .map__ring { animation-delay: 1.2s; }
.map__pin[data-region="3"] .map__ring { animation-delay: 1.8s; }

.map__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.map__tab {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 16px;
  min-height: 44px;
  transition: color .3s ease, border-color .3s ease;
}
.map__tab:hover { color: var(--cream); border-color: var(--line-strong); }
.map__tab[aria-selected="true"] { color: var(--gold); border-color: var(--gold); }

.map__panel-frame { border: 1px solid var(--line); padding: 6px; }
.map__panel-inner { border: 1px solid var(--line-soft); padding: clamp(22px, 3vw, 34px); }
.map__panel { animation: driftIn .5s ease both; }
.map__panel[hidden] { display: none; }
.map__panel > svg { width: 100%; height: auto; margin-bottom: 26px; }
.map__panel .eyebrow { margin: 0 0 12px; letter-spacing: 2.6px; }
.map__panel h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  margin: 0 0 14px;
}
.map__panel > p { margin: 0 0 22px; }
.map__phrase { padding-top: 20px; border-top: 1px solid var(--line); }
.map__phrase .phrase__pt { font-size: 20px; }

/* --------------------------------------------------------------- form --- */

.claim__layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(34px, 6vw, 72px);
  align-items: start;
}
.claim__mark { width: 40px; height: 40px; margin-bottom: 28px; }
.claim__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.14;
  margin: 0 0 22px;
  max-width: 20ch;
}
.claim__body {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 26px;
}
.dropcap {
  float: left;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 64px;
  line-height: .78;
  padding: 6px 12px 0 0;
  color: var(--gold);
}
.urgency {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0;
  padding-left: 16px;
  border-left: 1px solid var(--mint);
}

.card { border: 1px solid var(--line); padding: 7px; background: var(--navy-deep); }
.card__inner { border: 1px solid var(--line-soft); padding: clamp(26px, 4vw, 40px); }

.form__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(23px, 2.6vw, 30px);
  line-height: 1.2;
  margin: 0 0 28px;
}

.field { margin-bottom: 22px; }
.field > label {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;              /* >=16px keeps iOS Safari from zooming on focus */
  padding: 10px 0;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: rgba(199, 208, 222, 0.45); }
.field input:focus { border-bottom-color: var(--gold); }
.field input:focus-visible { outline: none; border-bottom-color: var(--gold); box-shadow: 0 1px 0 0 var(--gold); }
.field input:-webkit-autofill,
.field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cream);
  -webkit-box-shadow: 0 0 0 1000px var(--navy-deep) inset;
  transition: background-color 9999s ease-out;
}
/* The invalid colour has to beat :focus, which is set above. */
.field--invalid input,
.field--invalid input:focus,
.field--invalid input:focus-visible { border-bottom-color: var(--coral); box-shadow: none; }

.field__error {
  display: none;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--coral);
  margin: 8px 0 0;
}
.field--invalid .field__error { display: block; }

/* Consent - required opt-in. The whole row is the tap target. */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 26px;
  cursor: pointer;
  padding: 6px 0;
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-content: center;
  transition: border-color .25s ease, background-color .25s ease;
}
.consent input[type="checkbox"]::before {
  content: "";
  width: 11px;
  height: 11px;
  transform: scale(0);
  transition: transform .15s ease-in-out;
  box-shadow: inset 1em 1em var(--navy);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.consent input[type="checkbox"]:checked { background: var(--mint); border-color: var(--mint); }
.consent input[type="checkbox"]:checked::before { transform: scale(1); }
.consent input[type="checkbox"]:hover { border-color: var(--mint); }
.consent__text {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: .3px;
  color: var(--muted);
}
.consent__text a { text-decoration: underline; text-underline-offset: 2px; }
.consent--invalid input[type="checkbox"] { border-color: var(--coral); }
.consent--invalid .consent__text { color: var(--coral); }

/* Honeypot - off-screen for humans, irresistible to dumb bots. */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form__submit { position: relative; }
.form__submit[data-loading="true"] { pointer-events: none; opacity: .78; animation: none; }
.form__submit .spinner { display: none; }
.form__submit[data-loading="true"] .spinner { display: inline-block; }

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(14, 42, 78, 0.28);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spinSlow .7s linear infinite;
  flex: none;
}

.form__fineprint {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .6px;
  color: var(--muted);
  margin: 20px 0 0;
  text-align: center;
}
.form__fineprint a { text-decoration: underline; text-underline-offset: 2px; }
.form__reinforce {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--cream);
  margin: 18px 0 0;
  text-align: center;
}

.form__error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--coral);
  background: rgba(232, 115, 92, 0.10);
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--cream);
}
.form__error[hidden] { display: none; }
.form__error svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

.success { animation: revealUp .5s ease both; text-align: center; padding: 20px 0; }
.success[hidden] { display: none; }
.success svg { width: 44px; height: 44px; margin-bottom: 22px; }
.success h3 { font-family: var(--serif); font-weight: 700; font-size: 26px; margin: 0 0 12px; }
.success p { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0; }
.success em { font-style: italic; color: var(--cream); }

/* ---------------------------------------------------------------- faq --- */

.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-of-type { border-bottom: 1px solid var(--line); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  padding: 24px 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.35;
  transition: color .25s ease;
}
.faq__q:hover { color: var(--gold); }
.faq__sign {
  font-family: var(--sans);
  font-size: 20px;
  color: var(--gold);
  line-height: 1;
  flex: none;
  width: 20px;
  text-align: center;
}
.faq__a {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  padding: 0 0 24px;
  max-width: 62ch;
  animation: revealUp .35s ease both;
}
.faq__a[hidden] { display: none; }

.faq__cta { margin-top: clamp(44px, 7vw, 72px); text-align: center; }

/* ------------------------------------------------------------- footer --- */

.site-footer { position: relative; padding: clamp(56px, 8vw, 90px) var(--section-x) 0; }

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__brand svg { width: 30px; height: 30px; flex: none; }
.site-footer__brand span {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 26px);
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}
.site-footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* touch target */
}
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 36px;
}
.site-footer__meta p { margin: 0; }
.site-footer__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--muted);
  max-width: 44ch;
}
.site-footer__coords {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--muted);
  opacity: .7;
}
.tricolor { display: flex; height: 6px; }
.tricolor i { flex: 1; }
.tricolor i:nth-child(1) { background: var(--mint); }
.tricolor i:nth-child(2) { background: var(--gold); }
.tricolor i:nth-child(3) { background: var(--cream); }

/* -------------------------------------------------- sticky mobile CTA --- */

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(10, 33, 64, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__text {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.sticky-cta .btn {
  padding: 14px 20px;
  font-size: 11.5px;
  letter-spacing: 1.6px;
  flex: none;
  animation: none;
}

@media (max-width: 860px) {
  .sticky-cta { display: flex; }
  /* Clear space so the bar never covers the last line of the footer. */
  .site-footer > .wrap { padding-bottom: 76px; }
  .error-page { padding-bottom: 120px; }
}

/* ------------------------------------------------------- legal / prose -- */

.legal-header { padding: clamp(28px, 5vw, 44px) var(--section-x) 0; }
.legal-header__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: clamp(24px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}
.legal-hero { padding: clamp(44px, 8vw, 80px) var(--section-x) clamp(20px, 4vw, 34px); }
.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin: 0 0 16px;
}
.legal-hero p { margin: 0; }

.prose { padding: 0 var(--section-x) clamp(72px, 10vw, 120px); }
.prose h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.25;
  margin: clamp(38px, 5vw, 56px) 0 14px;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.prose h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.prose h3 { font-family: var(--serif); font-weight: 600; font-size: 19px; margin: 26px 0 10px; }
.prose p,
.prose li {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--muted);
}
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose strong { color: var(--cream); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.callout {
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  padding: 20px 22px;
  margin: 0 0 28px;
  background: var(--navy-deep);
}
.callout p:last-child { margin-bottom: 0; }

/* Placeholders the site owner still has to fill in. Deliberately loud. */
.todo {
  color: var(--gold);
  background: rgba(231, 177, 90, 0.12);
  border-bottom: 1px dashed var(--gold);
  padding: 0 4px;
  font-style: normal;
}

.toc { border: 1px solid var(--line); padding: 22px 26px; margin: 0 0 clamp(34px, 5vw, 52px); }
.toc p {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 14px;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin-bottom: 7px; font-size: 15px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin: 0 0 clamp(34px, 5vw, 48px);
}
.contact-card { border: 1px solid var(--line); padding: 26px 24px; background: var(--navy-deep); }
.contact-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin: 0 0 10px;
  padding: 0;
  border: none;
}
.contact-card p { font-size: 15.5px; margin: 0 0 10px; }
.contact-card p:last-child { margin-bottom: 0; }

.error-page {
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(60px, 12vw, 140px) var(--section-x);
}
.error-page .h1 { max-width: none; }

/* ---------------------------------------------------- reveal on scroll -- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .8s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Never leave content invisible if JS fails to run. */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* --------------------------------------------------------- animations --- */

@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(231, 177, 90, 0); }
  50%      { box-shadow: 0 0 34px 2px rgba(231, 177, 90, 0.30); }
}
@keyframes revealUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes driftIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pinPulse {
  0%, 100% { opacity: .25; transform: scale(1); }
  50%      { opacity: .05; transform: scale(2.1); }
}

svg [data-pin-ring] { transform-box: fill-box; transform-origin: center; }

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 720px) {
  .hero { min-height: auto; padding-top: clamp(40px, 12vw, 72px); padding-bottom: clamp(56px, 14vw, 96px); }
  .hero__emblem { right: -22%; top: 0; width: 86vw; }
  .hero__ridge { bottom: 0; opacity: .4; }
  .brandmark { margin-bottom: 30px; }
  .cta-row .btn { width: 100%; }
  .pullquote { padding-left: 18px; }
  .site-footer__meta { flex-direction: column; }
  .map__panel-inner { padding: 22px 18px; }
  .prose h2 { margin-top: 34px; }
}

@media (max-width: 400px) {
  .module { padding: 22px 18px 20px; }
  .card__inner { padding: 22px 18px; }
  .h1 { font-size: clamp(30px, 8.4vw, 44px); }
}

/* Coarse pointers: no hover lift, no sticky hover colours. */
@media (hover: none) {
  .module:hover { transform: none; border-color: var(--line); }
  .module[aria-expanded="true"]:hover { border-color: var(--gold); }
  .btn--gold:hover { background: var(--gold); color: var(--navy); }
  .btn--ghost:hover { background: transparent; color: var(--gold); }
  .faq__q:hover { color: inherit; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .spinner { animation-duration: .7s !important; animation-iteration-count: infinite !important; }
}

@media print {
  .sticky-cta, .hero__emblem, .hero__ridge, .hero__wave, .map__svg, .skip-link { display: none !important; }
  body { background: #fff; color: #111; }
  .section, .hero { padding: 18px 0; background: #fff !important; }
  .phrase[hidden], .faq__a[hidden] { display: block !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; }
}
