/* ============================================================
   Three Counties Osteopaths — site styles
   Design: practical, conversion-focused (teal on white).
   ============================================================ */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-v20.woff2") format("woff2");
}

:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-deep: #134e4a;
  --teal-tint: #f0fdfa;
  --teal-border: #99f6e4;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg-soft: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .07);
  --shadow-lift: 0 2px 6px rgba(15, 23, 42, .08), 0 12px 32px rgba(15, 23, 42, .12);
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--body);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.18; font-weight: 800; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.125rem; font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }
.kicker {
  display: inline-block; color: var(--teal); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 10px;
}
.lead { font-size: 1.06rem; max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Focus states */
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px;
}

/* Skip link */
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--teal); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600; z-index: 200;
}
.skip:focus { left: 0; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; text-decoration: none; border-radius: 999px;
  padding: 14px 26px; min-height: 48px; transition: background .15s, transform .1s, box-shadow .15s;
  border: 2px solid transparent; cursor: pointer; text-align: center;
  font-family: inherit;
}
.btn svg { flex: none; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--teal-dark); color: #fff; box-shadow: var(--shadow-lift); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-tint); color: var(--teal-dark); }
.btn-ghost { background: var(--teal-tint); color: var(--teal-deep); border-color: var(--teal-border); }
.btn-ghost:hover { background: #ccfbf1; color: var(--teal-deep); }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 4px 18px rgba(15, 23, 42, .07); }
.header-inner {
  display: flex; align-items: center; gap: 16px; min-height: 68px;
  max-width: var(--max); margin: 0 auto; padding: 8px 20px;
}
.brand { display: flex; align-items: center; flex: none; text-decoration: none; min-width: 0; }
.brand img { width: 225px; height: auto; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; list-style: none; }
.main-nav a {
  display: block; padding: 10px 9px; color: var(--body); text-decoration: none;
  font-weight: 600; font-size: .88rem; border-radius: 8px; white-space: nowrap;
}
.main-nav a:hover { color: var(--teal-dark); background: var(--teal-tint); }
.main-nav a[aria-current="page"] { color: var(--teal-deep); background: var(--teal-tint); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-phones { display: flex; flex-direction: column; gap: 2px; text-align: right; line-height: 1.3; }
.header-phones a {
  /* Flex trims the whitespace between the place name and the number, so space them here. */
  display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 24px;
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .85rem; white-space: nowrap;
}
.header-phones a:hover { color: var(--teal); }
.header-phones .place { color: var(--muted); font-weight: 500; font-size: .75rem; }
.header-book { padding: 11px 20px; min-height: 44px; font-size: .95rem; }
.nav-toggle {
  display: none; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

/* ============ Hero (home) ============ */
.hero { background: linear-gradient(180deg, var(--teal-tint) 0%, #fff 78%); padding: 48px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero p.lead { margin: 16px 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.hero-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 520px;
  list-style: none;
}
.hero-facts li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: .9rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.4;
}
.hero-facts strong { color: var(--ink); display: block; font-size: .95rem; }
.hero-facts svg { flex: none; width: 20px; height: 20px; stroke: var(--teal); margin-top: 2px; }
.hero-booking {
  background: var(--teal-deep); color: #d5f5f1; border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lift); padding: 30px;
}
.hero-booking-topline {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 18px;
}
.hero-booking .kicker { color: #99f6e4; }
.hero-practice-name {
  color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .01em;
  line-height: 1.35; margin-left: auto; max-width: 30ch; text-align: right;
}
.hero-booking h2 { color: #fff; font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.hero-booking > p { color: #bcece6; font-size: .92rem; margin-top: 8px; }
.hero-clinic-list { display: grid; gap: 12px; margin: 22px 0; }
.hero-clinic {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(153, 246, 228, .28);
  border-radius: 12px; padding: 16px 18px;
}
.hero-clinic-heading { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.hero-clinic-heading svg { width: 24px; height: 24px; stroke: #5eead4; flex: none; }
.hero-clinic-heading h3 { color: #fff; font-size: 1.05rem; }
.hero-clinic-heading span { display: block; color: #a7ddd7; font-size: .78rem; }
.hero-clinic address { color: #e2f7f4; font-style: normal; font-size: .88rem; line-height: 1.5; }
.hero-clinic-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.hero-clinic-actions a { color: #99f6e4; font-size: .88rem; font-weight: 700; text-decoration: none; }
.hero-clinic-actions a:hover { color: #fff; text-decoration: underline; }
.hero-booking .btn-primary { background: #fff; color: var(--teal-deep); box-shadow: none; }
.hero-booking .btn-primary:hover { background: var(--teal-tint); color: var(--teal-deep); }

/* ============ Page hero (subpages) ============ */
.page-hero { background: linear-gradient(180deg, var(--teal-tint) 0%, #fff 100%); padding: 44px 0 36px; }
.page-hero .lead { margin-top: 12px; }

/* ============ Trust bar ============ */
.trust { background: var(--teal-deep); color: #fff; padding: 20px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: .9rem; line-height: 1.35; }
.trust-item strong { display: block; font-size: .98rem; letter-spacing: -.01em; }
.trust-item span { color: #c7ede8; font-size: .8rem; font-weight: 400; }
.trust-item svg { flex: none; width: 26px; height: 26px; stroke: #5eead4; }
.trust-item img { background: #fff; border-radius: 8px; padding: 6px 8px; width: 96px; height: auto; flex: none; }
.trust-item a { color: #a7f3ea; }
.trust-item a:hover, .trust-item a:focus-visible { color: #fff; }

/* ============ How it works ============ */
.steps { background: var(--bg-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem;
  margin-bottom: 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: .95rem; }
.step a { font-weight: 600; }

/* ============ Treatments ============ */
.treatments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 8px; }
.treatments-copy h2 { margin-bottom: 14px; }
.treatments-copy p { margin-bottom: 14px; }
.treatments-copy img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; max-height: 420px; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.pill-list li {
  background: var(--teal-tint); border: 1px solid var(--teal-border); color: var(--teal-deep);
  border-radius: 999px; padding: 7px 14px; font-size: .85rem; font-weight: 600;
}

/* ============ About ============ */
.about { background: var(--bg-soft); }
.home-team-heading { max-width: 760px; }
.home-team-heading .lead { margin-top: 14px; }
.home-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.home-practitioner {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-top: 4px solid #cbd5e1;
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px;
}
.home-practitioner-lead { border-top-color: var(--teal); }
.team-role {
  display: inline-flex; border-radius: 999px; background: var(--teal-tint);
  color: var(--teal-deep); font-size: .76rem; font-weight: 800; padding: 6px 11px;
  text-transform: uppercase; letter-spacing: .05em;
}
.home-practitioner h3 { font-size: 1.35rem; margin-top: 16px; }
.practitioner-specialty { color: var(--teal); font-size: .9rem; font-weight: 700; margin: 4px 0 12px; }
.home-practitioner > p:not(.practitioner-specialty) { font-size: .95rem; }
.practitioner-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.practitioner-tags li {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px;
  color: var(--body); font-size: .78rem; font-weight: 600; padding: 6px 10px;
}
.practitioner-link { margin-top: auto; padding-top: 22px; font-weight: 700; text-decoration: none; }
.home-team-action { margin-top: 24px; text-align: center; }
.practitioner-section { background: var(--bg-soft); }
.practitioner-card {
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 44px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow); padding: 28px;
}
.practitioner-photo { position: relative; }
.practitioner-photo img {
  border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; width: 100%; max-height: 540px;
}
.role-badge {
  position: absolute; left: 14px; bottom: 14px; background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
  color: var(--teal-deep); font-size: .8rem; font-weight: 800; padding: 8px 13px;
}
.practitioner-copy h2 { margin-bottom: 14px; }
.practitioner-copy > p + p { margin-top: 12px; }
.team-secondary { background: #fff; }
.jamie-profile {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 44px;
  align-items: start;
}
.practitioner-card > *, .jamie-profile > * { min-width: 0; }
.profile-story h2 { margin-bottom: 16px; }
.profile-story p + p { margin-top: 14px; }
.profile-signoff { color: var(--ink); font-weight: 700; }
.profile-summary {
  background: var(--teal-deep); color: #d5f5f1; border-radius: calc(var(--radius) + 4px);
  padding: 28px; box-shadow: var(--shadow-lift);
}
.profile-portrait { aspect-ratio: 1; margin: -8px -8px 24px; }
.profile-portrait img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
  border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--radius);
}
.profile-summary h3 { color: #fff; margin-bottom: 18px; }
.profile-highlights { list-style: none; display: grid; gap: 16px; }
.profile-highlights li { border-top: 1px solid rgba(153, 246, 228, .28); padding-top: 16px; }
.profile-highlights strong { display: block; color: #fff; font-size: .92rem; margin-bottom: 2px; }
.profile-highlights span { display: block; color: #bcece6; font-size: .88rem; line-height: 1.5; }
.cred-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.cred-list li {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
  display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.cred-list svg { flex: none; width: 22px; height: 22px; stroke: var(--teal); margin-top: 2px; }
.cred-list strong { color: var(--ink); }
.gosc-panel {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 20px;
}
.gosc-panel img { width: 130px; height: auto; }
.gosc-panel p { font-size: .9rem; max-width: 44ch; }
.gosc-team { margin-top: 40px; }
.gosc-team h3 { margin-bottom: 4px; }
.gosc-team p { max-width: 72ch; }

/* ============ Fees ============ */
.fees-card {
  margin-top: 26px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  background: var(--teal-tint); border: 1px solid var(--teal-border); border-radius: var(--radius);
  padding: 32px 36px;
}
.fee-amount { text-align: center; }
.fee-amount .price { font-size: 3.4rem; font-weight: 800; color: var(--teal-deep); letter-spacing: -.03em; line-height: 1; }
.fee-amount .per { color: var(--teal-dark); font-weight: 600; font-size: .92rem; }
.fees-points { list-style: none; display: grid; gap: 10px; }
.fees-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--teal-deep); font-weight: 500; font-size: .98rem; }
.fees-points svg { flex: none; width: 21px; height: 21px; stroke: var(--teal); margin-top: 3px; }

/* ============ Clinics ============ */
.clinics { background: var(--bg-soft); }
.clinic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.clinic-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.clinic-card iframe { width: 100%; height: 230px; border: 0; display: block; }
.map-facade {
  height: 230px;
  background:
    radial-gradient(circle at 42% 48%, rgba(15, 118, 110, .16) 0 18px, transparent 19px),
    linear-gradient(180deg, #d7e4e2 0%, #c3d4d1 100%);
}
.map-facade.is-loaded { background: none; }
.map-facade iframe { width: 100%; height: 230px; border: 0; display: block; }
.map-facade__button {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; width: 100%; height: 100%; border: 0; background: transparent;
  cursor: pointer; font-family: inherit; color: var(--teal-deep);
}
.map-facade__button svg { width: 36px; height: 36px; stroke: var(--teal); }
.map-facade__copy { display: grid; gap: 2px; text-align: center; }
.map-facade__copy strong { font-size: 1rem; color: var(--ink); }
.map-facade__copy span { font-size: .85rem; color: var(--body); }
.clinic-photo {
  border-radius: var(--radius); overflow: hidden; margin: 0 0 22px;
  aspect-ratio: 4 / 3; background: var(--bg-soft);
}
.clinic-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
}
.clinic-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.clinic-body h3, .clinic-body h2 { font-size: 1.3rem; }
.clinic-body address { font-style: normal; font-size: .95rem; }
.clinic-hours {
  display: flex; gap: 10px; align-items: center; font-size: .9rem; color: var(--teal-deep);
  background: var(--teal-tint); border: 1px solid var(--teal-border); border-radius: 10px;
  padding: 9px 13px; font-weight: 600; width: fit-content;
}
.clinic-hours svg { width: 18px; height: 18px; stroke: var(--teal); flex: none; }
.clinic-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.clinic-actions .btn { flex: 1; min-width: 150px; padding: 12px 18px; font-size: .95rem; }

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 26px auto 0; display: grid; gap: 12px; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.faq-list details[open] { border-color: var(--teal-border); box-shadow: var(--shadow); }
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 17px 20px; font-weight: 700; color: var(--ink); font-size: 1rem; min-height: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--teal); line-height: 1; flex: none;
  transition: transform .15s;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .faq-a { padding: 0 20px 18px; font-size: .95rem; }
.faq-list .faq-a p + p { margin-top: 8px; }

/* ============ Book / contact ============ */
.book { background: linear-gradient(180deg, #fff 0%, var(--teal-tint) 100%); }
.book-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 28px; align-items: stretch; }
.booking-widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-top: 28px;
}
.booking-widget h2 { margin-bottom: 14px; }
#clinic-booking { min-height: 600px; }
.booking-help { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.contact-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 28px; display: flex; flex-direction: column; gap: 16px;
}
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row svg { flex: none; width: 22px; height: 22px; stroke: var(--teal); margin-top: 3px; }
.contact-row strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-row a { font-weight: 600; text-decoration: none; font-size: 1.02rem; }
.contact-row a:hover { text-decoration: underline; }
.contact-row .sub { color: var(--muted); font-size: .82rem; }
.contact-note {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: .86rem; color: var(--muted); margin-top: auto;
}

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

/* ============ CTA band ============ */
.cta-band {
  background: var(--teal-deep); border-radius: var(--radius); color: #fff;
  padding: 36px 32px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
.cta-band p { color: #c7ede8; margin-top: 6px; font-size: .95rem; max-width: 52ch; }
.cta-band .btn-primary { background: #fff; color: var(--teal-deep); }
.cta-band .btn-primary:hover { background: var(--teal-tint); color: var(--teal-deep); }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Footer ============ */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 44px 0 120px; font-size: .9rem; }
@media (min-width: 761px) { .site-footer { padding-bottom: 44px; } }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer p { margin-bottom: 10px; }
.site-footer a { color: #7dd3cb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.footer-gosc { background: #fff; border-radius: 8px; padding: 8px 10px; width: 130px; margin: 14px 0 6px; }
.footer-gosc img { width: 100%; height: auto; aspect-ratio: 260 / 109; }
.footer-bottom {
  border-top: 1px solid #334155; margin-top: 34px; padding-top: 20px;
  font-size: .8rem; color: #94a3b8; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.footer-legal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cookie-settings-link {
  appearance: none; border: 0; padding: 0; background: transparent; color: #7dd3cb;
  font: inherit; text-decoration: none; cursor: pointer;
}
.cookie-settings-link:hover, .cookie-settings-link:focus-visible { color: #fff; text-decoration: underline; }

/* ============ Consent and privacy ============ */
.cookie-consent {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px;
  max-width: 980px; margin: 0 auto; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lift);
  padding: 22px 24px calc(22px + env(safe-area-inset-bottom));
}
.cookie-consent__content {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px;
}
.cookie-consent h2 { font-size: 1.15rem; margin-bottom: 6px; }
.cookie-consent p { color: var(--muted); font-size: .9rem; max-width: 72ch; }
.cookie-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-consent__actions .btn { min-width: 150px; }
.cookie-consent__dismiss {
  appearance: none; border: 0; background: transparent; color: var(--teal-deep);
  padding: 10px 4px; font: inherit; font-weight: 700; text-decoration: underline;
  cursor: pointer;
}
.cookie-consent__dismiss:hover, .cookie-consent__dismiss:focus-visible { color: var(--ink); }
.privacy-content { max-width: 780px; }
.privacy-content h2 { margin: 34px 0 10px; font-size: 1.45rem; }
.privacy-content h3 { margin: 24px 0 8px; font-size: 1.1rem; }
.privacy-content p, .privacy-content li { color: var(--muted); }
.privacy-content ul { padding-left: 1.2rem; display: grid; gap: 8px; }
.privacy-content .cookie-settings-link {
  color: var(--teal-deep); font-weight: 700; text-decoration: underline;
}
.privacy-content .cookie-settings-link:hover,
.privacy-content .cookie-settings-link:focus-visible { color: var(--ink); }
.privacy-content .privacy-updated { font-size: .9rem; }

/* ============ Mobile CTA bar ============ */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(15, 23, 42, .1);
}
.mobile-cta .inner { display: flex; gap: 10px; position: relative; }
.mobile-cta .btn { flex: 1; padding: 13px 10px; font-size: .95rem; min-height: 50px; }
.call-sheet {
  display: none; position: absolute; bottom: calc(100% + 12px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift); padding: 10px;
}
.call-sheet.open { display: grid; gap: 8px; }
.call-sheet a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  text-decoration: none; padding: 13px 16px; border-radius: 10px; min-height: 50px;
  background: var(--teal-tint); border: 1px solid var(--teal-border);
}
.call-sheet a strong { color: var(--ink); font-size: .95rem; }
.call-sheet a span { color: var(--teal-deep); font-weight: 700; font-size: .95rem; white-space: nowrap; }

/* ============ Reveal on scroll (JS-gated) ============ */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 1000px) {
  .nav-toggle { display: flex; order: 3; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); padding: 8px 12px 14px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 13px 14px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-booking { width: 100%; max-width: 620px; }
  .treatments-grid, .book-grid, .practitioner-card, .jamie-profile { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .practitioner-photo { max-width: 420px; }
  .profile-summary { max-width: 520px; }
  .steps-grid, .clinic-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  section { padding: 44px 0; }
  .header-phones, .header-book { display: none; }
  .mobile-cta { display: block; }
  /* Keep page content reachable above the fixed CTA bar (contact.html has no bar). */
  body:has(.mobile-cta) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* The DiaryCare embed draws its own card, so drop ours and give the
     booking iframe the full width of a small screen. */
  .booking-widget { padding: 0; border: none; box-shadow: none; background: transparent; }
  .booking-widget h2 { margin-bottom: 10px; }
  .hero { padding: 34px 0 36px; }
  .hero-ctas .btn-primary { flex: 1 1 100%; }
  .hero-ctas .btn-outline { flex: 1 1 calc(50% - 6px); padding: 12px 10px; font-size: .92rem; }
  .fees-card { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; text-align: left; }
  .fee-amount { text-align: left; }
  .trust-grid { grid-template-columns: 1fr; gap: 14px; }
  .cta-band { padding: 28px 24px; }
  .home-team-grid { grid-template-columns: 1fr; }
  .hero-booking { padding: 24px; }
  .hero-booking-topline { align-items: flex-start; }
  .practitioner-card { padding: 18px; }
  .profile-summary { padding: 24px; }
  .cookie-consent { left: 10px; right: 10px; bottom: 10px; padding: 20px; }
  .cookie-consent__content { grid-template-columns: 1fr; gap: 16px; }
  .cookie-consent__actions .btn { flex: 1 1 160px; }
}
@media (max-width: 420px) {
  .brand img { width: 180px; }
}
@media (max-width: 420px) {
  .hero-facts { grid-template-columns: 1fr; }
  .clinic-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
