/* =========================================================
   Vista Insurance — "In view"
   Tokens: primitive → semantic (per surface) → component
   ========================================================= */

/* ---------- 1. Primitive tokens ---------- */
:root {
  --navy-900: #030F20;
  --blue-600: #2454E0;
  --blue-800: #173A9E;
  --amber-400: #E7A639;
  --cream-50: #FBF6EC;
  --white: #FFFFFF;

  /* Continuous canvas: brand colours at low strength */
  --grid-line: rgba(3, 15, 32, .12);     /* quiet hairline on light surfaces */
  --tint-blue: rgba(36, 84, 224, .06);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (fluid) */
  --fs-display: clamp(3.25rem, 2.6rem + 3vw, 4.625rem);
  --fs-display-2: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);
  --fs-h2: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);
  --fs-list: clamp(1.375rem, 1.2rem + 0.8vw, 2rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-small: 0.875rem;

  /* Spacing — 4px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px;
  --s-24: 96px; --s-32: 128px; --s-40: 160px;

  --section-y: clamp(72px, 12vw, 160px);
  --angle: 0px;
  --gutter: 20px;
  --maxw: 1280px;
  --header-h: 64px;
  --radius: 2px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 150ms;
  --t-base: 220ms;

  --start: left;
}
[dir="rtl"] { --start: right; }

@media (min-width: 640px)  { :root { --gutter: 32px; } }
@media (min-width: 960px)  { :root { --header-h: 72px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

/* ---------- 2. Semantic tokens per surface ---------- */
[data-surface="navy"] {
  --surface: var(--navy-900);
  --on: var(--white);
  --on-body: var(--white);
  --rule: var(--blue-600);
  --grid: var(--blue-800);
  --focus: var(--white);
  --btn-bg: var(--blue-600);
  --btn-fg: var(--white);
  --btn-bg-hover: var(--blue-800);
  --btn-fg-hover: var(--white);
}
[data-surface="white"] {
  --surface: var(--white);
  --on: var(--navy-900);
  --on-body: var(--navy-900);
  --rule: var(--grid-line);
  --grid: var(--grid-line);
  --focus: var(--navy-900);
  --btn-bg: var(--blue-600);
  --btn-fg: var(--white);
  --btn-bg-hover: var(--blue-800);
  --btn-fg-hover: var(--white);
}
[data-surface="cream"] {
  --surface: var(--cream-50);
  --on: var(--navy-900);
  --on-body: var(--navy-900);
  --rule: var(--grid-line);
  --grid: var(--grid-line);
  --focus: var(--navy-900);
  --btn-bg: var(--blue-600);
  --btn-fg: var(--white);
  --btn-bg-hover: var(--blue-800);
  --btn-fg-hover: var(--white);
}
[data-surface="blue"] {
  --surface: var(--blue-600);
  --on: var(--white);
  --on-body: var(--white);
  --rule: var(--white);
  --grid: var(--blue-800);
  --focus: var(--white);
  --btn-bg: var(--white);
  --btn-fg: var(--navy-900);
  --btn-bg-hover: var(--navy-900);
  --btn-fg-hover: var(--white);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  position: relative;
  margin: 0;
  background: var(--white);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol { list-style: none; padding: 0; }
ul { padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

[data-surface] { background: var(--surface); color: var(--on); }

:focus-visible {
  outline: 3px solid var(--focus, var(--navy-900));
  outline-offset: 3px;
}
main:focus { outline: none; }

.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;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--s-4);
  top: -120px;
  z-index: 100;
  padding: var(--s-3) var(--s-4);
  background: var(--white);
  color: var(--navy-900);
  font-weight: 600;
  text-decoration: none;
  outline-color: var(--blue-600);
}
.skip-link:focus { top: var(--s-3); }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.h2, .display-2, .cta__title, .hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.display-2 {
  font-size: var(--fs-display-2);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 34em;
  color: var(--on-body);
}

/* ---------- Illustration slots ----------
   Empty until the final illustrations arrive: they take no space and
   show nothing. Put an <img> inside and the slot appears. */
.art-slot:empty { display: none; }

/* Final illustrations */
.hero__art img { display: block; width: 100%; height: auto; }
.art-slot img { display: block; width: 100%; height: auto; }

/* Mirror directional graphics for right-to-left */
[dir="rtl"] .mirror { transform: scaleX(-1); }
[dir="rtl"] .mirror-text { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }


/* Arrows */
.i-arrow { width: 1em; height: 1em; flex: none; }
.i-chat  { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease), color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 0.9375rem; }

.btn--primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn--primary:hover { background: var(--btn-bg-hover); color: var(--btn-fg-hover, var(--btn-fg)); }

.btn--secondary { background: transparent; color: var(--on); border-color: currentColor; }
.btn--secondary:hover { background: var(--on); color: var(--surface); border-color: var(--on); }

/* ---------- Sections & transitions ---------- */
.section {
  position: relative;
  padding-block: var(--section-y);
  overflow-x: clip;
}


.section-head {
  display: grid;
  gap: var(--s-4);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.section-head__note { font-size: var(--fs-small); font-weight: 500; }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: transform 300ms var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-8);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.875rem;
  line-height: 1;
  letter-spacing: -0.045em;
  text-decoration: none;
  color: var(--blue-600);
  padding-block: 6px;
}
[data-surface="navy"] .wordmark,
[data-surface="blue"] .wordmark { color: var(--white); }
.wordmark--lg { font-size: inherit; }

/* Logo: traced from the supplied artwork; colour follows the surface */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wordmark { display: inline-flex; align-items: center; }
.wordmark__logo {
  display: block;
  height: 24px;
  width: auto;
  aspect-ratio: 699.1 / 239.2;
}
@media (min-width: 960px) { .nav .wordmark__logo { height: 26px; } }
.wordmark--lg .wordmark__logo { height: clamp(34px, 3vw, 42px); }

.nav__links { display: none; }
.nav__cta { display: none; }

.nav__mobile {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-inline-end: -12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--on);
  cursor: pointer;
}

.burger { position: relative; display: block; width: 24px; height: 14px; }
.burger span {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-base) var(--ease), top var(--t-base) var(--ease);
}
.burger span:first-child { top: 0; }
.burger span:last-child  { top: 12px; }
.nav__toggle[aria-expanded="true"] .burger span:first-child { top: 6px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .burger span:last-child  { top: 6px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  background: var(--navy-900);
  color: var(--white);
  overflow-y: auto;
  padding: var(--s-8) var(--gutter) calc(var(--s-8) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}
.menu[hidden] { display: none; }
.menu__links { list-style: none; border-top: 1px solid var(--blue-800); }
.menu__links a {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--blue-800);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.menu .btn { align-self: flex-start; }
.menu-open { overflow: hidden; }

@media (min-width: 960px) {
  .nav__links {
    display: flex;
    gap: var(--s-8);
    margin-inline-start: auto;
    list-style: none;
  }
  .nav__links a {
    display: block;
    padding: var(--s-3) 0;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    text-underline-offset: 6px;
    text-decoration-thickness: 1.5px;
  }
  .nav__links a:hover { text-decoration: underline; }
  .nav__cta { display: inline-flex; }
  .nav__mobile, .menu { display: none !important; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; overflow-x: clip; }

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: clamp(40px, 8vw, 96px);
}

.hero__copy { position: relative; z-index: 2; }

.hero__title {
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: initial;
}
/* Two-beat headline: a quiet lead-in, then the big line */
.hero__title span { display: block; }
.hero__lead {
  margin-bottom: var(--s-3);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2.125rem);   /* 22 → 34px */
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, .78);
  max-width: 20ch;
}
.hero__main { text-wrap: balance; }

.hero__sub {
  margin-top: var(--s-6);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
  line-height: 1.5;
  color: var(--on-body);
  max-width: 26em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-8);
}

/* Illustration area: below the copy on small screens, beside it on desktop */
.hero__art {
  --ph-ar: 8 / 7;
  width: 100%;
  max-width: 420px;
  margin-top: var(--s-12);
}

.hero__captions {
  position: relative;
  z-index: 2;
  list-style: none;
  display: grid;
  margin-top: var(--s-12);
  margin-bottom: var(--s-16);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--on-body);
}
.hero__captions li { position: relative; padding: var(--s-2) 0; }

@media (min-width: 720px) {
  .hero__captions { grid-template-columns: repeat(2, max-content); column-gap: var(--s-16); }
  .hero__captions li { padding: 0 var(--s-6) 0 0; }
}

@media (min-width: 1100px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: 1fr auto;
    column-gap: var(--s-16);
    align-items: center;
    min-height: clamp(560px, calc(100svh - var(--header-h) - 40px), 760px);
    padding-top: clamp(48px, 7vh, 88px);
  }
  .hero__copy { max-width: 36rem; }
  .hero__art { grid-column: 2; grid-row: 1; justify-self: end; max-width: 480px; margin-top: 0; }
  .hero__captions { grid-column: 1 / -1; margin-top: var(--s-12); }
}

/* =========================================================
   COVERAGE — editorial two-column index, six equal rows
   ========================================================= */
.coverage { padding-block: clamp(56px, 7vw, 104px); }

.coverage__layout {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}
.coverage__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);   /* 28 → 40px */
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 12ch;
  text-wrap: balance;
}
.coverage__note {
  margin-top: var(--s-4);
  font-size: 0.9375rem;
  color: rgba(3, 15, 32, .72);
  max-width: 24em;
}


.cov-list { list-style: none; border-top: 1px solid rgba(3, 15, 32, .12); }
.cov-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: var(--s-4);
  row-gap: 2px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(3, 15, 32, .12);
  text-decoration: none;
  color: inherit;
  transition: color var(--t-base) var(--ease);
}
.cov-row__name {
  grid-column: 1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.45vw, 1.5rem);   /* 20 → 24px */
  line-height: 1.2;
  letter-spacing: -0.015em;
  transition: color var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.cov-row__desc {
  grid-column: 1;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: rgba(3, 15, 32, .72);
}
.cov-row__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 16px;
  height: 16px;
  color: var(--navy-900);
  opacity: .45;
  transition: transform var(--t-base) var(--ease), color var(--t-base) var(--ease), opacity var(--t-base) var(--ease);
}
.cov-row:hover .cov-row__name,
.cov-row:focus-visible .cov-row__name { color: var(--blue-600); transform: translateX(4px); }
.cov-row:hover .cov-row__arrow,
.cov-row:focus-visible .cov-row__arrow { color: var(--blue-600); opacity: 1; transform: translate(2px, -2px); }
[dir="rtl"] .cov-row__arrow { transform: scaleX(-1); }
[dir="rtl"] .cov-row:hover .cov-row__name,
[dir="rtl"] .cov-row:focus-visible .cov-row__name { transform: translateX(-4px); }
[dir="rtl"] .cov-row:hover .cov-row__arrow,
[dir="rtl"] .cov-row:focus-visible .cov-row__arrow { transform: scaleX(-1) translate(2px, -2px); }

/* wider screens: name and description share one line */
@media (min-width: 768px) {
  .cov-row {
    grid-template-columns: minmax(8rem, 2fr) 3fr auto;
    padding-block: 18px;
  }
  .cov-row__desc { grid-column: 2; }
  .cov-row__arrow { grid-column: 3; grid-row: 1; }
}

@media (min-width: 960px) {
  .coverage__layout {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(48px, 7vw, 112px);
    align-items: start;
  }
}

/* Shared compact section heading (How It Works, Why Vista) */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);   /* 28 → 40px */
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  max-width: 16ch;
}

.how__art img,
.why__art img { display: block; width: 100%; height: auto; }

/* =========================================================
   HOW IT WORKS — four steps on one hairline
   ========================================================= */
.how, .why { padding-block: clamp(56px, 7vw, 104px); }

.how__head {
  display: grid;
  gap: var(--s-8);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.how__art { width: 100%; max-width: 380px; }

.steps {
  position: relative;
  display: grid;
  gap: var(--s-8);
  padding-inline-start: var(--s-8);
  border-inline-start: 1px solid var(--rule);
}
.step { position: relative; max-width: 30rem; }
.step__num {
  display: block;
  margin-bottom: var(--s-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.3rem + 0.6vw, 2rem);   /* 24 → 32px */
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.step p { margin-top: var(--s-2); color: var(--on-body); }

.step__node {
  position: absolute;
  inset-inline-start: calc(-1 * var(--s-8) - 4px);
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--on);
}
.step--last .step__node { background: var(--amber-400); }
.step__rule { display: none; }

@media (min-width: 960px) {
  .how__head { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: end; }
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    padding: 0;
    border: 0;
  }
  .step { padding: var(--s-6) var(--s-6) 0 0; }
  .step__rule {
    display: block;
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 1px;
    background: var(--rule);
    transform-origin: var(--start);
  }
  .step__node { inset-inline-start: 0; top: -3px; }
}

@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .js .steps .step__rule {
    transform: scaleX(0);
    transition: transform 520ms var(--ease) calc(var(--i) * 200ms);
  }
  .js .steps .step__node {
    opacity: 0;
    transition: opacity 200ms ease calc(var(--i) * 200ms);
  }
  .js .steps.is-in .step__rule { transform: none; }
  .js .steps.is-in .step__node { opacity: 1; }
}

/* =========================================================
   WHY VISTA — text and values beside one illustration
   ========================================================= */
.why__layout { display: grid; gap: var(--s-12); }
.why__art { width: 100%; max-width: 480px; }


.values {
  list-style: none;
  display: grid;
  gap: var(--s-6) var(--s-8);
  margin-top: var(--s-8);
}
.value__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.value p { margin-top: var(--s-1); font-size: 0.9375rem; }

@media (min-width: 640px) {
  .values { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .why__layout {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(48px, 7vw, 112px);
    align-items: center;
  }
  .why__art { justify-self: end; }
}

/* =========================================================
   REAL LIFE
   ========================================================= */
.real__title {
  font-size: clamp(1.75rem, 1.45rem + 1.1vw, 2.5rem);
  max-width: 18ch;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.scenes {
  list-style: none;
  display: grid;
  gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 40px);
}
.scene { display: grid; gap: var(--s-4); align-content: start; }
/* one shared height and a common baseline for all four drawings */
.scene__art {
  display: flex;
  align-items: flex-end;
  /* same frame for every drawing, narrower than the column so neighbours never touch */
  width: min(100%, 250px);
  height: clamp(110px, 10vw, 150px);
}
.scene__art img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
@media (min-width: 640px) {
  .scenes { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .scenes { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 639px) {
  /* phones: a small drawing beside its line */
  .scene { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; gap: var(--s-4); }
  .scene__art { height: 96px; }
  .hero__art { max-width: 300px; }
}
.scene__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 13ch;
  text-wrap: balance;
}


/* =========================================================
   SOLUTIONS — a compact editorial index
   Desktop: three equal columns (intro, Personal, Business).
   ========================================================= */
.solutions {
  padding-top: clamp(56px, 6vw, 88px);
  padding-bottom: calc(var(--angle) + clamp(32px, 4vw, 48px));
}
.sol-grid {
  display: grid;
  gap: clamp(32px, 4vw, 40px);
}
/* Heading: 32px mobile → about 46px desktop, well below the hero */
.solutions__title {
  font-size: clamp(1.875rem, 1.5rem + 1.6vw, 3rem);
  line-height: 1.08;
  max-width: 16ch;
}
.solutions__note {
  margin-top: var(--s-4);
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .72);
}

.sol-group__label {
  position: relative;
  padding-bottom: var(--s-3);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--on-body);
}

.sol-list { list-style: none; }
.sol-list li { position: relative; }

.sol-row {
  --shift: 0px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 44px;
  padding-block: 10px;
  text-decoration: none;
  color: var(--white);
  outline-offset: 4px;
}
/* resting rule + the blue line that draws in on hover/focus */
.sol-row::before,
.sol-row::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  transform-origin: var(--start);
}
.sol-row::before { background: transparent; }
.sol-row::after {
  height: 1px;
  background: var(--blue-600);
  transform: scaleX(0);
  transition: transform 320ms var(--ease);
}
.sol-row__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.4375rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  transform: translateX(var(--shift));
  transition: transform 320ms var(--ease), color var(--t-base) var(--ease);
}
.sol-row__arrow {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--blue-600);
  transition: transform 320ms var(--ease), color var(--t-base) var(--ease);
}
.sol-row:hover,
.sol-row:focus-visible { --shift: 6px; }
[dir="rtl"] .sol-row:hover,
[dir="rtl"] .sol-row:focus-visible { --shift: -6px; }
.sol-row:hover::after,
.sol-row:focus-visible::after { transform: scaleX(1); }
.sol-row:hover .sol-row__arrow,
.sol-row:focus-visible .sol-row__arrow { color: var(--white); transform: translate(3px, -3px); }
[dir="rtl"] .sol-row__arrow { transform: scaleX(-1); }
[dir="rtl"] .sol-row:hover .sol-row__arrow,
[dir="rtl"] .sol-row:focus-visible .sol-row__arrow { transform: scaleX(-1) translate(3px, -3px); }

/* Rules draw in once when the index enters view */
@media (prefers-reduced-motion: no-preference) {
  .js .sol-grid .sol-row::before {
    transform: scaleX(0);
    transition: transform 600ms var(--ease) calc(var(--i, 0) * 70ms + 150ms);
  }
  .js .sol-grid.is-in .sol-row::before { transform: none; }
}

@media (min-width: 640px) {
  .sol-grid { grid-template-columns: 1fr 1fr; column-gap: var(--s-8); }
  .sol-intro { grid-column: 1 / -1; }
}

@media (min-width: 1100px) {
  /* Columns match the canvas grid thirds exactly */
  .sol-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 0;
    align-items: start;
  }
  .sol-intro {
    grid-column: auto;
    padding-inline-end: var(--s-8);
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .sol-group { padding-inline: var(--s-6); }
  /* Business steps down one row, echoing the staircase above */
  .sol-group--offset { margin-top: 46px; }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  gap: var(--s-12);
}
.about__year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.75rem, 2.6rem + 4.8vw, 6.5rem);
  line-height: .85;
  letter-spacing: -0.05em;
  color: var(--blue-600);
  margin-inline-start: -0.04em;
}

.about__person {
  margin-top: var(--s-4);
  font-size: var(--fs-small);
  font-weight: 500;
  max-width: 28em;
}
.about__copy .lead { margin-top: var(--s-6); }

@media (min-width: 960px) {
  .about__grid { grid-template-columns: 7fr 5fr; gap: var(--s-16); align-items: end; }
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.cta__inner { position: relative; z-index: 2; }
.cta__title {
  font-size: var(--fs-h2);
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.cta__sub { margin-top: var(--s-6); max-width: 30em; }
.cta .btn { margin-top: var(--s-8); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding-top: clamp(64px, 9vw, 112px);
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.footer__top {
  display: grid;
  gap: var(--s-12);
  padding-bottom: var(--s-12);
  border-bottom: 1px solid var(--grid);
}
.footer__brand p { margin-top: var(--s-4); color: var(--on-body); max-width: 24em; }

.footer__heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  margin-bottom: var(--s-4);
  color: var(--on-body);
}
.footer__nav ul { list-style: none; display: grid; gap: var(--s-1); }
.footer__nav a { display: inline-block; padding-block: 6px; font-weight: 500; }

.footer__contact dl { display: grid; gap: var(--s-3); }
.footer__contact dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-4); }
.footer__contact dt { color: var(--on-body); }
.footer__contact dd { font-weight: 500; overflow-wrap: anywhere; }
.footer__contact dd a { display: inline-block; padding-block: 3px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-2) var(--s-8);
  padding-top: var(--s-6);
  font-size: var(--fs-small);
  color: var(--on-body);
}
.footer__bottom p { min-width: 0; overflow-wrap: anywhere; }

@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .footer__top { grid-template-columns: 5fr 2fr 5fr; }
  .footer__brand { grid-column: auto; }
}

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed;
  z-index: 40;
  inset-inline-end: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--blue-600);
  color: var(--white);
  border-radius: var(--radius);
  outline-color: var(--navy-900);
  box-shadow: 0 0 0 2px var(--white);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
              visibility 0s linear 0s, background-color var(--t-base) var(--ease);
}
.wa-float:hover { background: var(--blue-800); }
.wa-float:focus-visible { outline: 3px solid var(--navy-900); outline-offset: 3px; box-shadow: 0 0 0 3px var(--white); }
.wa-float.is-hidden,
.menu-open .wa-float {
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
              visibility 0s linear var(--t-base);
}
@media (min-width: 960px) {
  .wa-float {
    inset-inline-end: calc(24px + env(safe-area-inset-right));
    bottom: calc(24px + env(safe-area-inset-bottom));
  }
}

/* =========================================================
   SURFACES — solid colours, no gradients, no visible grid
   ========================================================= */
main > section > .container,
.footer > .container { position: relative; z-index: 2; }

@media (min-width: 1100px) {
  .hero__inner {
    min-height: clamp(640px, calc(100svh - var(--header-h)), 860px);
    padding-top: clamp(72px, 10vh, 128px);
  }
}
.cta { padding-bottom: calc(var(--section-y) + 24px); }

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
