/* NHSmiles: NHS dental care. Brand tokens live here; change them once, every page follows. */
:root {
  --spruce: #1F4D45;      /* primary: headings, buttons, wordmark */
  --spruce-deep: #163832; /* hover, footer */
  --mint: #E3F1EC;        /* soft panels */
  --paper: #FCFCFA;       /* page background */
  --ink: #1A2321;         /* body text */
  --ink-soft: #4A5A56;    /* secondary text */
  --line: #C9D8D3;        /* rules and borders */
  --sun: #F2C14E;         /* the smile: highlights, price board edge */
  --sun-soft: #FCEFC9;
  --alert: #9B2C1F;       /* urgent / 999 only */

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.9rem;
  --step-0: 1.125rem;
  --step-1: 1.35rem;
  --step-2: 1.7rem;
  --step-3: 2.2rem;
  --step-4: clamp(2.4rem, 5.5vw, 3.6rem);

  --measure: 66ch;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--spruce); text-underline-offset: 0.18em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--spruce-deep); text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); color: var(--spruce); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; }
p, ul, ol { margin: 0 0 1em; max-width: var(--measure); }
li { margin-bottom: 0.35em; }
strong { font-weight: 700; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.wordmark { font-family: var(--display); color: var(--spruce); text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; padding: 6px 0; }
.wordmark:hover { color: var(--spruce); }
.wm-line { display: inline-flex; align-items: baseline; gap: 0.32em; font-size: 1.65rem; letter-spacing: -0.03em; }
.wm-nh { font-weight: 800; }
.wm-s { font-weight: 800; }
.wm-smiles { font-weight: 400; display: inline-flex; flex-direction: column; }
.wm-smiles svg { width: 100%; height: 9px; margin-top: 2px; }
.wm-tag { font-family: var(--body); font-size: 0.72rem; font-weight: 700; color: var(--ink-soft); letter-spacing: 0.02em; margin-top: 3px; }
.nav-toggle { display: none; font: inherit; font-weight: 700; background: none; border: 2px solid var(--spruce); color: var(--spruce); border-radius: 8px; padding: 8px 14px; cursor: pointer; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; max-width: none; }
.site-nav li { margin: 0; }
.site-nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 700; border-radius: 8px; }
.site-nav a:hover { background: var(--mint); }
.site-nav a[aria-current="page"] { background: var(--mint); box-shadow: inset 0 -3px 0 var(--sun); }
.site-nav .nav-urgent a { color: var(--alert); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 76px; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 5; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px var(--gutter) 16px; }
  .site-header { position: relative; }
}

/* Buttons */
.btn { display: inline-block; font-family: var(--display); font-weight: 700; font-size: var(--step-0); padding: 14px 22px; border-radius: 10px; text-decoration: none; border: 2px solid var(--spruce); }
.btn-primary { background: var(--spruce); color: #fff; }
.btn-primary:hover { background: var(--spruce-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--spruce); }
.btn-ghost:hover { background: var(--mint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hero-lede { font-size: var(--step-1); color: var(--ink-soft); max-width: 34ch; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* The price board: the one loud thing on the site */
.price-board { background: var(--spruce); color: #fff; border-radius: 18px; padding: 28px clamp(20px, 3vw, 32px) 22px; border-bottom: 10px solid var(--sun); }
.price-board h2 { color: #fff; font-size: var(--step-1); margin-bottom: 4px; }
.price-board .board-note { color: #CFE3DC; font-size: var(--step--1); margin-bottom: 18px; }
.price-board dl { margin: 0; }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.22); }
.price-row dt { font-family: var(--display); font-weight: 700; font-size: var(--step-1); }
.price-row dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1; color: var(--sun); font-variant-numeric: tabular-nums; grid-row: span 2; align-self: center; }
.price-row .covers { grid-column: 1; font-size: var(--step--1); color: #DDEBE6; font-family: var(--body); font-weight: 400; }
.price-board .free-line { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.22); font-weight: 700; }
.price-board a { color: #fff; }

/* Sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tint { background: var(--mint); }
.section-head { max-width: 46ch; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--spruce); }
.facts > div { padding: 20px 24px 8px 0; }
.facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
@media (max-width: 800px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

.steps { list-style: none; padding: 0; counter-reset: step; max-width: 60ch; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 64px; margin: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; }
.steps li strong { display: block; font-family: var(--display); font-size: var(--step-1); color: var(--spruce); }

.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--spruce); border-bottom: 3px solid var(--spruce); transform: rotate(-45deg); }

.callout { background: var(--sun-soft); border-left: 6px solid var(--sun); padding: 18px 22px; border-radius: 0 10px 10px 0; max-width: var(--measure); margin: 0 0 1.5em; }
.callout p:last-child { margin-bottom: 0; }
.callout-urgent { background: #FBEDEA; border-left-color: var(--alert); }
.callout-urgent h2, .callout-urgent h3 { color: var(--alert); }

.band-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: var(--step-0); }
.band-table caption { text-align: left; font-family: var(--display); font-weight: 700; color: var(--spruce); font-size: var(--step-1); margin-bottom: 8px; }
.band-table th, .band-table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.band-table thead th { border-bottom: 2px solid var(--spruce); font-family: var(--display); }
.band-table td.price { font-family: var(--display); font-weight: 800; font-size: var(--step-1); white-space: nowrap; color: var(--spruce); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .band-table thead { display: none; }
  .band-table tr { display: block; border-bottom: 1px solid var(--line); padding: 10px 0; }
  .band-table th, .band-table td { display: block; border: 0; padding: 4px 0; }
}

.page-head { padding: clamp(36px, 6vw, 64px) 0 8px; }
.page-head p { font-size: var(--step-1); color: var(--ink-soft); max-width: 46ch; }
.prose { padding-bottom: clamp(48px, 7vw, 88px); }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list .label { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.tbc { color: var(--ink-soft); font-style: italic; }

.hours { border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 6px 24px 6px 0; border-bottom: 1px solid var(--line); }

/* Footer */
.site-footer { background: var(--spruce-deep); color: #DDEBE6; padding: 48px 0 32px; margin-top: 0; font-size: var(--step--1); }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h2 { color: #fff; font-size: var(--step-0); margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 20px; margin-top: 8px; max-width: none; }
@media (max-width: 800px) { .site-footer .wrap { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header nav, .nav-toggle, .site-footer { display: none; } body { background: #fff; } }
.site-footer .tbc { color: #CFE3DC; }
