/* =========================================================
   OneSolution® Dental Implant Centers — main stylesheet
   Built from the Figma design (desktop frame 1728px wide).
   ========================================================= */

:root {
  --blue: #00b9f2;
  --blue-btn: #00bbf1;
  --blue-cost: #00bcf8;
  --blue-light: #36cdfb;
  --blue-band: #00a2dc;
  --navy: #004886;
  --navy-mark: #004c91;
  --orange: #ff6700;
  --orange-form: #ee7b30;
  --green: #75c459;
  --soft: #f1f8fb;
  --card-gray: #f7f7f7;
  --dark: #222;
  --ink: #060c17;
  --ink-2: #1d1d1f;
  --muted: rgba(0, 0, 0, 0.59);
  --line: #626262;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --font-nav: 'Inter', sans-serif;

  --container: 1440px;   /* max content width: header, sections, footer */

  --fs-xl: clamp(28px, calc(2.2vw + 10px), 48px);
  --fs-lg: clamp(26px, calc(1.75vw + 10px), 40px);
}

*, *::before, *::after { box-sizing: border-box; }

/* scroll-padding-top: in-page links (#schedule…) stop below the sticky header */
html { scroll-behavior: smooth; scroll-padding-top: 160px; }

body {
  margin: 0;
  background: #fff;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: 17.4px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container,
.wrap { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
/* Elements that slide in from the side (animations) must never cause a sideways scroll.
   clip (unlike hidden) doesn't create a scroll box, so the sticky header etc. keep working. */
.site-main { overflow-x: clip; }
.text-center { text-align: center; }
.nowrap { white-space: nowrap; }
.c-blue { color: var(--blue); }

/* ---------- Type ---------- */
.h-xl {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xl);
  line-height: 1.22;
  letter-spacing: 0.75px;
  color: var(--ink);
}
.h-lg {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-lg);
  line-height: 1.2;
  color: var(--ink);
}
.body-text {
  margin: 0;
  font-size: 17.4px;
  line-height: 28px;
  letter-spacing: -0.36px;
  color: var(--muted);
}

/* Highlighted words ("3 hours", "METAL!", "PATIENT TESTIMONIALS"…) */
.mark {
  display: inline-block;
  margin: 0;
  padding: 0 17px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: inherit;
  line-height: 1.2;
  letter-spacing: -1.04px;
}
.mark-navy { background: var(--navy-mark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(250px, 100%);
  min-height: 54px;
  padding: 8px 20px;
  border: 2px solid transparent;
  border-radius: 25px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
  white-space: normal;      /* single line normally; wraps instead of spilling out if a translation is too long */
  line-height: 1.15;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue-btn); color: #fff; }
.btn-blue:hover { background: #009fd0; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #003a6c; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #e85d00; }
.btn-white { background: #fff; color: var(--dark); min-width: min(288px, 100%); }
.btn-white:hover { background: var(--blue-btn); color: #fff; }
.btn-outline-blue { border-color: var(--blue-btn); color: var(--blue-btn); }
.btn-outline-blue:hover { background: var(--blue-btn); color: #fff; }
.btn-outline-white { border-color: #fff; color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--blue-cost); }

.btn-row { display: flex; flex-wrap: wrap; gap: 11px; }
.btn-row > .btn { flex-shrink: 0; max-width: 100%; }   /* never squash button text (longer translations wrap the row instead) */
.btn-row.center { justify-content: center; }

/* ---------- Rounded section panels ---------- */
.panel { position: relative; border-radius: 25px; }
.panel-soft { background: var(--soft); }
.panel-blue { background: var(--blue-cost); color: #fff; }
.panel-dark { background: var(--dark); color: #fff; }

/* ---------- Video thumbnails + play button ---------- */
.video-card { position: relative; overflow: hidden; border-radius: 25px; background: #111; }
.video-card > img { width: 100%; height: 100%; object-fit: cover; }
.video-card::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.35); pointer-events: none;
}
.play-btn {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 60px; height: 60px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: url(/assets/img/circle-play.svg) center / 60px 60px no-repeat;
  transition: transform .2s;
}
.play-btn span {
  position: absolute; left: 50%; top: 50%;
  width: 0; height: 0;
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  transform: translate(-38%, -50%);
}
.play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }

/* =========================================================
   HEADER
   ========================================================= */
/* Sticky header: floats over the hero, stays at the top while scrolling */
.site-header {
  position: fixed; top: 27px; left: 0; right: 0; z-index: 50;
  padding: 0 16px;
  pointer-events: none;   /* the empty space beside the header card stays clickable */
  transition: top .25s ease;
}
.site-header .header-card { pointer-events: auto; transition: filter .25s ease; }
.site-header.is-scrolled { top: 10px; }
.site-header.is-scrolled .header-card { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18)); }
.header-card {
  position: relative;
  max-width: var(--container); height: 128px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  filter: drop-shadow(0 4px 2px rgba(0, 0, 0, 0.15));
}
.logo { position: absolute; left: 35px; top: 41px; }
.logo img { width: 210px; height: auto; }

.header-tabs {
  position: absolute; top: 0; right: 36px;
  display: flex; align-items: flex-start; gap: 5px;
}
.header-tab {
  display: block;
  padding: 0 25px;
  border-radius: 0 0 15px 15px;
  font-weight: 600; font-size: 16px; line-height: 45px;
  letter-spacing: 0.8px; text-transform: uppercase;
  color: #fff; text-decoration: none; white-space: nowrap;
  transition: filter .2s;
}
.header-tab:hover { filter: brightness(1.1); }
.tab-navy { background: var(--navy); }
.tab-blue { background: var(--blue); }

.lang-pill {
  position: relative;
  margin-top: 1px;
  background: #fff;
  border-radius: 2px 2px 15px 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

/* Translated pages (GTranslate sets <html lang="es">): longer words → slightly tighter desktop menu */
html:not([lang="en"]) .main-nav a, html:not([lang="en"]) .main-nav span { font-size: 13.5px; padding-left: 5px; padding-right: 5px; }
html:not([lang="en"]) .main-nav ul { gap: 0; }
html:not([lang="en"]) .header-phone { font-size: 12.5px; }

@media (min-width: 1440px) and (max-width: 1599px) {
  html:not([lang="en"]) .header-nav .header-phone { display: none; }   /* translated menu is longer: make room beside the logo */
}

/* GTranslate widget inside the language pill — styled like the design's "EN" pill */
.lang-pill.gtranslate_wrapper { min-width: 114px; min-height: 45px; }
.lang-pill #gt_float_wrapper { position: relative; }
.lang-pill .gt_float_switcher {
  box-shadow: none !important; background: transparent !important; border-radius: 0 0 15px 15px !important;
  font-family: var(--font-body) !important; font-size: 16px !important; font-weight: 700 !important; line-height: 20px !important;
  color: #333 !important; overflow: visible !important;
}
.lang-pill .gt_float_switcher .gt-selected { background: transparent !important; border-radius: 0 0 15px 15px; }
.lang-pill .gt_float_switcher .gt-selected .gt-current-lang {
  display: flex !important; align-items: center; gap: 9px;
  padding: 10px 15px !important; color: #333 !important; font-weight: 700 !important;
}
.lang-pill .gt_float_switcher img { width: 33px !important; height: 25px !important; margin: 0 !important; border-radius: 3px; object-fit: cover; }
.lang-pill .gt-lang-code { text-transform: uppercase; letter-spacing: 0.8px; }
.lang-pill .gt_float_switcher .gt-selected .gt-current-lang span.gt_float_switcher-arrow { margin-left: 0 !important; }
/* the drop-down with the other language(s) */
.lang-pill .gt_float_switcher .gt_options {
  position: absolute !important; top: 100%; left: 0; right: 0; z-index: 60;
  background: #fff !important; border-radius: 0 0 15px 15px; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}
.lang-pill .gt_float_switcher .gt_options a { display: flex !important; align-items: center; gap: 9px; padding: 8px 15px !important; font-size: 15px !important; color: #333 !important; }
.lang-pill .gt_float_switcher .gt_options a:hover { background: var(--soft) !important; color: var(--blue) !important; }

.header-nav {
  position: absolute; right: 64px; top: 60px;
  display: flex; align-items: center; gap: 16px;
}
.main-nav ul { display: flex; gap: 3.7px; margin: 0; padding: 0; list-style: none; }
.main-nav a, .main-nav span {
  display: block;
  padding: 14.75px 7px 15.25px;
  font-family: var(--font-nav); font-weight: 500; font-size: 15px; line-height: 15px;
  color: rgba(0, 0, 0, 0.8); text-decoration: none; white-space: nowrap;
}
.main-nav a:hover { color: var(--blue); }
.header-phone {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-nav); font-weight: 500; font-size: 13.3px; line-height: 22.75px;
  color: #000; text-decoration: none; white-space: nowrap;
}
.header-phone img { width: 18px; height: 18px; }
.header-phone:hover { color: var(--blue); }
.header-nav-cta { display: none; }

.nav-toggle {
  display: none;
  position: absolute; right: 24px; top: 50%;
  width: 46px; height: 46px; padding: 11px;
  transform: translateY(-50%);
  border: 0; border-radius: 12px; background: var(--soft);
  cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; margin: 4px 0; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO + QUIZ
   ========================================================= */
.hero {
  position: relative;
  min-height: 0;          /* height follows the content (design: 917px) */
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
/* Background video: covers the whole hero like a cover photo (16:9 video, cropped to fit).
   It sits inside .hero-text but is positioned against .hero on desktop. */
.hero-video {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; container-type: size; pointer-events: none;
  background: #1b1b1b;   /* shows while the video loads */
}
.hero-video::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }   /* dark tint for the white text */
.hero-video iframe {
  position: absolute; left: 50%; top: 50%;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%);
  border: 0;
}
/* Autoplay videos stay invisible until Vimeo is really playing (js/main.js) */
.bg-video iframe { opacity: 0; transition: opacity .8s ease; }
.bg-video.is-playing iframe { opacity: 1; }

.hero-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding: 195px 112px 40px 52px;   /* header ends at 155px → 40px gap above the quiz card, 40px below */
}
.hero-text { max-width: 565px; }
.hero-eyebrow {
  margin: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 18px; line-height: 22px;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero h1 {
  margin: 2px 0 0;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(40px, calc(3vw + 12px), 64px); line-height: 1.22;
  letter-spacing: 1px; text-transform: uppercase;
}
.hero-sub {
  max-width: 543px;
  margin: 4px 0 0;
  font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 27px;
  letter-spacing: 1px; text-transform: uppercase;
}

.quiz-card {
  flex: none;
  width: 610px;
  padding: 28px 32px 26px;
  border-radius: 25px;
  background: var(--blue);
}
.quiz-title {
  margin: 0;
  font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 26px;
  letter-spacing: 0.8px; text-transform: uppercase; text-align: center;
}
.quiz-title strong { font-weight: 700; }
.quiz-embed { margin: 10px -8px 0; min-height: 340px; }   /* GHL survey; height set by form_embed.js */
.quiz-embed iframe { display: block; width: 100%; min-height: 340px; border: 0; }
.quiz-disclaimer {
  margin: 12px 0 0;
  font-size: 11px; line-height: 15px; letter-spacing: 0.4px; opacity: .9; text-align: center;
}

/* =========================================================
   ONESOLUTION DIFFERENCE — BEFORE & AFTER SLIDER
   ========================================================= */
.diff { margin-top: 61px; }
.diff-title { max-width: 904px; margin: 0 auto; color: var(--ink-2); letter-spacing: 1px; text-transform: uppercase; }
.diff-sub {
  max-width: 904px;
  margin: 27px auto 0;
  font-size: 20px; line-height: 1.3; letter-spacing: 0.8px; text-transform: uppercase;
}
.ba-slider { position: relative; margin-top: 46px; }
.ba-track {
  position: relative;
  display: flex; gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.ba-track::-webkit-scrollbar { display: none; }
.ba-slide {
  position: relative;
  flex: 0 0 430px; height: 432px;
  margin: 0;
  overflow: hidden;
  border-radius: 25px;
  scroll-snap-align: center;
}
.ba-slide img { width: 100%; height: 100%; object-fit: cover; }
.ba-label {
  position: absolute; bottom: 27px;
  font-weight: 500; font-size: 14px; line-height: 21px; letter-spacing: 1px; color: #fff;
}
.ba-before { left: 28px; }
.ba-after { left: 232px; }
.ba-arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 60px; height: 60px; padding: 0;
  transform: translateY(-50%);
  border: 0; border-radius: 50%;
  background: center / 60px 60px no-repeat;
  cursor: pointer;
  transition: transform .2s;
}
.ba-arrow::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 15px; height: 15px;
  border-top: 5px solid #fff; border-right: 5px solid #fff;
}
.ba-prev { left: max(12px, calc(50% - var(--container) / 2 + 13px)); background-image: url(/assets/img/circle-prev.svg); }
.ba-next { right: max(12px, calc(50% - var(--container) / 2 + 8px)); background-image: url(/assets/img/circle-next.svg); }
.ba-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.ba-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.ba-arrow:hover { transform: translateY(-50%) scale(1.08); }
.diff-btns { margin-top: 51px; padding: 0 16px; }   /* outside .container → same 16px side gutter */

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why { margin-top: 107px; padding: 80px 70px 59px 77px; }
.why-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }
.why-lead {
  max-width: 640px;
  margin: 0;
  font-family: var(--font-head); font-weight: 500; font-size: var(--fs-xl); line-height: 1.3125;
  color: var(--ink-2);
}
.why-lead strong { font-weight: 700; }
.why-lead .mark { line-height: 1.2; }
.why-seals { flex: none; display: flex; align-items: center; gap: 24px; margin-top: 23px; }
.why-seals .seal-warranty { width: auto; height: 168px; }
.why-seals .seal-usa { width: auto; height: 160px; }
.why-main {
  display: grid; grid-template-columns: 479px minmax(0, 534px); column-gap: 73px; align-items: start;
  margin-top: 102px; padding-left: 81px;
}
.why-video { aspect-ratio: 479 / 858; }
.why-video::after { background: rgba(0, 0, 0, 0.25); }
.why-content { padding-top: 14px; }
.why-intro { margin: 8px 0 0; font-size: 17.4px; line-height: 25.2px; letter-spacing: -0.36px; color: var(--muted); }
.why-list { display: grid; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.why-list li { display: grid; grid-template-columns: 52px 1fr; column-gap: 20px; align-items: start; min-height: 137px; }
.why-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  background: url(/assets/img/icon-circle.svg) center / 52px 52px no-repeat;
}
.why-icon img { width: 25px; height: 25px; }
.why-list h3 { margin: 0; font-weight: 600; font-size: 20px; line-height: 35.2px; letter-spacing: -0.05px; color: var(--ink); }
.why-list p { max-width: 395px; margin: 5px 0 0; font-size: 17.4px; line-height: 25.2px; letter-spacing: -0.36px; color: var(--muted); }
.why-content .btn-row { flex-wrap: wrap; margin: 16px -24px 0 -16px; }   /* a bit wider than the text column so both buttons fit side by side (design); wraps if a translation is longer */

/* =========================================================
   TREATMENT COST
   ========================================================= */
.cost { margin-top: 44px; padding: 76px 70px 39px 56px; }
.cost-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 586px); column-gap: 40px; align-items: start; }
.cost .h-xl { color: #fff; }
.cost-intro p { margin: 0; font-size: 17.4px; line-height: 28px; letter-spacing: -0.36px; }
.cost-intro .btn-row { margin-top: 27px; }
.cost-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 59px; }
.cost-card {
  display: flex; flex-direction: column; align-items: center;
  width: 450px; max-width: 100%; min-height: 796px;
  padding: 24px;
  border-radius: 24px;
  background: #fff; color: var(--dark);
}
.cost-img { display: flex; flex-direction: column; align-items: center; width: 100%; height: 300px; }
.cost-img img { width: 370px; }
.cost-img.has-tag img { width: auto; height: 240px; }
.cost-tag {
  margin-top: 13.6px; padding: 10px 30px;
  border-radius: 50px; background: var(--navy); color: #fff;
  font-size: 16px; line-height: 26px; letter-spacing: 0.8px;
}
.cost-card h3 {
  margin: 20px 0 0;
  font-family: var(--font-head); font-weight: 700; font-size: 24px; line-height: 38.4px;
  letter-spacing: 0.8px; text-transform: uppercase; text-align: center; color: #111;
}
.cost-prices { display: flex; justify-content: center; gap: 30px; padding: 32px 0 13px; }
.cost-price { display: flex; flex-direction: column; align-items: center; max-width: 120px; text-align: center; letter-spacing: 0.8px; }
.cost-arch { font-size: 18px; line-height: 25.2px; }
.cost-from { font-size: 12px; line-height: 16.8px; color: var(--blue); }
.cost-price strong { font-size: 18px; line-height: 25.2px; }
.cost-inclusive {
  display: flex; align-items: center; gap: 20px;
  padding: 17px 0 7px;
  font-weight: 500; font-size: 20px; line-height: 26px; letter-spacing: 0.8px; color: var(--blue);
}
.cost-inclusive::before, .cost-inclusive::after { content: ''; width: 80px; height: 2px; background: var(--blue); }
.cost-free {
  margin-top: 10px; padding: 10px 30px;
  border: 2px solid var(--green); border-radius: 50px;
  font-size: 16px; line-height: 26px; letter-spacing: 0.8px; color: var(--dark); text-decoration: none;
  transition: background-color .2s;
}
.cost-free:hover { background: #f1faee; }
.check-list { display: grid; gap: 10px; min-width: 212px; margin: 10px 0 0; padding: 0 0 10px; list-style: none; white-space: nowrap; }
.check-list li {
  position: relative; padding: 3px 0 3px 30px;
  font-size: 16px; line-height: 26px; letter-spacing: 0.8px;
}
.check-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 20px; height: 20px;
  background: url(/assets/img/check-icon.svg) center / 20px 20px no-repeat;
}

/* =========================================================
   WHY THE ONESOLUTION METHOD WORKS
   ========================================================= */
.method { margin-top: 98px; }
.method-top {
  display: grid; grid-template-columns: minmax(0, 625px) minmax(0, 586px); justify-content: space-between; column-gap: 35px;
  padding: 0 102px 0 57px;
}
.method-title { max-width: 543px; line-height: 1.366; text-transform: uppercase; }
.method-intro {
  margin: 16px 0 0;
  font-family: var(--font-head); font-weight: 600; font-size: 17.4px; line-height: 28px; letter-spacing: 0.75px; color: var(--dark);
}
.method-right .btn { margin-top: 26px; }
.method-steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  width: 100%;
  margin: 35px auto 0; padding: 0;
  list-style: none;
}
.method-head { display: flex; align-items: center; gap: 8px; min-height: 77px; }
.method-num {
  flex: none; padding: 10px 17px;
  border-radius: 30px; background: var(--blue-btn);
  font-family: var(--font-head); font-weight: 700; font-size: 18px; line-height: 21.6px; color: #fff;
}
.method-head h3 {
  margin: 0;
  font-family: var(--font-head); font-weight: 700; font-size: 22px; line-height: 38.4px;
  letter-spacing: -0.64px; color: var(--ink);
}
.method-step:nth-child(1) h3 { max-width: 263px; }
.method-step:nth-child(2) h3 { max-width: 245px; }
.method-step:nth-child(3) h3 { max-width: 247px; }
.method-step:nth-child(4) h3 { max-width: 210px; }
.method-card { min-height: 500px; margin-top: 15px; padding-bottom: 20px; overflow: hidden; border-radius: 28px; background: var(--card-gray); }
.method-img { height: 296px; overflow: hidden; border-radius: 28px; }
.method-img img { width: 100%; height: 100%; object-fit: cover; }
.method-step:nth-child(1) .method-img img { object-position: 50% 54%; }
.method-step:nth-child(2) .method-img img { object-position: 50% 0; }
.method-step:nth-child(3) .method-img img { object-position: 50% 75%; }
.method-step:nth-child(4) .method-img img { object-position: 50% 40%; }
.method-card p { margin: 28px 0 0; padding: 0 20px;   /* 315px card → 275px text, as in the design; wider cards use their full width */ font-size: 17.4px; line-height: 1.5; letter-spacing: -0.36px; color: rgba(0, 0, 0, 0.6); }

.logo-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; }
.member-logos { justify-content: space-between; gap: 20px 40px; max-width: 1246px; margin: 85px auto 0; }
.member-logos img { width: auto; height: 55px; }

/* =========================================================
   EXPERIENCE
   ========================================================= */
.experience { margin-top: 92px; }
.exp-video { width: min(1131px, 100%); margin: 0 auto; aspect-ratio: 1131 / 629; }
.split-head {
  display: grid; grid-template-columns: minmax(0, 587px) minmax(0, 586px); justify-content: space-between; column-gap: 40px;
  margin-top: 92px; padding: 0 86px 0 75px;
}
.split-head .btn-row { margin-top: 27px; }
/* OneSolution vs Others table (same look as the design's table image) */
.compare-table {
  width: min(1216px, 100%); margin: 47px auto 0;
  border-collapse: separate; border-spacing: 0;
  border-radius: 20px; overflow: hidden;
  background: #f2f7fa;
  font-size: 17.4px; line-height: 1.5; color: var(--dark);
}
.compare-table th, .compare-table td {
  padding: 15px 22px; text-align: left; vertical-align: middle;
  border-bottom: 1px solid #e1e8ee;
  font-weight: 500;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-us { width: 30%; background: #fff; border-left: 3px solid var(--blue); border-right: 3px solid var(--blue); }
.compare-table thead th { padding-top: 20px; padding-bottom: 20px; }
.compare-table thead .compare-us img { width: 190px; height: auto; }
.compare-table thead .compare-them { font-size: 16px; letter-spacing: 0.5px; }
.compare-table tbody td { position: relative; padding-left: 60px; }
.compare-icon {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%;
  background: center / 14px 14px no-repeat;
}
.compare-icon.is-yes {
  background-color: #4fb1e7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.3l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.compare-icon.is-no {
  background-color: #333;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 3.5l7 7M10.5 3.5l-7 7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 12px 12px;
}

/* =========================================================
   TEAM
   ========================================================= */
.team {
  position: relative;
  margin-top: 47px; padding: 64px 16px 77px;
  overflow: hidden;
  background: var(--dark); color: #fff;
}
.team .h-xl { color: #fff; }
.team-body { position: relative; margin-top: 63px; }
.team-watermark {
  position: absolute; left: 50%; top: 79px;
  transform: translateX(-50%);
  font-family: var(--font-head); font-weight: 700; font-size: 160px; line-height: 1.22;
  letter-spacing: 0.75px; color: #303030; white-space: nowrap; pointer-events: none;
}
.team-card {
  position: relative;
  display: grid; grid-template-columns: 489px minmax(0, 588px); column-gap: 40px; align-items: center;
  width: min(1233px, 100%); min-height: 449px;
  margin: 0 auto; padding: 26px 40px 26px 32px;
  border-radius: 25px; background: #2d2d2d;
}
.team-photo { width: 100%; aspect-ratio: 489 / 387; object-fit: cover; border-radius: 25px; }
.team-text h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.22; letter-spacing: 0.75px; }
.team-text p { margin: 20px 0 0; font-size: 16px; line-height: 1.5; letter-spacing: 0.75px; }
.team-text .btn { margin-top: 16px; }

/* =========================================================
   AS SEEN ON TV
   ========================================================= */
.tv { margin-top: 47px; }
.tv-logos { gap: 29px; margin-top: 37px; }
/* Grey by default, full colour on hover (like onesolutionnow.com) */
.tv-logos img { width: auto; height: 70px; filter: grayscale(1); transition: filter .35s ease, transform .35s ease; }
.tv-logos img:hover,
.js .tv-logos img.reveal.is-visible:hover { filter: grayscale(0); transform: scale(1.06); }
/* keep the hover fade once the scroll animation has finished */
.js .tv-logos img.reveal.is-visible { transition: opacity .8s, transform .35s ease, filter .35s ease; }

/* =========================================================
   DON'T SETTLE FOR METAL
   ========================================================= */
.metal {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 613px); column-gap: 40px; align-items: center;
  min-height: 797px;
  margin-top: 64px; padding: 61px 23px 42px 56px;
}
.metal .h-xl { color: var(--dark); }
.metal-intro { max-width: 555px; margin: 23px 0 0; font-weight: 500; font-size: 20px; line-height: 1.5; letter-spacing: 0.75px; }
.dot-list { margin: 24px 0 0; padding: 0 0 0 15px; list-style: none; }
.dot-list li { position: relative; padding-left: 15px; font-size: 17.4px; line-height: 26.5px; letter-spacing: 0.75px; }
.dot-list li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 5px; height: 5px; transform: translateY(-50%);
  background: url(/assets/img/bullet-dot.svg) center / 5px 5px no-repeat;
}
.metal .btn-row { margin-top: 48px; }
.metal-imgs { display: flex; flex-direction: column; gap: 34px; }
.metal-imgs img { width: 100%; border-radius: 25px; }
/* First box: autoplay video over the photo (photo shows until the video plays) */
.metal-video { position: relative; overflow: hidden; border-radius: 25px; aspect-ratio: 16 / 9; }
.metal-video img { height: 100%; object-fit: cover; }
.metal-video .bg-video { position: absolute; inset: 0; pointer-events: none; }
.metal-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   READY TO UNDERSTAND YOUR OPTIONS
   ========================================================= */
.ready {
  display: grid; grid-template-columns: 605px minmax(0, 1fr); align-items: start;
  min-height: 280px;
  margin-top: 37px; padding: 74px 40px 50px 74px;
  background: var(--blue-band); color: #fff;
}
.ready .h-xl { color: #fff; line-height: 58px; }
.ready .mark { margin-top: 8px; font-size: clamp(20px, calc(1vw + 15px), 32px); line-height: 58px; }
.ready-right { margin-top: -27px; }
.ready-right h3 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: clamp(22px, calc(1vw + 15px), 32px); line-height: 57.2px; letter-spacing: -1.04px; }
.ready-right .btn { min-width: 277px; margin-top: 10px; }

/* =========================================================
   PATIENT TESTIMONIALS
   ========================================================= */
.testimonials { margin-top: 47px; padding: 76px 56px 59px; }
.testimonials .h-xl { color: var(--dark); }
.testimonials .mark { margin-top: 8px; font-size: var(--fs-xl); }
.testimonials > p { margin: 0; }
.testi-sub { margin-top: 15px !important; font-weight: 500; font-size: 20px; letter-spacing: 0.75px; }
.testimonials .btn-row { margin-top: 16px; }
.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 358px)); justify-content: center; gap: 38px; margin-top: 37px; }
.testi-video { aspect-ratio: 358 / 643; }

/* =========================================================
   SCHEDULE CONSULTATION (form)
   ========================================================= */
.schedule { margin-top: 42px; padding: 84px 56px 70px; text-align: center; }
.schedule .h-xl { max-width: 875px; margin: 0 auto; color: #fff; }
.schedule-sub { max-width: 862px; margin: 20px auto 0; font-weight: 500; font-size: 20px; line-height: 1.5; letter-spacing: 0.75px; color: #d3d3d3; }
.schedule .btn-white { margin-top: 32px; }
.consult-form {
  width: min(834px, 100%);
  margin: 39px auto 0; padding: 22px 23px;
  border-radius: 16px;
  background: #fff; color: var(--ink-2);
  text-align: left;
}
.consult-form h3 { margin: 0 0 15px; font-weight: 600; font-size: 17px; line-height: 1.3; text-transform: uppercase; }
.consult-form iframe { display: block; width: 100%; min-height: 320px; border: 0; }   /* GHL survey; height set by form_embed.js */

/* =========================================================
   LOCATIONS
   ========================================================= */
.locations { display: grid; grid-template-columns: 615px minmax(0, 1fr); min-height: 629px; margin-top: 88px; overflow: hidden; }
.loc-list { display: flex; flex-direction: column; padding-left: 5px; }
.loc-item {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; grid-template-rows: auto 1fr; align-items: center;
  min-height: 158px; padding: 28px 49px 16px 43px;
  background: #fff; color: var(--dark);
  cursor: pointer; transition: background-color .25s, color .25s;
}
.loc-item:last-child { min-height: 155px; }
.loc-item.is-active { background: var(--blue-band); color: #fff; }
.loc-item h3 { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 36px; line-height: 1.22; letter-spacing: 0.75px; }
.loc-call { font-weight: 600; font-size: 20px; line-height: 18px; text-align: center; text-decoration: none; color: inherit; }
.loc-call:hover { text-decoration: underline; }
.loc-item p { grid-column: 1 / -1; align-self: start; max-width: 455px; margin: 14px 0 0; font-family: var(--font-head); font-weight: 500; font-size: 20px; line-height: 26px; letter-spacing: -1.04px; }
.loc-item:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
.loc-map { position: relative; min-height: 360px; overflow: hidden; background: #e5e3df; }
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { padding: 56px 0 30px; background: var(--dark); color: #fff; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.footer-logo img { width: 249px; height: 72px; object-fit: cover; }
.footer-credit { font-size: 14px; letter-spacing: 0.75px; color: #e5e5e5; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 33px; }
.footer-col h4 { margin: 0 0 17px; font-weight: 500; font-size: 20px; line-height: 1.5; letter-spacing: 0.75px; text-transform: uppercase; }
.footer-col .footer-h-gap { margin-top: 33px; }
.footer-col p, .footer-list { margin: 0; font-size: 17.4px; line-height: 1.5; letter-spacing: 0.75px; color: #d9d9d9; }
.footer-list { padding: 0; list-style: none; }
/* Text links only — buttons (.btn) keep their own colours */
.footer-col a:not(.btn) { color: inherit; text-decoration: none; }
.footer-col a:not(.btn):hover { color: var(--blue); }
/* Social icons: one image (from the design) with a round link placed exactly over each circle */
.footer-social { position: relative; width: 214px; height: 58px; }
.footer-social img { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-social a {
  position: absolute; top: 7.5px; z-index: 1;
  width: 39px; height: 39px; border-radius: 50%;
  transition: background-color .2s, box-shadow .2s;
}
.footer-social a:nth-of-type(1) { left: 13.6px; }    /* Facebook */
.footer-social a:nth-of-type(2) { left: 62.9px; }    /* X */
.footer-social a:nth-of-type(3) { left: 112.2px; }   /* Instagram */
.footer-social a:nth-of-type(4) { left: 161.4px; }   /* YouTube */
/* Hover: the circle turns blue (screen blend keeps the white icon visible) with a soft glow */
.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--blue);
  mix-blend-mode: screen;
  box-shadow: 0 0 0 4px rgba(0, 185, 242, 0.35);
  outline: none;
}
.footer-btn { min-width: min(250px, 100%); margin-top: 25px; }
.footer-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 15px;
  margin-top: 40px; padding: 31px 10px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-weight: 500; font-size: 17.4px; letter-spacing: 0.75px; text-transform: uppercase;
}
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--blue); }
.footer-bottom { max-width: 1127px; margin: 0 auto; padding-top: 25px; text-align: center; font-size: 16px; line-height: 1.5; letter-spacing: 0.75px; color: #c2c2c2; }
.footer-bottom p { margin: 0 0 19px; }
.footer-bottom p:last-child { margin-bottom: 0; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   INNER PAGES — title band (e.g. Schedule Appointment)
   ========================================================= */
.page-banner {
  padding: 200px 0 64px;            /* clears the floating header */
  background: var(--blue); color: #fff; text-align: center;
}
.page-banner h1 {
  margin: 0;
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(32px, calc(2.4vw + 14px), 54px); line-height: 1.2;
  letter-spacing: 1px; text-transform: uppercase;
}
.booking { padding: 50px 0 90px; }
.booking-embed { max-width: 900px; margin: 0 auto; }
.booking-embed iframe { display: block; width: 100%; min-height: 700px; border: 0; }   /* height set by form_embed.js */

/* =========================================================
   LEGAL PAGES (Privacy Policy, Terms & Conditions) — type sizes from the live site
   ========================================================= */
.legal { padding: 50px 0 90px; }
.legal-content { font-size: 16px; line-height: 26.4px; color: var(--dark); }
.legal-content p { margin: 13.6px 0; }
.legal-content h2, .legal-content h3, .legal-content h4 { font-family: var(--font-head); font-weight: 600; color: var(--dark); }
.legal-content h2 { margin: 51px 0 14px; font-size: clamp(24px, calc(1.2vw + 14px), 34px); line-height: 1.1; text-transform: uppercase; }
.legal-content h3 { margin: 42px 0 10px; font-size: clamp(21px, calc(0.9vw + 13px), 28px); line-height: 1.1; text-transform: uppercase; }
.legal-content h4 { margin: 27px 0 4px; font-size: 18px; line-height: 1.1; }
.legal-content > :first-child { margin-top: 0; }
.legal-content ul { margin: 10px 0 16px; padding-left: 24px; list-style: disc; }
.legal-content li { margin: 4px 0; }
.legal-content a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.legal-content a:hover { color: var(--navy); }
@media (max-width: 767px) {
  .legal { padding: 36px 0 60px; }
  .legal-content { font-size: 15px; line-height: 25px; }
}

/* =========================================================
   THANK-YOU PAGE (after the quiz) — /thank-you-quiz/
   Sizes & colours from onesolutionnow.com/thank-you-quiz/
   ========================================================= */
.ty-intro { padding-top: 190px; }                 /* clears the floating header */
.ty-intro h1 {
  margin: 6px 0 8px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(48px, calc(4vw + 18px), 82px); line-height: 1.1;
  color: var(--blue); text-transform: uppercase;
}
.ty-lead { margin: 0; font-size: 18px; line-height: 28px; color: var(--navy); }
.ty-text { margin: 10px auto 0; font-size: 18px; line-height: 28px; color: #232323; }
.ty-narrow { max-width: 1100px; }
.ty-step { margin-top: 80px; }
.ty-step h2, .ty-fb h2 {
  margin: 8px 0 0;
  font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, calc(2vw + 10px), 44px); line-height: 1.2;
  color: var(--navy);
}
.ty-video { display: block; width: min(1325px, 100%); margin: 36px auto 0; aspect-ratio: 1440 / 703; border-radius: 20px; }
.ty-video::after { background: rgba(0, 0, 0, 0); transition: background-color .2s; }
.ty-video:hover::after { background: rgba(0, 0, 0, 0.12); }   /* slight darken on hover = clickable */

.ty-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 347px)); justify-content: center; gap: 19px; margin-top: 46px; padding-top: 90px; }
.ty-gallery-col { display: flex; flex-direction: column; gap: 19px; }
.ty-gallery-col:nth-child(2) { margin-top: -90px; }   /* middle column sits higher */
.ty-gallery img { width: 100%; height: auto; }

.ty-fb { margin-top: 80px; }
.ty-fb-members { width: min(850px, 100%); margin: 22px auto 0; }
.ty-fb-btn {
  width: min(455px, 100%); min-height: 64px; margin-top: 28px;
  border-radius: 45px; background: #01adda; color: #fff; font-size: 18px;
}
.ty-fb-btn:hover { background: var(--navy); }

.ty-reviews { margin-top: 70px; padding-bottom: 90px; }
.ty-reviews .h-xl { color: #232323; text-transform: uppercase; }
.ty-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 401px)); justify-content: center; gap: 40px; margin-top: 54px; }
.ty-review { position: relative; margin: 0; padding: 36px 20px 20px; background: #f2f2f2; text-align: left; }
.ty-quote {
  position: absolute; top: -22px; left: 50%; transform: translateX(-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  border: 3px solid var(--blue); border-radius: 50%; background: #fff;
  font-family: Georgia, serif; font-size: 34px; line-height: 1; padding-top: 14px; color: var(--blue);
}
.ty-review img { width: 129px; height: 24px; }
.ty-review blockquote { margin: 14px 0 0; font-size: 15px; line-height: 24px; color: var(--dark); }
.ty-review figcaption { margin-top: 14px; font-size: 15px; color: var(--dark); }
.ty-all-reviews { min-width: 238px; min-height: 52px; margin-top: 40px; border: 2px solid var(--navy); border-radius: 30px; background: #fff; color: var(--dark); font-size: 16px; font-weight: 500; }
.ty-all-reviews:hover { background: var(--navy); color: #fff; }

@media (max-width: 991px) {
  .ty-intro { padding-top: 150px; }
  .ty-step, .ty-fb, .ty-reviews { margin-top: var(--section-gap); }
  .ty-gallery { gap: 12px; }
  .ty-gallery-col { gap: 12px; }
  .ty-review-grid { grid-template-columns: minmax(0, 520px); gap: 44px; }
}
@media (max-width: 767px) {
  .ty-intro { padding-top: 130px; }
  .ty-lead, .ty-text { font-size: 16px; line-height: 26px; }
  .ty-video { margin-top: 24px; border-radius: 16px; }
  .ty-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 40px; }
  .ty-gallery-col { gap: 8px; }
  .ty-gallery-col:nth-child(2) { margin-top: -40px; }
  .ty-fb-btn { font-size: 16px; }
  .ty-reviews { padding-bottom: 60px; }
}

/* ---------- Virtual Consultation pop-up ---------- */
.vc-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.7); }
.vc-modal[hidden] { display: none; }
.vc-box {
  position: relative;
  width: min(768px, 100%); max-height: calc(100vh - 40px); overflow-y: auto;
  padding: 20px 20px 16px;
  border-radius: 16px; background: var(--blue); color: #fff;
}
.vc-box h2 { margin: 6px 40px 10px; font-family: var(--font-head); font-weight: 600; font-size: clamp(24px, calc(1.2vw + 14px), 32px); text-align: center; }
.vc-box iframe { display: block; width: 100%; min-height: 520px; border: 0; }
.vc-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: #fff; color: var(--navy); font-size: 24px; line-height: 1; cursor: pointer;
}
.vc-close:hover { background: var(--navy); color: #fff; }
body.modal-open { overflow: hidden; }

@media (max-width: 767px) {
  .page-banner { padding: 140px 0 44px; }
  .booking { padding: 32px 0 56px; }
}

/* ---------- Video pop-up ---------- */
.video-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.85); }
.video-modal[hidden] { display: none; }
.video-modal-box { position: relative; width: min(1000px, 100%); }
.video-modal-frame { aspect-ratio: 16 / 9; background: #000; }
.video-modal-frame iframe { width: 100%; height: 100%; border: 0; }
.video-modal-close { position: absolute; right: 0; top: -44px; width: 40px; height: 40px; border: 0; background: none; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1439px) {
  .hero-inner { padding-left: 24px; padding-right: 24px; }
  .why { padding-left: 56px; padding-right: 56px; }
  .why-main { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); column-gap: 56px; padding-left: 0; }
  .method-top { padding: 0 24px; }
  .split-head { padding: 0 24px; }
  .ready { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-left: 56px; }

  /* Below 1440px the full menu no longer fits next to the logo: it becomes a drop-down */
  html { scroll-padding-top: 125px; }
  .site-header { top: 16px; }
  .header-card { height: 96px; border-radius: 22px; }
  .logo { top: 26px; left: 24px; }
  .logo img { width: 190px; height: auto; }
  .header-tabs { right: 90px; }
  .header-tab { font-size: 14px; line-height: 40px; padding: 0 18px; }
  .nav-toggle { display: block; }
  .header-nav {
    display: none;
    position: absolute; right: 0; top: calc(100% + 10px);
    width: min(440px, 100%);
    flex-direction: column; align-items: stretch; gap: 10px;
    max-height: calc(100vh - 140px); overflow-y: auto;
    padding: 14px 18px 18px;
    border-radius: 20px; background: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }
  .header-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a, .main-nav span { padding: 13px 6px; font-size: 16px; border-bottom: 1px solid #eef2f5; }
  .header-phone { padding: 8px 6px; font-size: 15px; }
  .header-nav-cta { display: flex; flex-wrap: wrap; gap: 10px; }
  .header-nav-cta .btn { flex: 1 1 220px; min-width: 0; height: 48px; font-size: 15px; font-weight: 600; text-transform: uppercase; }
}

@media (max-width: 1279px) {
  .hero { min-height: 0; }
  .hero-inner { padding-top: 150px; padding-bottom: 60px; }
  .quiz-card { width: 500px; padding: 32px; }

  .why-top { flex-direction: column; }
  .why-content .btn-row { flex-wrap: wrap; margin: 16px 0 0; }
  .why-seals { margin-top: 0; }
  .why-main { margin-top: 56px; }

  .cost { padding: 60px 40px 40px; }
  .cost-top { grid-template-columns: 1fr; row-gap: 24px; }

  .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .method-step h3 { max-width: none !important; }
  .member-logos { justify-content: center; }
  .member-logos img { height: 45px; }

  .team-card { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
  .metal { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); padding: 48px 40px; min-height: 0; }
  .testimonials { padding: 60px 40px 48px; }
  .testi-grid { gap: 24px; }

  .locations { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); }
  .loc-item { grid-template-columns: minmax(0, 1fr) auto; padding: 24px 32px 16px; }
}

@media (max-width: 991px) {
  .header-tab { display: none; }
  .header-tabs { right: 90px; top: 26px; }
  .lang-pill { border-radius: 12px; }

  /* Banner (video + text) on top, quiz as its own section below */
  .hero-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .hero-text {
    position: relative; isolation: isolate;
    display: flex; flex-direction: column; justify-content: center;
    max-width: none; min-height: 560px;
    padding: 150px 0 64px;
  }
  .hero-video { left: 50%; right: auto; width: 100vw; transform: translateX(-50%); }
  .quiz-card { width: 100%; max-width: 562px; margin: 48px auto 0; }

  .why { padding: 48px 28px; }
  .why-main { grid-template-columns: 1fr; row-gap: 40px; margin-top: 40px; }
  .why-video { width: min(479px, 100%); margin: 0 auto; }

  .method-top { grid-template-columns: 1fr; row-gap: 24px; padding: 0; }
  .split-head { grid-template-columns: 1fr; row-gap: 20px; padding: 0; margin-top: 56px; }
  .experience, .method { margin-top: 64px; }

  .team-card { grid-template-columns: 1fr; row-gap: 28px; padding: 24px; }
  .team-watermark { display: none; }

  .metal { grid-template-columns: 1fr; row-gap: 32px; padding: 40px 28px; }

  .ready { grid-template-columns: 1fr; row-gap: 28px; padding: 40px 28px; }
  .ready .h-xl, .ready .mark { line-height: 1.4; }
  .ready-right { margin-top: 0; }
  .ready-right h3 { line-height: 1.3; }
  .ready-right .btn { margin-top: 14px; }

  .testi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

  .schedule { padding: 56px 24px; }

  .locations { grid-template-columns: 1fr; margin-top: 64px; }
  .loc-list { padding-left: 0; }
  .loc-item, .loc-item:last-child { min-height: 0; }
  .loc-map { min-height: 380px; }

  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 110px; }
  body { font-size: 16px; }
  .header-tabs { right: 78px; top: 20px; }
  .header-nav { width: auto; left: 0; }
  .lang-pill.gtranslate_wrapper { min-width: 0; }
  .lang-pill .gt_float_switcher .gt-selected .gt-current-lang { padding: 8px 10px !important; gap: 6px; }
  .lang-pill .gt_float_switcher-arrow { display: none !important; }
  .header-card { height: 84px; }
  .logo { top: 22px; left: 18px; }
  .logo img { width: 150px; }
  .nav-toggle { right: 18px; }

  .hero-text { min-height: 480px; padding: 130px 0 48px; }
  .quiz-card { margin-top: 32px; }
  .hero-eyebrow, .hero-sub { font-size: 15px; line-height: 1.5; }
  .quiz-card { padding: 28px 18px; }
  .quiz-title { font-size: 15px; line-height: 24px; }

  .diff-sub { font-size: 16px; }
  .ba-track { gap: 14px; }
  .ba-slide { flex-basis: 300px; height: 302px; }
  .ba-after { left: 162px; }
  .ba-label { bottom: 18px; }
  .ba-arrow { width: 44px; height: 44px; background-size: 44px 44px; }
  .ba-arrow::before { width: 11px; height: 11px; border-width: 4px 4px 0 0; }

  .btn { min-width: 0; min-height: 50px; font-size: 17px; padding: 8px 22px; }
  .btn-row { justify-content: center; }
  .btn-row > .btn { flex: 1 1 240px; max-width: 320px; }
  .mark { padding: 0 10px; }

  .why-lead { line-height: 1.4; }
  .why-seals { gap: 16px; }
  .why-seals .seal-warranty { height: 112px; }
  .why-seals .seal-usa { height: 106px; }
  .why-content { padding-top: 0; }
  .why { padding: 40px 20px; }
  .why-list { gap: 20px; }
  .why-list li { min-height: 0; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .why-icon { width: 44px; height: 44px; background-size: 44px 44px; }
  .why-icon img { width: 22px; height: 22px; }
  .why-list h3 { font-size: 18px; line-height: 1.4; }
  .cost { padding: 44px 18px 24px; }
  .cost-card { min-height: 0; padding: 20px 16px; }
  .cost-img { height: auto; min-height: 200px; }
  .cost-img img, .cost-img.has-tag img { width: 100%; height: auto; max-height: 240px; object-fit: contain; }
  .cost-card h3 { font-size: 20px; line-height: 1.4; }
  .cost-prices { gap: 20px; padding-top: 20px; }
  .cost-inclusive::before, .cost-inclusive::after { width: 48px; }

  .method-steps { grid-template-columns: 1fr; max-width: 420px; }
  .method-card { min-height: 0; }
  .member-logos { gap: 20px 28px; margin-top: 56px; }
  .member-logos img { height: 34px; }

  .tv-logos { gap: 18px; }
  .tv-logos img { height: 50px; }

  .team { padding: 48px 16px 56px; }
  .team-body { margin-top: 32px; }
  .team-text h3 { font-size: 26px; }

  .testimonials { padding: 44px 18px 32px; }
  .testi-grid { grid-template-columns: minmax(0, 300px); }

  .schedule-sub { font-size: 16px; }
  .consult-form { padding: 20px 16px; }

  .loc-item { grid-template-columns: 1fr; row-gap: 6px; padding: 22px 20px; }
  .loc-item h3 { font-size: 28px; }
  .loc-call { text-align: left; font-size: 17px; }
  .loc-item p { margin-top: 4px; font-size: 17px; line-height: 23px; letter-spacing: -0.5px; }
  .loc-map { min-height: 300px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { font-size: 15px; }
  .footer-bottom { font-size: 14px; }
}

/* Tablet & phone: exactly 50px between sections (desktop keeps the design's gaps) */
@media (max-width: 991px) {
  :root { --section-gap: 50px; }
  .hero-inner .quiz-card,
  .diff, .why, .cost, .method, .experience, .team, .tv, .metal, .ready, .testimonials, .schedule, .locations { margin-top: var(--section-gap) !important; }
}

/* Small phones (≤ 400px, e.g. iPhone SE / older Android) */
@media (max-width: 400px) {
  .logo img { width: 124px; }
  .logo { top: 26px; left: 14px; }
  .lang-pill .gt-lang-code { display: none; }          /* flag only */
  .header-tabs { right: 70px; }
  .nav-toggle { right: 12px; width: 42px; height: 42px; padding: 10px; }
  .hero h1 { font-size: clamp(30px, 10vw, 40px); }   /* long words (e.g. Spanish "PERMANENTES") must fit */
  .why-lead .nowrap { white-space: normal; }
  .why-lead .mark { display: inline; padding: 1px 8px; line-height: 1.6; }   /* flows like text, so the full stop stays on its line */
  .why-lead > .mark { white-space: nowrap; }   /* keep "3 hours" on one line */
  .mark { padding: 0 8px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
  .ready-right .btn { min-width: 0; width: 100%; }
  .btn-white { min-width: 0; }
  .btn { font-size: 16px; padding: 0 16px; }
  .cost-card { padding: 18px 12px; }
  .cost-inclusive { gap: 10px; white-space: nowrap; font-size: 18px; }
  .cost-inclusive::before, .cost-inclusive::after { width: 32px; }
  .cost-free { padding: 8px 18px; font-size: 14px; letter-spacing: 0.4px; white-space: nowrap; }
  .check-list li { font-size: 15px; letter-spacing: 0.4px; }
  .why-seals { gap: 12px; }
  .why-seals .seal-warranty { height: 92px; }
  .why-seals .seal-usa { height: 88px; }
}

/* Comparison table on tablets/phones */
@media (max-width: 767px) {
  .compare-table { margin-top: 32px; font-size: 13.5px; line-height: 1.4; border-radius: 16px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
  .compare-table tbody td { padding-left: 40px; }
  .compare-us { width: 48%; border-left-width: 2px; border-right-width: 2px; }
  .compare-table thead .compare-us img { width: 120px; }
  .compare-table thead .compare-them { font-size: 13px; }
  .compare-icon { left: 10px; width: 22px; height: 22px; background-size: 12px 12px; }
  .compare-icon.is-no { background-size: 10px 10px; }
}

/* =========================================================
   ANIMATIONS
   - Hero: plays on page load (pure CSS)
   - Everything else: fades/slides in when scrolled into view
     (js/main.js adds .reveal to the elements, then .is-visible)
   - Off for visitors who ask for reduced motion
   ========================================================= */
@keyframes heroUp   { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes heroLeft { from { opacity: 0; transform: translateX(48px); } to { opacity: 1; transform: none; } }

.js .hero-text > :not(.hero-video) { animation: heroUp .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-eyebrow { animation-delay: .15s !important; }
.js .hero h1      { animation-delay: .3s !important; }
.js .hero-sub     { animation-delay: .45s !important; }
.js .quiz-card    { animation: heroLeft .9s cubic-bezier(.2, .7, .2, 1) .35s both; }

.js .reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.reveal-zoom  { transform: scale(.94); }
.js .reveal.reveal-left  { transform: translateX(-48px); }
.js .reveal.reveal-right { transform: translateX(48px); }
.js .reveal.is-visible   { opacity: 1; transform: none; }
/* keep the location boxes' own colour change when an office is clicked */
.js .loc-item.reveal { transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0s), background-color .25s, color .25s; }
/* Safety net: main.js didn't run */
.reveal-off .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero-text > *, .js .quiz-card { animation: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
