/* ==========================================================================
   Endeavor Business Solutions — styles.css
   Mobile-first. Breakpoints: 560 / 768 / 1024 / 1200 / 1440
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --navy-950: #07162b;
  --navy-900: #0b1f3a;
  --navy-800: #12305a;
  --blue-700: #1d4e89;
  --ink: #14213d;
  --text: #33415c;
  --muted: #55627a;
  --gray-50: #f5f7fa;
  --gray-100: #ebeef3;
  --line: #dce1e9;
  --white: #ffffff;
  --gold: #c8a45d;          /* on dark backgrounds */
  --gold-soft: #e3cf9f;
  --gold-ink: #84652a;      /* gold text on light backgrounds (AA) */
  --on-dark: #e8edf5;
  --on-dark-muted: #a9b6ca;
  --focus: #2f6fdb;
  --error: #b42318;
  --success: #1e6b3a;

  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem);
  --step-3: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.05rem, 1.55rem + 2.4vw, 3.6rem);

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --section-y: clamp(4rem, 3rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --container: 75rem;
  --radius: 0.375rem;
  --radius-lg: 0.75rem;
  --shadow: 0 1px 2px rgb(11 31 58 / 0.06), 0 8px 24px rgb(11 31 58 / 0.06);
  --shadow-lg: 0 2px 4px rgb(11 31 58 / 0.06), 0 18px 48px rgb(11 31 58 / 0.14);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; overflow-wrap: break-word; text-wrap: balance; }
h1, h2 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.005em; }
p { margin: 0 0 1em; overflow-wrap: break-word; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-700); text-underline-offset: 0.18em; }
address { font-style: normal; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
main:focus { outline: none; }

.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.18em; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus — always visible for keyboard users */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark :focus-visible, .hero :focus-visible, .cta-band :focus-visible,
.site-footer :focus-visible, .section--navy-soft :focus-visible {
  outline-color: var(--gold-soft);
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--navy-900); color: var(--white);
  padding: 0.75rem 1.25rem; border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 2.875rem; padding: 0.7rem 1.35rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 0.975rem; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn--sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9rem; }
.btn--lg { min-height: 3.25rem; padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy-950); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); box-shadow: var(--shadow); }
.btn--outline-light { border-color: rgb(255 255 255 / 0.55); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: rgb(255 255 255 / 0.1); border-color: var(--white); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
@media (max-width: 479.98px) { .btn-row > .btn { width: 100%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem;
  font-weight: 600; color: var(--navy-900); text-decoration: none;
  border-bottom: 1.5px solid var(--gold);
}
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow--light { color: var(--white); }

/* ---------- Eyebrows / headings ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: var(--space-3);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before { content: ""; flex: none; width: 1.75rem; height: 1px; background: currentColor; }
.eyebrow__num { font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: 0.06em; }
.eyebrow--light { color: var(--gold); }
.eyebrow--light .eyebrow__num { color: var(--on-dark-muted); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--gray-50); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head h2, .service__intro h2, .why__intro h2, .about__copy h2, .contact__info h2 { font-size: var(--step-3); margin-bottom: var(--space-3); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: var(--step-1); line-height: 1.6; color: var(--text); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgb(255 255 255 / 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 18px rgb(11 31 58 / 0.06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy-900); min-width: 0; flex: none; }
.brand__mark {
  display: grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
  background: var(--navy-900); color: var(--gold);
  font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgb(200 164 93 / 0.45);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.brand__sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.brand--light { color: var(--white); }
.brand--light .brand__sub { color: var(--on-dark-muted); }

.header__actions { display: flex; align-items: center; gap: 0.5rem; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.75rem;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--radius);
  color: var(--navy-900); font-weight: 600; font-size: 0.9rem; cursor: pointer;
}
.menu-toggle__bars { display: grid; gap: 4px; width: 18px; }
.menu-toggle__bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav: off-canvas panel under the header */
.nav {
  position: fixed; inset: var(--header-h) 0 0 0;
  background: var(--white);
  padding: var(--space-3) var(--gutter) var(--space-6);
  overflow-y: auto; overscroll-behavior: contain;
  display: none;
  border-top: 1px solid var(--line);
}
.nav.is-open { display: block; animation: navIn .22s var(--ease); }
@keyframes navIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.nav__list a {
  display: flex; align-items: center; min-height: 3.25rem;
  font-size: 1.1rem; font-weight: 500; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}
.nav__list a:hover { color: var(--blue-700); }
.nav__cta { width: 100%; margin-top: var(--space-4); }

@media (max-width: 459.98px) { .brand__sub { display: none; } }
/* Enlarged text from the accessibility panel: keep the mobile header uncluttered */
@media (max-width: 767.98px) { html.a11y-large .brand__sub { display: none; } }
@media (max-width: 599.98px) { html.a11y-large .header__contact { display: none; } }
@media (max-width: 479.98px) { html.a11y-large .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* Every grid track may shrink below its content's min-content width (prevents overflow at large text sizes) */
.hero__grid, .service__grid, .split, .why, .about, .contact, .footer__grid, .extras, .hub, .cta-band__inner { grid-template-columns: minmax(0, 1fr); }
h1, h2 { overflow-wrap: anywhere; }
@media (max-width: 399.98px) {
  .menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Desktop nav (enlarged text keeps the menu button so links never overflow) */
@media (min-width: 1360px) {
  html:not(.a11y-large) .header__actions { display: none; }
  html:not(.a11y-large) .nav {
    position: static; display: flex; align-items: center; gap: 1.25rem;
    padding: 0; background: none; border: 0; overflow: visible;
  }
  html:not(.a11y-large) .nav__list { display: flex; align-items: center; gap: 0.15rem; }
  html:not(.a11y-large) .nav__list a {
    min-height: 2.75rem; padding: 0 0.5rem; border: 0; white-space: nowrap;
    font-size: 0.9rem; color: var(--text); position: relative;
  }
  html:not(.a11y-large) .nav__list a::after {
    content: ""; position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.55rem;
    height: 1.5px; background: var(--gold); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  html:not(.a11y-large) .nav__list a:hover { color: var(--navy-900); }
  html:not(.a11y-large) .nav__list a:hover::after, html:not(.a11y-large) .nav__list a[aria-current="true"]::after { transform: scaleX(1); }
  html:not(.a11y-large) .nav__list a[aria-current="true"] { color: var(--navy-900); }
  html:not(.a11y-large) .nav__cta { width: auto; margin: 0; white-space: nowrap; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgb(29 78 137 / 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--on-dark);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero__grid {
  display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4rem); align-items: center;
  padding-block: clamp(3.5rem, 2.5rem + 6vw, 7.5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
}
.hero__title { color: var(--white); font-size: var(--step-4); line-height: 1.08; margin-bottom: var(--space-4); max-width: 18ch; }
.hero__lead { font-size: var(--step-1); color: var(--on-dark); max-width: 38rem; margin-bottom: var(--space-5); line-height: 1.6; }

.framework {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03));
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  box-shadow: 0 30px 60px rgb(0 0 0 / 0.25);
}
.framework__kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-3); }
.framework__list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding-block: 0.95rem; border-top: 1px solid rgb(255 255 255 / 0.1);
}
.framework__num { font-family: var(--font-serif); font-size: 1.05rem; color: var(--gold); min-width: 1.6rem; line-height: 1.5; }
.framework__list strong { display: block; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600; color: var(--white); line-height: 1.2; }
.framework__list div span { display: block; color: var(--on-dark-muted); font-size: 0.93rem; }
.framework__foot { margin-top: var(--space-2); padding-top: var(--space-3); border-top: 1px solid rgb(200 164 93 / 0.35); font-family: var(--font-serif); font-style: italic; color: var(--gold-soft); font-size: 1.05rem; }

.trustbar { border-top: 1px solid rgb(255 255 255 / 0.1); background: rgb(0 0 0 / 0.18); }
.trustbar .trustbar__list { padding-inline: var(--gutter); }
.trustbar__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem; padding-block: 1.1rem; }
.trustbar__list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--on-dark); padding-block: 0.3rem; }
.trustbar__list .icon { color: var(--gold); }

@media (min-width: 560px) {
  .trustbar__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .trustbar__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Service cards (overview) ---------- */
.cards { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); }
.card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.card:hover, .card:focus-within { border-color: rgb(200 164 93 / 0.7); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card__icon { width: 2.4rem; height: 2.4rem; color: var(--navy-800); padding: 0.45rem; background: var(--gray-50); border-radius: var(--radius); margin-bottom: var(--space-3); }
.card h3 { margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.97rem; flex: 1; }
.card__link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: var(--space-3); min-height: 2.75rem;
  font-weight: 600; font-size: 0.92rem; color: var(--navy-900); text-decoration: none;
}
.card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* full-card click target */
.card__link .icon { color: var(--gold-ink); transition: transform .2s var(--ease); }
.card:hover .card__link .icon { transform: translateX(3px); }

@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } }

.extras {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  background: var(--navy-900); color: var(--on-dark); border-radius: var(--radius-lg);
  display: grid; gap: var(--space-4);
}
.extras h3 { color: var(--white); font-family: var(--font-serif); font-size: var(--step-2); margin-bottom: 0.5rem; }
.extras__message { color: var(--gold-soft); font-size: 1.02rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li {
  padding: 0.45rem 0.85rem; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 999px;
  font-size: 0.88rem; color: var(--on-dark); line-height: 1.3;
}
@media (min-width: 1024px) { .extras { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: var(--space-6); } }

/* ---------- Service detail sections ---------- */
.service__grid { display: grid; gap: clamp(1.75rem, 1.25rem + 2vw, 3rem); }
.service__intro .lead { margin-bottom: var(--space-4); }
.checklist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.checklist li {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding-block: 0.85rem; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500;
}
.checklist .icon {
  width: 1.4rem; height: 1.4rem; padding: 0.2rem; margin-top: 0.1rem;
  color: var(--white); background: var(--navy-800); border-radius: 50%;
}
.checklist--light li { color: var(--on-dark); border-bottom-color: rgb(255 255 255 / 0.12); }
.checklist--light .icon { background: var(--gold); color: var(--navy-950); }

@media (min-width: 560px) {
  .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); }
  .checklist--single { grid-template-columns: minmax(0, 1fr); }
  .checklist__wide { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .service__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 2rem + 3vw, 5.5rem); align-items: start; }
  .service__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
  .service__body { padding-top: 0.4rem; }
}

.note {
  display: flex; gap: 0.75rem; align-items: flex-start;
  margin-top: var(--space-4); padding: 1rem 1.15rem;
  background: var(--gray-50); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.94rem; color: var(--text);
}
.section--tint .note { background: var(--white); }
.note .icon { color: var(--gold-ink); margin-top: 0.2rem; }
.note strong { color: var(--ink); }

/* Family office — deep navy variant */
.section--navy-soft { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: var(--on-dark); }
.section--navy-soft h2 { color: var(--white); }
.section--navy-soft .lead { color: var(--on-dark); }

/* Expansion + consulting panels */
.split { display: grid; gap: var(--space-4); }
.panel { padding: clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.panel h3 { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-serif); font-size: var(--step-2); margin-bottom: var(--space-2); }
.panel h3 .icon { color: var(--gold-ink); width: 1.3rem; height: 1.3rem; }
.panel .checklist li:last-child { border-bottom: 0; }
@media (min-width: 860px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }

/* ---------- Brazil to USA (dark) ---------- */
.section--dark {
  background:
    radial-gradient(900px 500px at 10% 0%, rgb(29 78 137 / 0.45), transparent 60%),
    var(--navy-950);
  color: var(--on-dark);
}
.section--dark h2 { color: var(--white); }
.section-head--light .lead { color: var(--on-dark); }

.journey { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; counter-reset: none; position: relative; }
.journey__step {
  position: relative; display: flex; align-items: center; gap: 1rem;
  padding: 0.85rem 0;
}
/* vertical connector on mobile */
.journey__step:not(:last-child)::after {
  content: ""; position: absolute; left: 1.25rem; top: calc(50% + 1.35rem); height: calc(100% - 2.7rem);
  width: 1px; background: linear-gradient(var(--gold), rgb(200 164 93 / 0.2));
}
.journey__num {
  display: grid; place-items: center; flex: none;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold);
  font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem;
  background: var(--navy-950);
}
.journey__label { font-weight: 600; color: var(--white); font-size: 1.05rem; }

@media (min-width: 640px) {
  .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .journey__step {
    flex-direction: column; align-items: flex-start; gap: 0.9rem;
    padding: 1.25rem; border: 1px solid rgb(255 255 255 / 0.12); border-radius: var(--radius-lg);
    background: rgb(255 255 255 / 0.03);
  }
  .journey__step:not(:last-child)::after { display: none; }
}
@media (min-width: 1024px) {
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .journey__step:not(:nth-child(4n)):not(:last-child)::after {
    display: block; content: ""; left: auto; right: calc(-1 * var(--space-3)); top: 2.5rem;
    width: var(--space-3); height: 1px; background: var(--gold);
  }
}

.hub {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  display: grid; gap: var(--space-4); align-items: center;
  padding: clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem);
  border: 1px solid rgb(200 164 93 / 0.45); border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgb(200 164 93 / 0.12), rgb(200 164 93 / 0.02));
}
.hub__mark {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--gold); color: var(--navy-950);
  font-family: var(--font-serif); font-size: 1.6rem; font-weight: 600;
}
.hub p { margin: 0; color: var(--on-dark); font-size: 1.05rem; }
.hub strong { color: var(--white); }
@media (min-width: 768px) {
  .hub { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-5); }
}

/* ---------- How it works ---------- */
.steps { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); }
.step { position: relative; padding-top: var(--space-4); border-top: 2px solid var(--navy-900); }
.step__num { display: block; font-family: var(--font-serif); font-size: clamp(2.25rem, 1.9rem + 1.5vw, 3rem); line-height: 1; color: var(--gold-ink); margin-bottom: var(--space-3); }
.step h3 { font-family: var(--font-serif); font-size: var(--step-2); margin-bottom: 0.5rem; }
.step p { color: var(--muted); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Why Endeavor ---------- */
.why { display: grid; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.why__intro .lead { margin-bottom: var(--space-5); }
.audience { padding: 1.4rem 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.audience__title { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 0.75rem; }
.audience__list li { position: relative; padding: 0.4rem 0 0.4rem 1.1rem; color: var(--ink); font-size: 0.97rem; }
.audience__list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.why__grid { display: grid; gap: var(--space-2); grid-template-columns: minmax(0, 1fr); align-content: start; }
.why__grid li {
  display: flex; gap: 0.85rem; align-items: flex-start;
  padding: 1.1rem 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted); font-size: 0.96rem;
}
.why__grid strong { display: block; color: var(--ink); font-size: 1.02rem; margin-bottom: 0.1rem; }
.why__grid .icon { width: 1.4rem; height: 1.4rem; padding: 0.2rem; color: var(--navy-950); background: var(--gold); border-radius: 50%; margin-top: 0.1rem; }
@media (min-width: 640px) { .why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) {
  .why { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); align-items: start; }
}

/* ---------- About ---------- */
.about { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.about__copy p { color: var(--text); }
.about__tagline { font-family: var(--font-serif); font-style: italic; font-size: var(--step-2); color: var(--navy-900); margin-top: var(--space-4); padding-left: 1rem; border-left: 3px solid var(--gold); line-height: 1.3; }
.pillars { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pillar { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); border-bottom: 1px solid var(--line); background: var(--white); }
.pillar:last-child { border-bottom: 0; }
.pillar:nth-child(odd) { background: var(--gray-50); }
.pillar__word { display: block; font-family: var(--font-serif); font-size: var(--step-3); font-weight: 600; color: var(--navy-900); line-height: 1.1; }
.pillar__desc { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.96rem; }
@media (min-width: 560px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { border-bottom: 1px solid var(--line); }
  .pillar:nth-child(odd) { border-right: 1px solid var(--line); }
  .pillar:nth-child(n+3) { border-bottom: 0; }
  .pillar:nth-child(1), .pillar:nth-child(4) { background: var(--gray-50); }
  .pillar:nth-child(2), .pillar:nth-child(3) { background: var(--white); }
}
@media (min-width: 1024px) { .about { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }

/* ---------- Final CTA ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 100% 100%, rgb(200 164 93 / 0.18), transparent 60%),
    var(--navy-900);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
}
.cta-band__inner { display: grid; gap: var(--space-5); align-items: center; }
.cta-band h2 { color: var(--white); font-size: var(--step-3); margin-bottom: var(--space-2); max-width: 22ch; }
.cta-band p { color: var(--on-dark); max-width: 40rem; font-size: var(--step-1); }
@media (min-width: 1024px) { .cta-band__inner { grid-template-columns: minmax(0, 1.4fr) auto; } }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: start; }
.contact__list { margin-top: var(--space-5); display: grid; gap: var(--space-4); }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list .icon { width: 2.6rem; height: 2.6rem; padding: 0.65rem; color: var(--gold); background: var(--navy-900); border-radius: 50%; }
.contact__list strong { display: block; color: var(--ink); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.15rem; }
.contact__list a { font-weight: 500; }
.contact__list li > span { min-width: 0; overflow-wrap: anywhere; }
.placeholder { max-width: 100%; }
.placeholder {
  display: inline-block; padding: 0.05rem 0.5rem; border: 1px dashed var(--gold-ink); border-radius: var(--radius);
  color: var(--gold-ink); font-weight: 600; font-size: 0.92em;
}
.placeholder--dark { border-color: var(--gold); color: var(--gold-soft); }

.form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 0.9rem + 2vw, 2.5rem); box-shadow: var(--shadow-lg);
  min-width: 0;
}
.form__title { font-family: var(--font-serif); font-size: var(--step-2); margin-bottom: 0.35rem; }
.form__hint { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--space-4); }
.form__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.93rem; }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.7rem 0.9rem;
  background: var(--white); color: var(--ink);
  border: 1.5px solid #8a95a8; border-radius: var(--radius);
  font-size: 1rem; /* ≥16px prevents iOS zoom */
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-800); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--navy-900);
}
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 1rem; top: 50%; width: 0.55rem; height: 0.55rem;
  border-right: 2px solid var(--navy-900); border-bottom: 2px solid var(--navy-900);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.field__hint { font-size: 0.85rem; color: var(--muted); margin: 0; }
.field__error { font-size: 0.88rem; color: var(--error); font-weight: 600; margin: 0; }
.field__error:empty { display: none; }
.field__error::before { content: "⚠ "; }
.form__summary {
  margin-bottom: var(--space-4); padding: 0.9rem 1rem;
  border: 2px solid var(--error); border-radius: var(--radius); background: #fdf3f2; color: var(--error);
}
.form__summary ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.form__summary a { color: var(--error); font-weight: 600; }
.form__privacy { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-3); }
.form__status:not(:empty) {
  margin-top: var(--space-3); padding: 0.9rem 1rem; border-radius: var(--radius);
  background: #eef7f1; border: 1.5px solid var(--success); color: var(--success); font-weight: 600;
}
@media (min-width: 560px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding-top: clamp(3rem, 2.5rem + 3vw, 5rem); font-size: 0.95rem; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold-soft); }
.footer__grid { display: grid; gap: var(--space-5); padding-bottom: var(--space-5); }
.footer__tag { margin-top: var(--space-3); font-family: var(--font-serif); font-style: italic; color: var(--gold-soft); }
.footer__h { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); font-weight: 600; margin-bottom: var(--space-3); }
.footer__grid address, .footer__grid p { margin-bottom: 0.6rem; }
.footer__links li a { display: inline-flex; align-items: center; min-height: 2.25rem; text-decoration: none; }
.footer__links li a:hover { text-decoration: underline; }
.footer__legal { border-top: 1px solid rgb(255 255 255 / 0.1); padding-block: var(--space-5); font-size: 0.85rem; }
.footer__legal strong { color: var(--on-dark); }
.footer__copy { margin-top: var(--space-3); }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.2fr 1.3fr 1fr 0.8fr; } }

/* ---------- Accessibility widget ---------- */
.a11y { position: fixed; right: max(0.75rem, env(safe-area-inset-right)); bottom: max(0.75rem, env(safe-area-inset-bottom)); z-index: 200; }
.a11y__toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.875rem; padding: 0.45rem 1rem 0.45rem 0.6rem;
  background: var(--navy-900); color: var(--white);
  border: 1.5px solid rgb(200 164 93 / 0.7); border-radius: 999px;
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 24px rgb(7 22 43 / 0.3);
}
.a11y__toggle .icon { width: 1.6rem; height: 1.6rem; color: var(--gold); }
.a11y__toggle:hover { background: var(--navy-800); }
.a11y__toggle:focus-visible { outline-color: var(--focus); outline-offset: 3px; }
.a11y__panel {
  position: absolute; right: 0; bottom: calc(100% + 0.6rem);
  width: min(20rem, calc(100vw - 1.5rem));
  max-height: calc(100vh - 6rem); overflow-y: auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.1rem;
}
.a11y__panel[hidden] { display: none; }
.a11y__head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.9rem; }
.a11y__head h2 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; }
.a11y__close {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex: none;
  background: var(--gray-50); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; color: var(--ink);
}
.a11y__close .icon { transform: rotate(45deg); width: 1.25rem; height: 1.25rem; }
.a11y__size { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.6rem 0.75rem; background: var(--gray-50); border-radius: var(--radius); margin-bottom: 0.75rem; font-weight: 600; font-size: 0.92rem; }
.a11y__size-controls { display: flex; align-items: center; gap: 0.4rem; }
.a11y__size-controls button {
  min-width: 2.75rem; min-height: 2.75rem; border: 1.5px solid var(--navy-900); border-radius: var(--radius);
  background: var(--white); color: var(--navy-900); font-weight: 700; cursor: pointer;
}
.a11y__size-controls button:disabled { opacity: 0.45; cursor: not-allowed; }
.a11y__size-controls output { min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.a11y__options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.a11y__options button, .a11y__reset {
  position: relative; min-height: 2.875rem; padding: 0.5rem 0.6rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font-size: 0.86rem; font-weight: 600; cursor: pointer; line-height: 1.2;
}
.a11y__options button:hover, .a11y__size-controls button:hover:not(:disabled) { border-color: var(--navy-900); }
.a11y__options button[aria-pressed="true"] { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.a11y__options button[aria-pressed="true"]::after { content: " ✓"; } /* state not by color alone */
.a11y__reset { width: 100%; margin-top: 0.75rem; background: var(--gray-50); }

/* ---------- Accessibility modes ---------- */
html.a11y-contrast {
  --text: #000; --muted: #1a1a1a; --ink: #000; --line: #000; --gold-ink: #5a4313;
  --on-dark: #fff; --on-dark-muted: #fff; --gray-50: #fff; --gold: #ffd36b; --gold-soft: #ffe39f;
}
html.a11y-contrast .card, html.a11y-contrast .panel, html.a11y-contrast .why__grid li,
html.a11y-contrast .audience, html.a11y-contrast .form, html.a11y-contrast .field input,
html.a11y-contrast .field select, html.a11y-contrast .field textarea { border-color: #000; border-width: 2px; }
html.a11y-contrast .hero, html.a11y-contrast .section--dark, html.a11y-contrast .cta-band,
html.a11y-contrast .section--navy-soft, html.a11y-contrast .extras, html.a11y-contrast .site-footer { background: #000; }
html.a11y-contrast .hero::before { display: none; }
html.a11y-contrast a:not(.btn) { text-decoration: underline; }

html.a11y-grayscale { filter: grayscale(1); } /* root filter keeps fixed elements anchored to viewport */

html.a11y-links a:not(.skip-link) {
  text-decoration: underline !important; text-decoration-thickness: 2px !important;
  outline: 2px dashed currentColor; outline-offset: 2px;
  background-color: #fff3b0 !important; color: #000 !important;
}
html.a11y-links a .icon { color: #000 !important; }

html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M4 2l26 18-12 2-6 12z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2, auto !important;
}

html.a11y-motion { scroll-behavior: auto !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important;
}
html.a11y-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ---------- Reveal (only when JS enables it & motion allowed) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}

@media (forced-colors: active) {
  .btn, .a11y__toggle, .card, .checklist .icon { border: 1px solid CanvasText; }
}

@media print {
  .site-header, .a11y, .hero::before, .form { display: none !important; }
  body { color: #000; }
}

/* Extreme zoom safety (e.g. 320px + 150% text): long words may break instead of overflowing */
main li, .eyebrow, main h3, .framework__list strong { overflow-wrap: anywhere; }

/* ---------- Flags & language switcher ---------- */
.flag { width: 1.5rem; height: 1rem; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgb(11 31 58 / 0.18); }
.flag--lg { width: 3rem; height: 2rem; border-radius: 3px; }

.lang { position: relative; margin-left: auto; }
.lang__toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0 0.6rem;
  background: var(--white); color: var(--navy-900);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; cursor: pointer;
}
.lang__toggle:hover { border-color: var(--navy-900); }
.lang__caret { width: 0.9rem; height: 0.9rem; transition: transform .2s var(--ease); }
.lang__toggle[aria-expanded="true"] .lang__caret { transform: rotate(180deg); }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 150;
  min-width: 13.5rem; padding: 0.35rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.lang__menu[hidden] { display: none; }
.lang__menu button {
  display: flex; align-items: center; gap: 0.7rem; width: 100%; min-height: 2.75rem; padding: 0.45rem 0.7rem;
  background: none; border: 0; border-radius: var(--radius); color: var(--ink); font-size: 0.95rem; text-align: left; cursor: pointer;
}
.lang__menu button:hover { background: var(--gray-50); }
.lang__menu button[aria-current="true"] { font-weight: 700; background: var(--gray-50); }
.lang__menu button[aria-current="true"]::after { content: "✓"; margin-left: auto; color: var(--gold-ink); }

/* header: language switcher takes the Contact button's place on narrow screens (CTA stays in hero + menu) */
@media (max-width: 599.98px) { .header__contact { display: none; } }
@media (min-width: 1360px) {
  html:not(.a11y-large) .lang { margin-left: 0; order: 3; }
  html:not(.a11y-large) .nav { order: 2; margin-left: auto; }
  html:not(.a11y-large) .header__inner { gap: 1rem; }
}

/* ---------- Paraguay operations ---------- */
.paraguay__flags { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--space-4); }
.paraguay__link { width: 1.4rem; height: 1.4rem; color: var(--gold-ink); }
.adv { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.adv__card {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem);
  background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--navy-900); border-radius: var(--radius-lg);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.adv__card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-top-color: var(--gold); }
.adv__icon { width: 2.2rem; height: 2.2rem; padding: 0.45rem; color: var(--navy-800); background: var(--gray-50); border-radius: var(--radius); margin-bottom: 0.4rem; }
.adv__stat { font-family: var(--font-serif); font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem); font-weight: 600; color: var(--navy-900); line-height: 1.15; margin: 0; }
.adv__vs { display: block; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-ink); margin-top: 0.2rem; }
.adv__card h3 { font-size: 1.08rem; margin-top: 0.35rem; }
.adv__card p:not(.adv__stat) { color: var(--muted); font-size: 0.95rem; }
.adv__ref { margin-left: 0.15rem; font-weight: 700; text-decoration: none; color: var(--blue-700); padding: 0 0.15rem; }
@media (min-width: 640px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .adv { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); } }

.py-help { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.py-help__copy { padding: clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.py-help__copy h3, .py-help__note h3 { font-family: var(--font-serif); font-size: var(--step-2); margin-bottom: var(--space-2); }
.py-help__copy .btn { margin-top: var(--space-4); }
.py-help__copy .checklist li:last-child { border-bottom: 0; }
.py-help__note { padding: clamp(1.4rem, 1.1rem + 1.5vw, 2.25rem); background: var(--navy-900); color: var(--on-dark); border-radius: var(--radius-lg); }
.py-help__note h3 { color: var(--white); }
.py-help__note li { padding: 0.65rem 0; border-bottom: 1px solid rgb(255 255 255 / 0.12); font-size: 0.95rem; }
.py-help__note li:last-child { border-bottom: 0; }
.py-help__note strong { color: var(--gold-soft); }
@media (min-width: 960px) { .py-help { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.sources { margin-top: var(--space-4); font-size: 0.82rem; color: var(--muted); display: grid; gap: 0.25rem; }
html.a11y-contrast .adv__card, html.a11y-contrast .py-help__copy { border-color: #000; border-width: 2px; }
html.a11y-contrast .py-help__note { background: #000; }

/* Desktop header with language switcher: CTA button joins the nav only on very wide screens ("Contact" link is always present) */
@media (min-width: 1360px) {
  html:not(.a11y-large) .nav__cta { display: none; }
  html:not(.a11y-large) .nav__list li:last-child a {
    margin-left: 0.4rem; padding: 0 1rem; border-radius: var(--radius);
    background: var(--gold); color: var(--navy-950); font-weight: 600;
  }
  html:not(.a11y-large) .nav__list li:last-child a:hover { background: var(--gold-soft); }
  html:not(.a11y-large) .nav__list li:last-child a::after { display: none; }
}
@media (max-width: 1023.98px) { html.a11y-large .brand { flex-basis: 100%; } }
/* Enlarged text on narrow screens: let the header wrap onto two rows instead of overflowing */
html.a11y-large .header__inner { flex-wrap: wrap; row-gap: 0.4rem; padding-block: 0.5rem; }
.nav { inset: var(--header-offset, var(--header-h)) 0 0 0; }
html { scroll-padding-top: calc(var(--header-offset, var(--header-h)) + 1rem); }


/* ---------- Floating WhatsApp button (bottom-right) — accessibility tools move to bottom-left ---------- */
.a11y { right: auto; left: max(0.75rem, env(safe-area-inset-left)); }
.a11y__panel { right: auto; left: 0; }
.wa-float {
  position: fixed; z-index: 200;
  right: max(0.75rem, env(safe-area-inset-right)); bottom: max(0.75rem, env(safe-area-inset-bottom));
  display: grid; place-items: center;
  width: 3.75rem; height: 3.75rem; border-radius: 50%;
  background: #1da851; /* WhatsApp green, darkened slightly so the white icon keeps 3:1 contrast */
  box-shadow: 0 10px 28px rgb(7 22 43 / 0.32);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.wa-float__icon { width: 1.9rem; height: 1.9rem; display: block; }
.wa-float:hover { background: #179447; transform: translateY(-2px) scale(1.04); }
.wa-float:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 479.98px) { .wa-float { width: 3.5rem; height: 3.5rem; } .wa-float__icon { width: 1.75rem; height: 1.75rem; } }
/* keep page end readable above the floating buttons */
.site-footer { padding-bottom: 4.5rem; }
html.a11y-links .wa-float { outline: 3px dashed #000; outline-offset: 3px; background-color: #1da851 !important; }
html.a11y-contrast .wa-float { background: #000; border: 2px solid #fff; }
@media print { .wa-float { display: none !important; } }


/* ---------- Official logo (gold + navy, for light backgrounds; light variant in the navy footer) ---------- */
.brand__logo { display: block; width: auto; height: 1.85rem; }
@media (min-width: 440px) { .brand__logo { height: 2.15rem; } }
@media (min-width: 768px) { .brand__logo { height: 2.5rem; } }
@media (min-width: 1360px) { .brand__logo { height: 2.35rem; } }
@media (min-width: 1600px) { .brand__logo { height: 2.6rem; } }
.brand__logo--footer { height: 3rem; }
@media (max-width: 359.98px) { .lang__code { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* contact form: spam honeypot + error state */
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status.is-error:not(:empty) { background: #fdf3f2; border-color: var(--error); color: var(--error); }
.form__status.is-error a { color: var(--error); font-weight: 700; }
#form-submit[disabled] { opacity: 0.7; cursor: progress; }

/* ---------- Compliance notices ---------- */
.field--check { flex-direction: row; align-items: flex-start; gap: 0.75rem; }
.field--check input { width: 1.4rem; height: 1.4rem; min-height: 0; margin-top: 0.15rem; flex: none; accent-color: var(--navy-900); padding: 0; }
.field--check label { font-weight: 400; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.form__privacy a { font-weight: 600; }
.journey__note { margin-top: var(--space-4); font-size: 0.9rem; color: var(--on-dark-muted); }
.note--dark { background: rgb(255 255 255 / 0.06); color: var(--on-dark); border-left-color: var(--gold); }
.note--dark .icon { color: var(--gold); }
.footer__legalname { font-size: 0.85rem; margin-top: -0.4rem; }

/* Discreet admin access in the footer */
.footer__admin { opacity: .85; font-size: .85em; }

/* ---------- Login dropdown (next to Contact) ---------- */
.login { position: relative; flex: none; }
.login__toggle {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.75rem; padding: 0 0.75rem;
  background: var(--navy-900); color: var(--white);
  border: 1.5px solid var(--navy-900); border-radius: var(--radius);
  font-weight: 600; font-size: 0.88rem; cursor: pointer; white-space: nowrap;
}
.login__toggle:hover { background: var(--navy-800); }
.login__toggle .icon { width: 1.1rem; height: 1.1rem; }
.login__toggle .lang__caret { width: 0.85rem; height: 0.85rem; }
.login__toggle[aria-expanded="true"] .lang__caret { transform: rotate(180deg); }
.login__menu {
  position: absolute; right: 0; top: calc(100% + 0.4rem); z-index: 150;
  min-width: 16rem; padding: 0.35rem; margin: 0; list-style: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.login__menu[hidden] { display: none; }
.login__menu a {
  display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.5rem 0.75rem;
  border-radius: var(--radius); color: var(--ink); text-decoration: none;
}
.login__menu a:hover, .login__menu a:focus-visible { background: var(--gray-50); }
.login__menu .icon { width: 1.3rem; height: 1.3rem; color: var(--gold-ink); flex: none; }
.login__menu strong { display: block; font-size: 0.95rem; color: var(--navy-900); }
.login__menu small { display: block; font-size: 0.8rem; color: var(--muted); }
@media (max-width: 599.98px) {
  .login__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .login__toggle { padding: 0 0.6rem; min-width: 2.75rem; justify-content: center; }
  .login__toggle .lang__caret { display: none; }
  .header__inner { gap: 0.5rem; }
}
@media (max-width: 399.98px) { .lang__toggle .lang__caret { display: none; } .lang__toggle { padding: 0 0.45rem; } }
@media (min-width: 1360px) { html:not(.a11y-large) .login { order: 4; } }
@media (max-width: 359.98px) { .brand__logo { height: 1.55rem; } .header__inner { gap: 0.35rem; } .menu-toggle { padding: 0 0.55rem; } }
