:root {
  --bg: #f3f8fb;
  --ink: #14343c;
  --muted: #4c656c;
  --line: #d7e4ea;
  --teal: #127d8e;
  --teal-deep: #0d6674;
  --card: #ffffff;
  --nav: 76px;
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(980px 560px at 82% 8%, #d4eef6 0%, transparent 62%),
    radial-gradient(720px 420px at 8% 0%, #e7f3f7 0%, transparent 58%),
    var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

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

a { color: var(--teal-deep); }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

::selection { background: #c9e7ef; color: var(--ink); }

/* Visually hidden but accessible to screen readers and search engines */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  z-index: 80;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  height: var(--nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(243, 248, 251, 0.96);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.nav.on-hero { background: transparent; }

.nav.on-hero .brand,
.nav.on-hero .menu a {
  color: white;
  text-shadow: 0 1px 8px rgba(0, 30, 40, 0.45);
}

.nav.on-hero .nav-call {
  background: white;
  color: #102a30 !important;
}

.nav.on-hero .arrow { background: #102a30; color: white; }

.nav.on-hero .menu-btn {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.45);
}

.nav.on-hero .menu.open {
  background:
    radial-gradient(420px 280px at 100% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    #0c7384;
}

.nav.on-hero .menu.open a { color: white; }

.nav.on-hero .menu.open .nav-call {
  background: white;
  color: #102a30 !important;
}

.nav.on-hero .menu.open .arrow { background: #102a30; color: white; }

.menu-btn,
.menu-close {
  min-height: 48px;
  min-width: 48px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--ink);
}

.menu-btn { display: inline-flex; align-items: center; justify-content: center; }

.menu { display: none; }

.menu a small,
.menu-foot p,
.menu-wa { display: none; }

.menu-wa {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #1eae5a;
  color: white;
  text-decoration: none;
  font-weight: 700;
  padding: 0 18px;
}

.menu a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

.nav-call {
  background: var(--ink);
  color: white !important;
  border-radius: 999px;
  padding: 0 8px 0 16px;
  gap: 8px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.nav-call:hover { transform: translateY(-2px); background: #eef8fb; }

.nav-call:active { transform: translateY(0); }

.nav.on-hero .menu a:hover { color: #d7fbff; }

.menu-btn:hover { background: rgba(255, 255, 255, 0.16); }

.menu-btn:active,
.menu-close:active { transform: scale(0.98); }

.nav-call:focus-visible,
.menu-btn:focus-visible,
.menu a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.arrow,
.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.arrow { background: white; color: var(--ink); }

section { scroll-margin-top: 88px; }

/* ============================================================
   HERO
   Mobile:  portrait banner (hero-mobile.jpg)
   Laptop:  full photo (hero.jpg) + HTML overlay on the left
   ============================================================ */

.hero {
  position: relative;
  margin: 0;
  width: 100%;
  overflow: hidden;
  color: white;
  display: block;
  padding: 0;
  background: #0a8fa6;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero picture { display: block; }

/* Title is the real h1; visually hidden on phones (image already has it). */
.hero-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero-kmc,
.hero-kn { display: none; }

.hero-overlay {
  position: absolute;
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.hero-name {
  margin: 0 0 3px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.hero-cred {
  margin: 0 0 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  line-height: 1.3;
  text-shadow: 0 1px 5px rgba(0,0,0,0.45);
}

.hero-btns {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

/* Mobile: portrait image. Name is already in the photo; keep live Call/WhatsApp
   on the foliage strip so they do not cover the baby. */
@media (max-width: 767px) {
  .hero-overlay {
    bottom: 2.5%;
    left: 4%;
    right: 4%;
    align-items: stretch;
  }
  .hero-name,
  .hero-cred { display: none; }
  .hero-btns {
    width: 100%;
    justify-content: center;
  }
  .hero-btns .hero-cta,
  .hero-btns .hero-wa {
    flex: 1;
    min-width: 0;
    font-size: clamp(0.78rem, 3.3vw, 0.92rem);
    box-shadow: 0 6px 18px rgba(0, 20, 30, 0.28);
  }
}

/* Laptop: full-viewport photo. Crop from the empty left, never the doctor. */
@media (min-width: 768px) {
  .hero {
    height: 100vh;
    height: 100dvh;
    min-height: 560px;
    background: #0a8fa6;
  }

  .hero picture,
  .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    max-width: none;
  }

  .hero-img {
    object-fit: cover;
    object-position: right center;
  }

  .hero-overlay {
    left: clamp(28px, 6.5vw, 92px);
    top: 50%;
    bottom: auto;
    transform: translateY(-42%);
    max-width: min(520px, 42vw);
  }

  .hero-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 22px;
    clip: auto;
    clip-path: none;
    overflow: visible;
    white-space: normal;
    font-size: clamp(2.5rem, 5.4vw, 4.55rem);
    font-weight: 800;
    line-height: 0.94;
    letter-spacing: -0.045em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 40, 50, 0.25);
  }

  .hero-title span { color: #9ee4ee; }

  .hero-name { font-size: clamp(1rem, 1.55vw, 1.28rem); }

  .hero-cred {
    font-size: clamp(0.78rem, 1.1vw, 0.95rem);
    margin-bottom: 16px;
  }

  .hero-kn { display: inline; }
  .hero-loc { display: none; }

  .hero-btns { gap: 10px; }

  .hero-btns .hero-cta,
  .hero-btns .hero-wa {
    width: auto;
    font-size: clamp(0.82rem, 1vw, 0.95rem);
  }

  .hero-kmc {
    display: block;
    margin: 16px 0 0;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  }

  .hero-kmc b {
    font-weight: 800;
    margin-right: 8px;
    letter-spacing: 0.04em;
  }
}

/* ── Button shared styles ── */
.hero-cta,
.hero-wa {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  padding: 4px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 0;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-glyph,
.btn-go {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.btn-glyph svg,
.btn-go svg { display: block; }

.hero-cta {
  background: #ffffff;
  color: #12343c;
}

.hero-cta .btn-go { background: #12343c; color: #ffffff; }

.hero-wa {
  color: #ffffff;
  background: #1eae5a;
}

.hero-wa .btn-go { background: rgba(255, 255, 255, 0.22); color: #ffffff; }

.hero-cta:hover { background: #f4fffd; transform: translateY(-2px); }

.hero-wa:hover { background: #18964c; transform: translateY(-2px); }

.hero-cta:active,
.hero-wa:active { transform: translateY(1px); }

.hero-cta:focus-visible,
.hero-wa:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.hero a:focus-visible { outline-color: white; }

.hero-scroll {
  display: none;
  position: absolute;
  z-index: 10;
  left: clamp(28px, 6.5vw, 92px);
  bottom: 28px;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  align-items: center;
  gap: 6px;
}

@media (min-width: 768px) {
  .hero-scroll { display: inline-flex; }
}

.hero-scroll::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  animation: hero-nudge 1.2s ease-in-out infinite alternate;
}

@keyframes hero-nudge {
  from { transform: translateY(0); }
  to { transform: translateY(4px); }
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px 0 8px;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.btn-dark {
  background: var(--ink);
  color: white;
  padding-left: 8px;
}

.btn-dark:hover { background: #0d282e; }

.btn-light {
  background: white;
  color: var(--ink);
  border: 1px solid #e1ebf0;
  box-shadow: 0 8px 24px rgba(20, 52, 60, 0.05);
  padding-right: 8px;
  padding-left: 18px;
}

.btn-icon { background: rgba(255, 255, 255, 0.14); color: white; }

.btn-icon-light {
  background: #f2f7f9;
  color: var(--ink);
}

button.btn { padding-left: 22px; padding-right: 22px; }

.sheet {
  position: relative;
  z-index: 3;
  background: white;
  border-radius: 36px 36px 0 0;
  padding: 72px 0 28px;
  margin-top: -28px;
}

.sheet-flat { border-radius: 0; }

.kicker {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.doctor-head { max-width: 36rem; }

.doctor-head p:last-child { color: var(--muted); }

.doctor-slide {
  position: relative;
  width: min(920px, calc(100% - 32px));
  margin: 22px auto 8px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  background: #d5e4ea;
}

.doctor-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.doctor-slide img.is-on { opacity: 1; }

.doctor-slide img:last-child { object-position: center 30%; }

.study-cards {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 22px auto 8px;
  padding: 0;
}

.study-cards li {
  background:
    linear-gradient(180deg, #ffffff 0%, #f4fbfd 100%);
  border-radius: 26px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 36px rgba(20, 70, 84, 0.08);
  border: 1px solid rgba(18, 125, 142, 0.08);
}

.study-cards span {
  display: inline-block;
  color: var(--teal-deep);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-cards strong {
  display: block;
  margin: 10px 0 6px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.study-cards p {
  margin: 0;
  color: var(--muted);
}

.care-lines {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 72px 28px;
  text-align: center;
  color: white;
  background:
    radial-gradient(480px 220px at 50% 50%, rgba(255, 255, 255, 0.14), transparent 70%),
    linear-gradient(165deg, #1493a6 0%, #0c7384 100%);
}

.care-line {
  grid-area: 1 / 1;
  margin: 0;
  max-width: 14em;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.care-line.is-on {
  opacity: 1;
  transform: none;
}

.close-quote::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 244, 255, 0.28), transparent 68%);
  animation: quote-glow 5.5s ease-in-out infinite;
  pointer-events: none;
}

.close-mark,
.close-quote blockquote,
.close-by { position: relative; z-index: 1; }

.close-mark {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(4.5rem, 12vw, 7rem);
  line-height: 0.6;
  color: rgba(255, 255, 255, 0.55);
  animation: quote-mark 4.8s ease-in-out infinite;
}

.close-quote blockquote { margin: 8px auto 0; max-width: min(16em, 100%); }

.close-quote blockquote p { margin: 0; }

.close-line {
  display: block;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.85rem, 5vw, 3.15rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.close-by {
  margin: 26px 0 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.has-js .close-quote.await-in .close-line,
.has-js .close-quote.await-in .close-by {
  opacity: 0;
  transform: translateY(18px);
}

.has-js .close-quote.is-in .close-line,
.has-js .close-quote.is-in .close-by {
  animation: quote-rise 0.9s ease forwards;
}

.has-js .close-quote.is-in .close-line:nth-child(2) { animation-delay: 0.16s; }
.has-js .close-quote.is-in .close-line:nth-child(3) { animation-delay: 0.32s; }
.has-js .close-quote.is-in .close-by { animation-delay: 0.55s; }

.made {
  background:
    radial-gradient(520px 180px at 50% 0%, rgba(34, 211, 238, 0.14), transparent 70%),
    linear-gradient(180deg, #0b2f3a 0%, #071e28 100%);
  text-align: center;
  padding: 48px 20px 40px;
  color: #b7d4dc;
}

.made-inner { max-width: 40rem; margin: 0 auto; }

.made-kicker {
  margin: 0;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 650;
  color: #7ec8d6;
}

.made-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px auto 0;
  text-decoration: none;
  color: inherit;
}

.made-mark {
  width: 52px;
  height: 52px;
  display: block;
  flex: none;
  filter: drop-shadow(0 10px 18px rgba(34, 211, 238, 0.28));
}

.made-brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 2px;
}

.made-name {
  margin: 0;
  color: #f4fcff;
  font-size: 1.18rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.made-tag {
  color: #7ee7f2;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.made-line,
.made-links,
.made-hours,
.made-place {
  margin: 12px auto 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.made-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0;
}

.made-chips li {
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(126, 231, 242, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #c8eef4;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.made-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 0;
}

.made-links a {
  color: #e8f7fb;
  text-decoration: none;
}

.made-links a:hover { color: #7ee7f2; }

.made-links a:not(:last-child)::after {
  content: "·";
  margin: 0 8px;
  color: #5e8e99;
}

.made-hours { margin-top: 8px; color: #8eb8c2; font-size: 0.86rem; }

.made-place {
  margin-top: 4px;
  font-style: normal;
  color: #8eb8c2;
  font-size: 0.86rem;
}

@keyframes quote-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes quote-glow {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes quote-mark {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (min-width: 800px) {
  .doctor-slide { aspect-ratio: 16 / 10; }

  .study-cards { grid-template-columns: repeat(3, 1fr); }
}

.about-copy h2,
.band h2,
.sheet h2,
.teal h2 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.about-copy p,
.intro {
  color: var(--muted);
  max-width: 62ch;
}

.about-side {
  display: grid;
  gap: 14px;
}

.about-side img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 24px;
}

.stat {
  background: #f4f8fb;
  border-radius: 24px;
  padding: 22px 22px 18px;
}

.stat p {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 4.2rem;
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.years {
  list-style: none;
  padding: 8px 0 36px;
  margin: 28px auto 0;
  display: grid;
  gap: 12px;
}

.years li,
.cares li,
.papers li,
.room-body,
form,
.teal-cards article {
  background: white;
}

.years li {
  background: #f4f8fb;
  border-radius: 22px;
  padding: 18px 18px 16px;
}

.years span,
.time,
.role,
.teal-kicker {
  color: var(--teal-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.years strong { display: block; margin: 6px 0; }

.years p { margin: 0; color: var(--muted); }

.teal-wrap { padding: 8px 16px 8px; }

.teal {
  background:
    radial-gradient(700px 320px at 80% 20%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(160deg, #1aa0b2 0%, #0e7c8e 58%, #0c6c7c 100%);
  color: white;
  border-radius: 32px;
  padding: 36px 22px;
  display: grid;
  gap: 22px;
}

.teal h2 { color: white; max-width: 14ch; }

.teal-copy p { color: rgba(255, 255, 255, 0.86); max-width: 46ch; }

.teal-kicker { color: rgba(255, 255, 255, 0.8); }

.teal-cards { display: grid; gap: 12px; }

.teal-cards article {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 22px;
  padding: 18px;
  color: white;
}

.teal-cards span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 650;
}

.teal-cards strong { display: block; margin: 6px 0; font-size: 1.15rem; }

.teal-cards p { margin: 0; color: rgba(255, 255, 255, 0.86); }

.band { padding: 72px 0; }

.visit { padding-top: 40px; }

.practice {
  position: relative;
  background:
    radial-gradient(560px 420px at 84% 8%, rgba(186, 224, 236, 0.75), transparent 68%),
    radial-gradient(420px 320px at 70% 36%, rgba(220, 240, 246, 0.9), transparent 70%),
    #f4fbfd;
  overflow: hidden;
}

.kicker-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kicker-line::after {
  content: "";
  width: 46px;
  height: 2px;
  background: #8eb8c6;
}

.practice-head {
  display: grid;
  gap: 12px;
  align-items: center;
}

.practice-film {
  margin: 0;
}

.practice-film video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 28px;
  background: #d7eef2;
}

.cares {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

.care-card {
  perspective: 1100px;
  height: 230px;
  cursor: pointer;
  background: transparent !important;
  padding: 0 !important;
  min-height: 0;
  box-shadow: none !important;
  border-radius: 0;
}

.care-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 22px;
}

.care-card.is-flipped .care-inner {
  transform: rotateY(180deg);
}

.care-front,
.care-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 22px;
  overflow: hidden;
}

.care-front {
  background: #0e4a5a;
}

.care-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.care-card:hover .care-front img { transform: scale(1.1); }

.care-front-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(to top, rgba(6, 36, 48, 0.92) 0%, rgba(6, 36, 48, 0.2) 70%, transparent 100%);
  color: #fff;
}

.care-front-label h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.care-front-label p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

.care-back {
  background:
    radial-gradient(280px 140px at 100% 0%, #d7f0f6, transparent 70%),
    #fff;
  transform: rotateY(180deg);
  padding: 20px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(40, 90, 110, 0.1);
  border: 1px solid rgba(42, 144, 166, 0.12);
}

.care-back h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.care-back p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}

.care-back ul {
  margin: 4px 0 0;
  padding: 0 0 0 18px;
  list-style: disc;
  font-size: 0.82rem;
  color: #34545c;
  line-height: 1.55;
}

.care-back li { margin: 0; }

.cares h3,
.room-body h3,
.papers h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.cares p,
.room-body p,
.room-body address,
.papers p { margin: 0; color: var(--muted); }

.papers {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}

.papers li {
  background: #f4f8fb;
  border-radius: 22px;
  padding: 20px 18px 18px;
}

.papers a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-right: 14px;
  font-weight: 650;
}

.rooms {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.rooms > article {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(20, 52, 60, 0.06);
}

.clinic-reel,
.clinic-still {
  position: relative;
  overflow: hidden;
  height: 240px;
  background: #0e4a5a;
  flex: none;
}

.clinic-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.clinic-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.clinic-track img {
  min-width: 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.clinic-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.clinic-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.clinic-dots button.is-on {
  width: 22px;
  background: #fff;
}

.papers-fold:not([open]) > :not(summary) { display: none; }

.papers-fold { margin: 0; }

.papers-fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 4px;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.papers-fold summary::-webkit-details-marker { display: none; }

.papers-fold summary::after {
  content: "Show";
  flex: none;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--teal-deep);
}

.papers-fold[open] summary::after { content: "Hide"; }

.papers-fold .intro { margin-top: 8px; }

@media (max-width: 560px) {
  .clinic-reel,
  .clinic-still { height: 200px; }

  .care-card { height: 210px; }
}

.room-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.room-body address {
  font-style: normal;
  margin-top: 6px;
}

.room-note {
  margin-top: 10px !important;
  font-size: 0.92rem;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.room-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  margin: 0;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.room-call {
  background: var(--teal-deep);
  color: #fff !important;
}

.room-call:hover { background: #0a5561; }

.room-dir {
  background: #e7f3f7;
  color: var(--teal-deep) !important;
}

.room-dir:hover { background: #d5ebf1; }

.sign {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 12px;
}

.caption { margin-top: 8px !important; font-size: 0.88rem; }

.emergency {
  margin: 22px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

.write {
  display: grid;
  gap: 22px;
  padding-bottom: 48px;
}

.direct { color: var(--muted); }

form {
  background: #f4f8fb;
  border-radius: 28px;
  padding: 18px;
  display: grid;
  gap: 12px;
}

label { display: grid; gap: 6px; font-weight: 600; font-size: 0.92rem; }

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
}

textarea { min-height: 120px; resize: vertical; }

.form-status { min-height: 1.4em; margin: 0; color: var(--muted); font-weight: 500; }

.foot {
  background: white;
  padding: 28px 0 36px;
  color: var(--muted);
}

.foot a { font-weight: 650; }

.foot-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}

.foot p { margin: 0; }

.legal { margin-top: 12px !important; max-width: 68ch; }

.dock {
  position: fixed;
  z-index: 25;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dock .btn { width: 100%; padding-inline: 16px; }

@media (max-width: 859px) {
  body:has(.nav.on-hero) .dock { display: none; }

  .menu-close { display: inline-flex; align-items: center; justify-content: center; width: fit-content; }

  .menu.open {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #0c7384;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 22px 28px;
    color: white;
  }

  .menu.open .menu-close {
    color: white;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
  }

  .menu.open .menu-links {
    display: flex;
    flex-direction: column;
    margin-top: 28px;
  }

  .menu.open .menu-links a {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.35rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    color: white;
  }

  .menu.open .menu-links small {
    display: block;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.78);
  }

  .menu.open .menu-foot {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding-top: 22px;
  }

  .menu.open .menu-foot p {
    display: block;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
  }

  .menu.open .nav-call,
  .menu.open .menu-wa {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1rem;
    width: 100%;
    display: inline-flex;
  }
}

@media (min-width: 720px) {
  .cares { grid-template-columns: 1fr 1fr; }

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

  .clinic-reel,
  .clinic-still { height: 260px; }

  .write { grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: 48px; }
}

@media (min-width: 860px) {
  .menu-btn,
  .menu-close { display: none; }

  .menu {
    display: flex;
    align-items: center;
    gap: 26px;
  }

  .menu-links,
  .menu-foot { display: contents; }

  .menu a small,
  .menu-foot p { display: none; }

  .menu-wa {
    display: inline-flex;
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.92rem;
  }

  .dock { display: none; }

  body { padding-bottom: 0; }
}

@media (min-width: 980px) {
  .about {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 48px;
  }

  .about-side {
    grid-template-columns: 0.72fr 1.28fr;
    align-items: stretch;
  }

  .about-side img { height: 100%; min-height: 210px; }

  .years { grid-template-columns: repeat(3, 1fr); }

  .practice-head { grid-template-columns: 1.05fr 0.9fr; gap: 8px 24px; }

  .cares { grid-template-columns: repeat(3, 1fr); }

  .teal {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    padding: 64px 56px;
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .hero-title,
  .hero-copy,
  .hero-scroll::after { animation: none; }

  .hero-cta:hover,
  .hero-wa:hover { transform: none; }

  .doctor-slide img { transition: none; }

  .care-line { transition: none; }

  .clinic-track,
  .care-inner { transition: none; }
}
