/* ============================================================
   Aquagem Dental Clinic — stylesheet
   Palette derived from the clinic logo (deep navy + white)
   ============================================================ */

:root {
  /* Brand */
  --primary: #15446C;           /* logo navy */
  --primary-dark: #0D2A4A;      /* deepest navy — footer, headings */
  --primary-mid: #1D5A8C;       /* hover / gradient partner */
  --primary-light: #6FA3C9;     /* soft navy tint */
  --accent: #2E93B8;            /* aqua drawn out of the navy */
  --accent-soft: #DCEEF4;

  --white: #ffffff;
  --background: #F4F8FB;        /* very light blue-gray */
  --mist: #E8F1F8;              /* tinted section background */
  --line: #DCE7F0;

  --text: #16232E;
  --text-light: #5C6B7A;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(13, 42, 74, .06);
  --shadow: 0 14px 38px -18px rgba(13, 42, 74, .28);
  --shadow-lg: 0 30px 70px -30px rgba(13, 42, 74, .40);

  --wrap: 1180px;
  --nav-h: 92px;

  --ease: cubic-bezier(.22, .7, .3, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: "Outfit", "Inter", system-ui, sans-serif;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin: 0 0 1.1rem; max-width: 68ch; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--mist { background: var(--mist); }
.section--soft { background: var(--background); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--primary); color: #fff; padding: .75rem 1.2rem;
  border-radius: 0 0 10px 10px; transition: top .2s;
}
.skip-link:focus { top: 0; }

.script { font-family: "Yellowtail", cursive; font-weight: 400; letter-spacing: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- Section heading block ---------- */
.head { max-width: 46rem; margin-bottom: 3rem; }
.head--center { margin-inline: auto; text-align: center; }
.head--center p { margin-inline: auto; }
.head p { color: var(--text-light); font-size: 1.08rem; margin-bottom: 0; }
.head .kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--primary); font-weight: 600; font-size: .95rem;
  margin-bottom: .9rem; letter-spacing: .01em;
}
.head .kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: "Outfit", sans-serif; font-size: 1rem; font-weight: 500;
  padding: .95rem 1.7rem; border-radius: var(--radius-pill);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.2;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff; box-shadow: var(--shadow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--primary); background: var(--white); }
.btn--light { background: #fff; color: var(--primary-dark); }
.btn--light:hover { transform: translateY(-2px); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--sm { padding: .7rem 1.25rem; font-size: .95rem; }

.textlink {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: "Outfit", sans-serif; font-size: .98rem; font-weight: 500;
  color: var(--primary); display: inline-flex; align-items: center; gap: .4rem;
}
.textlink svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.textlink:hover { color: var(--accent); }
.textlink:hover svg { transform: translateX(3px); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s, background-color .3s;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav.is-stuck { box-shadow: 0 6px 24px -16px rgba(13,42,74,.5); border-bottom-color: var(--line); }

.nav__inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--nav-h);
  transition: height .3s var(--ease);
}
.nav.is-stuck .nav__inner { height: 74px; }

.nav__logo { flex: none; display: inline-flex; }
.nav__logo img {
  height: 54px; width: auto;
  transition: height .3s var(--ease);
}
.nav.is-stuck .nav__logo img { height: 42px; }

.nav__menu { margin-left: auto; display: flex; align-items: center; }
.nav__list { display: flex; align-items: center; gap: .35rem; list-style: none; padding: 0; margin: 0; }
.nav__menu a {
  display: block; padding: .6rem .9rem; border-radius: var(--radius-pill);
  font-family: "Outfit", sans-serif; font-weight: 500; font-size: 1rem;
  color: var(--text); text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav__menu a:hover { color: var(--primary); background: var(--mist); }
.nav__menu a.is-active { color: var(--primary); }
.nav__menu a.btn--primary { color: #fff; }
.nav__menu a.btn--primary:hover { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); color: #fff; }
.nav__cta { margin-left: .6rem; }

.nav__toggle {
  display: none; margin-left: auto; position: relative; z-index: 101;
  width: 48px; height: 48px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--white);
  cursor: pointer; padding: 0;
  flex-direction: column; align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--primary-dark); margin: 4px auto;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.nav__backdrop {
  position: fixed; inset: 0; background: rgba(13,42,74,.45);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 98;
}
body.menu-open .nav__backdrop { opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  :root { --nav-h: 78px; }
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; top: 0; right: 0; z-index: 99;
    width: min(88vw, 360px); height: 100dvh;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--white);
    padding: calc(5.5rem + env(safe-area-inset-top, 0px)) 1.5rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .38s var(--ease), visibility .38s;
    overflow-y: auto;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: .25rem; width: 100%; }
  body.menu-open .nav__menu { transform: translateX(0); visibility: visible; }
  .nav__menu a { padding: 1rem .9rem; font-size: 1.15rem; border-radius: 14px; }
  .nav__menu li { opacity: 0; transform: translateX(16px); }
  body.menu-open .nav__menu li {
    animation: slideIn .4s var(--ease) forwards;
    animation-delay: calc(var(--i, 0) * 45ms + 80ms);
  }
  .nav__cta { margin: 1rem 0 0; }
  .nav__cta .btn { width: 100%; }
}
@keyframes slideIn { to { opacity: 1; transform: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(2.5rem, 6vw, 5rem)) 0 0;
  background:
    radial-gradient(90% 70% at 88% 0%, #E4F0F8 0%, rgba(228,240,248,0) 60%),
    linear-gradient(180deg, #FBFDFF 0%, var(--background) 100%);
}
.hero::after {
  content: ""; position: absolute; right: -14%; top: -18%;
  width: 46rem; height: 46rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(46,147,184,.14), rgba(21,68,108,.05) 60%, transparent 70%);
  pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  color: var(--primary); padding: .5rem 1rem .5rem .6rem;
  border-radius: var(--radius-pill); font-size: .95rem; font-weight: 500;
  margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.hero__tag svg { width: 18px; height: 18px; color: var(--accent); }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .script {
  display: block; color: var(--accent); font-size: .62em;
  letter-spacing: 0; margin-top: .12em; font-weight: 400;
}
.hero__lead { font-size: 1.15rem; color: var(--text-light); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.9rem; }

/* hero illustration */
.hero__art { position: relative; }
.hero__art-card {
  position: relative; border-radius: 42px; overflow: hidden;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1.02;
}
.hero__art-card svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__badge {
  position: absolute; left: -1.2rem; bottom: 2.4rem; z-index: 2;
  background: #fff; border-radius: var(--radius); padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .8rem;
  max-width: 17rem;
}
.hero__badge .ic {
  width: 44px; height: 44px; flex: none; border-radius: 14px;
  background: var(--accent-soft); color: var(--primary); display: grid; place-items: center;
}
.hero__badge .ic svg { width: 22px; height: 22px; }
.hero__badge strong { display: block; font-family: "Outfit", sans-serif; color: var(--primary-dark); font-size: 1rem; }
.hero__badge span { font-size: .87rem; color: var(--text-light); line-height: 1.45; display: block; }

/* trust strip */
.trust {
  list-style: none;
  position: relative; z-index: 2;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1.6rem clamp(1.2rem, 3vw, 2.2rem);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  transform: translateY(50%);
}
.hero-bottom-gap { height: clamp(4rem, 8vw, 6rem); }
.trust__item { display: flex; align-items: center; gap: .85rem; }
.trust__item svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.trust__item strong { font-family: "Outfit", sans-serif; font-weight: 500; color: var(--primary-dark); font-size: 1.02rem; }
.trust__item span { display: block; font-size: .85rem; color: var(--text-light); line-height: 1.4; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { margin-top: 2.2rem; }
  .hero__art { order: -1; max-width: 26rem; margin-inline: auto; width: 100%; }
  .hero__art-card { aspect-ratio: 1 / .82; border-radius: 34px; }
  .hero__badge { left: auto; right: .5rem; bottom: -1.5rem; }
  .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .nav__logo img { height: 46px; }
  .nav.is-stuck .nav__logo img { height: 38px; }
  .trust { grid-template-columns: 1fr; gap: 1rem; padding: 1.3rem; }
  .hero__actions .btn { width: 100%; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: .95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.about__art {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(150deg, var(--mist), #fff);
  border: 1px solid var(--line); aspect-ratio: 1 / 1.05;
}
.about__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.about__quote {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1.2rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-radius: var(--radius); padding: 1rem 1.2rem;
  font-family: "Yellowtail", cursive; color: var(--primary);
  font-size: 1.35rem; text-align: center; line-height: 1.4;
}
.about h2 { max-width: 20ch; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.3rem; display: flex; gap: .9rem; align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.stat svg { width: 24px; height: 24px; color: var(--primary); flex: none; margin-top: 2px; }
.stat strong { display: block; font-family: "Outfit", sans-serif; color: var(--primary-dark); }
.stat span { font-size: .88rem; color: var(--text-light); line-height: 1.5; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__art { aspect-ratio: 1 / .7; }
}
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ============================================================
   SERVICES
   ============================================================ */
.tabs {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin-bottom: 2.5rem;
}
.tab {
  font-family: "Outfit", sans-serif; font-size: .95rem; font-weight: 500;
  padding: .62rem 1.15rem; border-radius: var(--radius-pill);
  border: 1px solid var(--line); background: #fff; color: var(--text);
  cursor: pointer; transition: all .22s var(--ease); white-space: nowrap;
}
.tab:hover { border-color: var(--primary-light); color: var(--primary); }
.tab[aria-selected="true"] {
  background: var(--primary); border-color: var(--primary); color: #fff;
  box-shadow: var(--shadow);
}

.services__grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.2rem;
}
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem 1.4rem; display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service[hidden] { display: none; }
.service:hover { border-color: var(--primary-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.service__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--primary); margin-bottom: 1.1rem;
}
.service__icon svg { width: 26px; height: 26px; }
.service h4 { margin-bottom: .5rem; }
.service__cat {
  font-size: .8rem; color: var(--accent); font-weight: 600;
  margin-bottom: .5rem; display: block;
}
.service p { font-size: .96rem; color: var(--text-light); margin-bottom: 1.2rem; }
.service .textlink { margin-top: auto; align-self: flex-start; }
.service[data-cat="pediatric"] .service__icon { background: #FFF1DC; color: #B4712A; }
.service[data-cat="pediatric"] .service__cat { color: #B4712A; }
.service__detail { display: none; }

/* modal */
.modal {
  position: fixed; inset: 0; z-index: 150;
  display: grid; place-items: end center;
  padding: 0;
  background: rgba(13,42,74,.5);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
@media (min-width: 720px) { .modal { place-items: center; padding: 2rem; } }
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  background: #fff; width: min(100%, 620px);
  border-radius: 28px 28px 0 0; padding: 2rem clamp(1.4rem, 4vw, 2.5rem) 2.2rem;
  max-height: 88dvh; overflow-y: auto;
  transform: translateY(24px); transition: transform .35s var(--ease);
  box-shadow: var(--shadow-lg);
  padding-bottom: calc(2.2rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 720px) { .modal__panel { border-radius: var(--radius-lg); } }
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute; top: 1rem; right: 1rem;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--primary-dark);
}
.modal__close svg { width: 19px; height: 19px; }
.modal__close:hover { background: var(--mist); }
.modal__panel { position: relative; }
.modal__cat { color: var(--accent); font-weight: 600; font-size: .9rem; }
.modal__panel h3 { margin: .3rem 0 1rem; }
.modal__panel ul { padding-left: 0; list-style: none; margin: 0 0 1.5rem; }
.modal__panel li {
  position: relative; padding-left: 1.9rem; margin-bottom: .6rem;
  color: var(--text-light); font-size: .97rem;
}
.modal__panel li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-soft); border: 2px solid var(--accent);
}
.modal__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ============================================================
   WHY CHOOSE
   ============================================================ */
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.why-card {
  background: #fff; border-radius: var(--radius); padding: 1.9rem 1.7rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.why-card__ic {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--primary), var(--primary-mid)); color: #fff;
  margin-bottom: 1.2rem;
}
.why-card__ic svg { width: 26px; height: 26px; }
.why-card p { font-size: .96rem; color: var(--text-light); margin: 0; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { position: relative; }
.process__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; position: relative; }
.process__grid::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--primary-light) 0 10px, transparent 10px 20px);
  opacity: .6;
}
.step { position: relative; text-align: left; }
.step__num {
  width: 68px; height: 68px; border-radius: 24px; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--primary); color: var(--primary);
  font-family: "Outfit", sans-serif; font-size: 1.3rem; font-weight: 600;
  margin-bottom: 1.2rem; position: relative; z-index: 1;
}
.step:nth-child(1) .step__num { background: var(--primary); color: #fff; }
.step h4 { margin-bottom: .45rem; }
.step p { font-size: .95rem; color: var(--text-light); margin: 0; }
@media (max-width: 900px) {
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid::before { display: none; }
}
@media (max-width: 520px) { .process__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--primary-dark) 0%, var(--primary) 60%, #1B6490 100%);
  color: #fff; border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center;
}
.cta-wrap { padding: clamp(3rem, 7vw, 5rem) 0; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); margin-bottom: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: flex-end; }
.cta::before {
  content: ""; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px;
  border-radius: 50%; border: 44px solid rgba(255,255,255,.06);
}
.cta::after {
  content: ""; position: absolute; left: -90px; bottom: -120px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(46,147,184,.18);
}
.cta > * { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .cta { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .cta__actions .btn { flex: 1 1 200px; }
}

/* ============================================================
   CONTACT + HOURS
   ============================================================ */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ic {
  width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--primary);
}
.info-list .ic svg { width: 22px; height: 22px; }
.info-list strong { display: block; font-family: "Outfit", sans-serif; color: var(--primary-dark); font-size: 1rem; }
.info-list a, .info-list address {
  color: var(--text-light); font-style: normal; font-size: .98rem; text-decoration: none; display: block;
}
.info-list a:hover { color: var(--primary); text-decoration: underline; }

.map {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--mist); aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-sm);
}
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__overlay {
  position: absolute; inset: auto 1rem 1rem; background: rgba(255,255,255,.94);
  border-radius: 16px; padding: .9rem 1.1rem; display: flex; gap: 1rem;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.map__overlay strong { font-family: "Outfit", sans-serif; color: var(--primary-dark); display: block; font-size: .98rem; }
.map__overlay span { font-size: .85rem; color: var(--text-light); }

/* form */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.3rem); box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .92rem; font-weight: 500; color: var(--primary-dark); font-family: "Outfit", sans-serif; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  padding: .85rem 1rem; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--background); transition: border-color .2s, background-color .2s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--primary); background: #fff; outline: none;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 0; }
.field .error { font-size: .84rem; color: #B42318; min-height: 1.1em; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #D64545; }
.form-note { font-size: .85rem; color: var(--text-light); margin: 1rem 0 0; }
.form-status {
  margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 14px;
  background: var(--accent-soft); color: var(--primary-dark); font-size: .95rem;
  display: none;
}
.form-status.is-visible { display: block; }
@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

/* hours */
.hours__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.hours-card {
  background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
}
.hours-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem .6rem; border-bottom: 1px solid var(--line);
}
.hours-row:last-of-type { border-bottom: 0; }
.hours-row span:first-child { font-family: "Outfit", sans-serif; color: var(--primary-dark); font-weight: 500; }
.hours-row span:last-child { color: var(--text-light); font-variant-numeric: tabular-nums; }
.hours-row.is-today {
  background: var(--accent-soft); border-radius: 14px; border-bottom-color: transparent;
  padding-inline: 1rem;
}
.hours-row.is-today span:last-child { color: var(--primary); font-weight: 600; }
.hours-note { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--text-light); margin-top: 1.2rem; }
.hours-note svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
@media (max-width: 860px) { .hours__grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 50rem; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: "Outfit", sans-serif; font-size: 1.08rem; font-weight: 500; color: var(--primary-dark);
  padding: 1.3rem .2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q svg { width: 20px; height: 20px; flex: none; color: var(--primary); transition: transform .3s var(--ease); }
.faq__q[aria-expanded="true"] svg { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { color: var(--text-light); font-size: .98rem; padding: 0 .2rem 1.3rem; margin: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,.72);
  padding: clamp(3rem, 6vw, 4.5rem) 0 0; font-size: .96rem;
}
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2.5rem; }
.footer__logo img { height: 66px; width: auto; }
.footer__tag { font-family: "Yellowtail", cursive; font-size: 1.3rem; color: var(--accent); margin: 1rem 0 .6rem; }
.footer p { color: rgba(255,255,255,.66); font-size: .95rem; max-width: 34ch; }
.footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 1.1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer address { font-style: normal; color: rgba(255,255,255,.66); margin-bottom: .8rem; }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff; transition: background-color .25s, transform .25s;
}
.socials a:hover { background: var(--accent); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.footer__bottom {
  margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  font-size: .89rem; color: rgba(255,255,255,.55);
  padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1.2rem; z-index: 90;
  bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--primary); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--d, 0ms);
}

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

/* print */
@media print {
  .nav, .to-top, .modal, .hero__art, .map { display: none !important; }
  body { color: #000; }
}

/* ============================================================
   MULTI-PAGE COMPONENTS
   ============================================================ */

/* ---------- Inner-page banner ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + clamp(2.5rem, 5vw, 4rem)) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(80% 90% at 88% 0%, #E4F0F8 0%, rgba(228,240,248,0) 62%),
    linear-gradient(180deg, #FBFDFF 0%, var(--background) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: -55%;
  width: 34rem; height: 34rem; border-radius: 50%;
  background: radial-gradient(circle at 40% 60%, rgba(46,147,184,.13), transparent 68%);
  pointer-events: none;
}
.page-hero > .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin-bottom: .7rem; max-width: 20ch; }
.page-hero p { color: var(--text-light); font-size: 1.1rem; max-width: 52ch; margin-bottom: 0; }
.page-hero .kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--primary); font-weight: 600; font-size: .95rem; margin-bottom: .9rem;
}
.page-hero .kicker::before {
  content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent);
}

.crumbs { font-size: .9rem; color: var(--text-light); margin-bottom: 1.2rem; }
.crumbs a { color: var(--text-light); text-decoration: none; }
.crumbs a:hover { color: var(--primary); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 .45rem; opacity: .6; }
.crumbs > span:last-child { color: var(--primary-dark); font-weight: 500; }

/* ---------- Service category cards (home page) ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.2rem; }
.cat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.5rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-light); }
.cat-card__ic {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--primary); margin-bottom: 1.1rem;
}
.cat-card__ic svg { width: 26px; height: 26px; }
.cat-card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.cat-card p { font-size: .96rem; color: var(--text-light); margin-bottom: 1.2rem; }
.cat-card__more {
  margin-top: auto; display: inline-flex; align-items: center; gap: .45rem;
  font-family: "Outfit", sans-serif; font-size: .93rem; font-weight: 500; color: var(--primary);
}
.cat-card__more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.cat-card:hover .cat-card__more svg { transform: translateX(3px); }
.cat-card[data-cat="pediatric"] .cat-card__ic { background: #FFF1DC; color: #B4712A; }
.cat-card[data-cat="pediatric"] .cat-card__more { color: #B4712A; }

/* ---------- Numbered mini steps (appointment page) ---------- */
.mini-steps { list-style: none; counter-reset: s; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1rem; }
.mini-steps li { position: relative; padding-left: 3.2rem; counter-increment: s; }
.mini-steps li::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--primary);
  font-family: "Outfit", sans-serif; font-weight: 600; font-size: .95rem;
}
.mini-steps strong { display: block; font-family: "Outfit", sans-serif; color: var(--primary-dark); }
.mini-steps span { font-size: .94rem; color: var(--text-light); }

/* keep the first section clear of the banner */
.page-hero + .section { padding-top: clamp(3rem, 6vw, 5rem); }
