/* ==========================================================================
   Road Safe Medicals — Stylesheet
   Design tokens, base, layout, components, responsive breakpoints
   ========================================================================== */

:root {
  /* Colour */
  --navy: #0F2C59;
  --navy-dark: #0A1E3D;
  --emerald: #00A86B;
  --emerald-dark: #00834F;
  --amber: #F5A623;
  --ink: #16233A;
  --ink-soft: #4A5568;
  --bg: #F6F8FA;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --danger: #D64545;

  /* Type */
  --font-heading: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(15, 44, 89, 0.06), 0 8px 24px -12px rgba(15, 44, 89, 0.18);
  --header-height: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 12px);
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

a { color: inherit; text-decoration: none; }

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

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

button { font-family: inherit; cursor: pointer; }

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Applied to <body> via JS while the mobile menu is open, so the page
   behind the full-screen nav can't be scrolled at the same time. */
body.nav-open {
  overflow: hidden;
  height: 100vh;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 6px 16px -6px rgba(0, 168, 107, 0.55);
}
.btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-block { width: 100%; }

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

.btn-text-short { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

/* The translucent/blurred background lives on a pseudo-element instead of the
   header itself: backdrop-filter on the header would make it the containing
   block for the position:fixed mobile nav, collapsing the menu to a thin strip. */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 248, 250, 0.92);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--navy);
}
.logo-text strong { font-weight: 800; color: var(--emerald); }
.logo-text--footer { color: var(--white); }
.logo-text--footer strong { color: var(--emerald); }

.main-nav ul {
  display: flex;
  gap: 28px;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  padding: 10px 2px;
  display: inline-block;
  position: relative;
}

.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav > ul > li > a:hover::after { transform: scaleX(1); }

.main-nav > ul > li > a.active { color: var(--emerald-dark); }
.main-nav > ul > li > a.active::after { transform: scaleX(1); }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 500;
}
.dropdown li a:hover { background: var(--bg); color: var(--emerald-dark); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}
.header-phone svg { color: var(--emerald); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(0, 168, 107, 0.10), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.eyebrow {
  color: var(--emerald-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 52ch;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin: 24px 0 32px;
}
.trust-badges li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.trust-badges svg { color: var(--emerald); flex-shrink: 0; }

.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
}
.stat-label { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Hero form ---------- */
.hero-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 28px;
  border-top: 4px solid var(--emerald);
}

.hero-form h2 { font-size: 1.25rem; margin-bottom: 4px; }
.form-note { font-size: 0.87rem; margin-bottom: 20px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(0, 168, 107, 0.15);
  outline: none;
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--danger);
}
.field-error {
  display: block;
  font-size: 0.8rem;
  color: var(--danger);
  min-height: 1.1em;
  margin-top: 4px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 14px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.success { color: var(--emerald-dark); }
.form-status.error { color: var(--danger); }

/* ---------- Section shared ---------- */
section { padding: 88px 0; }

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head p { margin: 0 auto; }

/* ---------- Services ---------- */
.services { background: var(--white); }

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

.service-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.service-card--featured {
  background: var(--navy);
  border-color: var(--navy);
}
.service-card--featured h3,
.service-card--featured p { color: var(--white); }
.service-card--featured .service-icon { background: rgba(255,255,255,0.1); color: var(--emerald); }
.service-card--featured .service-link { color: #7FE8C0; }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(0, 168, 107, 0.12);
  color: var(--emerald-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card p { font-size: 0.92rem; }

.service-link {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--emerald-dark);
  display: inline-block;
  margin-top: 6px;
}

/* ---------- Locations ---------- */
.locations { background: var(--bg); }

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

.location-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
}
.location-card h3 { font-size: 1.4rem; }

.location-meta {
  margin: 18px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.location-meta li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}
.location-meta li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ---------- Why us ---------- */
.why-us { background: var(--white); }

.why-us-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.benefit-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.benefit h3 { font-size: 1rem; margin-bottom: 6px; }
.benefit p { font-size: 0.9rem; margin: 0; }

.why-us-panel {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
}
.why-us-panel h3 { color: var(--white); margin-bottom: 16px; }

.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  padding-left: 26px;
  position: relative;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.88);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: var(--emerald);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 6px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
}

/* ---------- How it works ---------- */
.how-it-works { background: var(--bg); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
}

.step-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--emerald);
  opacity: 0.9;
  margin-bottom: 12px;
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.92rem; }

/* ---------- Pricing ---------- */
.pricing { background: var(--white); }

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

.price-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card--popular {
  border-color: var(--emerald);
  box-shadow: var(--shadow-card);
  transform: translateY(-8px);
}

.popular-tag {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--emerald);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0;
}

.price-card h3 { font-size: 1.05rem; }
.price-card .price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 4px 0 20px;
}

.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex-grow: 1;
}
.price-card ul li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.price-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ---------- FAQ / Accordion ---------- */
.faq { background: var(--bg); }

.accordion { max-width: 760px; margin: 0 auto; }

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 20px 4px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
}

.accordion-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--emerald-dark);
  transition: transform 0.2s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
  background: var(--emerald);
  color: var(--white);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.accordion-panel p {
  padding: 0 4px 20px;
  font-size: 0.94rem;
}

/* ---------- Contact ---------- */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}
.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--navy);
}
.contact-detail svg { color: var(--emerald); }

.booking-form {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
}

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

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 12px; }

.footer-col h3 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li, .footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}
.footer-col ul a:hover { color: var(--emerald); }

.disclaimer {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

.footer-bottom {
  padding: 22px 24px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* ---------- Mobile call bar ---------- */
.mobile-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: var(--emerald);
  color: var(--white);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.12);
}

/* ---------- Services teaser CTA (home page) ---------- */
.teaser-cta {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(1000px 460px at 85% -10%, rgba(0, 168, 107, 0.10), transparent 60%),
    var(--navy);
  padding: 84px 0 64px;
}

.page-hero-inner { max-width: 720px; }

.page-hero .eyebrow { color: #7FE8C0; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero .hero-sub { color: rgba(255,255,255,0.78); max-width: 60ch; }

/* ---------- CTA banner (used on all pages) ---------- */
.cta-banner {
  background: var(--emerald);
  padding: 56px 0;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2 { color: var(--white); margin-bottom: 4px; font-size: 1.6rem; }
.cta-banner p { color: rgba(255,255,255,0.88); margin: 0; }

.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-outline--light {
  border-color: var(--white);
  color: var(--white);
}
.btn-outline--light:hover {
  background: var(--white);
  color: var(--emerald-dark);
}

/* ---------- About: story ---------- */
.story { background: var(--white); }

.story-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 56px;
  align-items: start;
}

.story-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.story-stat { display: flex; flex-direction: column; gap: 4px; }
.story-stat .stat-number { font-size: 1.7rem; }

/* ---------- About: values ---------- */
.values { background: var(--bg); }

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

/* ---------- About: doctors ---------- */
.doctors { background: var(--white); }

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

.doctor-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
}
.doctor-card h3 { font-size: 1.1rem; }
.doctor-card p { font-size: 0.92rem; margin: 0; }

/* ---------- Services page: detailed listing ---------- */
.services-detail {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.service-detail:last-child { border-bottom: none; padding-bottom: 0; }

.service-icon--lg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.service-detail-copy h2 { font-size: 1.4rem; margin-bottom: 10px; }
.service-detail-copy p { max-width: 68ch; }

.service-includes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 24px;
}
.service-includes li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.service-includes li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

/* ---------- Contact page: location detail cards ---------- */
.contact-locations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.contact-location {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}
.contact-location h3 { font-size: 0.98rem; margin-bottom: 6px; }
.contact-location p { font-size: 0.88rem; margin: 0 0 4px; }
.contact-location .hours { color: var(--ink-soft); }

/* ---------- Legal / Terms & Conditions page ---------- */
.page-hero--compact { padding: 64px 0 48px; }

.legal { background: var(--white); }

.legal-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: start;
}

.legal-content h2 {
  font-size: 1.15rem;
  margin-top: 2.2em;
  padding-top: 0.4em;
  scroll-margin-top: calc(var(--header-height) + 20px);
}
.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 72ch;
}

.legal-intro {
  font-size: 1.02rem;
  color: var(--ink);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-content ol {
  list-style: none;
  counter-reset: legal-item;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 1em;
}
.legal-content ol li {
  counter-increment: legal-item;
  padding-left: 30px;
  position: relative;
}
.legal-content ol li::before {
  content: counter(legal-item) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--emerald-dark);
}

.legal-content a { color: var(--emerald-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.legal-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 1.4em;
}
.legal-bullets li {
  padding-left: 22px;
  position: relative;
}
.legal-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.cookie-table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.cookie-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 14px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}
.cookie-table th {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.cookie-table td { color: var(--ink-soft); }
.cookie-table tr:last-child td { border-bottom: none; }
.cookie-table td:first-child {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.legal-disclaimer-note {
  margin-top: 2.5em;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--amber);
  font-size: 0.86rem;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}
.legal-toc h2 {
  font-size: 0.85rem;
  text-transform: none;
  color: var(--navy);
  margin-bottom: 14px;
}
.legal-toc ul { display: flex; flex-direction: column; gap: 10px; }
.legal-toc a {
  font-size: 0.87rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.legal-toc a:hover { color: var(--emerald-dark); }

/* ---------- Footer bottom with terms link ---------- */
.footer-bottom--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom--split a { color: rgba(255,255,255,0.6); }
.footer-bottom--split a:hover { color: var(--white); }

/* ---------- Footer bottom with legal links ---------- */
.footer-bottom--split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom--split a { color: rgba(255,255,255,0.6); }
.footer-bottom--split a:hover { color: var(--white); }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
}

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  background: var(--navy-dark);
  color: rgba(255,255,255,0.9);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 20px 24px;
}
.cookie-banner[hidden] { display: none; }

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cookie-banner p {
  margin: 0;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  max-width: 62ch;
}
.cookie-banner a { color: #7FE8C0; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.cookie-banner .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-form-wrap { max-width: 520px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-us-grid { grid-template-columns: 1fr; }
  .why-us-panel { max-width: 520px; }
  .contact-grid { grid-template-columns: 1fr; }
  .booking-form { max-width: 640px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .story-grid { grid-template-columns: 1fr; }
  .story-stats { max-width: 520px; }
  .benefit-list--three { grid-template-columns: 1fr 1fr; }
  .doctor-grid { grid-template-columns: 1fr; }
  .service-detail { grid-template-columns: 1fr; }
  .contact-locations { grid-template-columns: 1fr; }
  .legal-inner { grid-template-columns: 1fr; }
  .legal-toc { position: static; order: -1; }
}

/* Mobile nav + stacking */
@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav > ul > li > a { display: block; padding: 14px 4px; font-size: 1.05rem; }
  .main-nav > ul > li > a::after { display: none; }
  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0 0 0 14px;
    display: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }

  .header-inner { gap: 10px; }
  .logo { min-width: 0; gap: 8px; flex-shrink: 0; }
  .logo-mark svg { width: 30px; height: 30px; }
  .logo-text {
    font-size: 1rem;
    white-space: nowrap;
  }

  .header-phone { display: none; }
  .header-cta { gap: 8px; }
  .header-cta .btn { padding: 9px 14px; font-size: 0.82rem; }
  .nav-toggle { display: flex; flex-shrink: 0; }

  .hero { padding: 40px 0 64px; }
  .hero-stats { flex-wrap: wrap; gap: 20px 32px; }

  .services-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card--popular { transform: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; padding-bottom: 32px; }

  .page-hero { padding: 48px 0 40px; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
  .story-stats { grid-template-columns: 1fr 1fr; padding: 24px; }
  .benefit-list--three { grid-template-columns: 1fr; }
  .contact-locations { grid-template-columns: 1fr; }

  section { padding: 56px 0; }

  .cookie-banner { left: 10px; right: 10px; bottom: 66px; padding: 18px; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { justify-content: flex-start; }

  .mobile-call-bar { display: flex; }
  body { padding-bottom: 54px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero-form-wrap { padding: 22px; }
  .booking-form { padding: 22px; }

  .btn-text-full { display: none; }
  .btn-text-short { display: inline; }
  .header-inner { gap: 8px; }
  .logo { gap: 6px; }
  .logo-mark svg { width: 26px; height: 26px; }
  .logo-text { font-size: 0.88rem; }
  .header-cta .btn { padding: 8px 10px; font-size: 0.78rem; }
  .nav-toggle { width: 34px; }
}

/* Very small phones (e.g. 360px and below) */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .logo-mark svg { width: 22px; height: 22px; }
  .logo-text { font-size: 0.82rem; }
  .header-cta .btn { padding: 7px 9px; font-size: 0.74rem; }
  .nav-toggle { width: 30px; }
  .nav-toggle span { width: 22px; }
}
