/* =========================================================
   Drs Cohen, Freinkel & Associates — Homepage
   ========================================================= */

:root {
  --navy: #013d6c;
  --navy-700: #012f54;
  --navy-900: #00203b;
  --sky: #4fa8de;
  --sky-300: #9fd1f0;
  --sky-100: #dceefa;
  --sky-50: #f1f8fd;
  --white: #fff;
  --ink: #0e2a40;
  --text: #4a5f72;
  --muted: #7a8c9c;
  --line: #e2ebf3;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 8px rgba(1, 61, 108, .06);
  --shadow: 0 18px 40px -18px rgba(1, 61, 108, .28);
  --shadow-lg: 0 40px 80px -30px rgba(1, 61, 108, .38);

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --header-h: 84px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: .75rem 1.25rem; border-radius: 999px;
  background: var(--navy); color: var(--white); font-weight: 600;
  transform: translateY(-160%); transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.center { display: flex; justify-content: center; }

/* ---------- Typography ---------- */
.h2 {
  font-size: clamp(1.85rem, 1.35rem + 1.9vw, 2.9rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--navy);
  text-wrap: balance;
}
.lead { font-size: clamp(1.05rem, 1rem + .25vw, 1.175rem); line-height: 1.75; color: var(--ink); font-weight: 500; }
.rule {
  display: block; width: 56px; height: 4px; border-radius: 4px; margin: 1.25rem 0 1.6rem;
  background: linear-gradient(90deg, var(--navy) 0 60%, var(--sky) 60%);
}
.rule--light { background: linear-gradient(90deg, var(--white) 0 60%, var(--sky-300) 60%); }
.inline-link {
  color: var(--navy); font-weight: 600;
  background: linear-gradient(var(--sky-300), var(--sky-300)) 0 100% / 100% 2px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.inline-link:hover { background-size: 100% 100%; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: var(--white); --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.55rem;
  border: 2px solid var(--bd); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-size: .9rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }
/* Every button shares the nav CTA style */
.btn { box-shadow: 0 12px 24px -12px rgba(1, 61, 108, .6); }
.btn:hover { --bg: var(--navy-700); --bd: var(--navy-700); box-shadow: 0 18px 30px -14px rgba(1, 61, 108, .7); }
/* On dark-blue backgrounds a light edge keeps the same button visible */
.hero .btn, .book .btn { --bd: rgba(255, 255, 255, .35); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }
.hero .btn:hover, .book .btn:hover { --bd: rgba(255, 255, 255, .7); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; }
.topbar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 500; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 42px; }
.topbar__group { display: flex; gap: 1.75rem; }
.topbar__item { display: inline-flex; align-items: center; gap: .5rem; transition: color .2s; }
.topbar__item .icon { color: var(--sky-300); }
.topbar__item:hover { color: var(--white); }

.navbar {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s;
}
.is-scrolled .navbar { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(1, 61, 108, .35); }
.navbar__inner { display: flex; align-items: center; gap: 2rem; min-height: var(--header-h); transition: min-height .3s var(--ease); }
.is-scrolled .navbar__inner { min-height: 70px; }

.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 46px; width: auto; transition: opacity .25s, height .3s var(--ease); }
.logo:hover img { opacity: .85; }
.is-scrolled .logo img { height: 42px; }
.footer .logo img { height: auto; width: 100%; max-width: 300px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: .35rem; }
.nav__link {
  position: relative; display: block; padding: .6rem 1rem;
  font-size: .9rem; font-weight: 600; color: var(--ink);
  transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .25rem; height: 2px; border-radius: 2px;
  background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }

/* Services dropdown: opens on hover/focus, or via the toggle on touch and keyboard */
.nav__item--has-sub { position: relative; display: flex; align-items: center; }
.nav__item--has-sub > .nav__link { padding-right: .2rem; }
.nav__item--has-sub > .nav__link::after { right: .2rem; }
.nav__toggle { display: grid; place-items: center; width: 28px; height: 36px; margin-right: .4rem; color: var(--navy); font-size: .8rem; }
.nav__toggle .icon { transform: rotate(90deg); transition: transform .3s var(--ease); }
.nav__sub {
  position: absolute; top: calc(100% + 10px); left: -.5rem; z-index: 10; width: 320px;
  display: grid; gap: .15rem; padding: .6rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
/* Bridges the gap so the menu stays open while the pointer moves down to it */
.nav__sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub, .nav__item--has-sub.is-open .nav__sub {
  opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}
.nav__item--has-sub:hover .nav__toggle .icon, .nav__item--has-sub.is-open .nav__toggle .icon { transform: rotate(-90deg); }
.nav__sublink {
  display: block; padding: .6rem .85rem; border-radius: var(--radius-sm);
  font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.4;
  transition: background-color .2s, color .2s;
}
.nav__sublink:hover { background: var(--sky-50); color: var(--navy); }
.nav__sublink[aria-current="page"] { background: var(--navy); color: var(--white); }

.navbar__actions { display: flex; align-items: center; gap: .75rem; }
.burger { display: none; width: 48px; height: 48px; border-radius: 14px; background: var(--sky-50); position: relative; }
.burger span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .3s var(--ease), opacity .2s;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 23px; }
.burger span:nth-child(3) { top: 29px; }
.nav-open .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* Full-width background photo; the quickbar straddles its bottom edge */
.hero { --overlap: 56px; position: relative; isolation: isolate; padding: clamp(5rem, 3rem + 7vw, 9.5rem) 0 0; overflow: hidden; }
.hero__bg { position: absolute; inset: 0 0 var(--overlap) 0; z-index: -1; background: var(--navy-900); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 32, 59, .6) 0%, rgba(1, 61, 108, .42) 38%, rgba(1, 61, 108, .06) 66%, rgba(1, 61, 108, 0) 100%),
    linear-gradient(0deg, rgba(0, 32, 59, .12), transparent 40%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 40rem); }
.hero__title {
  text-shadow: 0 2px 28px rgba(0, 32, 59, .6);
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.06; font-weight: 800; letter-spacing: -.035em; color: var(--white);
  text-wrap: balance;
}
.hero__title .hl { display: block; color: var(--sky-300); }
.hero__lead { text-shadow: 0 1px 12px rgba(0, 32, 59, .7); margin-top: 1.5rem; max-width: 34rem; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: rgba(255, 255, 255, .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }


.hours { display: grid; gap: .4rem; font-size: .82rem; }
.hours > div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .4rem; border-bottom: 1px dashed var(--line); }
.hours > div:last-child { border-bottom: 0; padding-bottom: 0; }
.hours dt { color: var(--text); }
.hours dd { color: var(--navy); font-weight: 600; white-space: nowrap; }

.quickbar {
  display: grid; grid-template-columns: 1fr 1fr 1.45fr; margin-top: clamp(3rem, 5vw, 4.5rem);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.quickbar li { display: flex; align-items: center; gap: 1rem; padding: 1.5rem 1.75rem; min-width: 0; }
.quickbar li + li { border-left: 1px solid var(--line); }
.quickbar__icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--navy); color: var(--white); font-size: 1.1rem;
}
.quickbar__text { display: flex; flex-direction: column; min-width: 0; font-size: .9rem; font-weight: 600; color: var(--ink); line-height: 1.5; }
.quickbar__text a { transition: color .2s; overflow-wrap: anywhere; }
.quickbar__text a:hover { color: var(--sky); }
.quickbar__label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 2px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); position: relative; }
.section-head { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.section-head .rule { margin-bottom: 0; }
.section-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; }
.section-head__aside p { font-size: 1.02rem; }
.section-head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Story */
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6.5rem); align-items: center; }
.story__media { position: relative; }
.story__img { overflow: hidden; border-radius: var(--radius-lg); }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.story__img:hover img { transform: scale(1.04); }
.story__img--main { aspect-ratio: 4 / 4.4; box-shadow: var(--shadow); }
.story__img--main img { object-position: 34% 40%; }
.story__ring {
  position: absolute; left: -36px; top: -36px; width: 140px; height: 140px; border-radius: 50%; z-index: -1;
  border: 18px solid var(--sky-100);
}
.story__content { display: flex; flex-direction: column; align-items: flex-start; }
.story__content p + p { margin-top: 1.1rem; }
.story__content .btn { margin-top: 2.25rem; }

/* Doctors */
.doctors { background: linear-gradient(180deg, var(--sky-50), var(--white)); }
.doctor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 3.5rem; }
.doctor {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg);
  border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.doctor:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.doctor__photo { position: relative; aspect-ratio: 1 / 1.05; overflow: hidden; background: var(--sky-100); }
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; transition: transform .8s var(--ease); }
.doctor:hover .doctor__photo img { transform: scale(1.05); }
.doctor__photo::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--sky)); }
.doctor__body { padding: 1.5rem 1.5rem 1.75rem; font-size: .88rem; line-height: 1.7; }
.doctor__name { font-size: 1.12rem; font-weight: 700; color: var(--navy); letter-spacing: -.01em; margin-bottom: .6rem; }

/* Services */
.services { background: var(--navy); color: rgba(255, 255, 255, .78); overflow: hidden; isolation: isolate; }
.services .h2 { color: var(--white); }
.services__deco {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 500px at 100% 0%, rgba(79, 168, 222, .28), transparent 60%),
    radial-gradient(600px 500px at 0% 100%, rgba(79, 168, 222, .16), transparent 60%);
}
.services__deco::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 1.75rem; }
.service {
  position: relative; display: flex; flex-direction: column;
  padding: 10px; border-radius: var(--radius-lg);
  background: var(--white); color: var(--text); font-size: .92rem; line-height: 1.7;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
/* Fine concentric arcs tucked into the bottom-right corner */
.service::after {
  content: ""; position: absolute; right: -70px; bottom: -70px; z-index: -1;
  width: 170px; height: 170px; border-radius: 50%;
  border: 1px solid var(--sky-100); box-shadow: 0 0 0 18px var(--white), 0 0 0 19px var(--sky-50);
  transition: transform .6s var(--ease);
}
.service:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .55); }
.service:hover::after { transform: scale(1.18); }

/* Framed photo with one sweeping corner that the icon sits against */
.service__media { position: relative; }
.service__photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 20px 20px 96px 20px; background: var(--sky-100);
}
.service__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.service__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(1, 61, 108, .28)); transition: opacity .5s var(--ease); }
.service:hover .service__photo img { transform: scale(1.07); }
.service:hover .service__photo::after { opacity: .5; }

.service__icon {
  position: absolute; left: 1.5rem; bottom: -32px; z-index: 1;
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 0 6px var(--white), 0 14px 26px -12px rgba(1, 61, 108, .45);
  transition: background-color .4s var(--ease);
}
.service__icon::before {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed var(--sky-300); opacity: 0;
  transition: opacity .4s var(--ease), transform .8s var(--ease);
}
.service__icon img { width: 32px; height: 32px; transition: filter .4s var(--ease), transform .4s var(--ease); }
.service:hover .service__icon { background: var(--navy); }
.service:hover .service__icon::before { opacity: 1; transform: rotate(60deg); }
.service:hover .service__icon img { filter: brightness(0) invert(1); transform: scale(1.06); }

.service__body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 2.9rem 1.5rem 1.6rem; }
.service__title { font-size: 1.12rem; font-weight: 700; line-height: 1.35; text-wrap: balance; color: var(--navy); margin-bottom: .7rem; letter-spacing: -.01em; }
.service p { flex: 1; margin-bottom: 1.4rem; }
/* "Find Out More" uses the shared button style; its ::after stretches the click area over the whole card */
.service__link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius-lg); }
/* No lift on the button itself: a transform would shrink the stretched click area mid-hover */
.service__link.btn:hover { transform: none; }
.service:hover .service__link { --bg: var(--navy-700); --bd: var(--navy-700); box-shadow: 0 18px 30px -14px rgba(1, 61, 108, .7); }
.service__link:focus-visible { outline: none; }
.service__link:focus-visible::after { outline: 3px solid var(--sky); outline-offset: -3px; }

/* Families */
.families__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 6.5rem); align-items: center; }
.families__address {
  display: flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 1.1rem 1.25rem;
  border-radius: var(--radius); background: var(--sky-50); border: 1px solid var(--sky-100);
  font-size: .9rem; font-weight: 600; color: var(--navy); line-height: 1.5;
}
.families__address a:hover { color: var(--sky); }
.families__media { position: relative; }
.families__img { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.families__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.families__img:hover img { transform: scale(1.04); }
.families__img--a { aspect-ratio: 4 / 3.6; }
.families__img--a img { object-position: 55% 50%; }

/* Reviews */
.reviews { background: var(--sky-50); }
/* Reviews styled after the Trustindex Google reviews widget */
.ti-widget { display: grid; grid-template-columns: minmax(0, 1fr); }

.carousel { position: relative; min-width: 0; }
.carousel__stage { position: relative; }
.carousel__viewport { overflow: hidden; margin: -.75rem 0; padding: .75rem 0; }
.carousel__track { display: flex; align-items: flex-start; gap: 1rem; transition: transform .6s var(--ease); will-change: transform; touch-action: pan-y; }
.review {
  position: relative; flex: 0 0 calc((100% - 2rem) / 3);
  display: flex; flex-direction: column;
  padding: 1.25rem 1.25rem 1.1rem; border-radius: 10px;
  background: var(--white); border: 1px solid #e6edf3;
  box-shadow: 0 1px 3px rgba(0, 32, 59, .06);
  transition: box-shadow .25s var(--ease);
}
.review:hover { box-shadow: 0 6px 18px -6px rgba(0, 32, 59, .18); }
.review__head { display: flex; align-items: center; gap: .7rem; margin-bottom: .75rem; min-width: 0; }
.review__avatar {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%;
  background: var(--av, var(--navy)); color: var(--white); font-size: 1.05rem; font-weight: 600;
}
.review__name { flex: 1; min-width: 0; font-size: .9rem; font-weight: 700; color: var(--ink); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review__source { flex: none; width: 20px; height: 20px; }
.review__stars { display: flex; gap: 1px; color: #fbbc04; margin-bottom: .6rem; }
.review__stars svg { width: 17px; height: 17px; }
.review__text { --lines: 5; font-size: .88rem; line-height: 1.65; color: #3c4043; }
/* Collapsed: every card shows the same number of lines, so all cards match in height */
.review__text:not(.is-expanded) {
  height: calc(var(--lines) * 1.65em); overflow: hidden;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--lines);
}
.review__more { align-self: flex-start; margin-top: .4rem; min-height: 24px; font-size: .8rem; font-weight: 500; color: #70757a; transition: color .2s; }
.review__more:hover { color: var(--ink); text-decoration: underline; }
.review__more[hidden] { display: block; visibility: hidden; }

.carousel__btn {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px;
  border-radius: 50%; background: var(--white); color: #5f6368; border: 1px solid #e6edf3; font-size: 1.05rem;
  box-shadow: 0 2px 8px rgba(0, 32, 59, .15);
  transition: color .2s, box-shadow .2s, transform .2s var(--ease);
}
.carousel__btn--prev { left: -20px; }
.carousel__btn--next { right: -20px; }
.carousel__btn:hover { color: var(--ink); box-shadow: 0 4px 14px rgba(0, 32, 59, .22); }
.carousel__btn:active { transform: scale(.94); }
.carousel__dots { display: flex; flex-wrap: wrap; justify-content: center; margin-top: 1.25rem; }
.carousel__dot { display: grid; place-items: center; width: 22px; height: 24px; }
.carousel__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #c8d3dc; transition: background-color .25s; }
.carousel__dot[aria-current="true"]::before { background: #5f6368; }

/* Book */
.book { padding: var(--section) 0; background: linear-gradient(180deg, var(--sky-50) 0 50%, var(--white) 50%); padding-top: 0; }
.book__panel {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--navy); color: rgba(255, 255, 255, .82); box-shadow: var(--shadow-lg);
  isolation: isolate;
}
.book__panel::before {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; z-index: -1;
  border: 60px solid rgba(79, 168, 222, .14);
}
.book__img { position: relative; min-height: 360px; }
.book__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.book__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 50%, var(--navy)); }
.book__content { padding: clamp(2.5rem, 5vw, 4.5rem); align-self: center; }
.book__content .h2 { color: var(--white); margin-bottom: 1.1rem; }
.book__content p { font-size: 1.05rem; max-width: 32rem; }
.book__content p a { color: var(--white); font-weight: 600; border-bottom: 1.5px solid var(--sky); transition: color .2s; }
.book__content p a:hover { color: var(--sky-300); }
.book__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

/* Footer */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .7); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr 1.05fr 1.15fr; gap: 3rem 2.75rem; padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.footer__map {
  position: relative; min-height: 260px; height: 100%; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, .1); background: var(--navy);
}
.footer__map iframe { display: block; width: 100%; height: 100%; }
.footer__brand p { margin: 1.4rem 0 1.75rem; max-width: 22rem; }
.footer__title { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-300); margin: 0 0 .6rem; }
.footer__col p + .footer__title, .footer__col address + .footer__title { margin-top: 1.5rem; }
.footer a { transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.hours--footer { font-size: .88rem; max-width: 300px; gap: .55rem; }
.hours--footer > div { border-color: rgba(255, 255, 255, .1); padding-bottom: .55rem; }
.hours--footer dt { color: rgba(255, 255, 255, .7); white-space: nowrap; }
.hours--footer dd { color: var(--white); }
.social { display: flex; gap: .65rem; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18); color: var(--white);
  transition: background-color .25s, border-color .25s, transform .25s var(--ease), color .25s;
}
.social a:hover { background: var(--white); color: var(--navy); border-color: var(--white); transform: translateY(-3px); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); font-size: .8rem; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.credit { display: inline-flex; align-items: center; gap: .55rem; }
.credit img { height: 15px; width: auto; opacity: .85; transition: opacity .2s; }
.credit:hover { color: var(--white); }
.credit:hover img { opacity: 1; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  /* Four footer columns get too tight below this width */
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand, .footer__map { grid-column: 1 / -1; }
  .footer__map { height: 300px; }
  .navbar__cta { display: none; }
  .doctor-grid { grid-template-columns: repeat(2, 1fr); }
  .doctor { flex-direction: row; }
  .doctor__photo { flex: 0 0 42%; aspect-ratio: auto; min-height: 100%; }
  .doctor__photo::after { inset: 0 0 0 auto; width: 4px; height: auto; background: linear-gradient(180deg, var(--navy), var(--sky)); }
  .doctor__body { align-self: center; }
}

@media (max-width: 1080px) {
  .topbar__item--addr { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .review { flex-basis: calc((100% - 1rem) / 2); }
  .quickbar { grid-template-columns: 1fr 1fr; }
  .quickbar li:nth-child(3) { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .burger { display: block; }
  /* backdrop-filter would make the fixed drawer position relative to the navbar */
  .navbar { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav {
    position: fixed; inset: 0 0 0 auto; z-index: -1; width: min(380px, 100%);
    display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: calc(var(--header-h) + 42px + 1.5rem) var(--gutter) 2rem;
    background: var(--white); box-shadow: -30px 0 60px -30px rgba(1, 61, 108, .35);
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 1.05rem .25rem; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--sky); }
  .nav__item--has-sub { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav__item--has-sub > .nav__link { flex: 1; padding-right: .25rem; border-bottom: 0; }
  .nav__toggle { width: 48px; height: 48px; margin: 0; border-radius: 14px; background: var(--sky-50); font-size: 1rem; }
  .nav__item--has-sub:hover .nav__toggle .icon { transform: rotate(90deg); }
  .nav__item--has-sub.is-open .nav__toggle .icon { transform: rotate(-90deg); }
  .nav__sub {
    position: static; width: 100%; display: none; padding: 0 0 .9rem;
    border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .nav__sub::before { display: none; }
  .nav__item--has-sub.is-open .nav__sub { display: grid; }
  .nav__sublink { font-size: .95rem; padding: .7rem .9rem; }
  .nav__mobile-extra { display: grid; gap: .9rem; }
  .nav__tel { display: inline-flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--navy); }
  .nav__tel .icon { color: var(--sky); }
  body.nav-open { overflow: hidden; }
  .nav-scrim {
    position: fixed; inset: 0; z-index: 90; background: rgba(0, 32, 59, .45);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s linear .35s;
  }
  .nav-open .nav-scrim { opacity: 1; visibility: visible; transition: opacity .35s; }

  .hero__grid, .story__grid, .families__grid { grid-template-columns: 1fr; }
  .hero__content { max-width: 40rem; }
  .hero__bg img { object-position: 70% 30%; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(0, 32, 59, .6) 0%, rgba(1, 61, 108, .46) 55%, rgba(1, 61, 108, .28) 100%); }
  .story__media { order: 0; max-width: 600px; }
  /* Right-column photo moves above its text when the row stacks */
  .families__media { max-width: 640px; order: -1; }
  .section-head--split { grid-template-columns: 1fr; }
  .book__panel { grid-template-columns: 1fr; }
  .book__img { min-height: 260px; }
  .book__img::after { background: linear-gradient(180deg, transparent 40%, var(--navy)); }
}

@media (max-width: 720px) {
  .doctor-grid { grid-template-columns: 1fr; }
  .review { flex-basis: 100%; }
  .quickbar { grid-template-columns: 1fr; }
  .quickbar li { padding: 1.15rem 1.25rem; }
  .quickbar li + li { border-left: 0; border-top: 1px solid var(--line); }
  .quickbar li:nth-child(3) { grid-column: auto; }
}

@media (max-width: 640px) {
  .topbar__group { width: 100%; justify-content: space-between; gap: 1rem; }
  .topbar__item span { white-space: nowrap; }
  .logo img, .is-scrolled .logo img { height: 34px; }
  .footer .logo img { max-width: 280px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .story__ring { left: -20px; top: -20px; width: 100px; height: 100px; border-width: 12px; }
  .story__content .btn { width: 100%; white-space: normal; text-align: center; }
  .service-grid { grid-template-columns: 1fr; }
  .service__photo { aspect-ratio: 16 / 10; border-bottom-right-radius: 72px; }
  .service__body { padding: 2.75rem 1.25rem 1.4rem; }
  .doctor { flex-direction: column; }
  .doctor__photo { flex: none; aspect-ratio: 4 / 3.4; }
  .doctor__photo img { object-position: 50% 20%; }
  .doctor__photo::after { inset: auto 0 0; width: auto; height: 4px; background: linear-gradient(90deg, var(--navy), var(--sky)); }
  /* Arrows move into the dots row so they don't cover review text */
  .carousel__btn { top: auto; bottom: -2.55rem; margin-top: 0; width: 36px; height: 36px; }
  .carousel__btn--prev { left: 0; }
  .carousel__btn--next { right: 0; }
  .carousel__dots { margin-top: 1.4rem; padding-inline: 44px; }
  .carousel__dot { width: 17px; }
  .book__actions .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer__map { min-height: 260px; height: 260px; }
  .footer__bottom-inner { flex-direction: column; justify-content: center; padding-block: 1.25rem; text-align: center; }
}

@media (max-width: 380px) {
  .topbar__item:first-child span { font-size: .72rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Online booking popup ---------- */
body.booking-open { overflow: hidden; }
.booking-modal {
  width: min(580px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem);
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: var(--white); color: var(--text); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.booking-modal[open] { display: flex; flex-direction: column; }
.booking-modal::backdrop { background: rgba(0, 32, 59, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.booking-modal[open] { animation: booking-in .35s var(--ease); }
.booking-modal[open]::backdrop { animation: booking-fade .35s var(--ease); }
@keyframes booking-in { from { opacity: 0; transform: translateY(20px) scale(.97); } }
@keyframes booking-fade { from { opacity: 0; } }

/* Navy header band */
.booking-modal__head {
  position: relative; flex: none; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem) clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%);
}
.booking-modal__head::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--sky) 0 30%, transparent 30%);
}
.booking-modal__head::after {
  content: ""; position: absolute; right: 40px; top: -95px; z-index: -1;
  width: 190px; height: 190px; border-radius: 50%;
  border: 30px solid rgba(79, 168, 222, .16);
}
.booking-modal__title {
  color: var(--white);
  font-size: clamp(1.45rem, 1.25rem + .9vw, 1.85rem); line-height: 1.15; font-weight: 700; letter-spacing: -.025em;
}
.booking-modal__close {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white);
  transition: background-color .2s, transform .25s var(--ease);
}
.booking-modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.booking-modal__close:hover { background: rgba(255, 255, 255, .24); transform: rotate(90deg); }
.booking-modal__close:focus-visible { outline-color: var(--sky-300); }

/* Body */
.booking-modal__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem) clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  font-size: .95rem; line-height: 1.7;
}
.booking-modal__body > p + p { margin-top: .8rem; }

/* Fee table */
.booking-modal__fees { margin: 1rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.booking-modal__fees li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.15rem; color: var(--ink); font-weight: 500; line-height: 1.45;
}
.booking-modal__fees li + li { border-top: 1px solid var(--line); }
.booking-modal__fees li:nth-child(odd) { background: var(--sky-50); }
.booking-modal__fees small { display: block; margin-top: .15rem; color: var(--muted); font-size: .8rem; font-weight: 500; }
.booking-modal__price { flex: none; color: var(--navy); font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }

/* Outline buttons that fill navy on hover */
.booking-modal__actions { display: grid; gap: .65rem; margin-top: 1rem; }
.booking-option {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: .6rem .6rem .6rem 1.5rem;
  border: 2px solid var(--navy); border-radius: 999px;
  background: var(--white); color: var(--navy); font-weight: 600; font-size: .95rem; line-height: 1.3;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.booking-option__arrow {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.booking-option__arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.booking-option:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.booking-option:hover .booking-option__arrow { background: var(--sky); transform: rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .booking-modal[open], .booking-modal[open]::backdrop { animation: none; }
}
