:root {
  --navy: #123044;
  --navy-2: #1b4258;
  --teal: #1f7a73;
  --teal-2: #25958c;
  --green: #2bb673;
  --blue: #3d9ad9;
  --cream: #f4f0e6;
  --mist: #eef4f3;
  --ink: #1b2c36;
  --muted: #5b6c75;
  --line: #d5e0e3;
  --white: #fff;
  --shadow: 0 16px 44px rgba(18, 48, 68, 0.10);
  --radius: 18px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font: "Outfit", system-ui, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.65;
  background: var(--white);
  padding-bottom: 0;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.05rem, 4.6vw, 4.1rem); line-height: 1.12; margin: 0 0 16px; overflow-wrap: break-word; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 1.35rem; margin: 0 0 8px; }
p { margin: 0 0 14px; }
ul { margin: 0 0 14px; padding-left: 1.15em; }

.container { width: min(var(--max), 92%); margin: auto; }
.lead { font-size: 1.12rem; color: var(--muted); }
.ey {
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Top bar */
.top {
  background: var(--navy);
  color: #dce8ee;
  font-size: 0.86rem;
  padding: 8px 0;
}
.top .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.top a { color: #fff; }
.top .langs { opacity: 0.9; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.navin {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand strong { display: block; font-size: 1.22rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.brand small { display: block; font-size: 0.68rem; letter-spacing: 0.16em; color: var(--muted); font-weight: 600; }
.brand:hover { color: var(--navy); }

nav.menu {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav.menu a {
  font-size: 0.92rem;
  font-weight: 560;
  color: var(--ink);
}
nav.menu a.active, nav.menu a:hover { color: var(--teal); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff !important;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { background: var(--navy); transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.45);
}
.btn.ghost:hover { background: #fff; color: var(--navy) !important; }
.btn.outline {
  background: transparent;
  color: var(--navy) !important;
  border: 1px solid var(--line);
}
.btn.outline:hover { border-color: var(--teal); color: var(--teal) !important; background: var(--mist); }

/* Language switch inside the menu: phones only. On wide screens the same link
   lives in the top bar (.top .langs), which is hidden at <= 850px. */
nav.menu .lang-switch { display: none; }

.menu-toggle {
  display: none;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  padding: 8px 14px;
  flex: none;
  font: 650 0.85rem var(--font);
  color: var(--navy);
}

/* Hero */
.hero {
  position: relative;
  padding: 78px 0 86px;
  background: linear-gradient(120deg, #e8f3f1 0%, var(--cream) 100%);
  overflow: hidden;
}
.hero.photo {
  min-height: 620px;
  display: flex;
  align-items: center;
  color: #fff;
  background: #123044;
  padding: 90px 0 100px;
}
.hero.photo h1, .hero.photo h2 { color: #fff; }
.hero.photo p { color: rgba(255,255,255,.88); max-width: 640px; font-size: 1.15rem; }
.hero.photo .ey { color: #9ee0c8; }
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12,32,46,.78) 0%, rgba(12,32,46,.48) 52%, rgba(12,32,46,.22) 100%),
    linear-gradient(180deg, rgba(12,32,46,.15), rgba(12,32,46,.35));
}
.hero .container { position: relative; z-index: 1; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Layout */
.section { padding: 76px 0; }
.section.alt { background: var(--mist); }
.section.cream { background: var(--cream); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 42px; align-items: center; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card a.more { font-weight: 650; font-size: 0.92rem; }
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { width: 100%; height: 210px; object-fit: cover; }
.card.photo .pad { padding: 22px 22px 26px; }

.notice {
  background: var(--mist);
  border-left: 4px solid var(--teal);
  padding: 16px 18px;
  border-radius: 0 12px 12px 0;
  margin: 18px 0;
}

/* Trust */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  margin-top: -42px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow);
}
.trust div { padding: 22px 18px; text-align: center; border-right: 1px solid var(--line); }
.trust div:last-child { border-right: 0; }
.trust strong { display: block; color: var(--navy); font-size: 1.05rem; }
.trust span { color: var(--muted); font-size: 0.88rem; }

/* Doctors */
.doctor {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}
.doctor img, .portrait {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
  background: #eceef0;
}
.portrait.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #d7ebe7, #c5d8e4);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 3rem;
}
.doc-card { text-align: left; }
.doc-card img, .doc-card .portrait {
  height: 300px;
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #eceef0;
  margin-bottom: 0;
  border-radius: 14px 14px 0 0;
}
.doc-card.card.photo .pad { padding-top: 8px; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.cover-bottom { object-position: 50% 80%; }
.cover-mid { object-position: 50% 35%; }
.gallery .wide { grid-row: 1 / span 2; }
.gallery figcaption { display: none; }

.figure {
  margin: 0;
}
.figure img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  max-height: 460px;
}
.figure.portrait img { max-height: 560px; object-position: center; }
.figure.person {
  max-width: 340px;
}
.figure.person img {
  max-height: none;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}
.caption { color: var(--muted); font-size: 0.88rem; margin-top: 8px; }

/* Steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 28px; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 22px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  font-weight: 650;
  color: var(--navy);
  cursor: pointer;
}
.faq details p { margin: 10px 0 4px; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 12px; }
.form input, .form select, .form textarea {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form small { color: var(--muted); }
.map {
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: 16px;
  filter: grayscale(0.15);
}

/* CTA band */
.band {
  background: linear-gradient(120deg, var(--navy), #1a5c62);
  color: #fff;
  padding: 56px 0;
}
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.86); max-width: 640px; }

/* Footer */
.footer {
  background: var(--navy);
  color: #c9d7de;
  padding: 52px 0 28px;
}
.footer h3 { color: #fff; font-size: 1.2rem; }
.footer a { color: #fff; }
.footergrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.legal {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sticky {
  display: none;
}

.chip {
  display: inline-block;
  background: var(--mist);
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 6px 8px 0;
}

.list-plain { list-style: none; padding: 0; }
.list-plain li { padding: 7px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 980px) {
  .grid, .grid4, .trust, .footergrid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gallery .wide { grid-row: auto; grid-column: 1 / -1; height: 240px; }
  .doctor { grid-template-columns: 220px 1fr; }
}
@media (max-width: 850px) {
  .top .langs { display: none; }
  .hero.photo { min-height: 0; }
  .hero.photo h1 { font-size: 1.85rem; max-width: 100%; }
  .hero.photo p { font-size: 1.02rem; max-width: 100%; }
  .btn { padding: 12px 16px; }
  .menu-toggle { display: block; min-height: 44px; padding: 10px 18px; font-size: 0.9rem; }
  nav.menu .lang-switch { display: block; color: var(--teal); }
  nav.menu {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 82px;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 5% 22px;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  nav.menu.open { display: flex; }
  nav.menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  nav.menu .btn { margin-top: 12px; text-align: center; }
  .top .container { display: block; }
  .grid, .grid2, .grid4, .trust, .footergrid, .doctor { grid-template-columns: 1fr; }
  .trust div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero.photo { min-height: 520px; padding: 64px 0 72px; }
  .hero { padding: 52px 0; }
  .section { padding: 52px 0; }
  .sticky {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 50;
  }
  .sticky a {
    flex: 1;
    text-align: center;
    padding: 13px 4px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--navy);
  }
  .sticky a:nth-child(2) { background: var(--teal); color: #fff; }
  body { padding-bottom: 54px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery img, .gallery .wide { height: 220px; }
}
@media (max-width: 600px) {
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { width: 100%; }
}

/* --- Google review cards (content baked in at build time by build.py) --- */
.card.review {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card.review .stars {
  color: #e8a33d;
  font-size: 1.05rem;
  letter-spacing: 2px;
  line-height: 1;
}
.card.review blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.16rem;
  line-height: 1.55;
  color: var(--navy);
}
.card.review figcaption {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.card.review figcaption span {
  font-weight: 400;
  color: var(--muted);
}
.card.review figcaption span::before { content: " \00B7 "; }

/* Doctor cards use the owner's circular portraits (1400x1400, the circle is
   baked into the image on a #eceef0 field). `.card.photo img` (height: 210px;
   object-fit: cover) is more specific than `.doc-card img` above and would
   silently win, cropping the top and bottom off the circle - so restate the
   doctor-card values at matching specificity. */
.card.photo.doc-card img {
  height: 300px;
  object-fit: contain;
  object-position: center;
  background: #eceef0;
}
