:root {
  --navy: #0b2540;
  --ink: #17222d;
  --muted: #4b5967;
  --blue: #0a5bab;
  --blue-dark: #084985;
  --teal: #0d7068;
  --tint: #eef3f8;
  --line: #d4dde7;
  --white: #ffffff;
  --measure: 40rem;
  --radius: 4px;
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; background: var(--white); color: var(--ink); font: 1.0625rem/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: var(--measure); }

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

.demo-ribbon {
  display: block; background: var(--teal); color: var(--white); text-align: center;
  font: 500 0.85rem/1.4 var(--sans); padding: 0.5rem 1rem; text-decoration: none;
}
.demo-ribbon:hover { text-decoration: underline; }

/* Utility strip: hours and phone, the first thing a clinic visitor looks for */
.utility { background: var(--navy); color: #c9d6e4; font-size: 0.875rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.5rem; }
.utility a { color: var(--white); font-weight: 600; text-decoration: none; padding-block: 0.6rem; }

.site-head { background: var(--white); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.75rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--navy); margin-right: auto; }
.brand strong { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.brand small { display: block; color: var(--muted); font-size: 0.85rem; }
.mark { width: 2.4rem; height: 2.4rem; border-radius: var(--radius); background: var(--navy); position: relative; flex: none; }
.mark::before { content: ""; position: absolute; left: 50%; top: 22%; bottom: 22%; width: 2px; margin-left: -1px; background: var(--white); }
.mark::after { content: ""; position: absolute; left: 50%; top: 50%; width: 0.6rem; height: 0.6rem; margin: -0.3rem 0 0 -0.3rem; border-radius: 50%; background: #3fc1b0; }
.nav { display: flex; flex-wrap: wrap; gap: 0 1.4rem; font-weight: 500; font-size: 0.98rem; }
.nav a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; }
.nav a[aria-current="page"] { border-bottom-color: var(--blue); color: var(--navy); }
.nav a:hover { color: var(--blue); }

/* Link back to the showcase: set in its colours, outside the practice's own nav */
.wots {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.85rem;
  border-radius: 999px; background: #dce5e3; color: #17323a; text-decoration: none;
  font: 600 0.85rem/1 "Helvetica Neue", Arial, sans-serif; white-space: nowrap;
}
.wots::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #b8321f; order: 2; }
.wots:hover { background: #cbd8d5; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 1.4rem; border-radius: var(--radius); background: var(--blue); color: var(--white);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--blue);
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--tint); }
.btn.light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn.light:hover { background: var(--tint); }
.btn.ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, 0.1); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; max-width: none; }

.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }

/* Home hero */
.hero { background: linear-gradient(180deg, var(--tint), var(--white)); padding-block: clamp(2rem, 5vw, 4rem) 0; }
.hero .wrap:first-child { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.lede { font-size: clamp(1.08rem, 1.8vw, 1.22rem); color: var(--muted); }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.slots {
  position: absolute; left: -1.25rem; bottom: -1.25rem; background: var(--white); border-left: 4px solid var(--teal);
  padding: 0.9rem 1.2rem; box-shadow: 0 12px 30px -12px rgba(11, 37, 64, 0.35); font-size: 0.92rem; line-height: 1.5; max-width: 19rem;
}
.slots strong { display: block; color: var(--navy); }
.slots span { display: block; }
.slots small { color: var(--muted); }

.facts {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--white);
}
.facts div { padding: 1.1rem 1.25rem; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.2rem 0 0; font-size: 1.5rem; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.facts dd span { font-size: 0.92rem; font-weight: 400; color: var(--muted); }

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section.tint { background: var(--tint); }
.section-head { margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.4em; }
.section-head p { color: var(--muted); }

.num { display: block; font-size: 0.85rem; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; letter-spacing: 0.05em; }

.focus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.focus a { display: block; height: 100%; background: var(--white); padding: 1.5rem 1.4rem 1.6rem; text-decoration: none; color: var(--ink); }
.focus a:hover { background: var(--tint); }
.focus h3 { margin: 0.6rem 0 0.35rem; }
.focus a:hover h3 { color: var(--blue); }
.focus p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 1rem; }
.steps li::before { content: "0" counter(step); display: block; font-size: 0.85rem; font-weight: 600; color: var(--teal); letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.steps p { color: var(--muted); font-size: 0.98rem; margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.split.top { align-items: start; }
.framed { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.framed.wide { aspect-ratio: 21 / 9; }

.gp-note { border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); padding: 1.5rem 1.5rem 1rem; background: var(--white); }
.gp-note h2 { font-size: 1.35rem; }
.gp-note ul { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.gp-note li { padding: 0.65rem 0; border-top: 1px solid var(--line); }
.gp-note li strong { color: var(--navy); }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.person { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1.25rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--muted); }
.person:hover { border-color: var(--blue); }
.person img { width: 7.5rem; aspect-ratio: 1; object-fit: cover; object-position: top; border-radius: var(--radius); }
.person strong { display: block; color: var(--navy); font-size: 1.15rem; }
.person small { display: block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--muted); }

.cta { background: var(--navy); color: #d3deea; }
.cta h2 { color: var(--white); }
.cta p { margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta .actions { margin: 0; }

/* Inner pages */
.page-head { background: var(--tint); border-bottom: 1px solid var(--line); padding-block: clamp(2rem, 5vw, 3.25rem); }
.page-head h1 { margin-bottom: 0.35em; }
.intro { font-size: 1.15rem; color: var(--muted); margin: 0; }

.with-index { display: grid; grid-template-columns: 15rem 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.index { position: sticky; top: 1rem; display: grid; border-left: 2px solid var(--line); font-size: 0.95rem; }
.index a { color: var(--ink); text-decoration: none; padding: 0.55rem 0 0.55rem 1rem; margin-left: -2px; border-left: 2px solid transparent; }
.index a:hover { color: var(--blue); border-left-color: var(--blue); }

.topics article { padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.topics article:last-of-type { border-bottom: 0; }
.topics .num { margin-bottom: 0.4rem; }
.topics .framed { margin-top: 1.5rem; }
.sub { border-left: 3px solid var(--teal); padding: 0.1rem 0 0.1rem 1.1rem; margin: 1.4rem 0; }
.sub p { margin: 0; }

.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0; }
.methods div { background: var(--white); padding: 1rem 1.2rem; }
.methods dt { font-weight: 600; color: var(--navy); }
.methods dd { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.97rem; }

.fees-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.fees { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fees caption { text-align: left; font-weight: 600; color: var(--navy); font-size: 1.15rem; margin-bottom: 0.75rem; }
.fees th, .fees td { text-align: left; padding: 0.9rem 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees th:first-child { padding-left: 0; }
.fees thead th { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--navy); }
.fees tbody th { font-weight: 600; color: var(--navy); }
.fees small { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }
.fees td { color: var(--muted); white-space: nowrap; }
.fees .price, .fees thead th:last-child { text-align: right; padding-right: 0; }
.fees .price { font-weight: 700; color: var(--navy); font-size: 1.15rem; }
.fee-notes { display: grid; gap: 1rem; }
.note-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem 0.3rem; }
.note-card h2 { font-size: 1.1rem; margin-bottom: 0.3em; }
.note-card p { color: var(--muted); font-size: 0.97rem; }

.bio { display: grid; grid-template-columns: 16rem 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-bottom: 3rem; margin-bottom: 3rem; border-bottom: 1px solid var(--line); }
.bio:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.bio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); }
.role { color: var(--teal); font-weight: 600; margin-top: -0.3rem; }
.creds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 0 1.25rem; max-width: var(--measure); }
.creds div { background: var(--white); padding: 0.7rem 1rem; }
.creds dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.creds dd { margin: 0.15rem 0 0; color: var(--navy); font-weight: 500; }

.standards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; }
.standards li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; color: var(--muted); }
.standards strong { display: block; color: var(--navy); }

.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.way { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.25rem; text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.way strong { display: block; color: var(--navy); font-size: 1.1rem; margin-bottom: 0.25rem; overflow-wrap: anywhere; }
.way:hover { border-color: var(--blue); }
.way.primary { background: var(--blue); border-color: var(--blue); color: #e2ecf7; }
.way.primary strong { color: var(--white); }
.way.primary:hover { background: var(--blue-dark); }

.hours { border-collapse: collapse; width: 100%; max-width: 26rem; font-variant-numeric: tabular-nums; }
.hours th, .hours td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 600; color: var(--navy); }
.hours td { text-align: right; }
.split h2 { font-size: 1.35rem; }
.split h2 + table, .split p + h2 { margin-top: 0; }
.split p + h2 { margin-top: 1.75rem; }
.plain { padding-left: 1.2rem; margin: 0; }
.plain li { margin-bottom: 0.35rem; }

.legal-text { max-width: 44rem; }
.legal-text h2 { font-size: 1.3rem; margin-top: 2.25rem; scroll-margin-top: 1rem; }
.legal-text ul { padding-left: 1.2rem; }
.legal-text li { margin-bottom: 0.5rem; }
.demo-note { background: var(--tint); border-left: 4px solid var(--teal); padding: 0.9rem 1.1rem; font-size: 0.95rem; color: var(--muted); }

.site-foot { background: var(--navy); color: #c3d1df; font-size: 0.92rem; padding-top: 3rem; }
.site-foot h2 { color: var(--white); font-size: 0.95rem; margin-bottom: 0.5rem; letter-spacing: 0; }
.site-foot a { color: var(--white); }
.site-foot .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding-bottom: 2rem; }
.site-foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-block: 0.75rem; }
.site-foot .legal nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.site-foot .legal nav a { display: inline-flex; align-items: center; min-height: 44px; }

.action-bar { display: none; }

@media (max-width: 900px) {
  .hero .wrap:first-child, .split, .fees-grid, .with-index, .people { grid-template-columns: 1fr; }
  .focus { grid-template-columns: 1fr 1fr; }
  .steps, .ways { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .site-foot .cols { grid-template-columns: 1fr 1fr; }
  .index { position: static; }
}

@media (max-width: 640px) {
  body { padding-bottom: 4rem; }
  .utility span { display: none; }
  .utility .wrap { justify-content: flex-end; }
  .site-head .wrap { gap: 0 1.1rem; padding-block: 0.6rem 0.2rem; }
  .brand { width: 100%; margin-bottom: 0.25rem; }
  .head-book { display: none; }
  .nav { gap: 0 1.1rem; }
  .wots { margin: 0.25rem 0 0.5rem; }
  .slots { position: static; box-shadow: none; border: 1px solid var(--line); border-left: 4px solid var(--teal); max-width: none; margin-top: 0.75rem; }
  .focus, .steps, .ways, .methods, .creds, .site-foot .cols { grid-template-columns: 1fr; }
  .facts div { padding: 0.9rem 1rem; }
  .facts dt { font-size: 0.75rem; }
  .facts dd { font-size: 1.3rem; }
  .facts dd span { display: block; }
  .bio { grid-template-columns: 1fr; }
  .bio img { max-width: 14rem; }
  .person { grid-template-columns: 5.5rem 1fr; }
  .person img { width: 5.5rem; }
  .fees th, .fees td { padding-inline: 0.4rem; }
  .fees thead th:nth-child(2), .fees td:nth-child(2) { display: none; }
  .framed.wide { aspect-ratio: 3 / 2; }
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px -10px rgba(11, 37, 64, 0.4);
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom)); gap: 0.5rem;
  }
  .action-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--radius);
    font-weight: 600; text-decoration: none; border: 2px solid var(--blue); color: var(--blue);
  }
  .action-bar a:last-child { background: var(--blue); color: var(--white); }
}

.in-frame .wots { display: none; }

/* Demo ribbon: says it's a demo, and carries the way back to the showcase */
.demo-ribbon { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 1rem; text-align: center; text-decoration: none; padding: 0.25rem 1rem; }
.demo-ribbon .wots { min-height: 40px; padding: 0 0.9rem; background: rgba(255, 255, 255, 0.92); color: #17323a; }
.demo-ribbon .wots:hover { background: #fff; text-decoration: underline; }
.demo-ribbon:hover { text-decoration: none; }

/* Tap targets of at least 44px */
.demo-ribbon .wots { min-height: 44px; }
.utility a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.index a { padding-block: 0.65rem; }
.site-foot .cols a { display: inline-flex; align-items: center; min-height: 44px; }
