/* ============================================================
   [PRACTICE NAME] — Practice Website
   Modern, professional healthcare design system
   Placeholder values marked [LIKE THIS] for easy swapping
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* NHS-style blue palette */
  --blue: #005eb8;
  --blue-dark: #003087;
  --blue-darker: #001f5c;
  --blue-light: #e8f0fa;
  --blue-soft: #f2f7fd;
  --teal: #00a3a3;
  --teal-light: #e0f5f5;

  /* Greys */
  --ink: #16212b;
  --slate: #3c4750;
  --grey: #66727c;
  --grey-light: #eef1f4;
  --line: #dfe5ea;

  --white: #ffffff;
  --accent: #f4a300;
  --accent-dark: #d98e00;
  --green: #007f3b;
  --green-light: #e6f4ec;

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Arial", sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,0.06), 0 1px 3px rgba(16,24,40,0.08);
  --shadow-md: 0 6px 16px rgba(16,24,40,0.10);
  --shadow-lg: 0 18px 40px rgba(16,24,40,0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--blue); text-decoration: none; transition: color 0.18s var(--ease); }
a:hover { color: var(--blue-dark); text-decoration: underline; }

h1,h2,h3,h4 { line-height: 1.2; color: var(--ink); font-weight: 800; letter-spacing: -0.01em; }

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- SVG icon system ---------- */
.icon {
  width: 24px; height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}
.icon-badge {
  width: 48px; height: 48px;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}

/* ---------- Utility ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue);
  color: var(--white) !important;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: center;
  line-height: 1.2;
}
.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.btn .icon { width: 19px; height: 19px; }
.btn.secondary { background: var(--accent); border-color: var(--accent); color: var(--ink) !important; }
.btn.secondary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--blue) !important; border-color: var(--blue); }
.btn.ghost:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: none; }
.btn.ghost-light { background: transparent; color: var(--white) !important; border: 2px solid rgba(255,255,255,0.5); }
.btn.ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); box-shadow: none; }
.btn.ghost-light .icon { color: var(--white); }

.section-pad { padding: 80px 0; }
.section-grey { background: var(--grey-light); }
.section-soft { background: var(--blue-soft); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--blue); border-radius: 2px; }

.section-title { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; margin-bottom: 14px; }
.section-lead { font-size: 18px; color: var(--slate); max-width: 660px; margin-bottom: 36px; }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   NHS header — organisational (white header + blue navigation)
   Faithful to nhsuk-frontend header component v10
   ============================================================ */
.nhs-emergency {
  background: #212b32;
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}
.nhs-emergency .wrap { display: flex; justify-content: center; }
.nhs-emergency a { color: #ffb81c; font-weight: 700; text-decoration: underline; }
.nhs-emergency a:hover { color: #ffd166; }
.nhsuk-header {
  background: #fff;
  color: #005eb8;
  border-bottom: 1px solid #d8dde0;
  position: relative;
}
.nhsuk-header__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding: 16px 0;
}
.nhsuk-header__service {
  display: flex;
  align-items: center;
  flex-grow: 999;
  margin-right: auto;
  min-width: 0;
}
.nhsuk-header__service-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #005eb8;
  line-height: 1.1;
  min-width: 0;
}
.nhsuk-header__service-logo:hover { text-decoration: underline; }
.nhsuk-header__logo {
  width: 100px;
  height: 40px;
  flex-shrink: 0;
}
.nhsuk-header__service-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
  min-width: 0;
}
.nhsuk-header__organisation-name {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #212b32;
  letter-spacing: -0.01em;
}
.nhsuk-header__organisation-name-descriptor {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #425563;
}

/* Search */
.nhsuk-header__search { flex-shrink: 0; }
.nhsuk-header__search-form { display: flex; }
.nhsuk-header__search-input {
  width: 260px;
  height: 40px;
  padding: 0 12px;
  border: 2px solid #4c6272;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font-size: 16px;
  font-family: inherit;
  color: #212b32;
  background: #fff;
}
.nhsuk-header__search-input:focus { outline: none; }
.nhsuk-header__search-button {
  width: 44px;
  height: 40px;
  background: #005eb8;
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nhsuk-header__search-button:hover { background: #003087; }

/* Menu toggle (mobile) */
.nhsuk-header__menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #005eb8;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
}
.nhsuk-header__menu-toggle:hover { background: #f0f4f5; }

/* Navigation (blue bar) */
.nhsuk-header__navigation {
  background: #005eb8;
  color: #fff;
}
.nhsuk-header__navigation-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nhsuk-header__navigation-item { margin: 0; }
.nhsuk-header__navigation-link {
  display: block;
  position: relative;
  padding: 14px 18px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  white-space: nowrap;
}
.nhsuk-header__navigation-link:hover {
  background: #003087;
  text-decoration: underline;
}
.nhsuk-header__navigation-link[aria-current="page"] {
  font-weight: 700;
}
.nhsuk-header__navigation-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-bottom: 4px solid #fff;
}

/* Focus (NHS yellow) */
.nhsuk-header a:focus,
.nhsuk-header .nhsuk-header__search-input:focus,
.nhsuk-header .nhsuk-header__search-button:focus,
.nhsuk-header .nhsuk-header__menu-toggle:focus {
  outline: 4px solid #ffeb3b;
  outline-offset: 2px;
  color: #212b32;
  background-color: #ffeb3b;
}
.nhsuk-header__search-input:focus {
  background-color: #fff;
  color: #212b32;
  box-shadow: inset 0 0 0 4px #ffeb3b;
}

/* Mobile */
@media (max-width: 860px) {
  .nhsuk-header__container { padding: 12px 0; gap: 12px; }
  .nhsuk-header__service { flex-grow: 1; }
  .nhsuk-header__search { display: none; }
  .nhsuk-header__menu-toggle { display: block; }
  .nhsuk-header__navigation-list { display: none; }
  .nhsuk-header__navigation-list.open { display: flex; flex-direction: column; }
  .nhsuk-header__navigation-link { padding: 13px 24px; }
  .nhsuk-header__organisation-name { font-size: 19px; }
  .nhsuk-header__logo { width: 80px; height: 32px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 58%, var(--blue-darker) 100%);
  color: var(--white);
  padding: 84px 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,255,255,0.10) 0%, transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(0,163,163,0.28) 0%, transparent 46%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.24);
  color: #fff;
  font-size: 13px; font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  backdrop-filter: blur(4px);
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #7ef0b2; box-shadow: 0 0 0 3px rgba(126,240,178,0.25); }
.hero h2 { font-size: clamp(34px, 4.8vw, 52px); font-weight: 900; color: var(--white); margin-bottom: 18px; line-height: 1.08; letter-spacing: -0.02em; }
.hero p { font-size: 19px; opacity: 0.94; max-width: 560px; margin-bottom: 30px; }
.hero .btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn.secondary { background: var(--accent); border-color: var(--accent); }
.hero .btn.secondary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.hero-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.hero-card h3 { font-size: 19px; margin-bottom: 4px; }
.hero-card .row { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.hero-card .row:last-of-type { border-bottom: none; }
.hero-card .label { font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 3px; }
.hero-card .val { font-size: 20px; font-weight: 800; color: var(--blue); }
.hero-card .val a { color: var(--blue); }
.hero-card .open-now {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--green);
  background: var(--green-light);
  padding: 5px 11px; border-radius: 999px;
  margin-top: 14px;
}
.hero-card .open-now .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 52px 0; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.trust-strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 13px; }
.trust-item .t-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--blue-light); color: var(--blue);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.trust-item strong { display: block; font-size: 15.5px; color: var(--ink); }
.trust-item span { display: block; font-size: 13px; color: var(--grey); }

/* ---------- Cards / grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(264px, 1fr)); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #c8d8ea; }
.card .icon-badge { background: var(--blue-light); color: var(--blue); transition: background 0.22s, color 0.22s; }
.card:hover .icon-badge { background: var(--blue); color: var(--white); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--slate); margin-bottom: 14px; }
.card a.arrow { font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 5px; }
.card a.arrow:hover { gap: 8px; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--blue-darker); color: var(--white); padding: 54px 0; }
.stats-band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; text-align: center; }
.stat .num { font-size: clamp(32px, 4.4vw, 44px); font-weight: 900; letter-spacing: -0.02em; color: #fff; line-height: 1; }
.stat .num em { font-style: normal; color: #ffd166; }
.stat .lbl { font-size: 14px; color: #a9bdd6; margin-top: 6px; font-weight: 500; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split .img-ph {
  background: linear-gradient(135deg, var(--blue-light) 0%, #d7e6f6 100%);
  border-radius: var(--radius-lg);
  min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-weight: 700;
  border: 1px dashed #bcd0e8;
}
.img-ph.photo { padding: 0; overflow: hidden; border: none; background: none; }
.img-ph.photo img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.img-ph.photo.map img { min-height: 180px; }
.split ul.checklist { list-style: none; margin: 18px 0 28px; }
.split ul.checklist li { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; font-size: 16px; color: var(--slate); }
.split ul.checklist .icon { width: 21px; height: 21px; color: var(--green); margin-top: 2px; flex-shrink: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.step { position: relative; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.step .num {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--blue); color: var(--white);
  font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--slate); }

/* ---------- Callout ---------- */
.callout { background: var(--blue-light); border-left: 5px solid var(--blue); padding: 18px 22px; border-radius: var(--radius-sm); margin: 20px 0; }
.callout.attention { background: #fdeeee; border-left-color: #c0182b; color: #7a0e1c; }
.callout.attention a { color: #c0182b; font-weight: 700; }
.callout.teal { background: var(--teal-light); border-left-color: var(--teal); }

/* ---------- Tables ---------- */
table.data { width: 100%; border-collapse: collapse; margin: 18px 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
table.data th, table.data td { border-bottom: 1px solid var(--line); padding: 14px 18px; text-align: left; }
table.data th { background: var(--blue); color: var(--white); font-weight: 700; font-size: 15px; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:nth-child(even) td { background: var(--blue-soft); }
table.data td strong { color: var(--green); }

/* ---------- Accordion ---------- */
.accordion { margin: 18px 0; }
.accordion details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--white); overflow: hidden; }
.accordion summary { cursor: pointer; padding: 17px 20px; font-weight: 700; font-size: 16.5px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 24px; color: var(--blue); font-weight: 700; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion details[open] summary { border-bottom: 1px solid var(--line); }
.accordion .body { padding: 6px 20px 18px; font-size: 15.5px; color: var(--slate); }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 7px; color: var(--ink); font-size: 15px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 13px 15px;
  font-size: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,94,184,0.14);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: 13.5px; color: var(--grey); margin-top: 6px; }

/* ---------- Page hero ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 56px 0;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 88% 20%, rgba(255,255,255,0.10) 0%, transparent 42%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 900; color: var(--white); margin-bottom: 8px; letter-spacing: -0.02em; }
.page-hero p { opacity: 0.94; font-size: 17px; max-width: 640px; }
.breadcrumb { font-size: 14px; margin: 16px 0 4px; color: var(--grey); }
.breadcrumb a { font-weight: 700; }
.breadcrumb a:hover { color: var(--blue-dark); }

/* ---------- Side layout ---------- */
.side-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.sticky { position: sticky; top: 96px; }
@media (max-width: 860px) {
  .side-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-darker); color: #c8d4e8; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 36px; padding: 52px 24px; }
.footer-grid h3 { color: var(--white); font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; font-size: 15px; }
.footer-grid a { color: #c8d4e8; }
.footer-grid a:hover { color: var(--white); }
.footer-grid .brand-name { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 4px; }
.footer-grid .nhs-note { font-size: 13px; color: #8fa3bd; margin-top: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); font-size: 13.5px; padding: 16px 0; text-align: center; color: #9db0c9; }

/* ---------- Placeholder / notes ---------- */
.placeholder { background: #fff8e1; border: 1px dashed #c99b00; color: #7a5c00; padding: 2px 7px; border-radius: 4px; font-weight: 600; }
.note-banner {
  background: #fffbe9; border: 1px solid #e3cb71; color: #5c4a00;
  padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 24px;
}
