:root {
  color-scheme: light;
  --bg: #ffffff;
  --band: #f4f7f8;
  --health: #e7f3f4;
  --ink: #1a2330;
  --muted: #3d4c59;
  --accent: #0f4c5c;
  --accent-hover: #0c3e4b;
  --line: #e1e7eb;
  --card: #ffffff;
  --header-height: 4.25rem;
  --dock-height: 4.25rem;
  --focus: #0f4c5c;
  --radius: 0.875rem;
  --shadow: 0 1px 2px rgba(20, 40, 50, 0.05);
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  padding-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom));
}

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

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

.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-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.55rem 0.8rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.3;
}

h1 {
  margin-bottom: 0.75rem;
  font-size: 2.125rem;
  font-weight: 700;
  line-height: 1.25;
}

h2 {
  margin-bottom: 0.45rem;
  font-size: 1.7rem;
  font-weight: 700;
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

a {
  color: var(--accent);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

section,
#phone,
#hours,
#location {
  scroll-margin-top: calc(var(--header-height) + 0.75rem);
}

#phone,
#hours,
#location {
  scroll-margin-bottom: calc(var(--dock-height) + env(safe-area-inset-bottom) + 0.5rem);
}

section {
  padding: 2.5rem 0;
}

.band {
  background: var(--band);
}

.section-intro {
  max-width: 40rem;
  margin-bottom: 0.9rem;
}

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

.chevron {
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--header-height);
  gap: 0.75rem;
}

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

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: auto;
  color: var(--ink);
  cursor: pointer;
}

.nav-icon,
.nav-icon::before,
.nav-icon::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: currentColor;
  content: "";
}

.nav-icon {
  position: relative;
}

.nav-icon::before,
.nav-icon::after {
  position: absolute;
  left: 0;
}

.nav-icon::before {
  top: -6px;
}

.nav-icon::after {
  top: 6px;
}

.nav-toggle:focus-visible + .nav-button {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.site-nav {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  z-index: 29;
  padding: 0.15rem 0 0.4rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(20, 40, 50, 0.06);
}

.nav-toggle:checked ~ .site-nav {
  display: block;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.header-cta {
  display: none;
}

.hero {
  padding-top: 1.75rem;
  padding-bottom: 2rem;
}

.lede {
  max-width: 30rem;
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 1.15rem;
}

.hero-actions .button:first-child {
  grid-column: 1 / -1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.button-secondary {
  background: #fff;
  color: var(--accent);
}

.button-secondary:hover {
  background: #f3f7f8;
  border-color: var(--accent);
  color: var(--accent-hover);
}

.button-inline {
  width: auto;
  max-width: 100%;
  margin-top: 0.9rem;
  padding-inline: 1rem;
}

.quick-grid,
.card-grid,
.symptom-list,
.split {
  display: grid;
  gap: 0.5rem;
}

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

.quick-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.6rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}

.quick-card h3 {
  margin-bottom: 0.15rem;
  font-size: 0.8125rem;
}

.quick-card p {
  font-size: 0.8125rem;
  line-height: 1.4;
}

.hours-summary {
  display: grid;
  gap: 0.4rem;
  margin: 0.15rem 0 0;
}

.hours-summary div {
  display: grid;
  gap: 0;
}

.hours-summary dt {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.hours-summary dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.3;
}

.card {
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.service-link,
.symptom-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.service-link:hover,
.symptom-list a:hover,
.quick-card:hover {
  border-color: #b7c9d0;
}

.service-copy {
  min-width: 0;
}

.service-title {
  margin-bottom: 0.1rem;
  font-size: 0.975rem;
}

.service-text {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}

.symptom-list a {
  padding-block: 0.55rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.doctor {
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 0.85rem;
  align-items: center;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  width: 5.25rem;
  height: 6.4rem;
  margin: 0;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #eef3f5;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.doctor .placeholder {
  font-size: 0.875rem;
}

.doctor .placeholder + .placeholder {
  margin-top: 0.15rem;
}

.doctor-copy {
  margin-top: 0.55rem;
}

.facts {
  margin: 0.35rem 0 0;
}

.facts div + div {
  margin-top: 0.55rem;
}

.facts dt {
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
}

.facts dd {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.facts + h3,
.map-link {
  margin-top: 0.9rem;
}

.facts dd + dd {
  margin-top: 0.2rem;
}

.doctor-name {
  color: var(--ink);
  font-weight: 700;
}

.doctor-role {
  margin-top: 0.15rem;
}

.health {
  background: var(--health);
}

.health p {
  max-width: 36rem;
}

.site-footer {
  padding: 1.75rem 0 1.5rem;
  background: var(--band);
  border-top: 1px solid var(--line);
}

.footer-name {
  margin-bottom: 0.4rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

address {
  margin-bottom: 0.75rem;
  font-style: normal;
}

address p,
.copyright {
  font-size: 0.875rem;
}

address p + p {
  margin-top: 0.15rem;
}

.privacy {
  font-size: 0.8125rem;
}

.copyright {
  margin-top: 0.35rem;
}

.dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem calc(0.45rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border: 1px solid var(--accent);
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.dock a:first-child {
  background: var(--accent);
  color: #fff;
}

.dock a:last-child {
  background: #fff;
  color: var(--accent);
}

@media (min-width: 700px) {
  .card-grid,
  .symptom-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  body {
    padding-bottom: 0;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2rem;
  }

  section {
    padding: 4.25rem 0;
  }

  .hero {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr);
    gap: 3rem;
    align-items: end;
  }

  .lede {
    font-size: 1.0625rem;
  }

  .hero-actions {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .hero-actions .button:first-child {
    grid-column: auto;
  }

  .nav-button {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    width: auto;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    gap: 1.25rem;
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.3rem 0.8rem;
    border-radius: 0.7rem;
    background: var(--accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
  }

  .header-cta:hover {
    background: var(--accent-hover);
    color: #fff;
  }

  .quick-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .split {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .doctor {
    grid-template-columns: 11rem 1fr;
    gap: 1.5rem;
    align-items: center;
  }

  .photo-placeholder {
    width: 11rem;
    height: 13.25rem;
    font-size: 0.875rem;
  }

  .health-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  .button-inline {
    margin-top: 0;
    flex: none;
  }

  .dock {
    display: none;
  }

  #phone,
  #hours,
  #location {
    scroll-margin-bottom: 0;
  }
}
