/* ==========================================================================
   Y&A Eye Care
   Palette lifted straight off their logo: navy #0a1a52 -> sky #79c0e6
   ========================================================================== */

:root {
  --navy-950: #050d2b;
  --navy-900: #09164a;
  --navy-800: #0a1a52;
  --navy-700: #16387e;
  --navy-600: #1e407e;
  --blue-500: #3f86c9;
  --blue-600: #2c619f; /* small text on light: AA on white, paper and ice */
  --sky-400: #79c0e6;
  --sky-300: #a9dcf5;
  --ice-100: #e4f6fa;
  --paper: #f6fafd;
  --white: #ffffff;

  --ink: #071233;
  --ink-2: #47597a;
  --line: #dbe7f2;

  --shadow-sm: 0 1px 2px rgb(7 18 51 / 0.06), 0 4px 12px rgb(7 18 51 / 0.05);
  --shadow-md: 0 2px 6px rgb(7 18 51 / 0.07), 0 16px 40px rgb(7 18 51 / 0.09);
  --shadow-lg: 0 8px 24px rgb(7 18 51 / 0.1), 0 40px 90px rgb(7 18 51 / 0.16);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;

  --wrap: 1180px;
  --head-h: 72px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Display and body are both plain, high x-height sans faces. A lot of this
     shop's customers are older, so legibility beats a fancy serif. */
  --font-d: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-b: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3 {
  font-family: var(--font-d);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.02em;
  margin: 0;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
address {
  font-style: normal;
}
button {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 6px;
}
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--navy-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
}
.skip:focus {
  left: 16px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- scroll focus bar ---------- */
.focusbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 120;
  background: transparent;
  pointer-events: none;
}
.focusbar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--navy-700), var(--sky-400), var(--sky-300));
  box-shadow: 0 0 16px rgb(121 192 230 / 0.8);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgb(246 250 253 / 0.82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-head.is-stuck {
  border-bottom-color: var(--line);
  background: rgb(246 250 253 / 0.94);
}
.head-inner {
  min-height: var(--head-h);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.brand-mark {
  width: 46px;
  display: block;
  filter: drop-shadow(0 2px 6px rgb(10 26 82 / 0.22));
  transition: transform 0.5s var(--ease-out);
}
.brand:hover .brand-mark {
  transform: scale(1.06);
}
.brand-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand-text strong {
  font-size: 19px;
  color: var(--navy-800);
}
.brand-text span {
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--blue-500);
}

.nav {
  display: flex;
  gap: 4px;
}
.nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--navy-700), var(--sky-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.nav a:hover {
  color: var(--navy-800);
}
.nav a:hover::after {
  transform: scaleX(1);
}

.head-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: rgb(10 26 82 / 0.06);
  border: 1px solid var(--line);
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  min-height: 32px;
}
.lang-btn.is-on {
  background: var(--white);
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 2px;
  background: var(--navy-800);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out),
    background 0.28s var(--ease);
  will-change: transform;
}
.btn::before {
  /* specular sweep, like light across a lens */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.42) 48%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 0.7s var(--ease-out);
}
.btn:hover::before {
  transform: translateX(130%);
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-lg {
  min-height: 56px;
  padding: 15px 28px;
  font-size: 16.5px;
}

.btn-primary {
  background: linear-gradient(140deg, var(--navy-700), var(--navy-800) 60%, var(--navy-900));
  box-shadow: 0 6px 18px rgb(10 26 82 / 0.28);
}
.btn-primary:hover {
  box-shadow: 0 12px 30px rgb(10 26 82 / 0.34);
}

.btn-accent {
  background: linear-gradient(140deg, var(--sky-300), var(--sky-400) 55%, #56aad8);
  color: var(--navy-900);
  box-shadow: 0 6px 20px rgb(121 192 230 / 0.45);
}
.btn-accent:hover {
  box-shadow: 0 14px 34px rgb(121 192 230 / 0.55);
}

.btn-glass {
  background: rgb(255 255 255 / 0.08);
  color: #fff;
  border-color: rgb(255 255 255 / 0.34);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-glass:hover {
  background: rgb(255 255 255 / 0.16);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--blue-500);
}

.ico-phone {
  flex: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  background: radial-gradient(120% 130% at 78% 12%, #123176 0%, #0a1a52 42%, #050d2b 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 128px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.orb-a {
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  right: -8vw;
  top: -14vw;
  background: radial-gradient(circle, rgb(121 192 230 / 0.75), transparent 68%);
  animation: drift 22s var(--ease) infinite alternate;
}
.orb-b {
  width: 34vw;
  height: 34vw;
  max-width: 460px;
  max-height: 460px;
  left: -10vw;
  bottom: -12vw;
  background: radial-gradient(circle, rgb(63 134 201 / 0.6), transparent 70%);
  animation: drift 28s var(--ease) infinite alternate-reverse;
}
.orb-c {
  width: 40vw;
  height: 40vw;
  max-width: 520px;
  max-height: 520px;
  right: -6vw;
  top: -12vw;
  background: radial-gradient(circle, rgb(121 192 230 / 0.5), transparent 70%);
}
@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-4%, 5%, 0) scale(1.12);
  }
}
.grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 0%, transparent 100%);
}
.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--paper));
  z-index: 1;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}


.hero h1 {
  font-size: clamp(38px, 6.2vw, 68px);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero h1 span {
  display: block;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--sky-300), var(--sky-400) 45%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: rgb(233 243 251 / 0.88);
  max-width: 54ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-size: 15.5px;
  color: rgb(233 243 251 / 0.78);
}
.trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--sky-400);
  background: radial-gradient(circle at 35% 35%, var(--sky-300), transparent 62%);
}

/* ---------- the aperture / living eye ---------- */
.hero-art {
  display: grid;
  place-items: center;
}
.aperture {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgb(169 220 245 / 0.28);
  inset: 0;
}
.ring-1 {
  inset: 2%;
  border-style: dashed;
  animation: spin 46s linear infinite;
}
.ring-2 {
  inset: 13%;
  border-color: rgb(121 192 230 / 0.4);
  box-shadow: inset 0 0 60px rgb(121 192 230 / 0.14);
  animation: spin 32s linear infinite reverse;
}
.ring-3 {
  inset: 24%;
  border-color: rgb(255 255 255 / 0.14);
  background: radial-gradient(circle at 50% 50%, rgb(121 192 230 / 0.14), transparent 70%);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.big-eye {
  position: relative;
  width: 78%;
  filter: drop-shadow(0 22px 50px rgb(5 13 43 / 0.7));
}
.big-eye .pupil {
  transition: transform 0.35s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}
.big-eye .blink {
  transform-box: fill-box;
  transform-origin: center;
  transform: scaleY(0);
  opacity: 0;
}
.big-eye.is-blinking .blink {
  animation: blink 0.22s var(--ease) 1;
}
@keyframes blink {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0);
    opacity: 1;
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.band {
  position: relative;
  padding: clamp(64px, 8vw, 108px) 0;
}
.band-alt {
  background: linear-gradient(180deg, var(--white), var(--ice-100) 140%);
  border-block: 1px solid var(--line);
}
.band-deep {
  background: radial-gradient(110% 130% at 20% 0%, #123176 0%, #0a1a52 45%, #050d2b 100%);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.deep-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 14px;
}
.kicker.light {
  color: var(--sky-400);
}
.sec-title {
  font-size: clamp(29px, 4vw, 44px);
  max-width: 20ch;
  margin-bottom: 12px;
  text-wrap: balance;
}
.sec-title.light {
  color: #fff;
}
.sec-sub {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 58ch;
  margin-bottom: 40px;
}
.lede.light {
  color: rgb(233 243 251 / 0.84);
}

/* Full-width light sections lead with a centred header. Sections whose copy
   sits beside a visual (#cita, #seguros) stay left-aligned. */
.band > .wrap > .kicker,
.band > .wrap > .sec-title,
.band > .wrap > .sec-sub {
  text-align: center;
  margin-inline: auto;
}
.band > .wrap > .sec-title {
  max-width: 24ch;
}

/* ---------- services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 42px;
}
.svc {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px 28px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease);
}
.svc::after {
  /* iris glow that blooms from the icon on hover */
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(121 192 230 / 0.3), transparent 68%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.svc:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgb(121 192 230 / 0.7);
}
.svc:hover::after {
  opacity: 1;
  transform: scale(1);
}
.svc-ico {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  margin-bottom: 18px;
  color: var(--white);
  background: linear-gradient(140deg, var(--blue-500), var(--navy-700) 70%, var(--navy-800));
  box-shadow: 0 8px 20px rgb(10 26 82 / 0.28);
}
.svc-ico svg {
  width: 25px;
  height: 25px;
}
.svc h3 {
  font-size: 21px;
  margin-bottom: 8px;
  position: relative;
}
.svc p {
  color: var(--ink-2);
  font-size: 16.5px;
  position: relative;
}

/* ==========================================================================
   FOCUS SECTION — the phoropter
   ========================================================================== */
.focus-sec {
  position: relative;
  padding: clamp(64px, 8vw, 108px) 0;
  background: radial-gradient(100% 120% at 80% 10%, #14306e 0%, #0a1a52 46%, #050d2b 100%);
  color: #fff;
  overflow: hidden;
}
.focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.focus-copy .lede {
  margin-bottom: 28px;
}

.chart-wrap {
  display: grid;
  place-items: center;
}
.chart-card {
  --lx: 50%;
  --ly: 42%;
  --lens-r: 0px;
  --blur: 7px;
  position: relative;
  width: min(100%, 440px);
  aspect-ratio: 4 / 4.4;
  background: linear-gradient(180deg, #ffffff, #eef6fb);
  border-radius: var(--r-xl);
  padding: 26px 22px 60px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / 0.4) inset;
  overflow: hidden;
  cursor: crosshair;
  touch-action: pan-y;
}
.chart-card::after {
  /* glass sheen */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgb(255 255 255 / 0.55) 0%, transparent 34%);
  pointer-events: none;
}
.chart-label {
  position: relative;
  z-index: 3;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 10px;
}
.chart {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 62px;
  bottom: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  font-family: var(--font-b);
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.14em;
}
.chart.blurred {
  filter: blur(var(--blur));
  z-index: 1;
}
.chart.sharp {
  z-index: 2;
  clip-path: circle(var(--lens-r) at var(--lx) var(--ly));
}
.chart-row {
  line-height: 1;
}
.r1 {
  font-size: clamp(38px, 9vw, 54px);
}
.r2 {
  font-size: clamp(29px, 7vw, 40px);
}
.r3 {
  font-size: clamp(23px, 5.5vw, 31px);
}
.r4 {
  font-size: clamp(18px, 4.4vw, 25px);
}
.r5 {
  font-size: clamp(14px, 3.5vw, 20px);
}
.r6 {
  font-size: clamp(11px, 2.8vw, 16px);
}
.r7 {
  font-size: clamp(9px, 2.2vw, 13px);
}

.lens-ring {
  position: absolute;
  z-index: 3;
  left: var(--lx);
  top: var(--ly);
  width: calc(var(--lens-r) * 2);
  height: calc(var(--lens-r) * 2);
  margin-left: calc(var(--lens-r) * -1);
  margin-top: calc(var(--lens-r) * -1);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  box-shadow: 0 0 0 2px rgb(121 192 230 / 0.9), 0 0 0 7px rgb(121 192 230 / 0.18),
    0 12px 30px rgb(10 26 82 / 0.3), inset 0 0 26px rgb(121 192 230 / 0.22);
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.35), transparent 55%);
}
.chart-card.is-active .lens-ring {
  opacity: 1;
}

.chart-hint {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  transition: opacity 0.3s var(--ease);
}
.chart-card.is-active .chart-hint {
  opacity: 0;
}

/* phoropter 1 / 2 control */
.dial {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.dial-q {
  font-size: 15px;
  color: rgb(233 243 251 / 0.8);
}
.dial-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgb(169 220 245 / 0.45);
  background: rgb(255 255 255 / 0.07);
  color: #fff;
  font-family: var(--font-d);
  font-size: 21px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.dial-btn:hover {
  transform: translateY(-3px) scale(1.05);
  background: rgb(121 192 230 / 0.2);
}
.dial-btn.is-on {
  background: linear-gradient(140deg, var(--sky-300), var(--sky-400));
  color: var(--navy-900);
  border-color: transparent;
  box-shadow: 0 8px 24px rgb(121 192 230 / 0.5);
}

/* lens tint chips */
.tints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.tint-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgb(169 220 245 / 0.35);
  background: rgb(255 255 255 / 0.06);
  color: rgb(233 243 251 / 0.92);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease-out);
}
.tint-btn:hover {
  transform: translateY(-2px);
  background: rgb(255 255 255 / 0.12);
}
.tint-btn.is-on {
  border-color: var(--sky-400);
  background: rgb(121 192 230 / 0.22);
}
.tint-swatch {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.55);
  flex: none;
}
.chart-card .tint-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease), background 0.45s var(--ease);
  mix-blend-mode: multiply;
}
.chart-card[data-tint='blue'] .tint-layer {
  opacity: 1;
  background: linear-gradient(160deg, #f7d9a8, #ffe9c7);
}
.chart-card[data-tint='sun'] .tint-layer {
  opacity: 1;
  background: linear-gradient(160deg, #4b5f7a, #263850);
}

/* ==========================================================================
   LOCATIONS
   ========================================================================== */
.loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.loc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out),
    border-color 0.4s var(--ease);
}
.loc-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-700), var(--sky-400), var(--sky-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.loc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgb(121 192 230 / 0.7);
}
.loc-card:hover::before {
  transform: scaleX(1);
}
.loc-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.loc-name {
  font-size: 25px;
}
.loc-hood {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
}
.loc-addr {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
}
.loc-hours {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
  font-size: 15.5px;
}
.hour-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
}
.hour-row dt {
  color: var(--ink-2);
}
.hour-row dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.loc-hours-unknown {
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--blue-600);
}
.phone-note {
  font-size: 13.5px;
  color: var(--ink-2);
}
.loc-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
  flex-wrap: wrap;
}
.loc-actions .btn {
  flex: 1 1 auto;
  min-width: 140px;
}
.btn-call {
  background: linear-gradient(140deg, var(--navy-700), var(--navy-800) 65%, var(--navy-900));
  color: #fff;
  box-shadow: 0 6px 18px rgb(10 26 82 / 0.26);
}
.btn-map {
  background: var(--white);
  color: var(--navy-800);
  border-color: var(--line);
}
.btn-map:hover {
  border-color: var(--blue-500);
}

/* ==========================================================================
   VISIT
   ========================================================================== */
.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
.steps {
  counter-reset: s;
  display: grid;
  gap: 20px;
  margin-top: 34px;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding-left: 62px;
}
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-d);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(140deg, var(--blue-500), var(--navy-800));
  box-shadow: 0 6px 16px rgb(10 26 82 / 0.26);
}
.steps h3 {
  font-size: 20px;
  margin-bottom: 5px;
}
.steps p {
  color: var(--ink-2);
  font-size: 17px;
}

.note-card {
  position: relative;
  background: linear-gradient(160deg, var(--white), var(--ice-100));
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.note-eye {
  position: absolute;
  right: -34px;
  top: -22px;
  width: 168px;
  opacity: 0.1;
  transform: rotate(-8deg);
  pointer-events: none;
}
.note-card h3 {
  font-size: 23px;
  margin-bottom: 10px;
  position: relative;
}
.note-card p {
  color: var(--ink-2);
  font-size: 17px;
  margin-bottom: 22px;
  position: relative;
}
.note-card .btn {
  position: relative;
}

/* ==========================================================================
   INSURANCE
   ========================================================================== */
.ins-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.ins-grid .lede {
  margin-bottom: 28px;
}
.pay-list {
  display: grid;
  gap: 10px;
}
.pay-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(169 220 245 / 0.22);
  font-size: 16.5px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.pay-list li:hover {
  background: rgb(255 255 255 / 0.12);
  transform: translateX(4px);
}
.pay-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid var(--sky-400);
  background: radial-gradient(circle at 35% 35%, var(--sky-300), transparent 60%);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-foot {
  background: var(--navy-950);
  color: rgb(233 243 251 / 0.76);
  padding: 56px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
}
.foot-brand .brand-mark {
  width: 68px;
  margin-bottom: 14px;
  /* the almond outline is navy-on-near-black down here, so give it a rim */
  filter: drop-shadow(0 0 1px rgb(121 192 230 / 0.75)) drop-shadow(0 4px 14px rgb(121 192 230 / 0.2));
}
.foot-brand p {
  font-size: 15.5px;
  max-width: 34ch;
}
.social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.social a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sky-400);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.social a:hover {
  border-bottom-color: var(--sky-400);
}
.foot-links {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 15.5px;
}
.foot-links a:hover {
  color: #fff;
}
.foot-call {
  align-content: start;
}
.foot-label {
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky-400);
  margin-bottom: 6px;
}
.foot-phone {
  font-family: var(--font-d);
  font-size: 27px;
  font-weight: 600;
  color: #fff;
}
.foot-fine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 13.5px;
  color: rgb(233 243 251 / 0.55);
}

/* ==========================================================================
   MOBILE CALL BAR
   ========================================================================== */
.callbar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 110;
  display: none;
  gap: 10px;
  padding: 10px;
  border-radius: 999px;
  background: rgb(5 13 43 / 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgb(169 220 245 / 0.25);
  box-shadow: 0 12px 40px rgb(5 13 43 / 0.45);
  transform: translateY(140%);
  transition: transform 0.45s var(--ease-out);
}
.callbar.is-up {
  transform: translateY(0);
}
.callbar .btn {
  flex: 1;
  min-height: 50px;
}

/* ==========================================================================
   MOTION — reveal on scroll
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.focus-in {
  filter: blur(14px);
  opacity: 0;
  transition: filter 1.1s var(--ease-out), opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}
.focus-in.is-in {
  filter: blur(0);
  opacity: 1;
}

/* iris wipe on first paint */
.iris-open {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-950);
  pointer-events: none;
  /* Runs from CSS, not JS. If site.js never loads the page still reveals. */
  animation: irisOpen 0.95s var(--ease-out) forwards;
}
@keyframes irisOpen {
  0% {
    clip-path: circle(150% at 50% 42%);
  }
  100% {
    clip-path: circle(0% at 50% 42%);
  }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero-grid,
  .focus-grid,
  .visit-grid,
  .ins-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .aperture {
    width: min(62%, 280px);
  }
  .hero {
    padding-top: clamp(28px, 5vw, 56px);
  }
  .hero-grid {
    gap: 20px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border-radius: var(--r-md);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.28s var(--ease), transform 0.28s var(--ease-out), visibility 0.28s;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    padding: 13px 14px;
    font-size: 16px;
  }
  .burger {
    display: grid;
  }
  .head-call span {
    display: none;
  }
  .head-call {
    padding: 12px 14px;
  }
  .callbar {
    display: flex;
  }
  body {
    padding-bottom: 84px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }
  .wrap {
    padding-inline: 18px;
  }
  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }
  .svc,
  .loc-card {
    padding: 24px 20px;
  }
  .loc-actions .btn {
    flex: 1 1 100%;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  .lang-btn {
    padding: 6px 10px;
  }
  .aperture {
    width: min(58%, 220px);
  }
  .hero-cta .btn {
    width: 100%;
  }
  .chart-card {
    aspect-ratio: 4 / 4.8;
  }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .focus-in {
    filter: none;
    opacity: 1;
  }
  .iris-open {
    display: none;
  }
  .chart.blurred {
    filter: blur(3px);
  }
}

@media print {
  .site-head,
  .callbar,
  .focusbar,
  .chart-wrap {
    display: none;
  }
}
