:root {
  --blue: #00aae8;
  --dark: #345b69;
  --orange: #e87800;
  --white: #ffffff;
  --bg-tint: #eaf6fc;
  --card-blue: #abdcf2;
  --cta-blue: #d1f2ff;
  --footer: #0f2a38;
  --ink: #2c4a55;
  --muted: #5c7a85;
  --outline: #c7d8e1;

  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1320px;

  /* Fluid tokens — scale smoothly between a 375px phone and a 1920px desktop.
     clamp(min, preferred, max): preferred hits `min` at 375px and `max` at 1920px. */
  --section-px: clamp(20px, 3.6vw, 70px);
  --section-py: clamp(48px, 7vw, 110px);
  --section-minus-px: calc(clamp(20px, 3.6vw, 70px) * -1);

  /* ---------- FONT SIZE TOKENS ---------- */

  /* Headings */
  --fs-h1: clamp(1.75rem, 1.1rem + 3.3vw, 4.6875rem); /* 28px -> 75px */
  --fs-h1-sm: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem);
  --fs-h2: clamp(1.6rem, 1rem + 3.1vw, 4.6875rem); /* 26px -> 75px */
  --fs-h3: clamp(21px, 1.3vw + 14px, 30px); /* generic section h3 */

  /* Body / lead text */
  --fs-lead: clamp(0.95rem, 0.78rem + 0.9vw, 1.5625rem); /* 15px -> 25px */
  --fs-card-title: clamp(1.2rem, 1rem + 0.8vw, 1.25rem); /* 19px -> 20px */
  --fs-card-body: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem); /* 15px -> 20px */

  /* Buttons / eyebrow / trust ticker / Doctor cards  */
  --fs-eyebrow: clamp(15px, 1vw + 10px, 20px);
  --fs-btn: clamp(12px, 0.4vw + 11px, 14px);
  --fs-menu-item: clamp(21px, 1.5vw + 15px, 26px);
  --fs-doctor-name: clamp(20px, 1.6vw + 12px, 35px);
  --fs-doctor-desc: clamp(14.5px, 0.3vw + 14px, 16.5px);
  --fs-footer-text: clamp(15.5px, 0.5vw + 13px, 20.5px);

  --gap-xl: clamp(30px, 4vw, 65px);
  --gap-lg: clamp(18px, 2.6vw, 45px);
  --gap-md: clamp(16px, 2vw, 35px);
  --gap-sm: clamp(14px, 1.2vw, 25px);

  --box-shadow-standard: 0 0 20px rgba(15, 42, 56, 0.05),
    0 12px 28px rgba(15, 42, 56, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Figtree", sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

main {
  background: linear-gradient(to bottom, #ffffff 0%, #f5fbfe 50%, #f5fbfe 100%);
}

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

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

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 14px;
}

section {
  min-height: 100vh;
  padding: 0 var(--section-px);
}

.section-head {
  text-align: center;
  margin: 0 auto clamp(28px, 4vw, 56px);
}

section h2 {
  font-size: var(--fs-h2);
  margin-bottom: 24px;
  position: relative;
  display: inline-block;
  font-weight: 100;
}

section h3 {
  font-family: "Figtree", sans-serif;
  font-weight: 700;
  font-size: var(--fs-h3);
  color: var(--dark);
  margin-bottom: 12px;
}

section h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--blue);
  opacity: 0.6;
}

section p {
  font-size: var(--fs-lead);
  color: var(--ink);
  margin-bottom: 34px;
  font-weight: 500;
  max-width: min(90%, 68ch);
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: clamp(12px, 1vw + 8px, 15px) clamp(20px, 2vw + 10px, 30px);
  border-radius: 100px;
  font-size: var(--fs-btn);
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover {
  background: #2a4750;
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  white-space: normal;
}
.btn-orange:hover {
  background: #cf6c00;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--dark);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

a:hover .icon-arrow-circle,
.icon-arrow-circle:hover {
  transform: translateX(3px);
}

/* ---------- GLOBAL CUSTOM SCROLLBAR ---------- */

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--card-blue) transparent;
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar {
  width: 4px;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: var(--card-blue);
  border-radius: 10px;
}

html::-webkit-scrollbar-thumb:hover {
  background: #008fc4;
}

/* ---------- NAV OVERLAY ---------- */
body.menu-open {
  overflow: hidden;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  /* transform: translateY(-8px); */
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 30px -20px rgba(15, 42, 56, 0.25);
  overflow: hidden;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  /* transform: translateY(0); */
}

.nav-overlay .nav-inner {
  position: relative;
  z-index: 2;
}

.menu-panel {
  position: relative;
  z-index: 2;
  padding: clamp(20px, 3vw, 20px) var(--section-px) clamp(50px, 6vw, 80px);

  /* NEW: make the list itself scrollable */
  max-height: calc(
    100vh - 90px
  ); /* reserve space for the nav-inner row (logo/close button) above it — adjust 90px to match your actual header height */
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.menu-list > li > a,
.menu-list > li > button.menu-parent {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Figtree", sans-serif;
  font-size: var(--fs-menu-item);
  color: var(--dark);
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: color 0.2s ease;
}
.menu-list > li > a:hover,
.menu-list > li > button.menu-parent:hover {
  color: var(--blue);
}
.menu-parent .chev {
  transition: transform 0.3s ease;
  color: var(--muted);
}

/* .menu-list > li:hover > .menu-parent .chev {
  color: var(--blue);
} */

li.has-sub.open .menu-parent .chev {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  border-left: 4px solid var(--blue);
  margin-left: 4px;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
}

li.has-sub.open .submenu {
  max-height: 520px;
}

.submenu li a {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 400;
  color: var(--ink);
  padding: 9px 0;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.submenu li a:hover {
  color: var(--blue);
  opacity: 1;
}

/* ---------- HEADER ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-bottom: 30px;
  margin-bottom: -30px;
  transition: background 0.35s ease, backdrop-filter 0.35s ease,
    border-color 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
}

header.scrolled {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 8px 30px -20px rgba(15, 42, 56, 0.25);
  padding-bottom: 0;
  margin-bottom: 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 1.3vw, 20px) var(--section-px);
  transition: padding 0.35s ease;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
}
.menu-toggle span {
  font-size: clamp(11px, 0.75vw, 13px);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo {
  width: clamp(140px, 10.42vw, 200px);
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  background: url(../images/hero-home.jpg) no-repeat center right;
  background-size: cover;
  overflow: hidden;
}

.hero-inner {
  margin: 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1 {
  font-size: var(--fs-h1);
  margin-bottom: 26px;
  font-weight: 100;
}
h1 .accent {
  color: var(--blue);
}
.hero-copy p {
  margin-left: unset;
  max-width: 38%;
}
.hero-copy p strong {
  color: var(--dark);
}
.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.trust-inner {
  padding: clamp(10px, 1.2vw, 16px) 0;
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0px;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.55) 55%,
    rgba(255, 255, 255, 0.85) 100%
  );
  /* fade the ticker out at both edges so items don't hard-clip */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--section-px),
    #000 calc(100% - var(--section-px)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 var(--section-px),
    #000 calc(100% - var(--section-px)),
    transparent 100%
  );
}

.trust-track {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(24px, 3vw, 50px);
  padding: 0 var(--section-px);
}

.trust-track.is-scrolling {
  width: max-content;
  justify-content: flex-start;
  animation: trust-scroll 28s linear infinite;
}

.trust-inner:hover .trust-track.is-scrolling,
.trust-inner:focus-within .trust-track.is-scrolling {
  animation-play-state: paused;
}

.check-dot {
  display: flex;
  align-items: center;
  justify-content: right;
}

@keyframes trust-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  /* font-size: clamp(13px, 0.3vw + 12px, 16px); */
  font-size: var(--fs-doctor-desc);
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .trust-track {
    animation: none;
  }
  .trust-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------- WHY CHOOSE US ---------- */
.why {
  padding: var(--section-py) var(--section-px);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap-lg);
}
.why-card {
  background: var(--card-blue);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3.6vw, 60px);
  text-align: center;
}
.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}
.why-card h3 {
  font-family: "Figtree", sans-serif;
  font-size: var(--fs-card-title);
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--dark);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.why-card p {
  font-size: var(--fs-card-body);
  color: var(--ink);
  opacity: 0.85;
  font-weight: 500;
  margin-bottom: 0;
}
.commitment {
  background: var(--cta-blue);
  border-radius: 100px;
  text-align: center;
  padding: clamp(20px, 2vw, 28px) 20px;
  max-width: min(90%, 880px);
  margin: clamp(25px, 2.6vw, 50px) auto 0;
}
.commitment h4 {
  font-size: var(--fs-doctor-name);
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 5px;
}
.commitment p {
  color: var(--muted);
  font-weight: 100;
  margin-bottom: 0;
}

/* ---------- DENTISTS ---------- */
.dentists {
  padding: var(--section-py) var(--section-px);
}

/* 6-column grid: each card spans 2 columns = 3 cards per row.
   Leftover cards in the last row are centered (see media queries below). */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--gap-md);
  padding: 0 clamp(0px, 4vw, 70px);
}
.doctor-card {
  grid-column: span 2;
  border: 1px solid #c0e2f2;
  border-radius: clamp(28px, 2.6vw, 50px);
  padding: 12px;
}

/* Desktop only: center leftover cards in the last row */
@media (min-width: 1025px) {
  /* 1 card alone in the last row → middle */
  .doctor-card:nth-child(3n + 1):last-child {
    grid-column: 3 / span 2;
  }

  /* 2 cards in the last row → centered as a pair */
  .doctor-card:nth-child(3n + 1):nth-last-child(2) {
    grid-column: 2 / span 2;
  }
  .doctor-card:nth-child(3n + 2):last-child {
    grid-column: 4 / span 2;
  }
}

.doctor-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: clamp(20px, 1.8vw, 36px);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doctor-photo svg {
  width: 52%;
  opacity: 0.85;
}
.doctor-card .body {
  padding: 6px clamp(14px, 1.6vw, 22px) 18px;
}
.doctor-card h3 {
  color: var(--blue);
  font-size: var(--fs-doctor-name);
  margin-bottom: 6px;
  font-family: "Figtree";
  font-weight: 500;
}
.doctor-card .title {
  font-size: var(--fs-eyebrow);
  color: var(--dark);
  font-weight: 100;
  padding-bottom: 18px;
  border-bottom: 1px solid #e3eef3;
  margin-bottom: 18px;
  min-height: calc(var(--fs-eyebrow) * 1.75 * 2);
}
.doctor-card .desc {
  font-size: var(--fs-doctor-desc);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: unset;
}
.expertise-label {
  font-size: var(--fs-doctor-desc);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
}
.expertise-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 10px;
  margin-bottom: 26px;
}
.expertise-list li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-doctor-desc);
  color: var(--ink);
}
.doctor-card .btn-outline {
  display: block;
  width: 100%;
  text-align: center;
  font-size: var(--fs-btn);
  padding: 15px 20px;
  font-weight: 700;
}

.tick {
  width: clamp(15px, 1.3vw, 22px);
  height: clamp(15px, 1.3vw, 22px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tick img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- HOW CAN WE HELP ---------- */
.help {
  padding: var(--section-py) var(--section-px);
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-lg);
  margin-bottom: clamp(36px, 4vw, 60px);
}

.help-card {
  background: #fff;
  border: none;
  border-radius: 32px;
  padding: 10px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 0 20px 5px rgba(0, 170, 232, 0.18);
  min-height: 230px;
  /* aspect-ratio: 4 / 3; */
}

.help-card .icon-arrow-circle img:hover{
  transform: translateX(3px);
}

.help-text {
  flex: 1;
  padding: clamp(14px, 1.4vw, 20px);
  padding-left: 12px;
  display: flex;
  flex-direction: column;
}
.help-icon {
  width: clamp(64px, 5vw, 100px);
  height: clamp(64px, 5vw, 100px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.help-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}

.help-text p {
  font-size: var(--fs-doctor-desc);
  line-height: 1.75;
  color: var(--ink);
  margin: 16px 0;
  padding-bottom: 16px;
  font-weight: 500;
  min-height: calc(var(--fs-doctor-desc) * 1.75 * 3.5);
}
.help-photo {
  flex: 1.2;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}
.help-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin-left: 1px;
}
.help-photo::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    rgba(255, 255, 255, 0.95) 10%,
    rgba(255, 255, 255, 0.75) 20%,
    rgba(255, 255, 255, 0.35) 40%,
    rgba(255, 255, 255, 0) 50%
  );
  background: linear-gradient(
    to right,
    #ffffff 0%,
    rgba(255, 255, 255, 0.95) 5%,
    rgba(255, 255, 255, 0.75) 14%,
    rgba(255, 255, 255, 0.35) 30%,
    rgba(255, 255, 255, 0) 40%
  );
}

.help-cta {
  background: var(--cta-blue);
  border-radius: 100px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-right: 36px;
}
.help-cta-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.help-cta-icon {
  width: clamp(60px, 4vw, 90px);
  height: clamp(60px, 4vw, 90px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-cta h4 {
  margin-bottom: 4px;
  font-size: var(--fs-card-title);
  font-weight: 700;
}
.help-cta p {
  font-size: var(--fs-card-body);
  opacity: 0.85;
}

.help-cta-note p {
  margin-bottom: unset;
  margin-left: unset;
  max-width: unset;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--footer);
  color: #dfe9ee;
  padding: clamp(40px, 4.6vw, 70px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
}
.footer-col {
  border-left: 2px solid var(--blue);
  /* padding-left: 35px; */
  padding-left: 50px;
}
.footer-grid > div:first-child {
  border-left: none;
}
.footer-col h5 {
  color: var(--blue);
  font-size: var(--fs-menu-item);
  font-weight: 700;
  margin-bottom: 22px;
}
.foot-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
}
.foot-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.foot-logo img {
  width: 100%;
}
.foot-tag {
  font-size: clamp(8px, 0.5vw, 12px);
  letter-spacing: 1.5px;
  color: var(--bg-tint);
  margin-top: 16px;
  text-transform: uppercase;
}
.foot-social {
  display: flex;
  gap: 20px;
  margin-top: 50px;
}
.footer-col p,
.footer-col a,
.footer-col li {
  font-size: var(--fs-footer-text);
  line-height: 1.6;
}
.foot-social img {
  width: 100%;
}
.footer-col ul {
  list-style: none;
}
.footer-col a:hover {
  color: #fff;
}
.foot-highlight {
  color: var(--orange);
  font-weight: 600;
}
.foot-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- Small Laptop / Standard Browser Window (1025px–1600px) ---------- */
@media (min-width: 1025px) and (max-width: 1600px) {
  :root {
    --section-px: clamp(24px, 2.6vw, 48px);
    --section-py: clamp(32px, 4vw, 64px);

    /* Headings */
    --fs-h1: clamp(
      2.504rem,
      3.906vw,
      3.906rem
    ); /* 40px -> 62.5px, same ratio as 75px/1920 */
    /* --fs-h1-sm: clamp(2rem, 1.6rem + 1.3vw, 2.8rem); */
    --fs-h1-sm:clamp(1.7rem, 1.3rem + 1.5vw, 2.6rem);
    --fs-h2: clamp(2.2rem, 3.2vw, 3.2rem);
    --fs-h3: clamp(16.03px, 1.5625vw, 25px); /* same ratio as 30px/1920 */

    /* Body / lead text */
    --fs-lead: clamp(0.835rem, 1.302vw, 1.302rem); /* same ratio as 25px/1920 */
    --fs-card-title: clamp(
      0.668rem,
      1.0417vw,
      1.042rem
    ); /* same ratio as 20px/1920 */
    --fs-card-body: clamp(
      0.668rem,
      1.0417vw,
      1.042rem
    ); /* same ratio as 20px/1920 */

    /* Buttons / eyebrow / trust ticker / Doctor cards */
    --fs-eyebrow: clamp(
      10.68px,
      1.0417vw,
      16.67px
    ); /* same ratio as 20px/1920 */
    --fs-btn: clamp(7.48px, 0.7292vw, 11.67px); /* same ratio as 14px/1920 */
    --fs-menu-item: clamp(
      13.89px,
      1.3542vw,
      21.67px
    ); /* same ratio as 26px/1920 */
    --fs-doctor-name: clamp(17px, 1.65vw, 27px);
    --fs-doctor-desc: clamp(
      8.81px,
      0.859vw,
      13.75px
    ); /* same ratio as 16.5px/1920 */
    --fs-footer-text: clamp(
      10.95px,
      1.0677vw,
      17.08px
    ); /* same ratio as 20.5px/1920 */

    --gap-xl: clamp(20px, 1.8vw, 34px);
    --gap-lg: clamp(14px, 1.4vw, 26px);
    --gap-md: clamp(12px, 1.1vw, 20px);
    --gap-sm: clamp(10px, 0.8vw, 15px);
  }

  .logo {
    width: clamp(120px, 8vw, 160px);
  }

  .trust-inner {
    padding: clamp(6px, 0.8vw, 10px) 0;
  }

  /* ---- Padding tokens that weren't covered by --section-px/--section-py ---- */

  .section-head {
    margin-bottom: clamp(20px, 2.4vw, 36px);
  }

  .why-card {
    padding: clamp(18px, 2vw, 32px);
  }

  .commitment {
    padding: clamp(14px, 1.4vw, 20px) 18px;
  }

  .doctor-card {
    padding: 8px;
  }

  .doctor-card .body {
    padding: 4px clamp(10px, 1vw, 16px) 14px;
  }

  .help-text {
    padding: clamp(10px, 1vw, 16px);
    padding-left: 10px;
  }

  .help-icon {
    width: clamp(60px, 4.2vw, 84px);
    height: clamp(60px, 4.2vw, 84px);
    margin-bottom: 14px;
  }

  .help-cta {
    padding: 10px;
    padding-right: 26px;
  }

  .help-cta-icon {
    width: clamp(48px, 3vw, 64px);
    height: clamp(48px, 3vw, 64px);
  }

  footer {
    padding: clamp(28px, 3.2vw, 48px);
  }

  .footer-col {
    /* padding-left: 24px; */
    padding-left: 45px;
  }

  .btn {
    gap: 12px;
    padding: clamp(10px, 0.8vw, 13px) clamp(16px, 1.6vw, 24px);
  }

  .nav-inner {
    padding: clamp(10px, 1vw, 16px) var(--section-px);
  }

  .menu-panel {
    padding: clamp(16px, 2vw, 20px) var(--section-px) clamp(36px, 4vw, 56px);
  }

  .check-dot img {
    width: 75%;
  }

  .icon-arrow-circle img {
    width: clamp(60px, 4.2vw, 84px);
    height: clamp(60px, 4.2vw, 84px);
  }

  .tick {
    width: clamp(15px, 1.3vw, 22px);
    height: clamp(15px, 1.3vw, 22px);
  }

  .foot-logo img {
    width: 80%;
  }

  .foot-social {
    gap: 14px;
    margin-top: 32px;
  }
}


/* ---------- Tablet (≤1024px) ---------- */

@media (max-width: 1024px) {
  .hero {
    padding: 0;
  }

  .hero {
    background-position: top right;
    background-size: 150% auto;
  }

  .hero-copy p {
    max-width: unset;
  }

  .hero-inner {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 40%;
    padding: 24px;
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 8px 30px -20px rgba(15, 42, 56, 0.25);
    display: flex;
    justify-content: flex-start;
    height: auto;
    padding-bottom: 100px;
  }

  .hero-btns .btn {
    justify-content: center;
  }
  .hero-btns .btn-orange {
    order: -1;
  }

  .trust-inner {
    /* position: relative; */
    background: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .tick {
    width: clamp(15px, 1.3vw, 22px);
    height: clamp(15px, 1.3vw, 22px);
    flex-shrink: 0;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 4 columns, each card spans 2 = 2 cards per row */
  .doctor-grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 0;
    max-width: 720px;
    margin: 0 auto;
  }

  .help-grid {
    grid-template-columns: 1fr 1fr;
  }

  .help-cta {
    flex-direction: column;
    text-align: center;
    padding-left: clamp(20px, 3vw, 50px);
    border-radius: 32px;
    gap: 0;
  }

  .help-cta .btn {
    margin-top: -15px;
    margin-bottom: 15px;
  }

  .help-cta-left {
    padding-bottom: 0;
    flex-direction: column;
    align-items: center;
    display: flex;
    gap: 18px;
    max-width: 60%;
    padding: 35px 0;
  }

  .help-card {
    flex-direction: column-reverse;
    aspect-ratio: auto;
  }

  .help-photo img {
    margin-bottom: 1px;
  }

  .help-text {
    padding: clamp(14px, 1.4vw, 20px);
  }

  .help-photo::before {
    background: linear-gradient(
      to top,
      #ffffff 0%,
      rgba(255, 255, 255, 0.7) 10%,
      rgba(255, 255, 255, 0) 20%
    );
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
  .foot-divider {
    display: none;
  }
}

/* Tablet only (601px–1024px): center an odd card left alone in the last row */
@media (min-width: 601px) and (max-width: 1024px) {
  .doctor-card:nth-child(odd):last-child {
    grid-column: 2 / span 2;
  }
}

/* ---------- Mobile (≤600px) ---------- */
@media (max-width: 600px) {
  .hero {
    background: url(../images/hero-home-mobile.jpg) no-repeat top right;
    background-position: top right;
    background-size: 100% auto;
    background-repeat: no-repeat;
  }

  .menu-toggle span:not(.menu-circle) {
    display: none;
  }

  .hero-inner {
    /* height: 50%; */
    padding-bottom: 80px;
  }

  #menuLabel {
    display: none;
  }

  .nav-inner .btn-orange {
    display: none;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .doctor-grid {
    grid-template-columns: 1fr;
  }

  /* cancel the span 2 so cards don't create extra columns */
  .doctor-card {
    grid-column: auto;
  }

  .help-grid {
    grid-template-columns: 1fr;
  }
  .expertise-list {
    grid-template-columns: 1fr;
  }

  .help-card {
    flex-direction: column;
  }

  .help-photo {
    min-height: 180px;
    order: -1;
  }

  .help-cta {
    flex-direction: column;
    align-items: center;
    padding-right: 20px;
  }
  .help-cta-left {
    max-width: 74%;
    padding: 30px 0;
  }
  .help-cta a {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-col {
    border-left: none;
    padding-left: 0;
    /* border-top: 2px solid var(--blue); */
    padding-top: 20px;
  }
  .footer-grid > div:first-child {
    border-top: none;
    padding-top: 0;
  }

  .commitment {
    max-width: 100%;
  }

  .help-text p {
    min-height: unset
}
}

@media (max-width: 600px) {
  .nav-inner {
    position: relative;
  }

  .nav-inner .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-inner .btn-orange {
    display: none;
  }

  #menuLabel {
    display: none;
  }

  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 375px) {

  :root {
    --fs-h1: 28px;
    --fs-eyebrow: 12px;
    --fs-lead: 14px;
  }

  .hero-copy p {
    margin-bottom: 22px;
  }

  h1 {
    margin-bottom: 18px;
  }

  .btn {
    gap: 5px;
  }

  .hero-inner {
    padding: 16px 16px 80px;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  section p {
    margin-bottom: 20px;
  }
}