/* ==========================================================================
   Richmond Dental Care — Design System
   ========================================================================== */

:root {
  /* Palette */
  --color-bg: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-navy: #0F2942;
  --color-navy-light: #1C3D5A;
  --color-teal: #0D9488;
  --color-teal-dark: #0B7A70;
  --color-teal-light: #E6F5F3;
  --color-text: #1E293B;
  --color-text-muted: #51657A;
  --color-border: #E2E8F0;
  --color-success: #15803D;
  --color-success-bg: #EFFCF3;
  --color-warning-bg: #FFF7ED;
  --color-warning-text: #9A3412;

  /* Typography */
  --font-sans: "Inter", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Layout */
  --radius-card: 12px;
  --radius-pill: 999px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(15, 41, 66, 0.04), 0 4px 16px rgba(15, 41, 66, 0.06);
  --shadow-card-hover: 0 4px 8px rgba(15, 41, 66, 0.06), 0 12px 28px rgba(15, 41, 66, 0.10);
  --container-width: 1180px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-teal-dark);
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

section {
  padding: 64px 0;
}

/* Sticky utility bar + nav together run ~150px tall (nav height grows with the
   60px logo); anchor jumps (e.g. #location, #book) must land below them, not
   underneath, so every anchorable section reserves that much scroll margin. */
section[id],
main[id] {
  scroll-margin-top: 150px;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px;
}

.section-heading .eyebrow {
  display: inline-block;
  color: var(--color-teal-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
}

.section-heading p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-teal);
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(13, 148, 136, 0.25);
}

.btn-primary:hover {
  background: var(--color-teal-dark);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-navy);
}

.btn-ghost {
  background: transparent;
  color: var(--color-navy);
  border-color: rgba(15, 41, 66, 0.18);
}

.btn-ghost:hover {
  background: rgba(15, 41, 66, 0.05);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   Top utility bar
   ========================================================================== */

.utility-bar {
  background: var(--color-navy);
  color: #CBD8E6;
  font-size: 0.82rem;
}

.utility-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}

.utility-bar a {
  color: #CBD8E6;
}

.utility-bar a:hover {
  color: #FFFFFF;
}

.utility-emergency {
  color: #FDE68A;
  font-weight: 600;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
  flex-shrink: 0;
}

.nav-logo img.logo-image {
  height: 60px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.footer-brand .logo-chip {
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
}

.footer-brand img.logo-image {
  height: 52px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0 auto;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-navy);
  border-bottom-color: var(--color-teal);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
}

.phone-pill:hover {
  background: #D4EEEB;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy);
  margin: 4px 0;
}

@media (max-width: 920px) {
  .nav-logo img.logo-image {
    height: 46px;
  }

.nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 90px 28px 28px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    box-shadow: -8px 0 30px rgba(15, 41, 66, 0.15);
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
  }

  .phone-pill span.phone-text {
    display: none;
  }
}

@media (max-width: 560px) {
  .navbar {
    gap: 12px;
  }

  .nav-actions .phone-pill {
    display: none;
  }

  .nav-actions .btn {
    padding: 8px 10px;
    font-size: 0.76rem;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .nav-actions .btn {
    display: none;
  }
}

.nav-scrim {
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 66, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 95;
}

.nav-scrim.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 72px 0 56px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin-bottom: 18px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-microcopy {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

.hero-microcopy li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-visual {
  position: relative;
}

.hero-image-placeholder {
  background: var(--color-navy);
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-image-placeholder img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-badge-float {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
}

.hero-badge-float .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-teal);
  flex-shrink: 0;
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .hero-badge-float {
    left: 16px;
    bottom: -14px;
  }
}

/* ==========================================================================
   Trust strip
   ========================================================================== */

.trust-strip {
  padding: 36px 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.trust-badge .badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.trust-badge strong {
  display: block;
  font-size: 0.92rem;
  color: var(--color-navy);
}

.trust-badge span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Cards grid (treatments)
   ========================================================================== */

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card .card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.card .card-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--color-teal-dark);
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 920px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   NHS vs Private comparison
   ========================================================================== */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.compare-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.compare-card.is-nhs {
  border-top: 4px solid var(--color-navy);
}

.compare-card.is-private {
  border-top: 4px solid var(--color-teal);
}

.compare-card .compare-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.compare-card.is-nhs .compare-tag {
  background: rgba(15, 41, 66, 0.08);
  color: var(--color-navy);
}

.compare-card.is-private .compare-tag {
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
}

.compare-card ul {
  margin-top: 18px;
}

.compare-card li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.93rem;
  color: var(--color-text);
}

.compare-card li::before {
  content: "✓";
  color: var(--color-teal-dark);
  font-weight: 800;
  flex-shrink: 0;
}

.compare-note {
  grid-column: 1 / -1;
  background: var(--color-teal-light);
  border-radius: var(--radius-card);
  padding: 18px 24px;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-top: -2px;
}

@media (max-width: 860px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Location / hours / emergency
   ========================================================================== */

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}

.info-card h3 {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-card address {
  font-style: normal;
  color: var(--color-text-muted);
  margin-bottom: 14px;
  line-height: 1.7;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 7px 0;
  color: var(--color-text);
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-muted);
}

.emergency-card {
  background: var(--color-warning-bg);
  border: 1px solid #FED7AA;
}

.emergency-card h3 {
  color: var(--color-warning-text);
}

.emergency-card p {
  font-size: 0.9rem;
  color: #7C2D12;
}

.emergency-card .nhs-111 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CTA band
   ========================================================================== */

.cta-band {
  background: var(--color-navy);
  color: #fff;
  border-radius: var(--radius-card);
  padding: 48px;
  text-align: center;
  margin: 0 24px;
  max-width: calc(var(--container-width) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: #CBD8E6;
  max-width: 560px;
  margin: 0 auto 24px;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  color: #CBD8E6;
  padding: 56px 0 0;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.footer-grid a {
  color: #CBD8E6;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-grid p {
  font-size: 0.85rem;
  color: #9FB4C9;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD8E6;
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

a.compliance-badge:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 20px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: #9FB4C9;
}

.footer-bottom .footer-legal-links {
  display: flex;
  gap: 18px;
  list-style: none;
  flex-wrap: wrap;
}

.placeholder {
  color: #FDE68A;
  background: rgba(253, 230, 138, 0.12);
  border: 1px dashed rgba(253, 230, 138, 0.5);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.85em;
}

body:not(.is-footer-dark) .placeholder,
.card .placeholder,
.info-card .placeholder,
.compare-card .placeholder {
  color: #9A3412;
  background: var(--color-warning-bg);
  border: 1px dashed #FDBA74;
}

@media (max-width: 920px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Page header (fees page etc.)
   ========================================================================== */

.page-header {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: #fff;
  padding: 56px 0 72px;
  text-align: center;
}

.page-header .eyebrow {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  color: #CDEBE8;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.page-header h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 12px;
}

.page-header p {
  color: #CBD8E6;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   NHS fee bands
   ========================================================================== */

.band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.band-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.band-card .band-number {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.band-card .band-price {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 14px;
}

.band-card ul {
  font-size: 0.86rem;
  color: var(--color-text-muted);
}

.band-card li {
  list-style: none;
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.band-card li::before {
  content: "•";
  color: var(--color-teal);
  position: absolute;
  left: 2px;
}

.band-card.is-urgent {
  border-top: 4px solid var(--color-warning-text);
}

@media (max-width: 920px) {
  .band-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .band-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Eligibility checker
   ========================================================================== */

.checker {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.checker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.checker-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.check-option:hover {
  border-color: var(--color-teal);
  background: var(--color-teal-light);
}

.check-option input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-teal);
  flex-shrink: 0;
}

.check-option .check-label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
  display: block;
}

.check-option .check-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.checker-result {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 220px;
}

.checker-result .result-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.checker-result h4 {
  margin-bottom: 8px;
}

.checker-result.state-eligible {
  background: var(--color-teal-light);
}

.checker-result.state-eligible h4 {
  color: var(--color-teal-dark);
}

.checker-result.state-not-eligible {
  background: var(--color-warning-bg);
}

.checker-result.state-not-eligible h4 {
  color: var(--color-warning-text);
}

.checker-result .result-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .checker-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Private fee table
   ========================================================================== */

.fee-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.fee-filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.12s ease;
}

.fee-filter-btn:hover {
  border-color: var(--color-teal);
}

.fee-filter-btn.is-active {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: #fff;
}

.fee-table-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

table.fee-table {
  width: 100%;
  border-collapse: collapse;
}

table.fee-table th {
  text-align: left;
  background: var(--color-bg);
  color: var(--color-navy);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 14px 24px;
  border-bottom: 1px solid var(--color-border);
}

table.fee-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.94rem;
}

table.fee-table td:last-child,
table.fee-table th:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--color-navy);
}

table.fee-table tr:last-child td {
  border-bottom: none;
}

table.fee-table tbody tr:hover {
  background: var(--color-teal-light);
}

table.fee-table .fee-category-row td {
  background: var(--color-bg);
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

table.fee-table .fee-category-row:hover td {
  background: var(--color-bg);
}

.fee-table-note {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.86rem;
  margin-top: 20px;
}

@media (max-width: 700px) {
  table.fee-table th,
  table.fee-table td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   Treatments detail blocks (treatments.html)
   ========================================================================== */

.treatment-detail {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}

.treatment-detail:last-child {
  border-bottom: none;
}

.treatment-detail .treatment-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-card);
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
}

.treatment-detail h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.treatment-detail .treatment-body p {
  color: var(--color-text-muted);
}

.treatment-detail .treatment-includes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 18px 0 20px;
}

.treatment-includes-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.treatment-includes-col ul li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.treatment-includes-col li::before {
  content: "✓";
  color: var(--color-teal-dark);
  font-weight: 800;
  flex-shrink: 0;
}

.treatment-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .treatment-detail {
    grid-template-columns: 1fr;
  }
  .treatment-includes {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Team page (team.html)
   ========================================================================== */

.team-section-heading {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 48px 0 20px;
}

.team-section-heading:first-of-type {
  margin-top: 0;
}

.team-section-heading h3 {
  font-size: 1.15rem;
  margin: 0;
}

.team-section-heading .team-count {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Monogram avatar used in place of a staff photo */
.team-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Dentists: larger cards with full qualification detail */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  gap: 18px;
}

.team-card .team-avatar {
  width: 64px;
  height: 64px;
  font-size: 1.3rem;
}

.team-card .team-info {
  flex-grow: 1;
  min-width: 0;
}

.team-card h4 {
  font-size: 1.05rem;
  margin-bottom: 2px;
  color: var(--color-navy);
}

.team-card .team-role {
  color: var(--color-teal-dark);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 10px;
  display: block;
}

.team-meta-list {
  list-style: none;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

.team-meta-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px dashed var(--color-border);
}

.team-meta-list li:first-child {
  border-top: none;
}

.team-meta-list span:first-child {
  color: var(--color-navy);
  font-weight: 600;
  flex-shrink: 0;
}

.team-meta-list span:last-child {
  text-align: right;
}

/* Dental therapist / practice manager / nurses / reception: compact mini-cards */
.team-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.team-mini-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.team-mini-card .team-avatar {
  width: 44px;
  height: 44px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.team-mini-card .team-info {
  min-width: 0;
}

.team-mini-card h4 {
  font-size: 0.92rem;
  margin: 0 0 1px;
  color: var(--color-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-mini-card .team-role {
  color: var(--color-teal-dark);
  font-weight: 600;
  font-size: 0.78rem;
  display: block;
}

.team-mini-card .team-gdc {
  color: var(--color-text-muted);
  font-size: 0.76rem;
  display: block;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .team-mini-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

/* ==========================================================================
   Contact page (contact.html)
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.contact-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-label .required {
  color: #DC2626;
  font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.94rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid var(--color-teal);
  outline-offset: 1px;
  border-color: var(--color-teal);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.form-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: -4px;
}

.form-disclaimer {
  background: var(--color-warning-bg);
  border: 1px solid #FED7AA;
  color: var(--color-warning-text);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  margin-top: 20px;
}

.reschedule-notice {
  background: var(--color-teal-light);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.reschedule-notice a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

/* Honeypot spam trap -- must be invisible to sighted AND assistive-tech users
   (unlike .visually-hidden), since a screen-reader user filling it in would be
   wrongly flagged as a bot. */
.botcheck-field {
  display: none;
}

.form-result {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
}

.form-result--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.form-result--error {
  background: var(--color-warning-bg);
  color: var(--color-warning-text);
  font-weight: 500;
}

.btn[data-submit-button] {
  position: relative;
}

.btn[data-submit-button].is-loading span[data-button-label] {
  visibility: hidden;
}

.btn[data-submit-button].is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.6s linear infinite;
}

.btn[data-submit-button]:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.map-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: block;
}

.map-embed-standalone {
  margin-bottom: 24px;
}

.location-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.exterior-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: block;
}

@media (max-width: 920px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .location-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Legal / policy pages (complaints.html, privacy.html)
   ========================================================================== */

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 120px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
}

.legal-toc h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.legal-toc ul {
  list-style: none;
}

.legal-toc li {
  margin-bottom: 10px;
}

.legal-toc a {
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.legal-toc a:hover {
  color: var(--color-teal-dark);
}

.legal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 40px;
}

.legal-content h2 {
  font-size: 1.25rem;
  margin-top: 36px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
}

.legal-content section:first-of-type h2,
.legal-content > h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1em 1.3em;
}

.legal-content li {
  margin-bottom: 8px;
}

.escalation-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.escalation-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.escalation-step .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-teal);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.escalation-step h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--color-navy);
}

.escalation-step p {
  font-size: 0.88rem;
  margin: 0;
}

.updated-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}

@media (max-width: 860px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .legal-content {
    padding: 28px 22px;
  }
}

/* ==========================================================================
   Treatment showcase sections (treatments.html #boutique-whitening, #smilelign)
   ========================================================================== */

.showcase-hero {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.showcase-hero h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 10px 0 14px;
}

.showcase-price {
  display: inline-block;
  background: var(--color-teal);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 4px;
}

.showcase-intro {
  max-width: 760px;
  margin: 0 auto 8px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.02rem;
}

.showcase-section h3 {
  font-size: 1.2rem;
  margin: 44px 0 18px;
  text-align: center;
}

/* Day & night / option comparison cards */
.gel-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gel-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 26px;
}

.gel-card h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.gel-card .gel-formula {
  display: inline-block;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.gel-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Responsive image gallery with graceful fallback until real photos exist */
.promo-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 560px;
  margin: 8px auto 0;
}

.promo-gallery.promo-gallery--two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 820px;
}

.promo-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
}

.promo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.promo-image.is-fallback::after {
  content: "📷 Photo coming soon";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  color: #CBD8E6;
  font-size: 0.88rem;
  font-weight: 600;
}

.showcase-cta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 40px 0 20px;
}

.clinical-note {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-teal-light);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 0.86rem;
  text-align: center;
}

@media (max-width: 700px) {
  .gel-options-grid,
  .promo-gallery,
  .promo-gallery.promo-gallery--two-col,
  .feature-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* 2x2 patient-benefit feature grid (e.g. Air Polishing showcase) */
.feature-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.feature-card .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}

.feature-card h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* ==========================================================================
   Homepage signature-treatment spotlight cards (index.html)
   ========================================================================== */

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.spotlight-card {
  background: var(--color-navy);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
  color: #CBD8E6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.spotlight-card .spotlight-price {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.spotlight-card h3 {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.spotlight-card p {
  color: #CBD8E6;
  font-size: 0.92rem;
  margin-bottom: 22px;
}

.spotlight-card .btn-primary {
  background: var(--color-teal);
}

.spotlight-card .btn-primary:hover {
  background: var(--color-teal-dark);
}

@media (max-width: 860px) {
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Short-term promo pop-up (index.html; config in PROMO_CONFIG, script.js)
   ========================================================================== */

.promo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 66, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.promo-modal-backdrop.is-open {
  display: flex;
}

.promo-modal {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .promo-modal {
    max-width: 820px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }
}

.promo-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 41, 66, 0.08);
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-navy);
  cursor: pointer;
  z-index: 1;
}

.promo-modal-close:hover {
  background: rgba(15, 41, 66, 0.16);
}

.promo-modal-media {
  background: #eaf4fa;
  overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.promo-modal-media img {
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  display: block;
  background: #eaf4fa;
}

@media (min-width: 768px) {
  .promo-modal-media {
    flex: 0 0 45%;
    max-width: 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-card) 0 0 var(--radius-card);
  }

  .promo-modal-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
  }
}

.promo-modal-body {
  padding: 22px 26px 26px;
}

@media (min-width: 768px) {
  .promo-modal-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 36px;
  }
}

.promo-modal-badge {
  display: inline-block;
  background: var(--color-teal-light);
  color: var(--color-teal-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.promo-modal-body h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.promo-modal-body p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.promo-modal-footnote {
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 0;
}

.promo-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.promo-modal-actions .btn {
  flex: 1 1 150px;
}

@media (max-width: 480px) {
  .promo-modal-body {
    padding: 18px 18px 22px;
  }

  .promo-modal-actions .btn {
    flex: 1 1 100%;
  }
}

/* ==========================================================================
   New patient registration card (contact.html #new-patient-form)
   ========================================================================== */

.new-patient-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px;
  text-align: center;
}

.new-patient-card p {
  color: var(--color-text-muted);
}

.accessibility-note {
  margin-top: 22px;
  background: var(--color-teal-light);
  color: var(--color-navy);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.86rem;
  text-align: left;
}

.accessibility-note a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}
