/* ============================================================
   Smili Home — design system
   Ported from the Smili Phone design language: same tokens,
   same components, same motion. Home-specific sections marked.
   ============================================================ */

/* Self-hosted Space Grotesk (variable, latin) — no third-party requests */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
}

:root {
  --ink: #0c1524;
  --ink-2: #131f35;
  --brand: #1b7fb4;
  --brand-deep: #14638f;
  --brand-soft: #e7f4fb;
  --smile: #f0b040;
  --paper: #ffffff;
  --mist: #f4f7fc;
  --slate: #475569;
  --slate-light: #8a97a8;
  --line: #e3e9f2;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 21, 36, .10);
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1120px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.6vw + .8rem, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }
::selection { background: var(--smile); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--smile);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(var(--max-w), 100% - 2.5rem); margin-inline: auto; }
.wrap.narrow { --max-w: 760px; }

/* Proof band: honest local credibility, right under the hero */
.proof-band { background: #fff; border-bottom: 1px solid var(--line); }
.proof-band-inner {
  display: grid; gap: 1rem; padding: 1.25rem 0;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .proof-band-inner { grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 1.5rem 0; }
}
.proof-item { display: flex; gap: .9rem; align-items: flex-start; }
.proof-item .ic {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; padding: 10px;
}
.proof-item .ic svg { width: 100%; height: 100%; display: block; }
.proof-item strong { display: block; font-size: 1rem; margin-bottom: .15rem; }
.proof-item span { color: var(--slate); font-size: .92rem; }

/* Card "learn more" affordance */
.bento-cell .card-link {
  display: inline-flex; align-items: center; gap: .35rem;
  margin-top: .8rem; font-weight: 700; font-size: .95rem; color: #ffd9a0;
}
.bento-cell .card-link::after { content: "→"; transition: transform .2s ease; }
.bento-cell:hover .card-link::after { transform: translateX(4px); }

/* Text links with animated underline */
.text-link { font-weight: 700; color: var(--brand); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s ease, color .2s ease; padding-bottom: 2px; }
.text-link:hover { color: var(--brand-deep); background-size: 0% 2px; }

/* FAQ teaser accordion */
.faq-teaser { display: grid; gap: .8rem; margin-top: 1.8rem; }
.faq-teaser details {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 1.1rem 1.3rem; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-teaser details[open] { border-color: var(--brand); box-shadow: var(--shadow); }
.faq-teaser summary {
  font-weight: 700; font-size: 1.05rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-teaser summary::-webkit-details-marker { display: none; }
.faq-teaser summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 400; line-height: 1;
  transition: transform .25s ease, background .2s ease, color .2s ease;
}
.faq-teaser details[open] summary::after { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-teaser details p { margin: .8rem 0 0; color: var(--slate); }
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #eaf0fa; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: #b9c6dd; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------------- buttons ---------------- */
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; }
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; line-height: 1.2; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn:active { transform: translateY(0) scale(.98); }
.btn .ic { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(64, 192, 240, .35); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--shadow); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.45); }
.btn-ghost-light:hover { color: #fff; box-shadow: inset 0 0 0 2px #fff; transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: .6rem 1.1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.6rem; }
.btn-quote { padding: .7rem 1.25rem; font-size: .95rem; background: var(--smile); color: var(--ink); font-weight: 700; }
.btn-quote:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.btn-call { background: var(--ink); color: #fff; font-weight: 700; }
.btn-call:hover { background: var(--brand-deep); color: #fff; transform: translateY(-2px); }

/* ---------------- header ---------------- */
.site-header {
  position: -webkit-sticky; /* legacy iOS Safari */
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(12, 21, 36, .04);
}
/* Scroll progress: a thin brand bar pinned to the header's bottom edge.
   Width is driven by JS via transform scaleX (GPU-friendly). */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  z-index: 70; pointer-events: none; }
.scroll-progress span { display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, var(--smile) 100%);
  transform: scaleX(0); transform-origin: left center; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand-logo { width: auto; height: 48px; flex: none; object-fit: contain; }
.site-header .brand { animation: brand-in .8s cubic-bezier(.22, 1.2, .36, 1) both; }
@keyframes brand-in {
  from { opacity: 0; transform: translateY(-10px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.brand:hover .brand-logo { transform: scale(1.03); filter: drop-shadow(0 6px 14px rgba(240, 176, 64, .35)); }
.brand-logo { transition: transform .25s ease, filter .25s ease; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; line-height: 1; display: inline-block; }
.brand-word-2 { color: var(--brand); }
.brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; letter-spacing: .08em; color: var(--slate-light); margin-top: 2px; }
.site-nav { display: flex; align-items: center; position: relative; }
.nav-toggle { display: none; background: none; border: 0; padding: .6rem; cursor: pointer; }
.nav-cb { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: transform .2s ease, opacity .2s ease; }
.nav-list { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-list a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .55rem .8rem; border-radius: 8px;
  transition: background .15s ease, color .15s ease, transform .12s ease; }
.nav-list a:not(.btn):hover { background: var(--mist); color: var(--brand-deep); }
.nav-list a:not(.btn):active { transform: scale(.96); }
.nav-list a.is-active { color: var(--brand); font-weight: 600; }
.nav-cta { margin-left: .5rem; }
.mobile-menu { display: none; }
.nav-list > li > a:not(.btn), .nav-list > li > .nav-drop-btn { font-family: var(--font-display); font-weight: 600; }

/* ---- top utility bar ---- */
.topbar { background: var(--ink); color: #fff; font-size: .78rem; }
.topbar-inner { display: flex; align-items: center; gap: 1.1rem; padding-top: .28rem; padding-bottom: .28rem; }
.topbar .ic { width: 14px; height: 14px; }
.topbar-hours { display: inline-flex; align-items: center; gap: .35rem; opacity: .85; margin-right: auto; }
.topbar a { display: inline-flex; align-items: center; gap: .35rem; color: #fff; text-decoration: none; opacity: .92; }
.topbar a:hover { opacity: 1; color: var(--smile); }
.topbar-phone { font-weight: 700; }

/* ---- dropdowns ---- */
.nav-list > li.has-sub { position: relative; }
.nav-drop-btn { display: inline-flex; align-items: center; gap: .3rem; background: none; border: 0; cursor: pointer;
  color: var(--ink); font-size: .98rem; padding: .55rem .8rem; border-radius: 8px; font-family: inherit;
  transition: background .15s ease, color .15s ease, transform .12s ease; }
.nav-drop-btn:hover { background: var(--mist); color: var(--brand-deep); }
.nav-drop-btn:active { transform: scale(.96); }
.nav-drop-btn.is-active { color: var(--brand); }
.nav-caret { width: 14px; height: 14px; transition: transform .2s ease; }
.has-sub.open .nav-caret, .has-sub:hover .nav-caret { transform: rotate(180deg); }
.nav-drop { position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translate(-50%, 6px) scale(.98); transform-origin: top center;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .22s cubic-bezier(.2, .7, .3, 1), visibility .18s; z-index: 60;
  min-width: 290px; padding: .5rem; }
.has-sub:hover .nav-drop, .has-sub:focus-within .nav-drop, .has-sub.open .nav-drop {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
/* Cascade: service links rise into the panel one after another when it
   opens; delays apply only in the open state so closing snaps shut. */
.nav-drop-wide > ul > li, .nav-drop-all { opacity: 0; transform: translateY(10px);
  transition: opacity .2s ease, transform .3s cubic-bezier(.2, .7, .3, 1); }
.has-sub:hover .nav-drop-wide > ul > li, .has-sub:focus-within .nav-drop-wide > ul > li,
.has-sub.open .nav-drop-wide > ul > li,
.has-sub:hover .nav-drop-all, .has-sub:focus-within .nav-drop-all,
.has-sub.open .nav-drop-all { opacity: 1; transform: none; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(2), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(2), .has-sub.open .nav-drop-wide > ul > li:nth-child(2) { transition-delay: .02s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(3), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(3), .has-sub.open .nav-drop-wide > ul > li:nth-child(3) { transition-delay: .04s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(4), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(4), .has-sub.open .nav-drop-wide > ul > li:nth-child(4) { transition-delay: .06s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(5), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(5), .has-sub.open .nav-drop-wide > ul > li:nth-child(5) { transition-delay: .08s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(6), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(6), .has-sub.open .nav-drop-wide > ul > li:nth-child(6) { transition-delay: .10s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(7), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(7), .has-sub.open .nav-drop-wide > ul > li:nth-child(7) { transition-delay: .12s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(8), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(8), .has-sub.open .nav-drop-wide > ul > li:nth-child(8) { transition-delay: .14s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(9), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(9), .has-sub.open .nav-drop-wide > ul > li:nth-child(9) { transition-delay: .16s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(10), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(10), .has-sub.open .nav-drop-wide > ul > li:nth-child(10) { transition-delay: .18s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(11), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(11), .has-sub.open .nav-drop-wide > ul > li:nth-child(11) { transition-delay: .20s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(12), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(12), .has-sub.open .nav-drop-wide > ul > li:nth-child(12) { transition-delay: .22s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(13), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(13), .has-sub.open .nav-drop-wide > ul > li:nth-child(13) { transition-delay: .24s; }
.has-sub:hover .nav-drop-wide > ul > li:nth-child(14), .has-sub:focus-within .nav-drop-wide > ul > li:nth-child(14), .has-sub.open .nav-drop-wide > ul > li:nth-child(14) { transition-delay: .26s; }
.has-sub:hover .nav-drop-all, .has-sub:focus-within .nav-drop-all, .has-sub.open .nav-drop-all { transition-delay: .30s; }
.nav-drop::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.nav-drop ul { list-style: none; margin: 0; padding: 0; }
.nav-drop a { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 9px;
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-drop a:hover { background: var(--mist); color: var(--brand-deep); }
.nav-drop a .ic { color: var(--brand); flex: none; width: 20px; height: 20px; }
.nav-drop-desc { display: block; font-size: .8rem; color: var(--slate-light); font-weight: 400; }
/* ---- compact two-column services panel ---- */
.nav-drop-wide { min-width: 600px; padding: .6rem; }
.nav-drop-wide ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-drop-wide a { padding: .55rem .65rem; font-size: .92rem; }
.nav-drop-wide a .ic { width: 18px; height: 18px; }
.nav-drop-all { display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-top: .55rem; padding: .7rem; border-radius: 10px;
  background: var(--brand-soft); color: var(--brand-deep) !important;
  font-weight: 700; font-size: .92rem; text-decoration: none; }
.nav-drop-all:hover { background: var(--brand); color: #fff !important; }
.nav-drop-all svg { width: 16px; height: 16px; }

/* ---------------- hero ---------------- */
.hero {
  margin-top: -1px; /* tuck under header: no hairline seam on any display */
  background: var(--ink);
  color: #eaf0fa;
  padding: clamp(5rem, 14vw, 8rem) 0 clamp(4.5rem, 12vw, 7rem);
  overflow: hidden;
  position: relative;
}
/* Full-bleed photo hero */
.hero-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 65%;
}
.hero-bg-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 17, 29, .62) 0%, rgba(10, 17, 29, .28) 38%, rgba(10, 17, 29, .88) 100%),
    linear-gradient(100deg, rgba(10, 17, 29, .78) 0%, rgba(10, 17, 29, .25) 60%, rgba(10, 17, 29, .45) 100%);
}
.hero-bg .hero-inner { position: relative; z-index: 1; display: block; }
.hero-bg .hero-copy { max-width: 640px; }
.hero-bg .hero-lede { color: #cfd9ea; font-size: clamp(1.05rem, 2.6vw, 1.3rem); max-width: 42ch; text-wrap: balance; }
.hero-bg .hero-ctas { margin: 2rem 0 1.6rem; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.35); color: #fff;
  display: flex; align-items: center; justify-content: center;
  animation: scroll-bob 2.4s ease-in-out infinite;
}
.hero-scroll svg { width: 22px; height: 22px; }
@keyframes scroll-bob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll { animation: none; } }
/* ---------------- editorial split hero (home) ---------------- */
.hero-split { background: #fff; color: var(--ink); padding: clamp(2.5rem, 5vw, 4rem) 0 0; }
.hero-split-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-split .hero-eyebrow { background: none; border: 0; padding: 0; color: var(--brand); letter-spacing: .16em; }
.hero-split h1, .hero.hero-split h1 { color: var(--ink); font-size: clamp(2.7rem, 5.4vw, 4.3rem); line-height: 1.02;
  letter-spacing: -.025em; text-shadow: none; margin-bottom: 1.1rem; }
.hero-split .smile-word { white-space: normal; }
.hero-split .hero-lede { color: var(--slate); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 38ch; }
.hero-split .hero-ctas { margin: 2rem 0 0; }
.hero-media { margin: 0; position: relative; align-self: stretch;
  margin-right: calc(50% - 50vw); border-radius: 28px 0 0 28px; overflow: hidden; min-height: 440px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-badge { position: absolute; left: 1.25rem; bottom: 1.25rem; display: flex; align-items: center; gap: .7rem;
  background: rgba(255,255,255,.96); border-radius: 16px; padding: .8rem 1.1rem .8rem .9rem;
  box-shadow: 0 12px 32px rgba(12,21,36,.22); backdrop-filter: blur(4px); }
.hero-badge .ic { width: 26px; height: 26px; color: var(--brand); flex: none; }
.hero-badge strong { display: block; font-size: .95rem; line-height: 1.2; }
.hero-badge span { font-size: .8rem; color: var(--slate); }
@media (max-width: 900px) {
  .hero-split-grid { grid-template-columns: 1fr; }
  .hero-media { margin-right: 0; border-radius: 22px; min-height: 0; height: clamp(240px, 62vw, 340px); }
  .hero-media img { position: absolute; }
  .hero-split { padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
}
.hero-inner { display: grid; gap: 2.5rem; align-items: center; }

/* ---------------- 3D animated hero (home) ---------------- */
.hero-3d { position: relative; overflow: hidden; background: #0a1424; color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0; }
.aurora { position: absolute; inset: -20%; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.aurora .a1 { width: 55vw; height: 55vw; left: -12vw; top: -18vw;
  background: radial-gradient(circle, rgba(27,127,180,.75), transparent 65%);
  animation: aurora-drift 26s ease-in-out infinite alternate; }
.aurora .a2 { width: 44vw; height: 44vw; right: -10vw; top: -8vw;
  background: radial-gradient(circle, rgba(240,176,64,.5), transparent 65%);
  animation: aurora-drift 32s ease-in-out infinite alternate-reverse; }
.aurora .a3 { width: 50vw; height: 50vw; left: 22vw; bottom: -24vw;
  background: radial-gradient(circle, rgba(64,192,240,.4), transparent 65%);
  animation: aurora-drift 38s ease-in-out infinite alternate; }
@keyframes aurora-drift {
  from { transform: translate3d(-4%, -2%, 0) scale(1); }
  to { transform: translate3d(5%, 6%, 0) scale(1.12); } }
.hero-3d-grid { position: relative; z-index: 1; display: grid;
  grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-3d .hero-eyebrow { background: rgba(240,176,64,.12); border: 1px solid rgba(240,176,64,.45);
  color: var(--smile); }
.hero-3d h1 { color: #fff; font-size: clamp(2.7rem, 5.4vw, 4.3rem); line-height: 1.02;
  letter-spacing: -.025em; margin-bottom: 1.1rem; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero-3d h1 .accent { color: var(--smile); }
.hero-3d .hero-lede { color: #b9c6dd; font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 38ch; }
.hero-3d .hero-ctas { margin: 2rem 0 0; }
.hero-stage { perspective: 1300px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .25s ease-out; }
.hero-card { margin: 0; position: relative; border-radius: 26px; overflow: hidden;
  transform: translateZ(36px); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 40px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.2); }
.hero-card img { display: block; width: 100%; height: clamp(300px, 34vw, 460px); object-fit: cover; }
.sheen { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 48%, transparent 62%);
  transform: translateX(-120%); animation: sheen-sweep 7s ease-in-out infinite; }
@keyframes sheen-sweep { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.chip { position: absolute; display: flex; align-items: center; gap: .6rem;
  background: rgba(16,28,48,.62); border: 1px solid rgba(255,255,255,.22); border-radius: 16px;
  padding: .7rem .95rem; color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px rgba(0,0,0,.4); animation: chip-bob 5.5s ease-in-out infinite; }
.chip .ic { width: 24px; height: 24px; color: var(--smile); flex: none; }
.chip strong { display: block; font-size: .92rem; line-height: 1.2; }
.chip span { font-size: .76rem; color: #b9c6dd; }
.chip-icon { flex-direction: column; gap: .35rem; padding: .8rem .9rem; border-radius: 18px; text-align: center; }
.chip-icon svg { width: 30px; height: 30px; color: var(--smile); }
.chip-icon span { font-size: .78rem; font-weight: 700; color: #fff; }
.chip-main { left: 1.2rem; bottom: 1.4rem; z-index: 3;
  transform: translateZ(90px) translate(calc(var(--px, 0) * 26px), calc(var(--py, 0) * 18px)); }
.chip-cam { right: -1rem; top: 12%; z-index: 3; animation-delay: -1.8s;
  transform: translateZ(130px) translate(calc(var(--px, 0) * 44px), calc(var(--py, 0) * 30px)); }
.chip-lock { left: -1.4rem; top: 38%; z-index: 3; animation-delay: -3.6s;
  transform: translateZ(110px) translate(calc(var(--px, 0) * 36px), calc(var(--py, 0) * 24px)); }
.chip-bulb { right: 8%; bottom: -1.2rem; z-index: 3; animation-delay: -2.7s;
  transform: translateZ(150px) translate(calc(var(--px, 0) * 52px), calc(var(--py, 0) * 34px)); }
@keyframes chip-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (max-width: 900px) {
  .hero-3d-grid { grid-template-columns: 1fr; }
  .hero-card img { height: clamp(240px, 62vw, 340px); }
  .hero-stage { margin-top: .5rem; }
  .chip-cam { right: .4rem; } .chip-lock { left: .4rem; } .chip-bulb { right: 12%; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora i, .sheen, .chip { animation: none; }
  .tilt { transition: none; }
}

/* ---------------- installation-map hero (home) ---------------- */
.hero-map { position: relative; overflow: hidden; background: #0a1424; color: #fff;
  padding: clamp(3rem, 6vw, 5rem) 0; }
.map-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(120,170,220,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,220,.055) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 95% 95% at 50% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 95% at 50% 40%, #000 25%, transparent 78%); }
.hero-map-grid { position: relative; z-index: 1; display: grid;
  grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-map .hero-eyebrow { background: rgba(240,176,64,.12); border: 1px solid rgba(240,176,64,.45);
  color: var(--smile); }
.hero-map h1 { color: #fff; font-size: clamp(2.6rem, 5.2vw, 4.1rem); line-height: 1.02;
  letter-spacing: -.025em; margin-bottom: 1.1rem; text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.hero-map h1 .accent { color: var(--smile); }
.hero-map .hero-lede { color: #b9c6dd; font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 38ch; }
.hero-map .hero-ctas { margin: 2rem 0 0; }
.map-stage { position: relative; }
.house-map { width: 100%; height: auto; display: block; overflow: visible; }
.house-map text { font-family: inherit; }
.hotspot { cursor: pointer; opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: hotspot-pop .55s cubic-bezier(.2,1.4,.4,1) forwards; }
@keyframes hotspot-pop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: scale(1); } }
.hotspot .badge { fill: #fff; stroke: #1B7FB4; stroke-width: 2.5;
  transition: transform .2s ease; transform-box: fill-box; transform-origin: center; }
.hotspot .dic { color: #14638F; }
.hotspot:hover .badge, .hotspot:focus-visible .badge { transform: scale(1.18); }
.hotspot .pulse { fill: none; stroke: #F0B040; stroke-width: 2.5; opacity: 0;
  transform-box: fill-box; transform-origin: center; animation: hotspot-ping 2.8s ease-out infinite; }
.hotspot .pulse.p2 { animation-delay: 1.4s; }
@keyframes hotspot-ping {
  0% { transform: scale(.55); opacity: .95; }
  75%, 100% { transform: scale(2.15); opacity: 0; } }
.hotspot-tip { position: absolute; z-index: 5; max-width: 220px; pointer-events: none;
  background: rgba(13,24,42,.95); border: 1px solid rgba(240,176,64,.5); border-radius: 12px;
  padding: .6rem .8rem; opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }
.hotspot-tip.show { opacity: 1; transform: translateY(0); }
.hotspot-tip strong { display: block; color: var(--smile); font-size: .85rem; margin-bottom: .15rem; }
.hotspot-tip span { display: block; color: #d7e1f2; font-size: .8rem; line-height: 1.4; }
.map-note { display: flex; align-items: center; justify-content: center; gap: .7rem;
  margin: 1.1rem auto 0; width: fit-content; max-width: 100%;
  background: rgba(16,28,48,.66); border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  padding: .65rem 1.2rem .65rem .9rem; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.map-note .ic { width: 24px; height: 24px; color: var(--smile); flex: none; }
.map-note strong { display: block; font-size: .9rem; line-height: 1.2; }
.map-note span { font-size: .76rem; color: #b9c6dd; }
@media (max-width: 900px) {
  .hero-map-grid { grid-template-columns: 1fr; }
  .hotspot-tip { max-width: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .hotspot { opacity: 1; animation: none; }
  .hotspot .pulse { animation: none; opacity: 0; }
}
.hero-eyebrow { display: inline-block; color: var(--smile); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; margin: 0 0 1rem;
  background: rgba(10,17,29,.45); padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid rgba(240,176,64,.4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero h1 { color: #fff; margin-bottom: .9rem; font-size: clamp(2.4rem, 8.5vw, 4rem); line-height: 1.04; letter-spacing: -.02em; text-wrap: balance; text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero h1 .smile-word { position: relative; white-space: nowrap; }
/* Spanish accent phrase is long ("preparado para ti."): let it wrap on narrow
   screens instead of overflowing; the smile underline spans the final line */
.hero-map h1 .smile-word { white-space: normal; }
.hero h1 .smile-word svg { position: absolute; left: 0; right: 0; bottom: -.28em; width: 100%; height: .5em; }
.hero h1 .accent { color: var(--smile); }
.hero-lede { font-size: 1.15rem; color: #b9c6dd; max-width: 46ch; }
.hero-lede strong { color: #fff; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin: 1.7rem 0 1.4rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; margin: 0; padding: 0; font-size: .95rem; color: #b9c6dd; }
.trust-row li { display: inline-flex; align-items: center; gap: .45rem; }
.trust-row .ic { color: var(--smile); width: 1.05em; height: 1.05em; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(420px, 100%); height: auto; filter: drop-shadow(0 24px 48px rgba(0,0,0,.45)); }
.hero-photo { margin: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.14); max-width: 440px; }
.hero-photo img { display: block; width: 100%; height: auto; }

.page-hero { background: var(--ink); color: #eaf0fa; padding: clamp(2rem, 5vw, 3.25rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .5rem; }
.page-hero p { color: #b9c6dd; font-size: 1.12rem; max-width: 60ch; margin-bottom: 0; }
.breadcrumbs { font-size: .9rem; color: #8a97a8; margin-bottom: 1.2rem; }
.breadcrumbs a { color: #b9c6dd; text-decoration: none; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs [aria-current] { color: #fff; }

/* ---------------- cards / grids ---------------- */
.grid { display: grid; gap: 1.25rem; }
.grid > * { min-width: 0; } /* prevent grid blowout on narrow columns */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.auto-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(12,21,36,.12); border-color: #c9d6ea; color: var(--ink); }
.card h3 { margin: 0; font-size: 1.12rem; }
.card p { margin: 0; color: var(--slate); font-size: .98rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: .4rem;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1.4);
}
.card-icon .ic { width: 26px; height: 26px; }
a.card:hover .card-icon { transform: rotate(-8deg) scale(1.08); }
.card-link { margin-top: auto; padding-top: .8rem; font-weight: 600; font-size: .95rem; color: var(--brand);
  display: inline-flex; align-items: center; gap: .4rem; }
.card-link .ic { width: 1em; height: 1em; transition: transform .2s ease; }
a.card:hover .card-link .ic { transform: translateX(4px); }

/* ---------------- services bento (home) ---------------- */
.svc-bento { display: grid; gap: 1.1rem; margin-top: 2.2rem;
  grid-template-columns: 1.3fr 1fr 1fr; }
.bento-cell { position: relative; display: flex; align-items: flex-end; overflow: hidden;
  border-radius: 22px; min-height: 250px; text-decoration: none; color: #fff;
  transition: transform .25s ease, box-shadow .25s ease; }
.bento-cell:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(12,21,36,.22); }
.bento-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.3,1); }
.bento-cell:hover img { transform: scale(1.05); }
.bento-cell::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,16,28,0) 30%, rgba(8,16,28,.78) 100%); }
.bento-body { position: relative; z-index: 1; padding: 1.35rem; }
.bento-body h3 { margin: 0 0 .3rem; font-size: 1.15rem; color: #fff; }
.bento-body p { margin: 0; font-size: .93rem; color: rgba(255,255,255,.85); }
.bento-main { grid-row: span 2; min-height: 100%; }
.bento-main .bento-body h3 { font-size: 1.6rem; }
.bento-main .bento-body p { font-size: 1.02rem; }
@media (max-width: 900px) {
  .svc-bento { grid-template-columns: 1fr 1fr; }
  .bento-main { grid-column: span 2; grid-row: auto; min-height: 300px; }
}
@media (max-width: 560px) {
  .svc-bento { grid-template-columns: 1fr; }
  .bento-main { grid-column: auto; min-height: 260px; }
  .bento-cell { min-height: 210px; }
}

/* ---------------- service index (home): the other 9 services ---------------- */
.more-svc-title { margin-top: 2.6rem; font-size: 1.25rem; }
.svc-index { list-style: none; margin: 1rem 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(3, 1fr); column-gap: 2.5rem; }
.svc-index li { border-bottom: 1px solid var(--line); }
.svc-index li:nth-child(-n+3) { border-top: 1px solid var(--line); }
.svc-index a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .9rem .15rem; text-decoration: none; color: var(--ink); }
.svc-index strong { font-weight: 600; font-size: .98rem; transition: color .18s ease; }
.svc-index span { font-size: .85rem; color: var(--slate-light); text-align: right; flex: none; }
.svc-index a:hover strong { color: var(--brand); }
@media (max-width: 900px) { .svc-index { grid-template-columns: 1fr 1fr; }
  .svc-index li:nth-child(-n+3) { border-top: 0; }
  .svc-index li:nth-child(-n+2) { border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .svc-index { grid-template-columns: 1fr; }
  .svc-index li:nth-child(-n+2) { border-top: 0; }
  .svc-index li:first-child { border-top: 1px solid var(--line); } }

/* feature cards (home) — soft cards in the Smili design language */
.features { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
.features > li {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.5rem 1.35rem;
  box-shadow: 0 6px 24px rgba(12,21,36,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.features > li:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.features h3 { font-size: 1.08rem; margin: 0 0 .45rem; }
.features p { margin: 0; color: var(--slate); font-size: .97rem; }

.check-list { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .ic { color: var(--ok); flex: none; width: 1.25em; height: 1.25em; margin-top: .2em; }
.lede { font-size: 1.12rem; color: var(--slate); max-width: 62ch; }

/* ---------------- steps ---------------- */
.steps { display: grid; gap: 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.6rem 1.4rem;
  box-shadow: 0 6px 24px rgba(12,21,36,.06);
  transition: transform .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-num { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #35a9dd 0%, var(--brand) 45%, var(--brand-deep) 100%);
  color: #fff; border: 3px solid #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 2rem;
  text-shadow: 0 1px 2px rgba(0,0,0,.18);
  box-shadow: 0 10px 24px rgba(27,127,180,.35), 0 0 0 6px var(--brand-soft);
  margin-bottom: 1.15rem; }
.step h3 { font-size: 1.1rem; margin: 0 0 .5rem; }
.step p { margin: 0; color: var(--slate); }

/* ---------------- faq accordion ---------------- */
.faq-list { display: grid; gap: .8rem; max-width: 820px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-plus { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--mist);
  display: inline-flex; align-items: center; justify-content: center; transition: transform .25s ease, background-color .25s ease; }
.faq-item summary .faq-plus .ic { width: 15px; height: 15px; }
.faq-item[open] summary .faq-plus { transform: rotate(45deg); background: var(--brand); color: #fff; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq-answer > div { overflow: hidden; }
.faq-item[open] .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { padding: 0 1.4rem 1.3rem; margin: 0; color: var(--slate); }

/* ---------------- contact ---------------- */
.contact-grid { display: grid; gap: 1.25rem; }
.contact-grid > *, .footer-grid > * { min-width: 0; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem;
  transition: transform .22s ease, box-shadow .22s ease; }
a.contact-card { text-decoration: none; color: var(--ink); display: block; }
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-card h2, .contact-card h3 { margin-top: 0; }
.contact-line { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-line .ic { width: 1.4em; height: 1.4em; color: var(--brand); flex: none; margin-top: .15em; }
.contact-line a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-line a:hover { color: var(--brand); }
.hours-list { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.4rem; margin: 0; }
.hours-list dt { font-weight: 600; }
.hours-list dd { margin: 0; color: var(--slate); text-align: right; }

/* quote / contact form */
.quote-form { background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 2rem; box-shadow: 0 12px 40px rgba(12,21,36,.08); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 1.25rem; }
.form-field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line);
  border-radius: 12px; font-size: 1rem; font-family: var(--font-body); background: #fff; color: var(--ink); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,127,180,.15); }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .quote-form { padding: 1.4rem; } }

/* ---------------- cta band ---------------- */
.cta-band { background: linear-gradient(135deg, var(--brand-deep), var(--brand) 70%); color: #fff; text-align: center; }
.cta-band-inner { display: flex; flex-direction: column; align-items: center; }
.smile-arc { width: 150px; height: auto; margin-bottom: 1rem; }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #dbe6ff; margin-bottom: 0; }
.cta-band .btn-row { justify-content: center; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--ink); color: #b9c6dd; padding: 0 0 0; }
.footer-cta {
  display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between;
  padding: 2.6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 2.6rem;
}
.footer-cta-text h2 { color: #fff; margin: 0 0 .4rem; font-size: clamp(1.4rem, 4vw, 1.9rem); }
.footer-cta-text p { margin: 0; color: #b9c6dd; }
.footer-cta-text a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--smile); }
.footer-cta-btns { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer-grid { display: grid; gap: 2.2rem; padding-bottom: 2rem; }
.footer-brand p { font-size: .95rem; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.site-footer h3 { color: #fff; font-size: .95rem; letter-spacing: .06em; margin-bottom: 1rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-nav a, .footer-contact a { color: #b9c6dd; text-decoration: none; font-size: .95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact address { font-style: normal; margin-bottom: 1.1rem; line-height: 1.9; }
.social-row { display: flex; gap: .7rem; margin-top: 1.2rem; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background-color .2s ease, transform .2s ease; }
.social-row a:hover { background: var(--brand); transform: translateY(-2px); color: #fff; }
.social-row .ic { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0 6.5rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .88rem; color: #8a97a8; }
.footer-bottom a { color: #b9c6dd; }
.smile-arc-sm { width: 74px; margin: 0; }

/* ---------------- sticky mobile CTA ---------------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; gap: .6rem; padding: .7rem .9rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(12, 21, 36, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.sticky-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none;
  padding: .85rem 1rem; border-radius: 12px; min-height: 48px;
}
.sticky-btn .ic { width: 1.15em; height: 1.15em; }
.sticky-call { background: var(--brand); color: #fff; }
.sticky-quote { background: var(--smile); color: var(--ink); }

/* ---------------- service page extras ---------------- */
.split { display: grid; gap: 2.5rem; align-items: start; }
.split > * { min-width: 0; } /* let grid children shrink below content width */
.kicker { font-family: var(--font-display); font-weight: 600; color: var(--brand); font-size: .95rem; margin-bottom: .4rem; }
.photo-frame { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(12,21,36,.14); }
.photo-frame img { display: block; width: 100%; height: auto; }
.photo-frame figcaption { padding: .7rem 1.1rem; font-size: .85rem; color: var(--slate); background: #fff; }

/* ---------------- why-us redesign (home) ---------------- */
.why { background: linear-gradient(180deg, var(--mist) 0%, #fff 90%); position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.why-media { position: relative; margin: 0 1.1rem 1.6rem 0; }
.why-media::before { content: ""; position: absolute; inset: 1.4rem -1.1rem -1.1rem 1.4rem;
  border: 3px solid var(--smile); border-radius: 30px; opacity: .85; }
.why-photo { margin: 0; border-radius: 26px; overflow: hidden; position: relative; z-index: 1;
  box-shadow: 0 30px 70px rgba(12,21,36,.2); }
.why-photo img { display: block; width: 100%; height: clamp(340px, 38vw, 520px); object-fit: cover; }
.why-card { position: absolute; z-index: 2; left: 1.2rem; bottom: -1.5rem;
  display: flex; align-items: center; gap: .7rem; background: #fff; border-radius: 16px;
  padding: .85rem 1.15rem .85rem .95rem; box-shadow: 0 18px 44px rgba(12,21,36,.2);
  border: 1px solid rgba(27,127,180,.16); max-width: 330px; }
.why-card .ic { width: 26px; height: 26px; color: var(--brand); flex: none; }
.why-card strong { display: block; font-size: .92rem; line-height: 1.25; }
.why-card span { font-size: .78rem; color: var(--slate); }
.why-lede { font-size: 1.1rem; color: var(--slate); max-width: 46ch; }
.why-steps { list-style: none; margin: 1.9rem 0 0; padding: 0; display: grid; gap: 1.5rem; position: relative; }
.why-steps::before { content: ""; position: absolute; left: 27px; top: 16px; bottom: 16px; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--smile)); opacity: .35; border-radius: 2px; }
.why-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 1.15rem; align-items: start; position: relative; }
.why-num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .02em;
  box-shadow: 0 12px 26px rgba(27,127,180,.32); position: relative; z-index: 1; flex: none; }
.why-steps li:nth-child(2) .why-num { background: linear-gradient(135deg, #2A9BD8, var(--brand)); }
.why-steps li:nth-child(3) .why-num { background: linear-gradient(135deg, var(--smile), #E09A20); box-shadow: 0 12px 26px rgba(240,176,64,.35); }
.why-steps h3 { margin: .35rem 0 .3rem; font-size: 1.18rem; }
.why-steps p { margin: 0; color: var(--slate); max-width: 44ch; }
.why-cta { margin-top: 2rem; }
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-photo img { height: clamp(260px, 70vw, 380px); }
  .why-card { left: .9rem; right: .9rem; bottom: .9rem; max-width: none; }
  .why-media { margin: 0 0 1rem; }
  .why-media::before { inset: 1rem -0.7rem -0.7rem 1rem; }
}
.pill-list { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 1.2rem 0; padding: 0; }
.pill-list li { background: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: .42rem .95rem; font-size: .92rem; font-weight: 500; }
.area-list { columns: 2; column-gap: 2rem; list-style: none; margin: 1.2rem 0; padding: 0; }
.area-list li { break-inside: avoid; padding: .35rem 0; display: flex; gap: .55rem; align-items: center; }
.area-list .ic { color: var(--brand); width: 1em; height: 1em; flex: none; }
.area-list a { color: var(--ink); font-weight: 600; text-decoration: underline;
  text-decoration-color: var(--smile); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.area-list a:hover { color: var(--brand-deep); }
.area-group h3 { display: flex; align-items: center; gap: .55rem; }
.area-group h3 .ic { color: var(--brand); }

/* ---------------- marquee strip ---------------- */
.marquee { overflow: hidden; background: var(--ink); color: #fff; padding: .8rem 0;
  border-top: 1px solid rgba(255,255,255,.08); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .02em;
  animation: marquee-scroll 28s linear infinite; }
.marquee-track span { display: inline-flex; align-items: center; gap: 2.5rem; }
.marquee-track .dot { color: var(--smile); font-style: normal; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }

/* ---------------- quote chat ---------------- */
.chat { width: 100%; max-width: 640px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; box-shadow: 0 12px 40px rgba(12,21,36,.1); }
.chat-header { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.25rem;
  background: var(--ink); color: #fff; }
.chat-avatar { width: 44px; height: 44px; border-radius: 13px; background: #fff; object-fit: contain; padding: 5px; }
.chat-header strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.chat-status { font-size: .8rem; color: #9FB3D8; display: flex; align-items: center; gap: .4rem; }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; display: inline-block;
  animation: fx-spark 2s ease-in-out infinite; }
.chat-window { height: 340px; overflow-y: auto; padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem;
  background: linear-gradient(180deg, #F6F9FF, #fff); }
.chat-msg { max-width: 82%; padding: .7rem 1rem; border-radius: 16px; font-size: .96rem; line-height: 1.45;
  animation: hero-rise .3s ease both; }
.chat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line);
  border-bottom-left-radius: 5px; color: var(--ink); box-shadow: 0 2px 8px rgba(12,21,36,.06); }
.chat-msg--user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.typing-dots { display: inline-flex; gap: 5px; align-items: center; padding: 4px 2px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: #9db3c7; animation: typing-bounce 1.1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-options { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.25rem; border-top: 1px solid var(--line);
  background: #fff; min-height: 3.4rem; align-items: center; }
.chat-chip { padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--brand);
  background: #EFF4FF; color: var(--brand-deep); font-weight: 600; font-size: .9rem; cursor: pointer;
  transition: all .18s ease; font-family: var(--font-display); }
.chat-chip:hover { background: var(--brand); color: #fff; transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(27,127,180,.3); }
.chat-chip.is-on { background: var(--smile); border-color: var(--smile); color: var(--ink); }
.chat-input { display: flex; gap: .6rem; flex-wrap: wrap; width: 100%; }
.chat-input input { flex: 1 1 160px; padding: .75rem 1rem; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 1rem; font-family: var(--font-body); color: var(--ink); }
.chat-input input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,127,180,.15); }
.chat-result { align-self: flex-start; background: var(--ink); color: #eaf0fa; border: none;
  box-shadow: 0 8px 24px rgba(12,21,36,.25); max-width: 100%; }
.chat-result h3 { color: #fff; margin: 0 0 .4rem; font-size: 1.05rem; font-family: var(--font-display); }
.chat-range { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--smile); margin-bottom: .6rem; }
.chat-lines { list-style: none; margin: 0 0 .8rem; padding: 0; }
.chat-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0;
  border-top: 1px solid rgba(255,255,255,.12); font-size: .93rem; }
.chat-lines li span:first-child { color: #b9c6dd; }
.chat-lines li span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.chat-disclaimer { margin: 0; font-size: .82rem; color: #8fa1bd; line-height: 1.5; }
.chat-textrow { display: flex; gap: .5rem; padding: .8rem 1.25rem; background: #fff; border-top: 1px solid var(--line); }
.chat-textrow input { flex: 1 1 auto; min-width: 0; padding: .7rem 1rem; border: 1.5px solid var(--line);
  border-radius: 999px; font-size: .95rem; font-family: var(--font-body); color: var(--ink); }
.chat-textrow input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(27,127,180,.15); }
.chat-textrow .btn { flex: none; border-radius: 999px; padding: .7rem 1.3rem; }
.chat-hint { width: 100%; margin: .2rem 0 0; font-size: .8rem; color: var(--slate-light); font-style: italic; }

/* ---------------- motion ---------------- */
@keyframes hero-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero [data-hero] { animation: hero-rise .65s cubic-bezier(.2, .7, .3, 1) both; }
.hero [data-hero="1"] { animation-delay: .05s; }
.hero [data-hero="2"] { animation-delay: .16s; }
.hero [data-hero="3"] { animation-delay: .27s; }
.hero [data-hero="4"] { animation-delay: .38s; }
.hero [data-hero="5"] { animation-delay: .5s; }

/* hero illustration motion */
@keyframes fx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes fx-spark { 0%, 100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes fx-spin { to { transform: rotate(360deg); } }
@keyframes fx-spin-rev { to { transform: rotate(-360deg); } }
@keyframes fx-smile-draw { 0%, 40% { stroke-dashoffset: 72; opacity: 0; } 46% { opacity: 1; } 58%, 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes fx-smile-pop { 0%, 52% { opacity: 0; transform: scale(.4); } 64%, 92% { opacity: 1; transform: scale(1); } 100% { opacity: 1; transform: scale(1); } }
.hero-art .fx-float { animation: fx-float 6.5s ease-in-out infinite; }
.hero-art .fx-smile path { stroke-dasharray: 72; animation: fx-smile-draw 6.5s ease-in-out infinite; }
.hero-art .fx-smile circle { transform-box: fill-box; transform-origin: center; animation: fx-smile-pop 6.5s ease-in-out infinite; }
.hero-art .fx-spark { transform-box: fill-box; transform-origin: center; animation: fx-spark 2.6s ease-in-out infinite; }
.hero-art .fx-spark-2 { animation-delay: .8s; }
.hero-art .fx-spark-3 { animation-delay: 1.6s; }
.hero-art .fx-orbit { transform-box: fill-box; transform-origin: center; animation: fx-spin 60s linear infinite; }
.hero-art .fx-orbit-rev { animation: fx-spin-rev 45s linear infinite; }
.hero-art .fx-blink { animation: fx-spark 2.2s ease-in-out infinite; }
.hero-art .fx-wifi { transform-box: fill-box; transform-origin: center; animation: fx-wifi-pulse 3.2s ease-in-out infinite; }
@keyframes fx-wifi-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* button shine + press */
.btn { position: relative; overflow: hidden; }
.btn-primary::after, .btn-quote::after { content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .55s ease; }
.btn-primary:hover::after, .btn-quote:hover::after { left: 130%; }
.btn:active { transform: translateY(1px) scale(.99); }

/* nav underline */
.nav-list > li > a { position: relative; }
.nav-list > li > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px;
  background: var(--brand); border-radius: 2px; transition: right .22s ease; }
.nav-list > li > a:hover::after, .nav-list > li > a.is-active::after { right: 0; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
/* stagger: cards in a grid rise one after another */
.svc-bento .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.svc-bento .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.svc-bento .reveal:nth-child(4) { transition-delay: .24s; }
.svc-bento .reveal:nth-child(5) { transition-delay: .32s; }
.svc-index .reveal:nth-child(3n+2) { transition-delay: .06s; }
.svc-index .reveal:nth-child(3n) { transition-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-art .fx-smile path { stroke-dashoffset: 0; }
}

/* ---------------- responsive ---------------- */
@media (min-width: 760px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1.2fr .8fr; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.05fr 1.6fr .95fr; }
  .area-list { columns: 3; }
}
@media (max-width: 900px) {
  .topbar-hours { display: none; }
  .topbar-inner { gap: .9rem; justify-content: flex-end; }
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .site-header .brand, .nav-toggle { position: relative; z-index: 95; }
  .site-nav { position: static; }
  .nav-list { display: none; }
  .nav-toggle { display: block; -webkit-tap-highlight-color: transparent; cursor: pointer; }
  .nav-cb { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  /* (mobile menu overlay styles live in the v6 block below) */
  body.nav-open, body:has(.nav-cb:checked) { overflow: hidden; }
  body.nav-open .topbar, body:has(.nav-cb:checked) .topbar { display: none; }
  body.nav-open .sticky-cta, body:has(.nav-cb:checked) .sticky-cta { display: none; }
  body.nav-open .site-header, body:has(.nav-cb:checked) .site-header { position: fixed; top: 0; left: 0; right: 0; }
  details.mm-group { border-bottom: 1px solid var(--line); }
  .mm-group-btn { display: flex; align-items: center; justify-content: space-between; width: 100%;
    padding: 1.05rem .1rem; background: none; border: 0; cursor: pointer; text-align: left;
    font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; color: var(--ink);
    -webkit-tap-highlight-color: transparent; list-style: none; }
  .mm-group-btn::-webkit-details-marker { display: none; }
  .mm-group-btn::marker { content: ""; }
  .mm-chev { width: 32px; height: 32px; padding: 8px; border-radius: 50%; flex: none;
    background: var(--mist); color: var(--slate);
    transition: transform .3s ease, background .3s ease, color .3s ease; }
  details.mm-group[open] > .mm-group-btn { color: var(--brand-deep); }
  details.mm-group[open] .mm-chev { transform: rotate(180deg); background: var(--brand-soft); color: var(--brand-deep); }
  .mm-sub { max-height: 0; overflow: hidden; transition: max-height .38s ease; }
  details.mm-group[open] > .mm-sub { max-height: 1400px; }
  .mm-sub ul { list-style: none; margin: 0 0 1rem; padding: .5rem; display: grid; gap: 2px;
    background: var(--mist); border-radius: 18px; }
  .mm-sub a { display: flex; align-items: center; gap: .85rem; padding: .68rem .6rem; border-radius: 13px;
    font-size: 1rem; font-weight: 500; color: var(--ink); text-decoration: none; }
  .mm-sub a:hover { background: #fff; color: var(--brand-deep); }
  .mm-sub a .ic { width: 40px; height: 40px; padding: 10px; flex: none; background: #fff;
    color: var(--brand-deep); border-radius: 13px; box-shadow: 0 1px 4px rgba(12,21,36,.09); }
  .mm-quick { list-style: none; margin: 0; padding: 0; }
  .mm-quick li { border-bottom: 1px solid var(--line); }
  .mm-quick li:last-child { border-bottom: 0; }
  .mm-quick a { display: flex; align-items: center; justify-content: space-between;
    padding: 1.05rem .1rem; font-size: 1.12rem; font-weight: 700; font-family: var(--font-display);
    color: var(--ink); text-decoration: none; }
  .mm-quick .mm-chev { transform: rotate(-90deg); }
  .mm-cta { position: -webkit-sticky; position: sticky; bottom: 0; display: flex; gap: .7rem; margin-top: 1.3rem;
    padding: 1rem 0 .2rem; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 32%); }
  .mm-cta .btn { flex: 1 1 0; justify-content: center; padding: 1rem .5rem; font-size: 1rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1),
  .nav-cb:checked ~ .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2),
  .nav-cb:checked ~ .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3),
  .nav-cb:checked ~ .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}
@media (max-width: 759px) {
  body { font-size: 1rem; }
  .brand-logo { height: 44px; }
  .sticky-cta { display: flex; }
  .footer-bottom { padding-bottom: 7.5rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(300px, 86%); }
  .form-grid { grid-template-columns: 1fr; }
}

/* ---------------- services mega dropdown ---------------- */
.nav-drop-wide { min-width: 660px; }
.nav-drop-wide > ul { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem .5rem; }

/* ---------------- service tiles (home): legacy hook, styles live above ---------------- */

/* ---------------- footer services ---------------- */
.footer-subhead { margin-top: 1.4rem; }
@media (min-width: 760px) {
  .footer-nav-services ul { grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
}

/* ============================================================
   PREMIUM REBUILD v6 — header, nav, mobile menu, footer, rhythm
   Override layer: everything below wins over the base styles.
   ============================================================ */
:root { --header-h: 76px; }

/* ---------- rhythm: tighten non-essential gaps ---------- */
section { padding: clamp(1.5rem, 3.5vw, 2.5rem) 0; }
.hero-split { padding: clamp(1.5rem, 3.5vw, 2.5rem) 0 0; }
.page-hero { padding: clamp(1.25rem, 3vw, 2rem) 0; }
.hero-bg .hero-ctas { margin: 1.6rem 0 1.3rem; }
.card-grid, .steps { gap: 1.1rem; }

/* ---------- topbar: scrolls away naturally (sits above the fixed header) ---------- */
.topbar { background: #0a1220; }
.topbar-inner { padding-top: .32rem; padding-bottom: .32rem; font-size: .78rem; }
.topbar-loc { display: inline-flex; align-items: center; gap: .35rem; opacity: .7; }
.topbar-loc .ic { width: 14px; height: 14px; }
@media (max-width: 900px) { .topbar-loc { display: none; } }

/* ---------- header: entrance, shrink + shadow on scroll ---------- */
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
.site-header {
  /* sticky (not fixed): sits in normal flow BELOW the topbar, so the topbar
     stays on top and scrolls away naturally; the header then sticks to the
     viewport top. No shrink-on-scroll anymore, so the old sticky feedback
     loop can't come back. */
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(12, 21, 36, .07);
  box-shadow: 0 1px 0 rgba(12, 21, 36, .04);
  transition: box-shadow .3s ease;
  animation: header-in .55s cubic-bezier(.2, .7, .3, 1) both;
}
/* (no body padding-top: the sticky header stays in flow, so nothing hides under it) */
body.is-scrolled .site-header { box-shadow: 0 10px 30px rgba(12, 21, 36, .10); }
.header-inner { min-height: var(--header-h); }

/* logo: calm, confident — no infinite bounce */
.brand-logo { height: 48px; animation: none; }
.brand-logo-footer { height: 54px; }
.brand:hover .brand-logo { filter: drop-shadow(0 6px 14px rgba(240, 176, 64, .4)); }

/* ---------- desktop nav: orange underline grow ---------- */
.nav-list { gap: .1rem; }
.nav-list > li > a:not(.btn), .nav-list > li > .nav-drop-btn { white-space: nowrap; }
/* Spanish labels run longer ("Preguntas frecuentes", "Áreas de servicio"):
   tighten spacing so nothing wraps or squeezes unevenly on desktop */
html[lang="es"] .nav-list > li > a:not(.btn), html[lang="es"] .nav-list > li > .nav-drop-btn {
  padding-left: .62rem; padding-right: .62rem; font-size: .93rem;
}
html[lang="es"] .nav-list > li > a:not(.btn)::after { left: .62rem; right: .62rem; }
.nav-list > li > a:not(.btn), .nav-list > li > .nav-drop-btn {
  position: relative; padding: .62rem .85rem; border-radius: 10px;
  font-weight: 600; font-size: .97rem; color: var(--ink);
}
.site-header .nav-list > li > a:not(.btn):hover { background: transparent; color: var(--ink); }
.nav-list > li > a:not(.btn)::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 3px; border-radius: 3px; background: var(--smile);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .26s cubic-bezier(.2, .7, .3, 1);
}
.nav-list > li > a:not(.btn):hover::after,
.nav-list > li > a:not(.btn).is-active::after { transform: scaleX(1); }
.nav-list > li > a:not(.btn).is-active { color: var(--ink); }
.nav-drop-btn:hover { background: transparent; color: var(--ink); }
.has-sub.open .nav-drop-btn { color: var(--brand-deep); }

/* ---------- dropdown: premium panel, icon chips, stagger ---------- */
.nav-drop {
  border-radius: 20px; padding: .65rem;
  border: 1px solid rgba(12, 21, 36, .07);
  box-shadow: 0 28px 70px rgba(12, 21, 36, .18);
  top: calc(100% + 12px); min-width: 300px;
}
.nav-drop-wide { min-width: 680px; }
.nav-drop a { border-radius: 13px; padding: .62rem .7rem; transition: background .16s ease, transform .16s ease; }
.nav-drop a:hover { background: var(--mist); transform: translateX(3px); }
.nav-drop a .ic {
  width: 38px; height: 38px; padding: 9px; flex: none;
  background: var(--brand-soft); color: var(--brand-deep); border-radius: 12px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.nav-drop a:hover .ic { background: var(--brand); color: #fff; transform: scale(1.05); }
@keyframes drop-item { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.has-sub.open .nav-drop li, .has-sub:hover .nav-drop li, .has-sub:focus-within .nav-drop li {
  animation: drop-item .3s cubic-bezier(.2, .7, .3, 1) both;
}
.has-sub.open .nav-drop li:nth-child(2), .has-sub:hover .nav-drop li:nth-child(2), .has-sub:focus-within .nav-drop li:nth-child(2) { animation-delay: .025s; }
.has-sub.open .nav-drop li:nth-child(3), .has-sub:hover .nav-drop li:nth-child(3), .has-sub:focus-within .nav-drop li:nth-child(3) { animation-delay: .05s; }
.has-sub.open .nav-drop li:nth-child(4), .has-sub:hover .nav-drop li:nth-child(4), .has-sub:focus-within .nav-drop li:nth-child(4) { animation-delay: .075s; }
.has-sub.open .nav-drop li:nth-child(5), .has-sub:hover .nav-drop li:nth-child(5), .has-sub:focus-within .nav-drop li:nth-child(5) { animation-delay: .1s; }
.has-sub.open .nav-drop li:nth-child(6), .has-sub:hover .nav-drop li:nth-child(6), .has-sub:focus-within .nav-drop li:nth-child(6) { animation-delay: .125s; }

/* ---------- header actions: CTA ---------- */
.header-actions { display: flex; align-items: center; gap: .7rem; margin-left: .7rem; }
.header-actions .btn-quote { box-shadow: 0 8px 20px rgba(240, 176, 64, .35); }
.header-actions .btn-quote:hover { box-shadow: 0 10px 24px rgba(27, 127, 180, .35); }

/* ---------- mobile menu: full overlay panel ---------- */
@media (max-width: 900px) {
  .header-actions { display: none; }
  .mobile-menu {
    display: block;
    position: absolute; top: 0; left: 0; right: 0;
    height: 100dvh; max-height: none;
    background: #fff;
    box-shadow: 0 24px 70px rgba(12, 21, 36, .20);
    padding: calc(var(--header-h) + 1rem) 1.4rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .34s cubic-bezier(.32, .72, 0, 1), opacity .3s ease, visibility 0s .34s;
    z-index: 60;
  }
  .mobile-menu.is-open,
  .nav-cb:checked ~ .mobile-menu { transform: none; opacity: 1; visibility: visible; transition: transform .34s cubic-bezier(.32, .72, 0, 1), opacity .3s ease; }
  /* keep the brand row and the X above the overlay (isolation keeps the
     header as the menu's full-width containing block) */
  body.nav-open .header-inner, body:has(.nav-cb:checked) .header-inner { isolation: isolate; }
  body.nav-open .brand, body:has(.nav-cb:checked) .brand,
  body.nav-open .nav-toggle, body:has(.nav-cb:checked) .nav-toggle { position: relative; z-index: 62; }
  .mm-title {
    font-family: var(--font-display); font-weight: 700; font-size: .8rem;
    letter-spacing: .16em; text-transform: uppercase; color: var(--slate-light);
    margin: 0 0 .4rem; padding: 0 .1rem;
  }
  @keyframes menu-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  .nav-cb:checked ~ .mobile-menu .mm-group,
  .nav-cb:checked ~ .mobile-menu .mm-quick li,
  .nav-cb:checked ~ .mobile-menu .mm-cta { animation: menu-in .42s cubic-bezier(.2, .7, .3, 1) both; }
  .nav-cb:checked ~ .mobile-menu .mm-quick li:nth-child(1) { animation-delay: .10s; }
  .nav-cb:checked ~ .mobile-menu .mm-quick li:nth-child(2) { animation-delay: .15s; }
  .nav-cb:checked ~ .mobile-menu .mm-quick li:nth-child(3) { animation-delay: .20s; }
  .nav-cb:checked ~ .mobile-menu .mm-quick li:nth-child(4) { animation-delay: .25s; }
  .nav-cb:checked ~ .mobile-menu .mm-cta { animation-delay: .32s; }
  details.mm-group { border-bottom: 1px solid var(--line); }
  .mm-group-btn { font-size: 1.2rem; padding: 1.1rem .1rem; }
  .mm-quick a { font-size: 1.2rem; padding: 1.1rem .1rem; }
  .mm-sub ul { border-radius: 16px; }
  .mm-cta { margin-top: 1.5rem; }
  .mm-cta .btn { padding: 1.05rem .5rem; font-size: 1.02rem; border-radius: 16px; }

  /* services as a swipeable snap carousel on phones */
  #services .card-grid {
    display: flex; gap: .9rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 -1.25rem; padding: .25rem 1.25rem 1.25rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  #services .card-grid::-webkit-scrollbar { display: none; }
  #services .card-grid .photo-card {
    flex: 0 0 76%; max-width: 330px; scroll-snap-align: center;
  }
  #services .card-grid .photo-card:hover { transform: none; }
}

/* ---------- footer: premium deep-navy ---------- */
.site-footer { background: #0a1220; color: #aebdce; }
.footer-cta {
  display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #16334f 0%, #0a1220 78%);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 26px;
  padding: clamp(1.9rem, 4.5vw, 3rem);
  margin: clamp(2.2rem, 5vw, 3.6rem) auto 0;
  position: relative; overflow: hidden;
}
.footer-cta::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--smile), var(--brand));
}
.footer-cta::after {
  content: ""; position: absolute; width: 340px; height: 340px; right: -110px; top: -110px;
  background: radial-gradient(circle, rgba(240, 176, 64, .16), transparent 65%);
  pointer-events: none;
}
.footer-cta-text { position: relative; z-index: 1; }
.footer-cta-eyebrow {
  color: var(--smile); font-weight: 700; font-size: .78rem; letter-spacing: .16em;
  text-transform: uppercase; margin: 0 0 .55rem;
}
.footer-cta-text h2 { color: #fff; margin: 0 0 .45rem; font-size: clamp(1.5rem, 4.4vw, 2.1rem); letter-spacing: -.02em; }
.footer-cta-text p { margin: 0; color: #b9c6dd; max-width: 44ch; }
.footer-cta-text a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--smile); }
.footer-cta-btns { display: flex; gap: .85rem; flex-wrap: wrap; position: relative; z-index: 1; }
.footer-cta-btns .btn-quote { box-shadow: 0 8px 22px rgba(240, 176, 64, .35); }
.footer-grid { display: grid; gap: 2.4rem; padding: 3rem 0 2.4rem; }
.footer-brand p { font-size: .95rem; color: #93a5bd; max-width: 34ch; }
.brand-footer { margin-bottom: 1.1rem; }
.site-footer h3 {
  color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 1.15rem;
  display: flex; align-items: center; gap: .6rem;
}
.site-footer h3::after { content: ""; height: 2px; width: 26px; background: var(--smile); border-radius: 2px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-nav a {
  color: #aebdce; text-decoration: none; font-size: .94rem; display: inline-block;
  transition: color .2s ease, transform .2s ease;
}
.footer-nav a:hover { color: #fff; transform: translateX(5px); }
.footer-contact address { font-style: normal; line-height: 2; margin-bottom: 1.2rem; display: grid; gap: .15rem; }
.footer-contact address a { color: #aebdce; text-decoration: none; font-size: .94rem; transition: color .2s ease; }
.footer-contact address a:hover { color: #fff; }
.footer-phone { color: #fff !important; font-weight: 800; font-size: 1.25rem !important; font-family: var(--font-display); letter-spacing: -.01em; }
.footer-phone:hover { color: var(--smile) !important; }
.hours-list dt { color: #dbe4f2; }
.hours-list dd { color: #8fa1bd; }
.footer-directions { margin-top: 1.3rem; }
.footer-phone { display: inline-block; margin-bottom: .7rem; }
.footer-line { margin: 0 0 .45rem; font-size: .94rem; }
.footer-line a { color: #aebdce; text-decoration: none; transition: color .2s ease; }
.footer-line a:hover { color: #fff; }
.footer-hours { list-style: none; margin: 1.1rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: .45rem; font-size: .88rem; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; }
.footer-hours li span:first-child { color: #dbe4f2; }
.footer-hours li span:last-child { color: #8fa1bd; text-align: right; white-space: nowrap; }
a.footer-directions { display: inline-flex; align-items: center; gap: .45rem; margin-top: 1.15rem;
  color: var(--smile); font-weight: 700; font-size: .94rem; text-decoration: none; }
a.footer-directions:hover { color: #fff; }
a.footer-directions .ic { width: 1.05em; height: 1.05em; }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; }
.footer-legal a { color: #8fa1bd; text-decoration: none; font-size: .88rem; transition: color .2s ease; }
.footer-legal a:hover { color: #fff; }
.footer-bottom { justify-content: space-between; }
.footer-bottom p { order: 1; }
.footer-legal { order: 2; }
.to-top { order: 3; margin-left: auto; }
@media (max-width: 760px) {
  .footer-legal { order: 3; width: 100%; }
  .to-top { order: 2; }
}
.social-row { margin-top: 1.4rem; }
.social-row a {
  width: auto; height: auto; padding: .62rem 1.15rem; border-radius: 999px;
  background: rgba(255, 255, 255, .07); color: #fff; gap: .5rem;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .10);
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.social-row a:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-2px); color: #fff; }
.social-row .ic { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding: 1.5rem 0 6.5rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer-bottom p { margin: 0; font-size: .86rem; color: #7d90ab; }
.to-top {
  display: inline-flex; align-items: center; gap: .45rem; color: #dbe4f2 !important;
  text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: .55rem 1.05rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.to-top:hover { border-color: var(--smile); color: var(--smile) !important; transform: translateY(-2px); }
.to-top .ic { width: 1em; height: 1em; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.05fr 1.6fr .95fr; }
}

/* ---------- reduced motion: new animations obey ---------- */
@media (prefers-reduced-motion: reduce) {
  .site-header { animation: none; }
  .has-sub.open .nav-drop li, .has-sub:hover .nav-drop li, .has-sub:focus-within .nav-drop li { animation: none; }
  .nav-cb:checked ~ .mobile-menu .mm-group,
  .nav-cb:checked ~ .mobile-menu .mm-quick li,
  .nav-cb:checked ~ .mobile-menu .mm-cta { animation: none; }
}

/* one language button in the topbar: flag of the language you switch to, flag only, desktop + mobile */
.lang-flag { display: inline-flex; align-items: center; padding: .3rem;
  border: 0; border-radius: 8px; background: transparent; text-decoration: none; flex: none;
  transition: transform .15s ease, background .15s ease; }
.lang-flag:hover { transform: translateY(-1px); background: rgba(255,255,255,.14); }
.lang-flag .flag { width: 26px; height: 19px; display: block; }
