﻿/* ==========================================================================
   PDC Visa International — Homepage prototype
   Design tokens and layout follow DESIGN.md.
   Spacing is the primary requirement: every section keeps generous top/bottom
   padding and no two card grids sit next to each other without a visual break.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Tokens */
:root {
  /* colour — sampled straight from assets/branding/pdcvisa-logo.png: the badge runs
     indigo → violet → magenta, with a sky-blue globe. The legacy --navy-* / --gold-*
     names stay as aliases so every existing rule keeps working. */
  --brand-950: #1C1A5E;    /* primary, darkest — headings, hero, footer */
  --brand-900: #26237E;
  --brand-800: #4B2AA8;    /* primary — links, buttons */
  --brand-600: #7A2BA5;    /* middle of the logo gradient */
  --brand-500: #123BAF;    /* logo indigo — where the gradient starts */
  --brand-100: #ECE9FA;
  --brand-50:  #F7F5FE;
  --magenta-700: #A81470;
  --magenta-600: #C4197F;  /* secondary — accents that carry text */
  --magenta-500: #EC2C9E;  /* secondary — logo magenta, fills and gradients */
  --magenta-300: #F79BD1;
  --sky-500:    #0199DC;   /* globe blue */
  --brand-gradient: linear-gradient(135deg, var(--brand-500), var(--brand-600) 55%, var(--magenta-500));

  --navy-950: var(--brand-950);
  --navy-900: var(--brand-900);
  --navy-800: var(--brand-800);
  --blue-100: var(--brand-100);
  --blue-50:  var(--brand-50);
  --gold-500: var(--magenta-600);
  --gold-300: var(--magenta-300);
  --ink:      #241F4A;
  --muted:    #6A6484;
  --line:     #E2DEF2;
  --white:    #FFFFFF;

  /* type */
  --font-head: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;

  --fs-h1:    3.75rem;
  --fs-h2:    2.75rem;
  --fs-h3:    1.625rem;
  --fs-body:  1.125rem;
  --fs-lead:  1.25rem;
  --fs-small: 0.9375rem;

  /* layout */
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 92px;

  /* section rhythm — see DESIGN.md "Section spacing" */
  --space-section:  clamp(3.5rem, 6vw, 5.5rem);
  --space-feature:  clamp(4rem, 7vw, 6.5rem);
  --space-small:    clamp(3rem, 2.1rem + 3.8vw, 4.5rem);  /* 48 → 72px  */

  --radius-card: 18px;
  --radius-btn: 10px;
  --shadow-soft: 0 1px 2px rgba(28, 26, 94, .035), 0 14px 36px -24px rgba(28, 26, 94, .28);
  --shadow-card: 0 1px 2px rgba(28, 26, 94, .04), 0 12px 32px -18px rgba(28, 26, 94, .28);
  --shadow-lift: 0 2px 6px rgba(28, 26, 94, .06), 0 24px 48px -24px rgba(28, 26, 94, .35);
  --shadow-premium: 0 18px 60px -36px rgba(28, 26, 94, .42), 0 2px 10px rgba(28, 26, 94, .05);
  --surface-sheen: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .72) 42%, rgba(247, 155, 209, .38) 50%, transparent 62%);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ----------------------------------------------------------- 2. Base reset */
*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` attribute must win over any later display rule (e.g. `ul { display: grid }`),
   otherwise JS that sets el.hidden = true has no visual effect. */
[hidden] { display: none !important; }

/* The closed mobile drawer is parked off-canvas with translateX(102%), which still
   widens the scrollable canvas (measured 725px against a 375px viewport). That mismatch
   is what pushed the fixed back-to-top button off the right edge on phones, so the root
   clips horizontally too — `clip` for browsers that have it, `hidden` as the fallback. */
html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: hidden;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; color: var(--navy-950); margin: 0; line-height: 1.18; letter-spacing: 0; overflow-wrap: anywhere; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy-800); text-decoration: none; overflow-wrap: anywhere; }
button { font: inherit; color: inherit; }

/* Icons are drawn as strokes so they inherit colour from their context. */
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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

/* Focus: high-visibility ring — the audience is 50–75, so this must be obvious. */
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--navy-900); color: #fff; padding: 14px 22px; border-radius: 0 0 10px 10px;
  font-weight: 600; transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

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

/* ------------------------------------------------------ 3. Section shells */
.section { padding-block: var(--space-section); }
.section--white { background: var(--white); }
.section--blue  { background: var(--blue-100); }
.section--tint  { background: var(--blue-50); }

/* Sections that carry a full card grid get the larger feature rhythm. */
#services, #consultation { padding-block: var(--space-feature); }
#pricing { padding-block: clamp(2.75rem, 4.2vw, 4.25rem); }
#pricing .section__head { margin-bottom: clamp(1.5rem, 2.2vw, 2.125rem); }
#pricing .rule { margin-top: 16px; }
#pricing .lead { margin-top: 16px; }

.section__head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.section__head--withAside {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  max-width: none; text-align: left;
}
.section__head--left { align-items: flex-start; }
.section__head--withAside > div { max-width: 700px; }

.eyebrow {
  font-size: .8125rem; font-weight: 600; letter-spacing: 0; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.section__title { font-size: var(--fs-h2); }
.section__head .section__title + .rule { margin-inline: auto; }
.section__head--withAside .rule { margin-inline: 0; }
.services__head { max-width: 1120px; }
.services__head .section__title span { display: block; }
.services__head .lead--center { max-width: 88ch; }
.services__assurance {
  max-width: 88ch;
  margin: 16px auto 0;
  color: var(--navy-900);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 600;
}

.rule { display: block; width: 64px; height: 3px; border-radius: 2px; background: var(--gold-500); margin-top: 22px; }

.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--muted); margin-top: 20px; }
.lead--narrow { max-width: 58ch; }
.lead--center { max-width: 62ch; margin-inline: auto; }

.note { font-size: var(--fs-small); line-height: 1.6; color: var(--muted); }
.note--center { text-align: center; margin-top: 40px; }


/* -------------------------------------------------------------- 4. Buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46.8px; padding: 12.6px 25.2px; max-width: 100%;
  border: 1px solid transparent; border-radius: var(--radius-btn);
  font-size: .9rem; font-weight: 600; line-height: 1.3; text-align: center;
  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::after {
  content: ""; position: absolute; inset: -1px auto -1px -45%;
  width: 38%; background: var(--surface-sheen); opacity: 0;
  transform: skewX(-18deg) translateX(0); z-index: -1;
}
.btn:hover::after, .btn:focus-visible::after {
  opacity: .85; animation: sheen-pass .75s var(--ease) both;
}
.btn__arrow { transition: transform .2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 14px 32px -18px rgba(38, 35, 126, .95); }
.btn--primary:hover { background: var(--brand-gradient); transform: translateY(-2px); box-shadow: 0 20px 38px -20px rgba(38, 35, 126, .95); }

.btn--ghost { background: rgba(255, 255, 255, .94); color: var(--navy-900); border-color: rgba(38, 35, 126, .28); }
.btn--ghost:hover { background: #fff; border-color: var(--navy-900); transform: translateY(-1px); }

.btn--outline { background: transparent; color: var(--navy-900); border-color: #D6D2F0; }
.btn--outline:hover { background: var(--white); border-color: var(--navy-800); }

.btn--onNavy { background: #fff; color: var(--navy-950); }
.btn--onNavy:hover { background: var(--blue-100); transform: translateY(-1px); }

.btn--sm { min-height: 41.4px; padding: 9.9px 18px; font-size: .84375rem; }
.btn--lg { min-height: 52.2px; padding: 15.3px 30.6px; font-size: .95625rem; }
.btn .ico { width: 21.6px; height: 21.6px; }
.btn--full { width: 100%; }

.link-cta {
  display: inline-flex; align-items: center; gap: 7.2px;
  font-size: .9em; font-weight: 600; color: var(--navy-800); padding-block: 5.4px;
}
.link-cta span[aria-hidden] { transition: transform .2s var(--ease); }
.link-cta:hover { color: var(--navy-950); }
.link-cta:hover span[aria-hidden] { transform: translateX(4px); }
.link-cta--aside { flex: none; white-space: nowrap; }

/* --------------------------------------------------------------- 5. Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.is-stuck { background: rgba(255, 255, 255, .98); border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(28, 26, 94, .5); }
.site-header--overlay { margin-bottom: calc(-1 * var(--header-h) - 1px); }

/* The header carries eight nav items plus a language switcher and a CTA, so it gets a
   wider track and tighter gutters than the content container. */
.site-header .container { max-width: 1440px; padding-inline: clamp(20px, 2.6vw, 40px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
/* The supplied logo already carries the wordmark, so the header shows the artwork alone.
   Intrinsic size is 452×272 (assets/branding/pdcvisaitl-logo.png); height drives the display size. */
.brand__logo { width: auto; height: 68px; flex: none; }
.brand__text { display: grid; }
.brand__tagline { font-family: var(--font-head); font-size: .6875rem; font-style: italic; color: var(--muted); margin-top: 2px; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }

.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 43.2px; padding: 10.8px 9px; border: 0; background: none; border-radius: 8px;
  font-size: .7875rem; font-weight: 500; color: var(--ink); cursor: pointer;
  white-space: nowrap; transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav__link:hover { color: var(--navy-800); background: var(--blue-50); }
.nav__link.is-current { color: var(--navy-900); font-weight: 600; }
.nav__link.is-current::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.nav__list > li { position: relative; }

.nav__caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); opacity: .65; transition: transform .2s var(--ease); }
[aria-expanded="true"] > .nav__caret { transform: rotate(-135deg) translate(-2px, -2px); }

.nav__menu, .lang__menu {
  position: absolute; top: calc(100% - 1px); left: 0; z-index: 20;
  min-width: 244px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift);
}
.nav__menu[hidden], .lang__menu[hidden] { display: none; }
.nav__menu a, .lang__menu a {
  display: block; padding: 9.9px 12.6px; border-radius: 9px;
  font-size: .84375rem; color: var(--ink);
}
.nav__menu a:hover, .lang__menu a:hover { background: var(--blue-50); color: var(--navy-900); }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.lang { position: relative; }
.lang__button {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 39.6px; padding: 7.2px 10.8px; border: 0; background: none; border-radius: 8px;
  font-size: .7875rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.lang__button .ico { width: 16.2px; height: 16.2px; }
.lang__button:hover { background: var(--blue-50); }
.lang__menu { left: auto; right: 0; min-width: 160px; }

.hamburger {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 46.8px; min-width: 46.8px; height: 46.8px; padding: 0;
  border: 1px solid rgba(28, 26, 94, .42); border-radius: 8px;
  background: rgba(255, 255, 255, .12); color: var(--navy-950); cursor: pointer;
}
.hamburger .ico { width: 20px; height: 20px; stroke-width: 1.8; }
.hamburger:hover { background: rgba(255, 255, 255, .32); border-color: var(--navy-900); }

.nav-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(28, 26, 94, .38); }
.nav-scrim[hidden] { display: none; }

/* ------------------------------------------------------------------ 6. Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); }
.hero__stage { position: relative; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__media img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__video { opacity: 0; }
.hero__video.is-ready { opacity: 1; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .45) 35%, transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .42), transparent 180px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 42%;
  background:
    linear-gradient(90deg, rgba(236, 44, 158, .2), transparent 32%, rgba(1, 153, 220, .16) 72%, transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 88px);
  opacity: .38; pointer-events: none; mix-blend-mode: screen;
}

.hero__inner { display: flex; align-items: center; min-height: clamp(640px, 85svh, 820px); padding-top: calc(var(--header-h) + 48px); padding-bottom: 64px; }
.hero__video-toggle {
  position: absolute; right: calc(var(--gutter) + 64px); bottom: 20px; z-index: 2;
  display: none !important; place-items: center; width: 42px; height: 42px; padding: 0;
  border: 1px solid rgba(38, 35, 126, .25); border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: var(--navy-950); cursor: pointer;
}
.hero__video-toggle:hover { background: #fff; }
.hero__video-toggle .ico { width: 18px; height: 18px; }
.hero__content { max-width: 620px; }
.hero__content > * { animation: hero-copy-rise .58s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: .08s; }
.hero__content > *:nth-child(3) { animation-delay: .16s; }
.hero__content > *:nth-child(4) { animation-delay: .24s; }
.hero__content > *:nth-child(5) { animation-delay: .32s; }
.hero .eyebrow { color: #A81470; }
.hero__title { font-size: var(--fs-h1); color: var(--navy-950); line-height: 1.08; }
.hero__lead { font-size: var(--fs-lead); line-height: 1.6; color: #3D3862; margin-top: 24px; max-width: 32ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Trust bar sits on its own white band under the image, as in the reference. */
.trust-bar { position: relative; z-index: 1; background: #fff; border-top: 1px solid var(--line); }
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 32px;
  padding-block: 26px;
}
.trust-strip li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.trust-strip .ico { width: 26px; height: 26px; color: var(--navy-800); }
.trust-strip strong { display: block; color: var(--navy-950); font-size: .9375rem; font-weight: 600; margin-bottom: 2px; }

/* ------------------------------------------------------------------ 7. Cards */
.cards { display: grid; gap: clamp(20px, 2vw, 30px); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative; isolation: isolate; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-premium); border-color: #D3CDF1; }
.card::before,
.plan::before,
.resource::before,
.quote::before,
.seo-card::before,
.related-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--surface-sheen); opacity: 0;
  transform: translateX(-120%) skewX(-16deg);
}
.card:hover::before,
.plan:hover::before,
.resource:hover::before,
.quote:hover::before,
.seo-card:hover::before,
.related-card:hover::before {
  animation: card-sheen .95s var(--ease) both;
}
.card > *,
.plan > *,
.resource > *,
.quote > *,
.seo-card > *,
.related-card > * { position: relative; z-index: 2; }
.plan,
.resource,
.quote,
.seo-card,
.related-card { position: relative; isolation: isolate; overflow: hidden; }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--blue-100); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
/* The badge is a static flex item pulled up over the image, so it always sits on
   the media edge no matter how tall the card body grows. */
.card__badge {
  position: relative; z-index: 2; align-self: flex-start;
  margin: -26px 0 0 28px;
  display: grid; place-items: center; width: 52px; height: 52px;
  background: #fff; color: var(--navy-800); border-radius: 14px;
  box-shadow: 0 8px 20px -10px rgba(28, 26, 94, .5);
}
.card__badge .ico { width: 24px; height: 24px; }
/* flex: 1 lets margin-top:auto on the link push it to a shared baseline across cards. */
.card__body { flex: 1; display: flex; flex-direction: column; gap: 16px; padding: 24px 28px 28px; }
.card__title { font-size: var(--fs-h3); }
.card__body p { color: var(--muted); line-height: 1.65; }
.card__body .link-cta { margin-top: auto; align-self: flex-start; }

/* ---------------------------------------------------------------- 8. Journey */
.journey { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: start; }
.journey__step { position: relative; text-align: center; padding-inline: 8px; }
/* thin connector arrows between the nodes */
.journey__step + .journey__step::before {
  content: ""; position: absolute; top: 39px; right: calc(50% + 52px); left: calc(-50% + 52px);
  height: 1px; background: rgba(75, 42, 168, .3);
}
.journey__step + .journey__step::after {
  content: ""; position: absolute; top: 35px; right: calc(50% + 50px);
  width: 7px; height: 7px; border-top: 1px solid rgba(75, 42, 168, .5); border-right: 1px solid rgba(75, 42, 168, .5);
  transform: rotate(45deg);
}
.journey__icon {
  display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 22px;
  background: #fff; color: var(--navy-800); border-radius: 50%;
  box-shadow: 0 10px 26px -16px rgba(28, 26, 94, .7);
}
.journey__icon .ico { width: 30px; height: 30px; }
.journey__step h3 { font-size: 1.25rem; margin-bottom: 10px; }
.journey__step p { font-size: .9375rem; line-height: 1.6; color: var(--muted); max-width: 24ch; margin-inline: auto; }

/* ------------------------------------------------------- 9. Split (lifestyle) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); }
.split__media { position: relative; min-height: 460px; background: var(--blue-100); }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__panel { display: flex; align-items: center; padding: var(--space-feature) var(--gutter); }
.split__content { max-width: 560px; margin-inline: auto; margin-inline-start: clamp(0px, 4vw, 72px); }
.split__content .btn { margin-top: 34px; }

.feature-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px;
  margin-top: clamp(2.5rem, 1.8rem + 3vw, 3.5rem);
  padding-top: 36px; border-top: 1px solid var(--line);
}
.feature-row li { display: grid; justify-items: center; gap: 12px; text-align: center; font-size: .875rem; font-weight: 500; line-height: 1.4; color: var(--ink); }
.feature-row__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue-100); color: var(--navy-800); }
.feature-row__icon .ico { width: 24px; height: 24px; }
.split__content .note { margin-top: 28px; }

/* ---------------------------------------------------------------- 10. Pillars */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px); }
.pillar { text-align: center; padding-inline: 6px; }
.pillar__icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 18px; background: var(--blue-100); color: var(--navy-800); }
.pillar__icon .ico { width: 28px; height: 28px; }
.pillar h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.pillar p { font-size: .9375rem; line-height: 1.6; color: var(--muted); max-width: 26ch; margin-inline: auto; }

/* ----------------------------------------------------------------- 11. Plans */
.cards--plans { align-items: stretch; }
.plan {
  height: 100%;
  display: flex; flex-direction: column; gap: 0;
  padding: 0; overflow: hidden; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.plan--featured { border-color: var(--magenta-500); box-shadow: var(--shadow-lift); }

.plan__media { position: relative; aspect-ratio: 16 / 9; background: var(--blue-50); overflow: hidden; }
.plan__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(28, 26, 94, .2));
  pointer-events: none;
}
.plan__media img { width: 100%; height: 100%; object-fit: cover; }
.plan__body {
  display: flex; flex: 1; flex-direction: column;
  padding: clamp(22px, 2vw, 28px);
}
.plan__flag {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  background: var(--magenta-600); color: #fff;
  font-size: .6875rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase;
  box-shadow: 0 12px 24px -16px rgba(28, 26, 94, .7);
}
.plan__kicker { margin-bottom: 8px; font-size: .75rem; font-weight: 700; color: var(--magenta-600); letter-spacing: 0; text-transform: uppercase; }
.plan__name { font-size: 1.375rem; line-height: 1.25; }
/* Who each tier is for — the line that used to be a repeated "Personal quote". */
.plan__for { margin-top: 8px; font-size: .9375rem; line-height: 1.5; color: var(--muted); }

.plan__list { display: grid; gap: 9px; margin: 18px 0 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan__list li { position: relative; padding-left: 28px; font-size: .9375rem; line-height: 1.5; color: var(--ink); }
.plan__list li strong { font-weight: 600; color: var(--navy-950); }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B2AA8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.plan__foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.plan__meta { margin-top: 10px; text-align: center; font-size: .8125rem; color: var(--muted); }

/* How a price is actually reached — the question three quote-only cards create. */
.quote-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px);
  margin-top: clamp(2rem, 3.4vw, 3rem); padding: clamp(20px, 2.2vw, 28px);
  background: rgba(255, 255, 255, .72); border: 1px solid var(--line); border-radius: var(--radius-card);
}
.quote-steps li { display: flex; align-items: flex-start; gap: 14px; }
.quote-steps__num {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff; font-size: .875rem; font-weight: 700;
}
.quote-steps__text { display: grid; gap: 3px; font-size: .9375rem; line-height: 1.55; color: var(--muted); }
.quote-steps__text strong { font-size: 1rem; font-weight: 600; color: var(--navy-950); }
/* ------------------------------------------------------------- 12. CTA banner */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--navy-950); }
.cta__panel { display: flex; align-items: center; justify-content: flex-end; padding: var(--space-feature) clamp(24px, 4vw, 64px); }
.cta__content { max-width: 520px; width: 100%; color: #fff; margin-inline-start: auto; }
.cta__title { font-size: var(--fs-h2); color: #fff; }
.cta__content p { margin-top: 20px; color: rgba(255, 255, 255, .84); font-size: var(--fs-lead); line-height: 1.6; max-width: 42ch; }
.cta__content .btn { margin-top: 36px; }
.cta__media { position: relative; min-height: 380px; }
.cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------ 13. Testimonials */
.quote {
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 36px); background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.quote__mark { font-family: var(--font-head); font-size: 3.5rem; line-height: .8; color: var(--gold-300); }
.quote__slot {
  margin: 18px 0 28px; padding: 22px; flex: 1;
  border: 1px dashed var(--line); border-radius: 12px; background: var(--blue-50);
  color: var(--muted); font-style: italic; font-size: .9375rem; text-align: center;
}

/* --- Sample testimonial cards (layout filler — see the comment in index.html) --- */
.quote--sample { position: relative; }
.quote__tag {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(236, 44, 158, .12); color: #A81470;
  font-size: .6875rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase;
}
.quote__stars { display: flex; gap: 3px; margin-bottom: 16px; }
.quote__stars svg { width: 18px; height: 18px; fill: var(--gold-500); }
.quote__text { margin: 0 0 26px; flex: 1; }
.quote__text p { font-size: .9375rem; line-height: 1.7; color: var(--ink); }
.quote__text p::before { content: "\201C"; }
.quote__text p::after { content: "\201D"; }

.quote__person { display: flex; align-items: center; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.quote__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--blue-100); border: 1px dashed #D3CDF1; flex: none; }
/* Monogram instead of a stock face: an invented quote must not be pinned on a real person. */
.quote--sample .quote__avatar {
  display: grid; place-items: center; border: 0; background: var(--navy-900); color: #fff;
  font-size: .875rem; font-weight: 600; letter-spacing: 0;
}
.quote__person > span:last-child { display: grid; gap: 2px; }
.quote__person strong { font-size: .9375rem; color: var(--ink); }
.quote__person span span { font-size: .8125rem; color: var(--muted); }

/* --------------------------------------------------------------- 14. Resources */
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 30px); }
.resource {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.resource { position: relative; }
.resource:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #D3CDF1; }
/* One link per card: the heading anchor is stretched over the whole card, so the
   image needs no duplicate (empty) link of its own. */
.resource h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.resource h3 a:focus-visible::after { outline: 3px solid var(--gold-500); outline-offset: 3px; }
.resource__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-100); }
.resource__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.resource:hover .resource__media img { transform: scale(1.04); }
.resource__body { display: flex; flex-direction: column; flex: 1; padding: 26px 26px 28px; }
.resource__tag { display: inline-block; margin-bottom: 12px; font-size: .75rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--gold-500); }
.resource h3 { font-size: 1.1875rem; line-height: 1.35; }
.resource h3 a { color: var(--navy-950); }
.resource h3 a:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
.resource p { margin-top: 10px; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.resource .link-cta--sm { margin-top: auto; padding-top: 16px; font-size: .84375rem; }
.lead--tight { margin-top: 12px; max-width: 52ch; }

/* ------------------------------------------------------- 15. Consultation form */
.consult { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.consult__intro .lead { max-width: 46ch; }
.consult__points { display: grid; gap: 14px; margin-top: 36px; }
.consult__points li { position: relative; padding-left: 32px; font-size: .9375rem; line-height: 1.6; color: var(--ink); }
.consult__points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4197F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.consult__formWrap {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-lift);
}
.form__intro { font-size: var(--fs-small); color: var(--muted); margin-bottom: 26px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.req { color: var(--gold-500); }

.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #D3CEEA; border-radius: var(--radius-btn);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360738A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 18px;
}
.field input::placeholder, .field textarea::placeholder { color: #928DAE; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-800); box-shadow: 0 0 0 3px rgba(75, 42, 168, .12); outline: none; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.field.is-invalid input, .field.is-invalid select { border-color: #C0392B; }
.field__error { font-size: .8125rem; font-weight: 500; color: #A5271A; }
.field__error[hidden] { display: none; }

.field--consent { gap: 10px; }
.checkbox { display: flex; align-items: flex-start; gap: 14px; font-weight: 400 !important; font-size: .9375rem; line-height: 1.6; cursor: pointer; }
.checkbox input { width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--navy-800); flex: none; cursor: pointer; }
.field.is-invalid .checkbox span { color: #A5271A; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__foot { display: grid; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); justify-items: start; }
.form__legal { font-size: .8125rem; line-height: 1.6; color: var(--muted); }
.form__status { margin-top: 24px; padding: 18px 22px; border-radius: 12px; font-size: .9375rem; line-height: 1.6; }
.form__status[hidden] { display: none; }
.form__status.is-ok { background: #ECF7EF; border: 1px solid #BBE0C6; color: #1E5B33; }
.form__status.is-error { background: #FDEDEA; border: 1px solid #F3C7BF; color: #A5271A; }

/* ---------------------------------------------------------------- 16. Footer */
.footer { position: relative; overflow: hidden; background: var(--navy-950); color: rgba(255, 255, 255, .8); padding-top: clamp(2.75rem, 3.4vw, 3.5rem); padding-bottom: 0; }
.footer .container { position: relative; z-index: 1; }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) repeat(3, minmax(130px, .9fr)) minmax(270px, 1.6fr);
  align-items: start;
  column-gap: clamp(24px, 2.2vw, 36px);
  row-gap: 28px;
  padding-bottom: clamp(2rem, 2.5vw, 2.5rem);
}

.brand--footer { color: var(--gold-300); }
.brand--footer .brand__tagline { color: rgba(255, 255, 255, .55); }
.footer__desc { margin-top: 18px; max-width: 31ch; font-size: .9375rem; line-height: 1.65; color: rgba(255, 255, 255, .72); }


.footer__heading { font-family: var(--font-body); font-size: .9375rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer__brand > .btn { margin-top: 20px; }
.footer__col ul { display: grid; gap: 10px; }
/* Scoped to list links so it cannot repaint the CTA button's own text colour. */
.footer__col ul a { color: rgba(255, 255, 255, .76); font-size: .9375rem; }
.footer__col ul a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer__contact li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: rgba(255, 255, 255, .8); }
/* stack multiple entries (e.g. two phone numbers) inside one contact row */
.footer__contact li > span { display: grid; gap: 3px; justify-items: start; }
.footer__contact .ico { width: 20px; height: 20px; margin-top: 3px; color: var(--gold-300); }
.footer__contact em { display: block; margin-top: 3px; font-size: .75rem; font-style: normal; color: rgba(255, 255, 255, .45); }
.footer__col--contact .btn { margin-top: 20px; }

.footer__legal {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .8125rem; color: rgba(255, 255, 255, .55);
}
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer__legal a { color: rgba(255, 255, 255, .6); }
.footer__legal a:hover { color: #fff; }

/* subtle lotus watermark — Thai identity kept quiet, per DESIGN.md */
.footer__lotus { position: absolute; right: -40px; bottom: -30px; width: 320px; color: #fff; opacity: .05; pointer-events: none; }

/* --------------------------------------------------------------- 17. To top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: grid; place-items: center; width: 46.8px; height: 46.8px;
  background: var(--navy-900); color: #fff; border: 0; border-radius: 50%;
  box-shadow: 0 12px 28px -12px rgba(28, 26, 94, .9); cursor: pointer;
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.to-top:hover { background: var(--navy-950); transform: translateY(-2px); }
.to-top .ico { width: 21.6px; height: 21.6px; }
.to-top[hidden] { display: none; }
/* While the mobile drawer is open the button would float over the dimmed page — the scrim
   sits above it, so it only reads as a stray dot. Hide it with the drawer. */
body.is-locked .to-top { display: none; }


/* ------------------------------------------------- 7b. Feature cards & chips */
/* Retirement and relocation run two-up so they read as the main offer; the remaining
   visa types sit below in a quiet chip list. */
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card--feature .card__media { aspect-ratio: 16 / 8.5; }
.services__grid {
  max-width: 1120px;
  margin-inline: auto;
  gap: clamp(24px, 3vw, 36px);
  align-items: stretch;
}
.service-card { border-radius: 16px; }
.service-card .card__media { aspect-ratio: 16 / 8.25; }
.service-card .card__body {
  padding: clamp(26px, 2.4vw, 34px);
  gap: 12px;
}
.card__kicker {
  margin-bottom: 2px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--magenta-600);
  letter-spacing: 0;
  text-transform: uppercase;
}
.service-card .card__title { font-size: clamp(1.55rem, 2vw, 1.875rem); }
.service-card .card__body > p:not(.card__kicker) {
  max-width: 43ch;
  font-size: 1rem;
  line-height: 1.65;
}
.service-card .card__list {
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.service-card .link-cta { margin-top: 18px; }
.card__list { display: grid; gap: 10px; margin-top: 2px; }
.card__list li { position: relative; padding-left: 28px; font-size: .9375rem; line-height: 1.55; color: var(--ink); }
.card__list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234B2AA8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

/* ==================================================== SUBPAGES ==================================================== */
.subhero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(247, 245, 254, .98), rgba(234, 247, 255, .9)),
    var(--blue-50);
  padding-block: clamp(4.5rem, 3rem + 6vw, 7.5rem);
}

.subhero::before {
  content: "";
  position: absolute;
  inset: auto -12% -42% auto;
  width: min(520px, 55vw);
  aspect-ratio: 1;
  border: 1px solid rgba(38, 35, 126, .12);
  border-radius: 999px;
  pointer-events: none;
}

.subhero__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
}

.subhero__content {
  max-width: 680px;
}

.breadcrumbs {
  margin-bottom: 22px;
  font-size: .875rem;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: #B7B0CD;
}

.breadcrumbs a {
  color: var(--navy-800);
  font-weight: 700;
}

.subhero__content h1 {
  max-width: 12ch;
  color: var(--navy-950);
  font-size: var(--fs-h1);
  line-height: 1.06;
}

.subhero__content > p:not(.eyebrow) {
  max-width: 40rem;
  margin-top: 24px;
  color: #474168;
  font-size: var(--fs-lead);
  line-height: 1.65;
}

.subhero__media {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px -44px rgba(28, 26, 94, .7);
  border: 1px solid rgba(255, 255, 255, .76);
  background: var(--white);
}

.subhero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
}

.page-summary {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.page-summary ul {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.page-summary li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  line-height: 1.55;
}

.page-summary li::before,
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .56em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--magenta-600);
  box-shadow: 0 0 0 5px rgba(196, 25, 127, .1);
}

.page-content {
  display: grid;
  gap: 28px;
}

.seo-intro {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid #DCD7EF;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(247, 245, 254, .94), rgba(255, 255, 255, .98)),
    var(--white);
}

.seo-intro h2 {
  color: var(--navy-950);
  font-size: 2rem;
}

.seo-intro p:not(.eyebrow) {
  max-width: 70ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.topic-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39.6px;
  padding: 9px 14.4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font-size: .84375rem;
  font-weight: 800;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background-color .2s var(--ease);
}

.topic-links a:hover {
  border-color: var(--navy-800);
  background: var(--blue-50);
  transform: translateY(-1px);
}

.content-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfaff);
}

.content-block h2 {
  color: var(--navy-950);
  font-size: 2rem;
}

.content-block p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 16px;
  background: var(--blue-50);
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink);
  line-height: 1.55;
}

.subhero--service {
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .97) 0%, rgba(239, 246, 255, .92) 54%, rgba(250, 232, 244, .72) 100%),
    var(--blue-50);
}

.subhero--service .subhero__grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
}

.subhero--service .subhero__media {
  border-radius: 8px;
}

.subhero--service .subhero__media img {
  aspect-ratio: 5 / 4;
}

.subhero--lifestyle {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 245, 254, .96)),
    var(--blue-50);
}

.subhero--lifestyle .subhero__media {
  border-radius: 999px 999px 20px 20px;
}

.subhero--editorial {
  background:
    linear-gradient(135deg, rgba(246, 248, 255, .98), rgba(255, 255, 255, .98));
}

.subhero--editorial .subhero__grid {
  grid-template-columns: minmax(0, .95fr) minmax(360px, .9fr);
}

.subhero--editorial .subhero__media {
  border-radius: 8px;
  box-shadow: none;
}

.subhero--trust {
  background:
    linear-gradient(135deg, rgba(35, 32, 103, .95), rgba(77, 43, 168, .88)),
    var(--navy-950);
}

.subhero--trust .breadcrumbs,
.subhero--trust .breadcrumbs a,
.subhero--trust .subhero__content h1,
.subhero--trust .subhero__content > p:not(.eyebrow) {
  color: var(--white);
}

.subhero--trust .subhero__media {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, .22);
}

.lp-service {
  background: linear-gradient(180deg, #fff, #f7f5fe);
}

.lp-service__top {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: end;
}

.lp-service__intro h2,
.lp-lifestyle__header h2,
.lp-editorial__index h2,
.lp-trust__statement h2,
.lp-strip h2 {
  color: var(--navy-950);
  font-size: clamp(1.8rem, 1.25rem + 2vw, 3rem);
  line-height: 1.08;
}

.lp-service__intro p,
.lp-card p,
.lp-step p,
.lp-article p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.lp-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lp-proof__item {
  display: grid;
  gap: 12px;
  min-height: 142px;
  padding: 20px;
  border: 1px solid #DCD7EF;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 46px -34px rgba(28, 26, 94, .48);
}

.lp-proof__item span,
.lp-step__num,
.lp-card__num,
.lp-article__num,
.content-block__num {
  color: var(--magenta-600);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: 0;
}

.lp-proof__item strong {
  color: var(--navy-950);
  line-height: 1.35;
}

.lp-service__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 5vw, 58px);
}

.lp-step,
.lp-card,
.lp-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.lp-step {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(22px, 2.4vw, 30px);
}

.lp-step h2,
.lp-card h2,
.lp-article h2 {
  margin-top: 12px;
  color: var(--navy-950);
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 1rem + 1vw, 2rem);
  line-height: 1.16;
}

.lp-step .check-list,
.lp-card .check-list,
.lp-article .check-list {
  margin-top: 22px;
}

.lp-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: 8px;
  background: var(--navy-950);
  color: var(--white);
}

.lp-strip h2,
.lp-strip .eyebrow {
  color: var(--white);
}

.lp-service .seo-intro {
  margin-top: 22px;
}

.lp-lifestyle {
  background: var(--white);
}

.lp-lifestyle__header {
  max-width: 800px;
}

.lp-lifestyle__grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
  margin-top: clamp(26px, 4vw, 48px);
}

.lp-lifestyle__panel,
.lp-editorial__index,
.lp-trust__statement {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 8px;
  background: var(--blue-50);
  border: 1px solid var(--line);
}

.lp-lifestyle__panel {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.lp-lifestyle__panel ul,
.lp-editorial__index ul,
.lp-trust__statement ul {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.lp-lifestyle__panel li,
.lp-editorial__index li,
.lp-trust__statement li {
  position: relative;
  padding-left: 28px;
  line-height: 1.55;
  color: var(--ink);
}

.lp-lifestyle__panel li::before,
.lp-editorial__index li::before,
.lp-trust__statement li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--magenta-600);
}

.lp-lifestyle__cards,
.lp-trust__grid,
.lp-standard__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lp-card {
  padding: clamp(22px, 2.6vw, 34px);
}

.lp-lifestyle .seo-intro,
.lp-trust .seo-intro {
  margin-top: 24px;
}

.lp-editorial {
  background: linear-gradient(180deg, #fff, #fbfaff);
}

.lp-editorial__layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: start;
}

.lp-editorial__index {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.lp-editorial__feed {
  display: grid;
  gap: 18px;
}

.lp-article {
  padding: clamp(22px, 2.6vw, 32px);
  border-left: 4px solid var(--magenta-600);
}

.lp-trust {
  background: var(--blue-50);
}

.lp-trust__statement {
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.lp-trust__statement ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: left;
}

.lp-trust__grid {
  margin-top: 24px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.seo-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.seo-card h3 {
  color: var(--navy-950);
  font-size: 1.5rem;
}

.seo-card p {
  color: var(--muted);
  line-height: 1.7;
}

.image-story {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(0, .95fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.image-story__media {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 26px 70px -46px rgba(28, 26, 94, .72);
  background: var(--blue-50);
}

.image-story__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-story__content {
  display: grid;
  gap: 18px;
}

.image-story__content h2 {
  color: var(--navy-950);
  font-size: var(--fs-h2);
}

.image-story__content > p:not(.eyebrow) {
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
  margin-inline: auto;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.faq-item summary {
  min-height: 52.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 21.6px;
  padding: 16.2px 21.6px;
  font-size: .9em;
  color: var(--navy-950);
  cursor: pointer;
  font-weight: 700;
  line-height: 1.35;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--navy-900);
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  padding: 0 24px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 28px);
}

.related-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.related-card:hover {
  transform: translateY(-4px);
  border-color: #D3CDF1;
  box-shadow: var(--shadow-lift);
}

.related-card span {
  color: var(--magenta-600);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.related-card strong {
  color: var(--navy-950);
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.16;
}

.related-card em {
  color: var(--navy-800);
  font-style: normal;
  font-weight: 800;
}

.services__more {
  margin-top: clamp(2.5rem, 4vw, 3.5rem); padding: clamp(22px, 2.5vw, 30px);
  background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius-card);
  text-align: center;
}
.services__moreTitle {
  font-family: var(--font-body); font-size: .8125rem; font-weight: 700;
  letter-spacing: 0; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips a {
  display: inline-flex; align-items: center; gap: 7.2px; min-height: 39.6px; padding: 9px 16.2px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  font-size: .84375rem; color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chips a:hover { border-color: var(--navy-800); color: var(--navy-800); }
.chips__all { font-weight: 600; color: var(--navy-800); }

/* ------------------------------------------------------ 14b. Topic hub */
/* Internal-link block for people still researching: also the SEO surface for the
   retirement guide cluster. */
.topics {
  margin-top: clamp(2.5rem, 4vw, 3.5rem); padding: clamp(24px, 3vw, 36px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.topics__title { font-size: 1.1875rem; margin-bottom: 14px; }
.topics__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 3vw, 48px); }
.topics__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 12px 2px; border-bottom: 1px solid var(--line);
  font-size: .9375rem; color: var(--ink);
  transition: color .2s var(--ease);
}
.topics__list a:hover { color: var(--navy-800); }
.topics__list span { color: var(--gold-500); }
.topics__note { margin-top: 22px; font-size: .9375rem; line-height: 1.6; color: var(--muted); }
.topics__note a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------- 15b. Direct contact channels */
.ico--fill { fill: currentColor; stroke: none; }

/* Hero shortcut row */
.quick-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 22px; font-size: .875rem; }
.quick-contact__label { font-weight: 600; color: var(--navy-950); }
/* Contact shortcuts share a row on desktop and stack on phones. */
.quick-contact__actions { display: flex; align-items: center; gap: 8px; }
.quick-contact a {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 36px; padding: 7.2px 12.6px; font-size: .9em;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 999px;
  color: var(--navy-950); font-weight: 600; white-space: nowrap;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.quick-contact a:hover { background: #fff; border-color: var(--navy-800); transform: translateY(-1px); }
.quick-contact .ico { width: 14.4px; height: 14.4px; }
.quick-contact a[data-event="whatsapp_click"] .ico { color: #128C4A; }
.quick-contact a[data-event="line_click"] .ico { color: #06834A; }
.quick-contact a[data-event="phone_click"] .ico { color: var(--navy-800); }

/* Channel list in the consultation block */
.channels { margin-top: 40px; padding-top: 32px; border-top: 1px solid #DEDAF3; }
.channels__title { font-weight: 600; color: var(--navy-950); margin-bottom: 16px; }
.channels__list { display: grid; gap: 10px; }
.channel {
  display: flex; align-items: center; gap: 12.6px; min-height: 57.6px; padding: 10.8px 14.4px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--navy-950);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.channel:hover { border-color: var(--navy-800); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.channel__icon { display: grid; place-items: center; width: 41.4px; height: 41.4px; border-radius: 13px; background: var(--blue-100); color: var(--navy-800); flex: none; }
.channel__icon .ico { width: 21.6px; height: 21.6px; }
.channel__text { display: grid; gap: 2px; }
.channel__text strong { font-size: .84375rem; font-weight: 600; }
.channel__text em { font-size: .675rem; font-style: normal; font-weight: 400; color: var(--muted); }
.channel--wa .channel__icon   { background: #E7F8EE; color: #128C4A; }
.channel--line .channel__icon { background: #E6F7EC; color: #06834A; }
.channel--fb .channel__icon   { background: #E9EEFB; color: #1B4EC0; }
.channel--mail .channel__icon { background: #FBE9F3; color: var(--magenta-600); }

/* --------------------------------------------------- 17b. Contact rail */
/* One compact trigger on every screen; contact channels expand above it. */
.contact-rail { position: fixed; right: 22px; bottom: 86px; z-index: 85; display: block; width: auto; }
.contact-rail__toggle {
  display: grid; place-items: center;
  width: 46.8px; height: 46.8px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--brand-gradient); color: #fff;
  box-shadow: 0 16px 36px -14px rgba(28, 26, 94, .75);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
}
.contact-rail__toggle:hover,
.contact-rail__toggle:focus-visible { transform: translateY(-1px); filter: brightness(1.04); }
.contact-rail__actions {
  position: absolute; right: 0; bottom: calc(100% + 10px);
  display: grid; gap: 10px;
  opacity: 1; visibility: visible; transform: none;
  transform-origin: right bottom;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
}
.contact-rail:not(.is-open) .contact-rail__actions {
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.98); pointer-events: none;
}
.contact-rail__btn {
  position: relative; display: grid; place-items: center; width: 46.8px; height: 46.8px;
  border-radius: 50%; color: #fff;
  box-shadow: 0 12px 28px -12px rgba(28, 26, 94, .9);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}
.contact-rail__btn:hover { transform: translateY(-2px); filter: brightness(1.07); }
.contact-rail__btn--wa    { background: #25D366; }
.contact-rail__btn--line  { background: #06C755; }
.contact-rail__btn--phone { background: var(--navy-800); }
.contact-rail__btn--mail  { background: var(--magenta-600); }
.contact-rail .ico { width: 21.6px; height: 21.6px; }
/* The label is always in the DOM for screen readers; sighted users get it on hover/focus. */
.contact-rail__label {
  position: absolute; right: calc(100% + 10px); white-space: nowrap;
  padding: 6px 10px; border-radius: 8px; background: var(--navy-950); color: #fff;
  font-size: .8125rem; font-weight: 600; opacity: 0; pointer-events: none;
  transform: translateX(6px); transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.contact-rail__btn:hover .contact-rail__label,
.contact-rail__btn:focus-visible .contact-rail__label { opacity: 1; transform: none; }
/* ------------------------------------------------------------- 18. Reveal fx */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition: opacity .72s var(--ease), transform .72s var(--ease);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-ready .cards .reveal:nth-child(2),
.reveal-ready .journey .reveal:nth-child(2),
.reveal-ready .pillars .reveal:nth-child(2),
.reveal-ready .resources .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-ready .cards .reveal:nth-child(3),
.reveal-ready .journey .reveal:nth-child(3),
.reveal-ready .pillars .reveal:nth-child(3),
.reveal-ready .resources .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-ready .journey .reveal:nth-child(4),
.reveal-ready .pillars .reveal:nth-child(4) { transition-delay: .24s; }
.reveal-ready .journey .reveal:nth-child(5) { transition-delay: .32s; }

@keyframes motion-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes hero-copy-rise {
  from { transform: translateY(12px); }
  to { transform: none; }
}

@keyframes hero-drift {
  from { transform: scale(1.01) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.4%, -.8%, 0); }
}

@keyframes sheen-pass {
  from { transform: skewX(-18deg) translateX(0); }
  to { transform: skewX(-18deg) translateX(420%); }
}

@keyframes card-sheen {
  0% { opacity: 0; transform: translateX(-120%) skewX(-16deg); }
  18% { opacity: .9; }
  100% { opacity: 0; transform: translateX(120%) skewX(-16deg); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal { opacity: 1; transform: none; transition: none; }
  .hero__content > *, .hero__media img { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ===========================================================================
   19. Responsive — desktop ≥1024, tablet 768–1023, mobile <768
   =========================================================================== */

/* Wide desktop nav gets a little more air once there is room for it */
@media (min-width: 1500px) {
  .nav { gap: 28px; }
  .nav__list { gap: 4px; }
  .nav__link { font-size: .84375rem; padding-inline: 11.7px; }
  .nav__link.is-current::after { left: 13px; right: 13px; }
}

/* Between the drawer breakpoint and a wide screen, drop the tagline to buy nav room. */
@media (max-width: 1379px) {
  .site-header .brand__tagline { display: none; }
}

/* Below 1200px the full nav no longer fits comfortably — switch to the drawer */
@media (max-width: 1199px) {
  :root { --header-h: 76px; }
  .hamburger { display: inline-flex; position: relative; z-index: 120; }
  body.is-locked .site-header {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  body.is-locked .site-header .brand {
    opacity: 0;
    pointer-events: none;
  }

  .nav {
    position: fixed; top: 0; right: 0; z-index: 95;
    flex-direction: column; align-items: stretch; gap: 0;
    width: min(400px, 88vw); height: 100dvh; padding: calc(var(--header-h) + 20px) 24px 40px;
    background: #fff; border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px -30px rgba(28, 26, 94, .6);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(102%); visibility: hidden;
    transition: transform .3s var(--ease), visibility .3s var(--ease);
  }
  .nav.is-open { transform: none; visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { width: 100%; justify-content: space-between; min-height: 46.8px; padding: 12.6px 10.8px; font-size: .95625rem; }
  .nav__link.is-current::after { display: none; }
  .nav__list > li + li { border-top: 1px solid #EEECF8; }

  .nav__menu {
    position: static; min-width: 0; margin: 2px 0 12px; padding: 6px 0 6px 12px;
    border: 0; border-left: 2px solid var(--blue-100); border-radius: 0; box-shadow: none;
  }
  .nav__menu a { padding: 10.8px 9px; }

  .nav__actions { flex-direction: column; align-items: stretch; gap: 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
  .lang { align-self: flex-start; }
  .lang__menu { position: static; margin-top: 6px; box-shadow: none; }
  .nav__cta { width: 100%; min-height: 46.8px; font-size: .9rem; }
}

/* Tablet */
@media (max-width: 1023px) {
  :root { --fs-h1: 3rem; --fs-h2: 2.25rem; --fs-h3: 1.5rem; --fs-body: 1rem; --fs-lead: 1.125rem; }
  .cards--2 { grid-template-columns: 1fr; }
  .topics__list { grid-template-columns: 1fr; }
  .subhero__grid,
  .page-layout,
  .content-block,
  .lp-service__top,
  .lp-lifestyle__grid,
  .lp-editorial__layout,
  .image-story {
    grid-template-columns: 1fr;
  }
  .subhero--service .subhero__grid,
  .subhero--editorial .subhero__grid {
    grid-template-columns: 1fr;
  }
  .lp-proof,
  .lp-service__grid,
  .lp-lifestyle__cards,
  .lp-trust__grid,
  .lp-standard__grid {
    grid-template-columns: 1fr 1fr;
  }
  .lp-lifestyle__panel,
  .lp-editorial__index {
    position: static;
  }
  .lp-strip {
    align-items: flex-start;
    flex-direction: column;
  }
  .subhero__content h1 { max-width: 14ch; }
  .page-summary { position: static; }
  .seo-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .cards--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 15px); }
  .cards--plans > :last-child:nth-child(odd) { max-width: none; }
  /* Two columns read better than three narrow ones here; the last step spans the row
     so the grid does not end on an empty cell. */
  .quote-steps { grid-template-columns: 1fr 1fr; }
  .quote-steps li:last-child { grid-column: 1 / -1; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }

  .journey { grid-template-columns: repeat(3, 1fr); gap: 40px 16px; }
  .journey__step + .journey__step::before,
  .journey__step + .journey__step::after { display: none; }

  .pillars { grid-template-columns: repeat(2, 1fr); }
  .resources { grid-template-columns: 1fr; gap: 32px; }

  .split { grid-template-columns: 1fr; }
  .split__media { min-height: clamp(300px, 46vw, 460px); }
  .split__panel { padding-block: var(--space-section); }
  .split__content { margin-inline-start: auto; max-width: 640px; }

  .cta { grid-template-columns: 1fr; }
  .cta__panel { justify-content: flex-start; padding-block: var(--space-section); }
  .cta__content { margin-inline-start: 0; padding-inline-start: 0; max-width: 640px; }
  .cta__media { min-height: clamp(240px, 42vw, 360px); order: -1; }

  .consult { grid-template-columns: 1fr; }
  .consult__intro .lead, .consult__points { max-width: 640px; }

  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
  .footer__brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
  }
  .footer__brand .footer__desc { margin-top: 0; max-width: 42ch; }
  .footer__col--contact { grid-column: 1 / -1; }
  .footer__col--contact .footer__contact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
  .footer__col--contact .btn { margin-top: 18px; }
}

/* Mobile */
@media (max-width: 767px) {
  /* Phone headings and block padding step down while body text stays at 16px. */
  :root {
    --gutter: 19px;
    --header-h: 72px;
    --space-section: 2.75rem;   /* 44px */
    --space-feature: 3rem;      /* 48px */
    --space-small:   2.25rem;   /* 36px */
    --fs-h1:    2.125rem;       /* 34px */
    --fs-h2:    1.625rem;       /* 26px */
    --fs-h3:    1.1875rem;      /* 19px */
    --fs-lead:  1rem;
    --radius-card: 14px;
  }
  body { line-height: 1.6; }

  .section__head { margin-bottom: 1.75rem; }
  .lead { margin-top: 14px; }
  .rule { margin-top: 16px; }
  .note--center { margin-top: 28px; }
  .btn { min-height: 43.2px; padding: 10.8px 18px; }

  .cards { gap: 16px; }
  .card__body { padding: 20px; gap: 12px; }
  .card__list { gap: 8px; }
  .services__more { margin-top: 1.75rem; padding: 18px 16px; }
  .services__moreTitle { margin-bottom: 12px; }
  .chips { gap: 8px; }
  .chips a { padding: 9px 12.6px; font-size: .7875rem; }

  .topics { margin-top: 1.75rem; padding: 18px 16px; }
  .topics__title { font-size: 1.0625rem; margin-bottom: 6px; }
  .topics__note { margin-top: 14px; }

  .channels { margin-top: 28px; padding-top: 24px; }
  .channels__title { margin-bottom: 12px; }
  .channel { min-height: 52.2px; padding: 9px 12.6px; gap: 10.8px; }
  .channel__icon { width: 36px; height: 36px; border-radius: 11px; }
  .consult__points { margin-top: 24px; gap: 10px; }

  .brand__logo { height: 48px; }
  .hamburger {
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 7px;
  }
  .hamburger::before { content: ""; position: absolute; inset: -2px; }

  /* The floating contact widget already exposes these channels on phones. */
  .quick-contact { display: none; }

  /* The contact widget stays compact until the visitor opens it. */
  .contact-rail {
    left: auto;
    right: max(13px, calc(13px + env(safe-area-inset-right, 0px)));
    bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    display: block;
    width: auto;
  }

  .contact-rail__toggle {
    display: grid;
    place-items: center;
    width: 49.6px;
    height: 49.6px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #fff;
    box-shadow: 0 16px 36px -14px rgba(28, 26, 94, .75);
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s var(--ease);
  }
  .contact-rail__toggle:hover,
  .contact-rail__toggle:focus-visible {
    transform: translateY(-1px);
    filter: brightness(1.04);
  }

  .contact-rail__actions {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: grid;
    gap: 8px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transform-origin: right bottom;
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
  }
  .contact-rail:not(.is-open) .contact-rail__actions {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(.98);
    pointer-events: none;
  }

  .contact-rail__btn {
    width: 133.4px;
    min-width: 0;
    height: 44px;
    min-height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 0 12.6px;
  }
  .contact-rail__label {
    position: static;
    opacity: 1;
    transform: none;
    padding: 0;
    background: transparent;
    font-size: .73125rem;
  }
  .contact-rail .ico {
    width: 18px;
    height: 18px;
  }
  .brand__tagline { display: none; }

  .subhero { padding-block: 2.75rem; }
  .subhero__grid { gap: 26px; }
  .subhero__content h1 { max-width: none; }
  .subhero__content > p:not(.eyebrow) { margin-top: 16px; line-height: 1.62; }
  .subhero__media { border-radius: 16px; }
  .subhero__media img { aspect-ratio: 4 / 3; }
  .subhero--lifestyle .subhero__media,
  .subhero--service .subhero__media,
  .subhero--editorial .subhero__media,
  .subhero--trust .subhero__media {
    border-radius: 14px;
  }
  .page-layout { gap: 24px; }
  .page-summary { padding: 22px; border-radius: 16px; }
  .seo-intro { padding: 24px 20px; border-radius: 16px; }
  .seo-intro p:not(.eyebrow) { font-size: 1rem; }
  .seo-intro h2, .content-block h2 { font-size: 1.5rem; }
  .lp-proof,
  .lp-service__grid,
  .lp-lifestyle__cards,
  .lp-trust__grid,
  .lp-standard__grid,
  .lp-trust__statement ul {
    grid-template-columns: 1fr;
  }
  .lp-proof__item,
  .lp-step,
  .lp-card,
  .lp-article,
  .lp-lifestyle__panel,
  .lp-editorial__index,
  .lp-trust__statement,
  .lp-strip {
    border-radius: 14px;
  }
  .lp-proof__item {
    min-height: 0;
    padding: 18px;
  }
  .lp-service__intro h2,
  .lp-lifestyle__header h2,
  .lp-editorial__index h2,
  .lp-trust__statement h2,
  .lp-strip h2 {
    font-size: 1.65rem;
  }
  .lp-strip .btn {
    width: 100%;
  }
  .seo-card h3, .related-card strong { font-size: 1.25rem; }
  .topic-links { gap: 8px; }
  .topic-links a { width: 100%; justify-content: space-between; border-radius: 14px; }
  .content-block { gap: 20px; padding: 24px 20px; border-radius: 16px; }
  .content-block p:not(.eyebrow) { font-size: 1rem; }
  .check-list { padding: 18px; }
  .seo-card { min-height: 0; padding: 22px; border-radius: 16px; }
  .image-story { gap: 24px; }
  .image-story__media { border-radius: 16px; }
  .image-story__media img { aspect-ratio: 4 / 3; }
  .image-story__content > p:not(.eyebrow) { font-size: 1rem; }
  .faq-item summary { padding: 14.4px 16.2px; }
  .faq-item p { padding-inline: 18px; }
  .related-card { min-height: 160px; padding: 22px; border-radius: 16px; }

  .hero__stage { background: #fff; }
  .hero::after { display: none; }
  .hero__media { inset: 0 0 auto; height: clamp(330px, 92vw, 370px); overflow: hidden; }
  .hero__inner {
    min-height: 0;
    align-items: flex-start;
    padding-top: clamp(198px, 55.2vw, 222px);
    padding-bottom: 28.5px;
  }
  .hero__content { width: 100%; max-width: none; }
  .hero__media img, .hero__video {
    object-position: 88% top;
    transform: scale(1.06);
    transform-origin: top right;
  }
  .hero__video-toggle { right: var(--gutter); bottom: 16px; }
  .hero__veil {
    background: linear-gradient(180deg, rgba(255, 255, 255, .02) 20%, rgba(255, 255, 255, .12) 38%, rgba(255, 255, 255, .78) 64%, #fff 84%);
  }
  .hero .eyebrow { margin-bottom: 9.5px; font-size: .83125rem; }
  .hero__title { font-size: 2.01875rem; line-height: 1.08; }
  .hero__lead { max-width: 35ch; margin-top: 15px; font-size: .95rem; line-height: 1.55; }
  .hero__actions { flex-direction: column; align-items: stretch; gap: 8.5px; margin-top: 19px; }
  .hero__actions .btn { width: 100%; min-height: 44px; padding: 10px 17px; font-size: .855rem; }
  .trust-bar { border-top-color: var(--line); }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding-block: 0; }
  .trust-strip li {
    min-width: 0;
    align-items: flex-start;
    gap: 8.5px;
    padding: 15px 9.5px;
    font-size: .7125rem;
    line-height: 1.4;
    border-bottom: 1px solid var(--line);
  }
  .trust-strip li:nth-child(even) { border-left: 1px solid var(--line); }
  .trust-strip .ico { width: 21px; height: 21px; }
  .trust-strip strong { font-size: .771875rem; line-height: 1.3; margin-bottom: 3px; }

  .section__head--withAside { flex-direction: column; align-items: flex-start; gap: 20px; }
  .services__assurance { margin-top: 12px; font-size: .9375rem; line-height: 1.55; }

  .cards--3 { grid-template-columns: 1fr; }
  .cards--3 > :last-child:nth-child(odd) { max-width: none; }
  .card__badge { margin-left: 20px; }
  .services__grid { gap: 18px; }
  .service-card .card__media { aspect-ratio: 16 / 9; }
  .service-card .card__body { padding: 22px 20px 24px; gap: 10px; }
  .service-card .card__body > p:not(.card__kicker) { max-width: none; }
  .service-card .card__list { margin-top: 4px; padding-top: 16px; gap: 10px; }
  .service-card .link-cta { margin-top: 12px; }
  .quote { padding: 24px 20px; }
  .plan__body { padding: 22px 20px; }
  .plan__media { aspect-ratio: 1.7 / 1; }
  .quote-steps { grid-template-columns: 1fr; gap: 16px; }
  .resource__body { padding: 20px; }
  .consult__formWrap { padding: 24px 20px; }

  /* Journey becomes a vertical timeline on mobile (DESIGN.md) */
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey__step { display: grid; grid-template-columns: 70px 1fr; gap: 4px 18px; text-align: left; padding: 0 0 26px; }
  .journey__step:last-child { padding-bottom: 0; }
  .journey__icon { grid-row: 1 / 3; margin: 0; width: 70px; height: 70px; }
  .journey__step h3 { align-self: end; margin-bottom: 4px; }
  .journey__step p { max-width: none; margin-inline: 0; }
  /* Connector runs from under each icon down to the next one. Every property is
     restated because the tablet rule above sets display:none on the adjacent-sibling
     selector, which would otherwise still win here. */
  .journey__step::before,
  .journey__step + .journey__step::before {
    content: ""; display: block; position: absolute;
    left: 34px; right: auto; top: 76px; bottom: 4px;
    width: 1px; height: auto; transform: none;
    background: rgba(75, 42, 168, .28);
  }
  .journey__step:last-child::before,
  .journey__step + .journey__step::after { display: none; }

  .pillars { grid-template-columns: 1fr; gap: 24px; }
  .pillar { display: grid; grid-template-columns: 64px 1fr; gap: 4px 20px; text-align: left; }
  .pillar__icon { grid-row: 1 / 3; margin: 0; }
  .pillar h3 { align-self: end; }
  .pillar p { max-width: none; margin-inline: 0; }

  .feature-row { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  /* "Affordable Cost of Living" is wider than half the screen, so the labels shrink
     and wrap inside their own cell instead of spilling across the column. */
  .feature-row li { font-size: .8125rem; gap: 10px; }

  /* Tighter list rhythm on phones. */

  .plan__list { margin: 18px 0 20px; padding-top: 18px; }

  .form__grid { grid-template-columns: 1fr; gap: 20px; }
  .form__foot .btn { width: 100%; }

  .footer { padding-top: 34px; }
  .footer__grid { grid-template-columns: 1fr; gap: 12px; padding-bottom: 24px; }
  .footer__brand { display: block; grid-column: auto; padding-bottom: 12px; }
  .footer__brand .footer__desc { margin-top: 14px; max-width: 31ch; }
  .footer__col--contact { grid-column: auto; padding-top: 10px; }
  .footer__col--contact .footer__contact { grid-template-columns: 1fr; gap: 4px; }
  .footer__col--contact .footer__contact li:nth-child(n + 4) { display: none; }
  .footer__col--contact .btn { margin-top: 16px; }
  .footer__legal { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 16px; }
  .footer__lotus { width: 220px; opacity: .04; }

  /* env() keeps it clear of the iOS home indicator / browser chrome */
  .to-top { right: max(19.4px, calc(19.4px + env(safe-area-inset-right, 0px))); bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: 41.4px; height: 41.4px; }
}

/* Very small phones */
@media (max-width: 380px) {
  .journey__step { grid-template-columns: 64px 1fr; gap: 4px 16px; }
  .journey__icon { width: 64px; height: 64px; }
  .journey__step::before,
  .journey__step + .journey__step::before { left: 31px; top: 70px; }
}

/* ===========================================================================
   20. Mobile touch targets & legibility
   Audited at 390px for touch target size,
   spacing and readable line-height. Plain footer links retain generous targets;
   button dimensions follow the compact control sizes above.
   =========================================================================== */
@media (max-width: 767px) {
  /* Compact text CTAs */
  .link-cta { min-height: 39.6px; padding-block: 9px; }

  /* Footer nav links were only 19px tall with no padding to tap */
  .footer__col ul { gap: 4px; }
  .footer__col ul a {
    display: flex; align-items: center;
    min-height: 44px; padding-block: 6px;
  }

  /* Two phone numbers sat 3px apart — below the 8px minimum */
  .footer__contact li > span { gap: 4px; }
  .footer__contact li > span a { min-height: 44px; display: flex; align-items: center; }

  /* Legal row links were 16px tall; 8px row gap keeps wrapped rows separated */
  .footer__legal ul { gap: 4px 20px; }
  .footer__legal a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Article links in the resources list */
  .resource h3 a { display: inline-block; padding-block: 9px; }
  .resource__tag { font-size: .8125rem; }

  /* Collapsible footer nav columns (built by script.js on phones only) */
  .footer__col.is-collapsible { border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .footer__col.is-collapsible .footer__heading { margin-bottom: 0; }
  .footer__toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    width: 100%; min-height: 50.4px; padding: 7.2px 0;
    background: none; border: 0; cursor: pointer; text-align: left;
    font: inherit; font-size: .9em; color: #fff; letter-spacing: 0; text-transform: uppercase;
  }
  .footer__caret {
    width: 9px; height: 9px; flex: none;
    border-right: 2px solid var(--gold-300); border-bottom: 2px solid var(--gold-300);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .22s var(--ease);
  }
  .footer__toggle[aria-expanded="true"] .footer__caret { transform: rotate(-135deg) translate(-2px, -2px); }
  .footer__col.is-collapsible ul { padding-bottom: 8px; }

  /* Smallest labels raised for older eyes */
  .eyebrow { font-size: .875rem; }
  .plan__for, .plan__meta { font-size: .875rem; }
  .plan__flag { font-size: .8125rem; }
  .footer__contact em { font-size: .8125rem; }
  .channel__text em { font-size: .73125rem; }
}

/* -------------------------------------------------------------- 21. Print */
@media print {
  .site-header, .to-top, .nav-scrim, .hero__media, .footer__lotus, .contact-rail { display: none !important; }
  body { color: #000; }
  .reveal, .reveal-ready .reveal { opacity: 1; transform: none; }
}
