@charset "UTF-8";
/* ============================================================================
   Pearl Dental Clinic — components
   ========================================================================== */

/* --- Topbar ------------------------------------------------------------
   Slim utility strip above the header. Normal document flow — it scrolls
   away the moment the page moves, leaving the sticky header behind. */
.topbar {
  background: var(--teal-900);
  color: rgba(247, 243, 236, 0.72);
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-5);
  padding-block: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.topbar-contacts {
  display: flex;
  gap: var(--s-6);
  align-items: center;
}
.topbar a {
  transition: color var(--dur-base) var(--ease-out);
}
.topbar a:hover {
  color: #fff;
}

/* --- Header -----------------------------------------------------------
   Sticky, always the translucent cream "material" — content begins right
   below it in normal flow rather than sliding underneath an overlay. */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-900);
  transition:
    transform 420ms var(--ease-soft),
    box-shadow 320ms var(--ease-out);
}
.header.is-scrolled {
  box-shadow: var(--sh-sm);
}
.header.is-tucked {
  transform: translate3d(0, -101%, 0);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}
.brand-mark {
  width: 22px;
  color: var(--teal-700);
  flex: none;
}
.brand-mark svg {
  width: 100%;
  height: auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}
.brand-text strong {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: var(--teal-900);
}
.brand-text em {
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal-700);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  margin-inline: auto;
}
.nav > a,
.nav-drop-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-900);
  transition: color 200ms var(--ease-out);
}
.nav > a:hover,
.nav-drop:hover .nav-drop-trigger {
  color: var(--teal-700);
}
.nav > a[aria-current='page'] {
  color: var(--teal-700);
}
.chev {
  width: 9px;
  opacity: 0.7;
  transition: transform 260ms var(--ease-out);
}
.nav-drop:hover .chev {
  transform: rotate(180deg);
}

/* Popover anchored to its trigger. */
.nav-drop {
  position: relative;
}
.nav-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: min(560px, 84vw);
  padding-top: 4px;
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 200ms var(--ease-out),
    visibility 200ms;
}
.nav-drop:hover .nav-menu,
.nav-drop:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-menu-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 1px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  color: var(--ink-900);
  background: var(--hairline);
  transform: translateY(-4px);
  transition: transform 220ms var(--ease-soft);
}
.nav-drop:hover .nav-menu-inner,
.nav-drop:focus-within .nav-menu-inner {
  transform: none;
}
.nav-menu-inner a {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0.85rem 1rem;
  background: var(--pearl-50);
  transition: background-color 180ms var(--ease-out);
}
.nav-menu-inner a:hover {
  background: var(--pearl-100);
}
.nav-menu-inner span {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: -0.004em;
}
.nav-menu-inner em {
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.004em;
  color: var(--ink-400);
}
.nav-menu-all {
  grid-column: 1 / -1;
}
.nav-menu-all span {
  color: var(--teal-700);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex: none;
}
.header-call {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink-900);
  transition: color 200ms var(--ease-out);
}
.header-call svg {
  width: 16px;
  color: var(--teal-700);
}
.header-call:hover {
  color: var(--teal-700);
}
.header .btn-accent {
  padding: 0.75rem 1.4rem;
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  background: var(--pearl-100);
  transition: background-color 200ms var(--ease-out);
}
.menu-btn span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: currentColor;
  transition: transform 320ms var(--ease-soft);
}
.menu-btn[aria-expanded='true'] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}
.menu-btn[aria-expanded='true'] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* --- Mobile menu sheet ----------------------------------------------------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 130;
  visibility: hidden;
}
.menu-scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 58, 69, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
}
.menu-panel {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-3) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  box-shadow: var(--sh-xl);
  will-change: transform;
}
.menu-grip {
  display: grid;
  place-items: center;
  padding: 0.55rem 0 var(--s-4);
  cursor: grab;
  touch-action: none;
}
.menu-grip span {
  display: block;
  width: 38px;
  height: 3px;
  background: var(--hairline-strong);
}
.menu-nav {
  display: flex;
  flex-direction: column;
}
.menu-nav a {
  padding: 0.9rem 0;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: -0.008em;
  border-bottom: 1px solid var(--hairline);
  color: var(--teal-900);
}
.menu-foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-5);
  text-align: center;
}
.menu-tel {
  font-size: var(--t-sm);
  color: var(--fg-muted);
}

/* --- Hero -------------------------------------------------------------
   Full-bleed photograph with a teal gradient wash, mirroring the mockup. */
.hero {
  position: relative;
  height: 88vh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  background: var(--teal-900);
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 58, 69, 0.92) 0%,
    rgba(11, 58, 69, 0.6) 32%,
    rgba(11, 58, 69, 0.22) 62%,
    rgba(11, 58, 69, 0.04) 85%
  );
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block-end: var(--s-9);
  max-width: 44rem;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.hero-title {
  margin-block: 0.1em 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.hero-cta.center {
  justify-content: center;
}

/* Relocated 3D tooth — lives in the services page banner now, not the hero. */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  justify-self: center;
}
.hero-stage-sm {
  max-width: 320px;
}
.hero-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 900ms var(--ease-soft);
}
.hero-stage[data-ready] canvas {
  opacity: 1;
}
.hero-stage-fallback {
  position: absolute;
  inset: 12%;
  border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%;
  opacity: 0;
  transition: opacity 700ms var(--ease-soft);
  background:
    radial-gradient(60% 48% at 36% 26%, rgba(255, 255, 255, 0.95), transparent 62%),
    radial-gradient(70% 60% at 70% 74%, rgba(127, 196, 210, 0.4), transparent 64%),
    linear-gradient(165deg, #fbf9f5, #dfe4e8 58%, #c2c9d0);
  box-shadow:
    inset 0 -22px 48px rgba(11, 58, 69, 0.16),
    inset 0 18px 36px rgba(255, 255, 255, 0.85),
    0 40px 90px rgba(11, 58, 69, 0.35);
}
.hero-stage[data-fallback] .hero-stage-fallback {
  opacity: 1;
}
.hero-stage[data-fallback] canvas,
.hero-stage[data-fallback] .hero-hint {
  display: none;
}
.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 2%;
  transform: translateX(-50%);
  opacity: 0;
  font-size: var(--t-xs);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  transition: opacity 600ms var(--ease-out) 900ms;
}
.hero-stage[data-ready] .hero-hint {
  opacity: 1;
}

/* --- Trust band -------------------------------------------------------- */
.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.band-grid li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--s-7) var(--s-5);
  border-right: 1px solid var(--hairline);
}
.band-grid li:last-child {
  border-right: 0;
}
.band-grid strong {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3rem);
  font-weight: 300;
  line-height: 1;
}
.band-grid span {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.8);
}

/* --- Intro ----------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: var(--s-8);
  align-items: start;
}
.intro-lead {
  position: sticky;
  top: calc(78px + var(--s-6));
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.intro-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  align-items: flex-start;
}

/* --- Services --------------------------------------------------------------
   Grid lines are a 1px hairline gap, not per-card borders — sampled directly
   from the mockup. Index numbers are a CSS counter, not markup/data. */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  counter-reset: svc;
}
.svc {
  display: flex;
  flex-direction: column;
  background: var(--pearl-50);
  border-radius: 0;
  border: 0;
  counter-increment: svc;
}
.svc .card-media {
  aspect-ratio: 4 / 3;
}
.svc-lg {
  grid-column: span 2;
}
.svc-lg .card-media {
  aspect-ratio: 16 / 10;
}
.svc .card-body {
  flex: 1;
  gap: var(--s-2);
}
.svc-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.svc-go {
  flex: none;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.svc-go::before {
  content: '0' counter(svc);
}
.services-tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--s-3);
  background: var(--teal-900);
  padding: var(--s-8) var(--s-6);
  min-height: 200px;
  transition: background-color var(--dur-base) var(--ease-out);
}
.services-tile:hover {
  background: var(--teal-700);
}
.services-tile strong {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--pearl-100);
}
.services-tile span {
  font-size: var(--t-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-300);
}
.services-more {
  display: flex;
  justify-content: center;
  margin-top: var(--s-8);
}

/* --- Rail (draggable carousel) --------------------------------------------- */
.rail {
  position: relative;
  margin-top: var(--s-4);
}
.rail-view {
  overflow: hidden;
}
.rail-track {
  display: flex;
  gap: var(--s-4);
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.rail.is-dragging .rail-track {
  cursor: grabbing;
}
.rail-item {
  flex: 0 0 clamp(280px, 34vw, 420px);
}
.quote-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  padding: var(--s-6);
  border: 1px solid var(--hairline);
  min-height: 300px;
}
.quote-card blockquote p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.006em;
  color: var(--pearl-50);
}
.quote-by {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin: 0;
}
.quote-by img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: var(--teal-800);
  pointer-events: none;
}
.quote-by figcaption {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.quote-by strong {
  font-size: var(--t-sm);
  font-weight: 400;
}
.quote-by span {
  font-size: var(--t-xs);
  color: var(--fg-subtle);
}

.rail-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-5);
}
.rail-dots {
  display: flex;
  gap: 7px;
}
.rail-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  transition:
    background-color 260ms var(--ease-out),
    transform 260ms var(--ease-soft);
}
.rail-dot.is-on {
  background: var(--teal-300);
  transform: scale(1.4);
}
.rail-arrows {
  display: flex;
  gap: var(--s-2);
}
.rail-arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--pearl-50);
  transition:
    background-color 200ms var(--ease-out),
    opacity 200ms var(--ease-out);
}
.rail-arrow svg {
  width: 15px;
}
.rail-arrow:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}
.rail-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
.voices-more {
  margin-top: var(--s-7);
}

/* --- Doctors --------------------------------------------------------------- */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5) var(--s-4);
}
.doc-media {
  aspect-ratio: 3 / 4;
}
.doc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.doc-note {
  color: var(--fg-subtle);
}

/* --- Clinics ----------------------------------------------------------
   Photo + info split, matching the mockup. */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-7);
}
.clinic-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: var(--s-6);
  background: var(--teal-800);
}
.clinic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.clinic {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.clinic-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  width: 100%;
  margin-block: var(--s-4) var(--s-5);
}
.clinic-meta dt {
  font-size: var(--t-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-subtle);
  margin-bottom: 2px;
}
.clinic-meta dd {
  margin: 0;
  font-size: var(--t-sm);
  color: var(--fg-muted);
}
.clinic-meta a:hover {
  color: var(--teal-300);
}

/* --- CTA / appointment band --------------------------------------------- */
.cta-title {
  margin-block: var(--s-3) var(--s-4);
}

/* --- Footer ------------------------------------------------------------ */
.footer {
  padding-top: var(--s-9);
  background: var(--teal-900);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-7) var(--s-5);
  padding-bottom: var(--s-8);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: 32ch;
}
.footer-brand .brand-mark {
  color: var(--teal-300);
}
.footer-brand .brand-text strong {
  color: var(--pearl-50);
}
.footer-blurb {
  color: var(--fg-subtle);
}
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}
.footer-col h4 {
  font-size: var(--t-xs);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-300);
  margin-bottom: var(--s-2);
}
.footer-col a {
  font-size: var(--t-sm);
  color: var(--fg-muted);
  transition: color 200ms var(--ease-out);
}
.footer-col a:hover {
  color: var(--pearl-50);
}
.footer-col p {
  color: var(--fg-subtle);
}
.footer-hours {
  margin-top: var(--s-2);
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  padding-block: var(--s-5);
  border-top: 1px solid var(--hairline);
}
.footer-base p {
  color: var(--fg-subtle);
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .header-call span {
    display: none;
  }
  .services-grid,
  .doctors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .svc-lg {
    grid-column: span 1;
  }
  .svc-lg .card-media {
    aspect-ratio: 4 / 3;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .topbar {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 0;
    padding-block-start: var(--s-9);
  }
  .hero-inner {
    max-width: none;
  }
  .intro-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .intro-lead {
    position: static;
  }
  .clinics-grid {
    grid-template-columns: 1fr;
  }
  .band-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .band-grid li {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
}

@media (max-width: 620px) {
  .header-inner {
    height: 64px;
  }
  .header .btn-accent {
    display: none;
  }
  .brand-text em {
    display: none;
  }
  .services-grid,
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  .services-tile {
    grid-column: span 1;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .rail-item {
    flex: 0 0 min(82vw, 340px);
  }
}

/* ============================================================================
   Inner pages
   ========================================================================== */

/* --- Page banner ------------------------------------------------------- */
.pagehead {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 3rem + 4vw, 6rem) var(--s-9);
  background: var(--teal-900);
}
.pagehead-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  max-width: 60ch;
}

/* Treatment banner splits copy and image; also used for the relocated tooth
   panel on the services index page. */
.pagehead-svc-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: var(--s-8);
  align-items: center;
}
.pagehead-copy {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  align-items: flex-start;
}
.pagehead-media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.pagehead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Why choose us (about) ----------------------------------------------
   Numbered list left, sticky image right — matches the mockup's split. */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.reasons-list {
  display: flex;
  flex-direction: column;
}
.reason {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--s-5);
  padding-block: var(--s-6);
  border-top: 1px solid var(--hairline);
  counter-increment: reason;
}
.reasons-list {
  counter-reset: reason;
}
.reason-n {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--teal-700);
  padding-top: 0.3em;
}
.reason-n::before {
  content: '0' counter(reason);
}
.reason h3 {
  margin-bottom: var(--s-2);
}
.why-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--pearl-200);
  position: sticky;
  top: calc(78px + var(--s-6));
}
.why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Tick lists (treatment specifics) -------------------------------------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-8);
}
.spec-block {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.ticks {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.ticks li {
  position: relative;
  padding-left: 1.85rem;
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--fg-muted);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

/* --- Type / option cards --------------------------------------------------- */
.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.type {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--pearl-50);
}

/* --- Testimonials page --------------------------------------------------
   A large featured quote, then an even grid (not masonry — hairline cards
   read better aligned than overlapping columns). */
.testimonial-featured {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--s-8);
  align-items: start;
  padding: var(--s-8);
  border: 1px solid var(--hairline);
  margin-bottom: var(--s-6);
}
.testimonial-featured-media {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--pearl-200);
}
.testimonial-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-featured blockquote p {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--teal-900);
  margin-bottom: var(--s-6);
}
.testimonial-featured figcaption {
  font-size: var(--t-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-700);
}
.testimonial-featured figcaption span {
  color: var(--fg-subtle);
}

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s-4);
}
.quote-tile {
  padding: var(--s-6);
  border: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.quote-tile blockquote p {
  font-size: var(--t-body);
  line-height: 1.68;
  color: var(--fg-muted);
}
.quote-tile .quote-by {
  border-top: 1px solid var(--hairline);
  padding-top: var(--s-4);
}
.quote-tile .quote-by span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.quote-tile .quote-by strong {
  font-size: var(--t-sm);
  font-weight: 400;
  color: var(--fg);
}
.quote-tile .quote-by em {
  font-style: normal;
  font-size: var(--t-xs);
  color: var(--fg-subtle);
}
.quote-tile .quote-by img {
  background: var(--pearl-200);
}

/* --- Gallery --------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  background: var(--pearl-200);
  aspect-ratio: 4 / 3;
}
.gallery-item-wide {
  grid-column: span 2;
  aspect-ratio: 8 / 3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-soft);
}
.gallery-item:hover img {
  transform: scale(1.04);
}

/* --- Team page ------------------------------------------------------------- */
.doctors-grid-full {
  grid-template-columns: repeat(3, 1fr);
}

/* --- Contact / appointment ----------------------------------------------
   Bright-teal band; underline-style inputs, but labels stay visible. */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-8);
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  align-items: flex-start;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  width: 100%;
}
.field label {
  font-size: var(--t-sm);
  letter-spacing: 0.02em;
}
.field .opt {
  font-weight: 300;
  opacity: 0.7;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.1rem;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--fg);
  font-size: var(--t-body);
  transition: border-color 180ms var(--ease-out);
}
.field select option {
  color: var(--teal-900);
}
.field textarea {
  resize: vertical;
  min-height: 6rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--fg);
}
/* Validate inline, at the moment of the mistake — not on submit. */
.field.is-invalid input,
.field.is-invalid select {
  border-bottom-color: #f2b3ab;
}
.field-error {
  min-height: 1.1rem;
  font-size: var(--t-xs);
  color: #f6cac2;
}
.form-note {
  color: var(--fg-subtle);
}
.form-status {
  font-size: var(--t-sm);
  color: var(--pearl-50);
}
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-6);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.05);
}
.contact-card .clinic-meta {
  border-top-color: var(--hairline);
}
.contact-card a:hover {
  color: var(--pearl-50);
}

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }
  .why-media {
    position: static;
    order: -1;
  }
  .quotes-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
  .doctors-grid-full {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .pagehead-svc-inner {
    grid-template-columns: 1fr;
  }
  .testimonial-featured {
    grid-template-columns: 150px 1fr;
    padding: var(--s-6);
  }
}

@media (max-width: 780px) {
  .spec-grid,
  .types-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item-wide {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .testimonial-featured {
    grid-template-columns: 1fr;
  }
  .testimonial-featured-media {
    max-width: 200px;
  }
  .doctors-grid-full {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-item-wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
}
