/* ==========================================================================
   PEYSER DENTAL — VERSION A
   Mobile-first. Breakpoints: base (0–479) / 480 / 768 / 992
   ========================================================================== */

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  /* Brand palette */
  --blue:       #374B9B;
  --blue-light: #5D7685;
  --dark-gray:  #515C61;
  --orange:     #F68E52;
  --white:      #FFFFFF;
  --dark:       #231F20;
  --gray:       #EEEEEE;
  --gray-2:     #DADADB;   /* Experience panel */

  /* Typography
     NOTE: 'Vito' is a licensed Hoefler & Co face — not on Google Fonts.
     Spline Sans is standing in until the Vito webfont is supplied. */
  --font-heading: 'Vito', 'Spline Sans', system-ui, sans-serif;
  --font-body:    'Work Sans', system-ui, sans-serif;

  /* Layout */
  --hero-mobile-ratio: 9 / 16;   /* must match the mobile Vimeo cut */

  --gutter:        clamp(20px, 7.5vw, 110px);
  --section-pad-y: 64px;
  --nav-pad-y:     16px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { text-decoration: none; color: inherit; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; }

/* ============================================================
   SECTION CONTAINER
   Every section uses this so side margins line up edge-to-edge,
   mobile and desktop. Elements that intentionally break the gutter
   (full-bleed media) do it with `margin-inline: calc(var(--gutter) * -1)`.
   ============================================================ */
.section {
  padding-block: var(--section-pad-y);
  padding-inline: var(--gutter);
}

/* ============================================================
   UTILITIES — global visibility toggles
   These only ever HIDE. Nothing forces a display value, so a flex or
   inline-flex element keeps its own display when it is visible.
   (version-b forces `display: block !important` on .mobile-only, which
   would flatten the flex pills and buttons used here.)
   ============================================================ */
@media (max-width: 767px) {
  .desktop-only { display: none !important; }
}
@media (min-width: 768px) {
  .mobile-only  { display: none !important; }
}
/* Centered in tablet for some buttons usually */
@media (max-width: 991px) {
  .tablet-centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
  .no-padding-bottom-tablet{
    padding-bottom: 0px;
  }
}

/* ============================================================
   BUTTONS
   .booking-btn is a JS hook only (main.js stamps the href) —
   all visual styling lives on .btn + its modifier.
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

/* Primary — orange fill, dark text */
.btn--primary {
  background: var(--orange);
  color: var(--dark);
}
.btn--primary:hover { background: var(--blue); color: var(--white); }

/* Alternate — muted slate fill, white text */
.btn--alt {
  background: var(--dark-gray);
  color: var(--white);
}
.btn--alt:hover { background: var(--blue); }

/* ============================================================
   NAVBAR
   Transparent over the hero, frosted once scrolled (matches version-b).
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: var(--nav-pad-y) var(--gutter);
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(81, 92, 97, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.navbar__inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar__logo img {
  height: 40px;
  width: auto;
}

.navbar__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.navbar__contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--white);
  transition: opacity 0.25s ease;
}
.navbar__contact:hover { opacity: 0.7; }

.navbar__contact-arrow {
  width: 12px;
  height: 10px;
  flex-shrink: 0;
}

/* ============================================================
   PILLS — hero badges. Same family as .btn, deliberately shorter
   and lighter so they read as labels rather than primary actions.
   ============================================================ */
.pill-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* Outlined on the blue panel */
.pill--outline {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}
.pill--outline:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue);
}

/* Solid orange */
.pill--accent {
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--white);
}
.pill--accent:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--blue);
}

/* ============================================================
   BUTTON CONTAINER PILL — reusable capsule holding a piece of
   content (label text, star rating, ...) plus a .btn beside it.
   Reused in later sections via the --light / --gray / --white variants.
   ============================================================ */
.button-container-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 6px 6px 6px 24px;
  border-radius: 999px;
}

.button-container-pill__content {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

/* Frosted translucent white — used over the hero video */
.button-container-pill--light {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid white;
  -webkit-backdrop-filter: blur(10px);
}
.button-container-pill--light .button-container-pill__content { color: var(--white); }

/* Solid gray, dark label */
.button-container-pill--gray {
  background: var(--gray);
}
.button-container-pill--gray .button-container-pill__content { color: var(--dark); }

/* Solid white, dark label */
.button-container-pill--white {
  background: var(--white);
}
.button-container-pill--white .button-container-pill__content { color: var(--dark); }

/* ============================================================
   HERO
   Mobile: one stacking context — video fills the section, copy sits on top.
   Desktop (>=768): two columns — blue panel | video.
   ============================================================ */
.hero {
  position: relative;
  /* Mobile: match the vertical video exactly so it fills the hero with no
     pillarboxing. Height follows the ratio rather than the viewport. */
  aspect-ratio: var(--hero-mobile-ratio);
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* --- Column 1: copy --- */
.hero__panel {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 16px;
  padding: calc(var(--nav-pad-y) * 2 + 60px) var(--gutter) 48px;
}

.hero__h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 17vw, 6.25rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero__name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--orange);
}

.hero__specialties {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--white);
  margin-top: -10px;
}

.hero__cta { margin-top: 8px; }

/* --- Column 2: video --- */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__fallback,
.hero__fallback img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none; /* viewers can't pause/scrub the background video */
}

/* Mobile: .hero already carries the video's aspect ratio, so the iframe
   just fills it — no cover math, no centring offset, nothing cropped.
   The 16:9 cover math for the desktop column lives in the 768px block. */
.hero__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* MOBILE LEGIBILITY SCRIM — pending direction from the design team.
   Uncomment and tune once they decide how the copy sits over the video.
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}
*/

.hero__pill {
  position: absolute;
  z-index: 3;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================================================
   VIDEO CARD — thumbnail + play button, swapped for a Vimeo
   iframe on click. Reusable if other sections need the same treatment.
   ============================================================ */
.video-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.video-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--dark);
}

.video-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Play button */
.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 71px;
  height: 71px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}
.video-card__play:hover { transform: translate(-50%, -50%) scale(1.08); }

.video-card__play svg { width: 100%; height: 100%; }

.video-card__play-bg { transition: fill-opacity 0.25s ease; }
.video-card__play:hover .video-card__play-bg { fill-opacity: 0.9; }

/* Caption — short rule above a label, bottom-left */
.video-card__caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.video-card__rule {
  display: block;
  width: 64px;
  height: 3px;
  background: var(--white);
}

.video-card__label {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
}

/* Orange banner beneath the thumbnail */
.video-card__banner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 16px 20px;
  background: var(--orange);
  color: var(--dark);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.25s ease, color 0.25s ease;
}
.video-card__banner:hover { background: var(--blue); color: var(--white); }

/* Vimeo iframe once the thumbnail has been swapped out */
.video-card__media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   MODERN CARE
   Mobile: content stacks above a full-bleed video card.
   Desktop (>=768): video | content, two columns.
   ============================================================ */
.modern-care { background: var(--white); }

.modern-care__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Content column comes first on mobile */
.modern-care__content { order: 1; }
.modern-care__video-col { order: 2; }

/* Video breaks the gutter edge-to-edge on mobile — thumbnail and
   orange banner travel together as one unit. */
.modern-care__video-col {
  margin-inline: calc(var(--gutter) * -1);
}

.modern-care__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 10vw, 2.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--blue);
  margin-bottom: 32px;
}

/* --- The list --- */
.modern-list {
  display: flex;
  flex-direction: column;
}

.modern-list-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  padding-block: 18px;
}

.modern-list-container__bullet {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  width: 10px;
  padding-top: 7px; /* optically centers the dot on the title's first line */
}

.modern-list-container__bullet span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.modern-list-container__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 6px;
}

.modern-list-container__desc {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--dark);
}

/* Divider between list items */
.line {
  height: 1px;
  width: 100%;
  background: var(--dark);
}

.modern-care__pill { margin-top: 32px; }

/* ============================================================
   REVIEWS
   Mobile: Swiper carousel, one slide at a time, everything centred.
   Desktop (>=768): Swiper is destroyed and the wrapper becomes a
   static 3-column grid.
   ============================================================ */
.reviews { background: var(--gray); }

.reviews__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  margin-bottom: 48px;
}

.reviews__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--blue);
  max-width: 19ch;
}

.button-container-pill__content.reviews__stars {
  color: var(--orange);
  font-size: 1.125rem;
  letter-spacing: 0.12em;
}

/* --- Slides --- */
/* min-height reserves the carousel's space from first paint. Swiper runs
   autoHeight, but only sets the wrapper height once its CDN script has loaded
   and initialised — long after paint. Without this the section grows late,
   which shoves the footer down mid-scroll and makes the nav's #footer anchor
   land short. Tune to taste; sized off a real slide at 390px wide. */
.reviews__slider {
  width: 100%;
  min-height: 380px;
}

.review-card {
  display: flex;
  flex-direction: column;
  align-items: center;   /* centred on mobile */
  text-align: center;
  gap: 20px;
  height: auto;
  /* max-width: 23ch; */
}

.review-card__avatar {
  width: clamp(120px, 45vw, 200px);
  height: clamp(120px, 45vw, 200px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.review-card__quote {
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.45;
}

.review-card__name {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-top: auto;
}

/* --- Pagination bullets (mobile only) --- */
.reviews__pagination {
  position: static;
  margin-top: 32px;
}

.reviews__pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background: var(--dark);
  opacity: 0.5;
  transition: background 0.25s ease, opacity 0.25s ease;
}

.reviews__pagination .swiper-pagination-bullet-active {
  background: var(--orange);
  opacity: 1;
}

/* ============================================================
   EXPERIENCE THE PEYSER DIFFERENCE
   Mobile: gray panel (auto height) above a full-bleed square image.
   Desktop (>=768): two squares side by side, panel inset at the
   gutter, image bleeding off the right edge. Both capped in height
   so the section can't swallow an ultrawide screen.
   ============================================================ */
.experience {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--gray-2);
  padding-inline: 0;   /* the gutter lives inside the panel, so the
                          gray runs to the edge while the copy still
                          lines up with every other section */
}

/* --- Column 1: gray panel --- */
.experience__panel {
  /* background: var(--gray-2); */
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* copy aligns left */
  justify-content: center;   /* centred vertically */
  gap: 24px;
  padding: 40px var(--gutter);
}

.experience__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 10vw, 3.25rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--blue);
}

.experience__copy {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--dark);
}

.experience__copy strong { font-weight: 700; }

/* --- Column 2: image, full-bleed on mobile --- */
.experience__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* <picture> is inline by default and would collapse the square */
.experience__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.experience__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   MEET DR. PEYSER
   Stacked below 992px (circle centred above left-aligned copy),
   two columns at 992px+. Splits at 992 rather than 768 so that
   "stacked" and .tablet-centered (max-width: 991px) line up.
   ============================================================ */
.meet {
  background: var(--gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* --- Column 1: circular portrait --- */
.meet__media {
  flex-shrink: 0;
  width: clamp(320px, 70vw, 460px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}

.meet__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.meet__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- Column 2: copy --- */
.meet__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* copy stays left-aligned when stacked */
  gap: 16px;
  width: 100%;
}

.meet__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.meet__subheading {
  /* Promoted from h4 to h3 for a correct heading outline. h1,h2,h3 sets
     --font-heading globally, so pin the body font to keep it looking the same. */
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--blue-light);
}

.meet__copy {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
}

.meet__buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-top: 12px;
}

/* ============================================================
   FOOTER
   Row 1 (blue): headline | contact | hours. Stacks on mobile.
   Row 2 (white): fixed 140px, logo centred, copyright absolutely
   positioned on desktop and in flow beneath the logo on mobile.
   ============================================================ */
.footer__blue {
  background: var(--blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: var(--section-pad-y) var(--gutter);
}

.footer__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 10vw, 3.25rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--white);
}

/* --- Contact column --- */
.footer__col--contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* One clickable row: icon + copy, the whole thing is the hit area */
.footer-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  color: var(--white);
  transition: color 0.25s ease;
}
.footer-item:hover { color: var(--orange); }

.footer-item__icon {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  padding-top: 3px;   /* optically centres the icon on the first line */
  color: var(--orange);
}

.footer-item__icon svg { width: 100%; height: auto; }

.footer-item__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-item__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.footer-item__desc {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.45;
  color: var(--white);
}

/* --- Social row --- */
.footer__social {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-top: 4px;
  margin-left: 32px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--white);
  transition: color 0.25s ease, transform 0.25s ease;
}
.footer__social-link:hover { color: var(--orange); transform: translateY(-2px); }

.footer__social-link svg { width: 100%; height: 100%; }

/* --- Hours column --- */
.footer__hours {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 24px;
  align-content: start;
}

.footer__hours-label {
  grid-column: 1 / -1;      /* label spans both columns */
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.footer__day,
.footer__time {
  font-size: 0.875rem;
  line-height: 1.4;
  padding-block: 4px;
  /* border-top: 1px solid rgba(255, 255, 255, 0.25); */
}

.footer__day {
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__time {
  font-weight: 400;
  text-align: right;
  white-space: nowrap;
}

/* --- Row 2: white bottom bar --- */
.footer__bottom {
  position: relative;
  height: 30vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-inline: var(--gutter);
}

.footer__logo { height: 56px; width: auto; }

.footer__copyright {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #A7A9AC;
}

/* ============================================================
   MOBILE STICKY CTA — slides up once the hero is scrolled past
   ============================================================ */
.mobile-sticky-cta {
  display: flex;
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  transition: bottom 0.4s ease;
}

.mobile-sticky-cta.visible { bottom: 20px; }

.mobile-sticky-cta__btn {
  width: 100vw;
  max-width: 220px;
  padding: 16px 24px;
  font-size: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

/* ============================================================
   MOBILE LANDSCAPE: 480px
   ============================================================ */
@media (min-width: 480px) {
  .navbar__logo img { height: 46px; }
}

/* ============================================================
   TABLET: 768px
   ============================================================ */
@media (min-width: 768px) {
  :root { --nav-pad-y: 24px; }

  .navbar__logo img { height: 75px; }
  .navbar__actions { gap: 24px; }

  /* HERO becomes two columns: blue panel | video */
  .hero {
    flex-direction: row;
    /* Back to a viewport-driven hero; the mobile ratio no longer applies. */
    aspect-ratio: auto;
    height: 100svh;
    min-height: 600px;
    max-height: 820px;
  }

  /* object-fit: cover for the 16:9 desktop cut, sized off its CONTAINER.
     version-b uses 100vw/100vh here, which only works for a full-viewport
     hero — this column is ~52vw wide and height-capped, so it must be
     container-relative instead. */
  .hero__video iframe {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    min-width: 100%;
    min-height: 100%;
    aspect-ratio: 16 / 9;
  }

  .hero__panel {
    flex: 0 0 48%;
    max-width: 48%;
    background: var(--blue);
    gap: 20px;
    padding-bottom: 72px;
    justify-content: center;
  }

  .hero__h1 { font-size: clamp(2.75rem, 6.6vw, 5.25rem); }

  .hero__name,
  .hero__specialties { font-size: 1.1rem; }

  /* Video leaves the stacking context and becomes the second column */
  .hero__media {
    position: relative;
    inset: auto;
    flex: 1 1 52%;
    z-index: 1;
  }

  .mobile-sticky-cta { display: none !important; }

  /* MODERN CARE becomes two columns: video | content */
  .modern-care__inner {
    flex-direction: row;
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
    max-width: 120ch;
  }

  .modern-care__video-col {
    order: 1;
    flex: 0 0 clamp(260px, 28vw, 343px);
    margin-inline: 0;
    margin-top: auto;
  }

  .modern-care__content { order: 2; flex: 1 1 auto; }

  .modern-care__heading { font-size: clamp(2.25rem, 3.6vw, 3.25rem); }

  /* REVIEWS — head goes horizontal, slider becomes a static 3-up grid */
  .reviews__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 32px;
    margin-bottom: 64px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .reviews__heading { font-size: clamp(1.75rem, 2.6vw, 2.25rem); }
  .reviews__pill { flex-shrink: 0; }

  .reviews__slider {
    overflow: visible;
    min-height: 0;   /* Swiper is destroyed here; the grid sizes itself */
  }

  /* Swiper is destroyed above 768px; these guarantee a clean grid
     even before destroy() has stripped its inline styles. */
  .reviews__slider .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* gap: clamp(24px, 3.5vw, 48px); */
    gap: 0px;
    transform: none !important;
  }

  .swiper-wrapper {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }

  .review-card {
    align-items: center;
    text-align: left;    /* avatar stays centred, copy aligns left */
    max-width: 23ch;     /* keeps the quote from stretching too wide */
    /* A max-width grid item defaults to justify-self: stretch, which
       resolves to the start of the cell — this is what centres it.
       Auto margins lose to the stretch default. */
    justify-self: center;
  }

  .review-card__avatar { align-self: center; }
  .review-card__quote,
  .review-card__name { width: 100%; }

  .reviews__pagination { display: none; }

  /* EXPERIENCE — two squares, image bleeding off the right edge */
  .experience {
    flex-direction: row;
    align-items: stretch;
  }

  .experience__panel,
  .experience__media {
    flex: 1 1 50%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    max-height: 700px;       /* stays square until it would get absurd */
  }

  .experience__panel {
    padding: clamp(32px, 4vw, 64px);
    padding-left: var(--gutter);   /* h2 aligns with every other section */
    gap: 28px;
  }

  .experience__heading {
    font-size: clamp(2.75rem, 4.6vw, 4.25rem);
    max-width: 10ch;
  }
  .experience__copy    { font-size: 1.0625rem; max-width: 42ch; }

  .footer__social-link {
    width: 18px;
    height: 18px;
  }

  .footer__social {
    gap: 16px;
  }

}

/* ============================================================
   DESKTOP: 992px
   ============================================================ */
@media (min-width: 992px) {
  :root { --section-pad-y: 96px; }

  .hero__panel { gap: 24px; padding-bottom: 96px; }
  .button-container-pill__content { font-size: 0.9375rem; }

  .modern-list-container { padding-block: 20px; gap: 16px; }
  .modern-list-container__title { font-size: 1.0625rem; }
  .modern-list-container__desc  { font-size: 0.9375rem; }

  /* MEET — two columns: circle | copy */
  .meet {
    flex-direction: row;
    align-items: center;
    gap: clamp(48px, 6vw, 96px);
  }

  .meet__media { width: clamp(280px, 35vw, 460px); }

  .meet__content { gap: 18px; }
  .meet__heading { font-size: clamp(2rem, 3vw, 2.5rem); }
  .meet__copy    { max-width: 60ch; }
  .meet__buttons { width: auto; }
}

/* ============================================================
   FOOTER — desktop layout (three columns + pinned copyright)
   ============================================================ */
@media (min-width: 768px) {
    .footer__bottom {
        height: 140px;
    }

  .footer__blue {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
    align-items: start;
  }

  .footer__headline { font-size: clamp(2.25rem, 5.4vw, 4.25rem); }

  /* Copyright leaves the flow and pins to the right edge */
  .footer__copyright {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
  }
}

/* ============================================================
   SKIP LINK — first focusable element on the page. Off-screen
   until focused, so keyboard users can Tab once and jump past
   the nav straight to <main>.
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--white);
  color: var(--blue);
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
