/* Hallmark · checked: 2026-11-27 · genre: editorial (inferred)
 * built: the project · redesign: polish · v2.0.0 */
/* Hallmark critique: The first screen identifies the clinic and offers an appointment. The photography carries the visual emphasis. */
/* Hallmark · dropped spark, heart, shield, calendar · 66: remove decorations that have no role in navigation or treatment choices. */
/* Hallmark · reworded "Meet your dentists." to "Our dentists" · 54: match the navigation and remove the repeated clinic label. */
/* Hallmark · reworded "Let’s take it one smile at a time." to "Your first visit in three steps" · the numbered sequence explains how a first appointment works. */
/* Hallmark · reworded "Start a conversation" to "Before you book", "Come a little prepared" to "What to bring", and "Talk through your options" to "What to ask" · 69: name each practical step. */
/* Hallmark · reworded "Something on your mind?" to "Frequently asked questions" · 54: identify the section plainly. */
/* Hallmark · reworded "We’re right here in Olongapo." to "Visit the clinic", "Come say hello." to "Address and contact", and "Planning your visit" to "Clinic hours" · 54: make arrival information easy to scan. */
/* Hallmark · dropped booking-title, https://unsplash.com/photos/Ll9YOG20UFI · user requested a single booking action and no visible stock photo credit. */
/* Hallmark · reworded "Let’s planyour visit." to "Request an appointment", "Your request is ready." to "Your appointment draft", and "Privacy, simply." to "Website privacy" · 54 and 70: name the controls and distinguish drafting from sending. */
/* Hallmark · dismissed F20 · all three visit cards share one grid row; the center card is offset to reflect the supplied reference. */

:root {
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Manrope", system-ui, sans-serif;
  --color-paper: #fbfdff;
  --color-header-material: #fbfdfff5;
  --color-paper-raised: #f1f6fc;
  --color-field: #e8f5fb;
  --color-ink: #111f50;
  --color-muted: #425673;
  --color-rule: #cbd9ea;
  --color-field-edge: #7185a1;
  --color-action: #0758ab;
  --color-action-hover: #06448e;
  --color-action-active: #08163a;
  --color-focus: #0857aa;
  --color-on-dark: #f8fcff;
  --color-on-dark-muted: #c9d9f0;
  --color-photo-placeholder: #24447d;
  --color-dialog-backdrop: #08163ab8;
  --color-map: #e0ecf8;
  --color-error: #a03d25;
  --color-clinic-highlight: #e5f6fc;
  --color-logo-accent: #075890;
  --color-logo-cyan: #43d8ed;
  --color-review-field: #143e79;
  --color-review-scrollbar: #a8c6ed;
  --measure: 76rem;
  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --gap-columns: clamp(1.5rem, 4vw, 3rem);
  --section-pad: clamp(3.5rem, 7vw, 6rem);
  --radius: 0.5rem;
  --ease-settle: cubic-bezier(0.2, 0.75, 0.25, 1);
  --ease-return: cubic-bezier(0.75, 0, 0.8, 0.25);
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  overflow-x: clip;
  margin: 0;
  font-family: var(--font-body);
  font-optical-sizing: auto;
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
}

body, h1, h2, h3, p, figure, blockquote { margin: 0; }

h1, h2, h3 {
  min-width: 0;
  overflow-wrap: break-word;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.875rem, 1.6rem + 4.5vw, 5.5rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2.125rem, 1.45rem + 2.2vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 0.5vw, 1.625rem); letter-spacing: -0.025em; }

p { color: var(--color-muted); text-wrap: pretty; }
strong { font-weight: 600; }

button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
a, button { touch-action: manipulation; }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
}

.topline :focus-visible,
.dentists-section :focus-visible,
.testimonials-section :focus-visible,
.visit-steps > :first-child :focus-visible,
footer :focus-visible { outline-color: var(--color-logo-cyan); }

.testimonials-section figure :focus-visible { outline-color: var(--color-focus); }

:disabled, [aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

[aria-busy="true"] { cursor: progress; }
[aria-invalid="true"] { border-color: var(--color-error); }
[hidden] { display: none !important; }

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

svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-library, .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: clip;
  clip-path: inset(50%);
}

.skip-link {
  position: fixed;
  z-index: 30;
  inset: 1rem auto auto 1rem;
  padding: 0.75rem 1rem;
  background: var(--color-paper);
  color: var(--color-ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.container {
  width: min(var(--measure), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: var(--section-pad); }
.section-title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.nowrap { white-space: nowrap; }

.topline {
  background: var(--color-ink);
  color: var(--color-on-dark);
  font-size: 0.875rem;
}

.topline-inner, .nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topline-inner { min-height: 2.75rem; }
.topline a { text-decoration: none; white-space: nowrap; }

.header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--color-paper);
  color: var(--color-ink);
}

@supports (backdrop-filter: blur(12px)) {
  .header {
    background: var(--color-header-material);
    color: var(--color-ink);
    backdrop-filter: blur(12px);
  }
}

.nav-wrap { min-height: 5rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.12;
}

.brand small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
}

.brand-mark {
  position: relative;
  display: block;
  width: 3.125rem;
  aspect-ratio: 474 / 396;
  overflow: clip;
  flex: none;
}

.brand-mark img {
  position: absolute;
  inset: -16.9% auto auto -17.3%;
  width: 137.1%;
  max-width: none;
}

#navigation {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  font-size: 0.9375rem;
}

#navigation > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
  white-space: nowrap;
}

#navigation > a:hover { text-decoration: underline; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--color-action);
  color: var(--color-on-dark);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}

.button:hover { background: var(--color-action-hover); }
.button:active { background: var(--color-action-active); }

.text-link, .plain-button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  white-space: nowrap;
}

.text-link:active, .plain-button:active { opacity: 0.8; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--gap-columns);
  padding-block: clamp(1.5rem, 5vw, 4rem);
}

.hero h1 { max-inline-size: 16ch; font-size: clamp(2.5rem, 1.475rem + 3.2vw, 4rem); }
.hero-copy p { max-inline-size: 38ch; margin-top: 1.125rem; font-size: clamp(1.0625rem, 0.95rem + 0.42vw, 1.25rem); text-wrap: pretty; }
.hero-actions, .contact-buttons, .preview-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.hero-image {
  aspect-ratio: 1.08;
  border-radius: var(--radius);
  overflow: clip;
  background: var(--color-field);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.welcome-strip {
  background: var(--color-field);
  color: var(--color-ink);
}

.location-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 1rem;
}

.location-strip p {
  color: var(--color-ink);
  flex: 1;
}

.location-strip p span {
  display: block;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.location-strip svg, .contact-line svg { width: 1.25rem; height: 1.25rem; }

.services-section { background: var(--color-paper-raised); }

.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.4vw, 2rem);
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: clamp(1.375rem, 3vw, 2.5rem) clamp(1.125rem, 2.3vw, 2rem);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: var(--color-paper);
  text-align: center;
}

.service-card > svg {
  width: 2.625rem;
  height: 2.625rem;
  margin-bottom: 0.375rem;
  color: var(--color-logo-accent);
  stroke-width: 1.25;
}

.service-card h3 { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem); }
.service-card p { max-inline-size: 34ch; }

.faq-list details { border-bottom: 1px solid var(--color-rule); }
.faq-list details:first-child { border-top: 1px solid var(--color-rule); }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }
.faq-list summary:hover > span:first-child { text-decoration: underline; }
summary:active { background: var(--color-paper-raised); }

.expand { flex: none; width: 1.5rem; text-align: center; font-size: 1.25rem; }
.expand::before { content: "+"; }
details[open] > summary .expand::before { content: "−"; }
.section-note { margin-top: 1.5rem; max-width: 68ch; font-size: 0.9375rem; }

.clinic-highlights {
  padding-block: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--color-clinic-highlight);
  color: var(--color-ink);
}

.clinic-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.clinic-facts > div {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.25rem;
  justify-items: center;
  padding: 0.75rem 1rem;
  text-align: center;
}

.clinic-facts > div + div { border-inline-start: 1px solid var(--color-rule); }
.clinic-facts dt { font-weight: 600; }
.clinic-facts dd { margin: 0; }

.fact-value {
  grid-row: 1;
  color: var(--color-logo-accent);
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 1.55rem + 2.8vw, 4.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.fact-detail { color: var(--color-muted); font-size: 0.875rem; }

.dentists-section {
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.dentists-layout { max-width: 59rem; }

.dentist-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap-columns);
}

.dentist-photo {
  aspect-ratio: 1122 / 1402;
  overflow: clip;
  border-radius: var(--radius);
  background: var(--color-photo-placeholder);
}

.dentist-photo img { width: 100%; height: auto; }
.dentist h3 { margin-top: 1.25rem; }
.dentist p { margin-top: 0.25rem; color: var(--color-on-dark-muted); }
.dentists-layout > .text-link { margin-top: 1.5rem; }

.testimonials-section {
  background: var(--color-review-field);
  color: var(--color-on-dark);
}

.review-viewport {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-block: 0.25rem 0.75rem;
  scrollbar-color: var(--color-review-scrollbar) var(--color-review-field);
  scrollbar-width: thin;
}

.review-viewport[data-loop] { scroll-snap-type: none; scrollbar-width: none; }
.review-list { display: flex; gap: 1rem; }

.review-list figure {
  display: grid;
  flex: 0 0 calc((100% - 2rem) / 3);
  grid-template-rows: auto 1fr auto;
  gap: 0.75rem;
  scroll-snap-align: start;
  min-width: 0;
  min-height: 13rem;
  padding: clamp(1rem, 2vw, 1.75rem);
  border-radius: var(--radius);
  background: var(--color-paper);
  color: var(--color-ink);
}

.review-stars { color: var(--color-logo-accent); font-size: 1rem; letter-spacing: 0.08em; }
.review-list blockquote { font-size: clamp(1.0625rem, 0.94rem + 0.5vw, 1.375rem); line-height: 1.5; text-wrap: pretty; }
.review-list figcaption :is(a, span) {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.testimonials-section .more-reviews { margin-top: 0.75rem; }

.visit-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 0;
  margin: 0 0 1.5rem;
  list-style: none;
}

.visit-steps li {
  min-height: 15rem;
  padding: clamp(1.25rem, 2.8vw, 2.25rem);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: var(--color-paper-raised);
  color: var(--color-ink);
}

.visit-steps li:first-child {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-on-dark);
}

.visit-step-label {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--color-logo-accent);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.08rem + 1.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.visit-steps li:first-child .visit-step-label { color: var(--color-logo-cyan); }
.visit-steps li:first-child p { color: var(--color-on-dark-muted); }
.visit-steps p { margin-top: 0.75rem; max-width: 33ch; }
.visit-steps .text-link { margin-top: 0.75rem; }

.faq-section {
  background: var(--color-paper-raised);
  color: var(--color-ink);
}

.faq-layout, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--gap-columns);
}

.faq-layout .section-title { margin-bottom: 0.75rem; }
.faq-list summary { padding-block: 1rem; min-height: 3.5rem; font-weight: 600; }
.faq-list details p { padding: 0 1.5rem 1rem 0; overflow-wrap: anywhere; }
.contact-grid address { margin: 0.75rem 0 1rem; font-style: normal; color: var(--color-muted); }

.contact-line {
  display: flex;
  width: fit-content;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.75rem;
  overflow-wrap: anywhere;
}

.hours { margin-top: 1.5rem; }
.hours dl { max-width: 24rem; margin-block: 0.75rem; font-variant-numeric: tabular-nums; }
.hours dl > div { display: flex; justify-content: space-between; gap: 0.75rem; padding-block: 0.375rem; }
.hours dd { margin: 0; white-space: nowrap; }
.hours p { max-width: 48ch; font-size: 0.9375rem; }

.map-panel {
  position: relative;
  min-height: 32rem;
  border-radius: var(--radius);
  overflow: clip;
  background: var(--color-map);
}

.map-panel iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }

footer { background: var(--color-ink); color: var(--color-on-dark); }

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  font-size: 0.9375rem;
}

.footer-top h2 {
  margin-bottom: 0.75rem;
  color: var(--color-logo-cyan);
  font-size: 1.125rem;
  letter-spacing: -0.015em;
}

.footer-brand { display: flex; margin-block-end: 0.65rem; white-space: normal; }
.footer-brand small, .footer-intro p, .footer-hours p { color: var(--color-on-dark-muted); }
.footer-intro p { margin-block: 1rem 0.375rem; }
.footer-social { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.footer-social a { display: grid; place-items: center; inline-size: 2.75rem; block-size: 2.75rem; }
.footer-social a:hover { color: var(--color-logo-cyan); }
.footer-social svg { width: 1.375rem; height: 1.375rem; fill: currentColor; stroke: none; }
.footer-contact address { margin-bottom: 0.35rem; font-style: normal; }
.footer-contact a { display: flex; align-items: center; min-block-size: 2rem; }
.footer-hours dl { display: grid; gap: 0.5rem; margin: 0 0 0.75rem; }
.footer-hours dt { font-weight: 600; }
.footer-hours dd { margin: 0; }
.footer-hours p { font-size: 0.875rem; }

.footer-legal { background: var(--color-action-active); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding-block: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-on-dark-muted);
}

.footer-bottom .plain-button { color: inherit; font-size: 0.875rem; font-weight: 400; }

dialog {
  width: min(35rem, calc(100% - 2rem));
  max-height: min(90dvh, 48rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: var(--color-paper);
  color: var(--color-ink);
}

dialog::backdrop { background: var(--color-dialog-backdrop); }
dialog h2 { font-size: clamp(1.75rem, 1.3rem + 1.55vw, 2.5rem); padding-right: 2.5rem; }
dialog h3 { margin-bottom: 0.75rem; }

.close-dialog {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius);
  background: var(--color-paper);
  font-size: 1.5rem;
  line-height: 1;
}

.close-dialog:hover { background: var(--color-field); }
.close-dialog:active, .menu-toggle:active { background: var(--color-field); }
.dialog-channels { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-block: 0.75rem 1rem; }

.dialog-channels a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  gap: 0.5rem;
  font-size: 0.9375rem;
}

.dialog-channels svg { width: 1.125rem; height: 1.125rem; }

form { display: grid; }
label { margin-bottom: 0.25rem; font-size: 0.9375rem; font-weight: 600; }
label span { color: var(--color-muted); font-weight: 400; }

input, select {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  margin-bottom: 1rem;
  padding: 0.625rem 0.75rem;
  border: 1px solid var(--color-field-edge);
  border-radius: var(--radius);
  background: var(--color-paper);
  color: var(--color-ink);
}

input:hover, select:hover { background: var(--color-paper-raised); }
input:focus-visible, select:focus-visible { outline-offset: -3px; }
.form-note { margin-top: 0.75rem; font-size: 0.875rem; }
#request-preview { overflow-wrap: anywhere; }

#request-text {
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--color-field);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  white-space: pre-wrap;
}

#copy-status { min-height: 1.5rem; margin-top: 0.5rem; }
#privacy-dialog p { margin-top: 1rem; overflow-wrap: anywhere; }

@media (max-width: 60rem) {
  .nav-wrap { min-height: 4.5rem; flex-wrap: wrap; }
  .js .menu-toggle {
    display: grid;
    place-content: center;
    gap: 0.375rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--color-rule);
    border-radius: var(--radius);
    background: var(--color-paper);
  }
  .menu-toggle > span:not(.sr-only) { width: 1.25rem; height: 1px; background: var(--color-ink); }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
  #navigation { flex-wrap: wrap; padding-block: 0.5rem 1rem; }
  .js #navigation {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    align-items: stretch;
    padding: 1rem var(--gutter);
    border-bottom: 1px solid var(--color-rule);
    background: var(--color-paper);
  }
  .js #navigation.is-open { display: flex; flex-direction: column; gap: 0.25rem; }
}

@media (max-width: 52rem) {
  .services { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 42rem) {
  .topline-inner { flex-wrap: wrap; gap: 0 0.75rem; padding-block: 0.25rem; }
  .hero, .faq-layout, .contact-grid, .dentist-list, .visit-steps, .clinic-facts, .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero { gap: 1.5rem; }
  .hero h1 { max-inline-size: none; }
  .hero-image { aspect-ratio: 1.12; }
  .hero-actions { gap: 0.25rem 1rem; }
  .hero-copy p { margin-top: 1rem; }
  .location-strip { align-items: flex-start; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  .location-strip > svg { margin-top: 0.25rem; }
  .location-strip p { flex-basis: calc(100% - 2rem); }
  .location-strip > .text-link { margin-left: 2rem; }
  .map-panel { min-height: 22rem; }
  .clinic-facts > div + div { border-inline-start: 0; border-top: 1px solid var(--color-rule); }
  .clinic-facts > div { padding-block: 1rem; }
  .review-list figure { flex-basis: min(85%, 22rem); }
  .visit-steps { margin-bottom: 0; }
  .visit-steps li { min-height: auto; }
}

@media (min-width: 42.0625rem) and (max-width: 60rem) {
  .review-list figure { flex-basis: calc((100% - 1rem) / 2); }
}

@media (min-width: 60.0625rem) {
  .visit-steps li:nth-child(2) { transform: translateY(1.5rem); }
}

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

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .header {
    background: var(--color-paper);
    color: var(--color-ink);
    backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: transform 140ms var(--ease-settle); }
  .button:active { transform: scale(0.98); transition-duration: 0s; }
  .menu-toggle > span:not(.sr-only) { transition: transform 160ms var(--ease-settle); }

  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    @keyframes section-enter {
      from { opacity: 0.7; transform: translateY(0.75rem); }
      to { opacity: 1; transform: translateY(0); }
    }

    .section-title, .clinic-facts, .dentist-list, .visit-steps {
      animation: section-enter auto ease-out both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
  }
}

/* The native dialog is usable in browsers with no top-layer transitions. */
@supports (transition-behavior: allow-discrete) and (overlay: auto) {
  dialog, dialog::backdrop {
    opacity: 0;
    transition-property: opacity, display, overlay;
    transition-duration: 120ms;
    transition-timing-function: var(--ease-return);
    transition-behavior: allow-discrete;
  }

  dialog[open], dialog[open]::backdrop {
    opacity: 1;
    transition-timing-function: var(--ease-settle);
  }

  @starting-style {
    dialog[open], dialog[open]::backdrop { opacity: 0; }
  }

  @media (prefers-reduced-motion: no-preference) {
    dialog {
      transform: scale(0.985);
      transition-property: opacity, transform, display, overlay;
      transition-duration: 160ms;
    }
    dialog[open] { transform: scale(1); }
    @starting-style { dialog[open] { transform: scale(0.985); } }
  }

  @media (prefers-reduced-motion: reduce) {
    dialog, dialog::backdrop { transition-duration: 80ms; }
  }
}
