/*
Theme Name: Lifeline Medical Services
Theme URI: https://lifelinemedicalservices.co.uk
Author: Lifeline Medical Services
Description: Bespoke lightweight theme for Lifeline Medical Services – event medical cover, ambulance support and pre-hospital care training.
Version: 1.3.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: lifeline
*/

/* ---------- Tokens ---------- */
:root {
  --red: #e5412a;
  --red-dark: #c4321d;
  --blue: #3dafF3;
  --blue-dark: #1677b8;
  --navy: #0b1d2e;
  --navy-2: #122a40;
  --ink: #15222f;
  --muted: #5a6877;
  --line: #e3e8ee;
  --soft: #f3f6f9;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 29, 46, .08);
  --shadow-lg: 0 24px 60px rgba(11, 29, 46, .16);
  --container: 1240px;
  --font-head: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --header-h: 84px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .6em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul { padding-left: 1.2em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 999; background: #fff; padding: 10px 16px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-head); font-weight: 700; font-size: .98rem;
  padding: .95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .2s ease; line-height: 1.2; text-align: center;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(229, 65, 42, .35); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.link-arrow { font-family: var(--font-head); font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: .4em; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--red);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.on-dark .eyebrow, .eyebrow.light { color: var(--blue); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy); color: rgba(255,255,255,.8); font-size: .86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 42px; gap: 20px; }
.topbar a { color: rgba(255,255,255,.88); }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; align-items: center; gap: 8px; }
.topbar-left .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); }
.topbar-right { display: flex; align-items: center; gap: 22px; }
.topbar-right span.lbl { opacity: .6; margin-right: 4px; }
.socials { display: flex; gap: 12px; align-items: center; }
.socials a { display: inline-flex; width: 18px; height: 18px; }
.socials svg { width: 100%; height: 100%; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11,29,46,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.logo img { height: 54px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; gap: 2px; }
.main-nav li { position: relative; }
.main-nav > ul > li > a {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; font-family: var(--font-head); font-weight: 600; font-size: .97rem; color: var(--navy);
  border-radius: 8px;
}
.main-nav > ul > li > a:hover, .main-nav > ul > li.current-menu-item > a, .main-nav > ul > li.current-menu-ancestor > a, .main-nav > ul > li.current-page-ancestor > a { color: var(--red); }
.main-nav .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-3px); opacity: .6;
}
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff;
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 10px; border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); font-size: .95rem; font-weight: 500; }
.main-nav .sub-menu a:hover { background: var(--soft); color: var(--red); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.header-phone { display: flex; flex-direction: column; line-height: 1.2; font-family: var(--font-head); }
.header-phone small { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.header-phone a { font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: .25s; border-radius: 2px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: min(86vh, 780px);
  display: flex; align-items: center; overflow: hidden; background: var(--navy);
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 35%; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-slides .hero-bg { opacity: 0; transform: scale(1.06); animation: none; transition: opacity 1.6s ease; }
.hero-slides .hero-bg.active, .hero-slides .hero-bg.leaving { animation: heroZoom 9s ease-out forwards; }
.hero-slides .hero-bg.active { opacity: 1; z-index: 1; }
@media (min-width: 1021px) {
  .hero-slides { left: 25%; }
  .hero-slides::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(90deg, var(--navy) 0%, rgba(11,29,46,.82) 12%, rgba(11,29,46,.5) 32%, rgba(11,29,46,.12) 52%, rgba(11,29,46,0) 66%); }
  .hero:has(.hero-slides)::after { background: linear-gradient(0deg, rgba(8,22,36,.45) 0%, rgba(8,22,36,0) 35%); }
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,22,36,.94) 0%, rgba(8,22,36,.78) 42%, rgba(8,22,36,.25) 75%, rgba(8,22,36,.1) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 140px; }
.hero-content { max-width: 760px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead { font-size: 1.2rem; color: rgba(255,255,255,.86); max-width: 590px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); font-size: .84rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.pill svg { width: 15px; height: 15px; color: var(--blue); }

/* quick tiles overlapping hero */
.quick-tiles { position: relative; z-index: 5; margin-top: -90px; }
.quick-tiles .grid { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.quick-tile { padding: 32px 30px; display: flex; gap: 18px; align-items: flex-start; color: var(--ink); border-right: 1px solid var(--line); transition: background .2s; position: relative; }
.quick-tile:last-child { border-right: 0; }
.quick-tile:hover { background: var(--soft); color: var(--ink); }
.quick-tile::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--red); transition: width .3s; }
.quick-tile:hover::before { width: 100%; }
.quick-tile .ico { flex: 0 0 54px; height: 54px; border-radius: 12px; background: rgba(229,65,42,.1); color: var(--red); display: grid; place-items: center; }
.quick-tile .ico svg { width: 28px; height: 28px; }
.quick-tile h3 { font-size: 1.15rem; margin-bottom: 4px; }
.quick-tile p { margin: 0; font-size: .94rem; color: var(--muted); line-height: 1.55; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-sm { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section.dark, .on-dark { background: var(--navy); color: rgba(255,255,255,.82); }
.section.dark h2, .section.dark h3, .on-dark h2, .on-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: 54px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.dark .section-head p { color: rgba(255,255,255,.7); }
.section-head.split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.section-head.split > div { max-width: 680px; }

/* trust strip */
.trust { padding: 56px 0 40px; }
.trust-row { display: grid; grid-template-columns: 1.1fr repeat(4, 1fr); gap: 20px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .98rem; line-height: 1.3; }
.trust-item small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .82rem; }
.trust-item .ico { flex: 0 0 46px; height: 46px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; color: var(--blue-dark); }
.trust-item .ico svg { width: 22px; height: 22px; }
.trust-item img.cqc { height: 52px; width: auto; }

/* split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); aspect-ratio: 5/4; object-fit: cover; }
.split-media.tall img { aspect-ratio: 4/5; }
.split-media .float-card {
  position: absolute; bottom: -28px; right: -28px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 22px 26px; max-width: 280px; display: flex; gap: 14px; align-items: center;
}
.split.reverse .split-media .float-card { right: auto; left: -28px; }
.float-card .num { font-family: var(--font-head); font-weight: 800; font-size: 2.2rem; color: var(--red); line-height: 1; }
.float-card .num svg { width: 40px; height: 40px; display: block; }
.float-card p { margin: 0; font-size: .9rem; line-height: 1.4; color: var(--muted); }
.float-card strong { color: var(--navy); display: block; font-family: var(--font-head); }
.split-media .stack-img { position: absolute; width: 46%; bottom: -40px; left: -40px; border: 6px solid #fff; aspect-ratio: 1; }
.split-content p { color: var(--muted); }
.split-content p.lead { color: var(--ink); font-size: 1.15rem; }

.check-list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 500; color: var(--ink); line-height: 1.5; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(61,175,243,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231677b8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.on-dark .check-list li, .section.dark .check-list li { color: rgba(255,255,255,.9); }

/* service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.svc-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; align-items: flex-end;
  color: #fff; background: var(--navy); isolation: isolate;
}
.svc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.svc-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,22,36,0) 25%, rgba(8,22,36,.92) 100%); }
.svc-card:hover img { transform: scale(1.06); }
.svc-card .inner { padding: 32px; }
.svc-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.svc-card p { color: rgba(255,255,255,.82); font-size: .96rem; margin-bottom: 16px; }
.svc-card .tag { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; background: var(--red); color: #fff; padding: 4px 10px; border-radius: 4px; margin-bottom: 14px; }
.svc-card .link-arrow { color: #fff; }

.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  transition: all .25s; position: relative; height: 100%; display: flex; flex-direction: column;
}
.info-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.info-card .ico { width: 56px; height: 56px; border-radius: 14px; background: rgba(229,65,42,.1); color: var(--red); display: grid; place-items: center; margin-bottom: 22px; }
.info-card .ico.blue { background: rgba(61,175,243,.14); color: var(--blue-dark); }
.info-card .ico svg { width: 28px; height: 28px; }
.info-card h3 { margin-bottom: 10px; }
.info-card p { color: var(--muted); font-size: .97rem; }
.info-card .link-arrow { margin-top: auto; }
.section.dark .info-card { background: var(--navy-2); border-color: rgba(255,255,255,.08); }
.section.dark .info-card p { color: rgba(255,255,255,.7); }
.section.dark .info-card:hover { border-color: rgba(255,255,255,.2); }

.course-card .level { font-family: var(--font-head); font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.course-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.course-card .meta span { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(61,175,243,.14); color: var(--blue-dark); }
.section.dark .course-card .meta span { color: var(--blue); }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255,255,255,.12); margin-top: 60px; }
.stat { padding: 34px 24px 0; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat .big { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat .big span { color: var(--red); }
.stat p { margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; }

/* values */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.value { padding: 30px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.value .n { font-family: var(--font-head); font-weight: 800; color: var(--red); font-size: .9rem; letter-spacing: .1em; margin-bottom: 14px; display: block; }
.value h3 { font-size: 1.2rem; }
.value p { color: var(--muted); font-size: .94rem; margin: 0; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.chip { padding: 9px 16px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; color: var(--navy); }
.on-dark .chip, .section.dark .chip { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }

/* mosaic */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.mosaic .w2 { grid-column: span 2; }
.mosaic .h2 { grid-row: span 2; }

/* testimonials */
.testimonials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.quote {
  background: #fff; border-radius: var(--radius); padding: 44px 40px; box-shadow: var(--shadow); position: relative;
  border-top: 4px solid var(--blue);
}
.quote:nth-child(2) { border-top-color: var(--red); }
.quote svg.q { width: 42px; height: 42px; color: var(--blue); opacity: .3; margin-bottom: 14px; }
.quote blockquote { margin: 0 0 22px; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; line-height: 1.45; color: var(--navy); }
.quote .who { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .92rem; }
.quote .stars { color: #f5b301; letter-spacing: 2px; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: #fff; border-radius: 22px; padding: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.08); z-index: -1; }
.cta-band::after { content: ""; position: absolute; right: 120px; bottom: -180px; width: 300px; height: 300px; border-radius: 50%; background: rgba(0,0,0,.08); z-index: -1; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); font-size: 1.1rem; }
.cta-band .actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cta-band .phone-big { font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: #fff; display: flex; align-items: center; gap: 12px; }
.cta-band .phone-big:hover { color: #fff; opacity: .9; }
.cta-band .phone-big svg { width: 30px; height: 30px; }
.cta-band .btn-dark { background: var(--navy); }
.cta-band small { opacity: .85; }
.section-cta { padding: 100px 0; }
.entry-content > .section:last-child:not(.soft):not(.dark), .entry-content > section.section:last-of-type:not(.soft):not(.dark) { padding-bottom: 0; }
.subnav + .section { padding-top: 80px; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; padding: 110px 0 100px; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 1; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(95deg, rgba(8,22,36,.95) 0%, rgba(8,22,36,.8) 50%, rgba(8,22,36,.35) 100%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); max-width: 820px; margin-bottom: .3em; }
.page-hero p { max-width: 680px; font-size: 1.15rem; color: rgba(255,255,255,.85); margin: 0; }
.breadcrumbs { font-size: .86rem; margin-bottom: 18px; color: rgba(255,255,255,.65); }
.breadcrumbs a { color: rgba(255,255,255,.85); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs span { margin: 0 8px; }

/* anchor sub-nav */
.subnav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 50; }
.subnav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 12px 0; overflow-x: auto; }
.subnav a { display: block; white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .92rem; color: var(--navy); background: var(--soft); }
.subnav a:hover { background: var(--navy); color: #fff; }

/* generic content */
.entry-content > .wp-block-html:first-child .section:first-child { }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #334252; }
.notice-box { background: var(--soft); border-left: 4px solid var(--blue); padding: 22px 26px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 26px 0; }
.notice-box.red { border-left-color: var(--red); background: #fff4f2; }
.notice-box p:last-child { margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card .ico { flex: 0 0 48px; height: 48px; border-radius: 12px; background: rgba(229,65,42,.1); color: var(--red); display: grid; place-items: center; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card h4 { margin: 0 0 4px; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.contact-card a { color: var(--navy); font-weight: 600; }
.contact-card a:hover { color: var(--red); }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 16px; }
.map-embed iframe { display: block; width: 100%; height: 280px; border: 0; }

/* forms */
.form-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 44px; border: 1px solid var(--line); }
.form-card h3 { font-size: 1.6rem; margin-bottom: 6px; }
.form-card > p { color: var(--muted); }
.ll-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-top: 24px; }
.ll-form .full { grid-column: 1 / -1; }
.ll-form label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 6px; }
.ll-form label .req { color: var(--red); }
.ll-form input, .ll-form select, .ll-form textarea {
  width: 100%; font: inherit; font-size: .98rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fbfcfd; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.ll-form input:focus, .ll-form select:focus, .ll-form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61,175,243,.15); background: #fff; }
.ll-form textarea { min-height: 140px; resize: vertical; }
.ll-form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); font-weight: 400; }
.ll-form .consent input { width: auto; margin-top: 4px; }
.ll-form .hp { position: absolute; left: -9999px; }
.ll-form button { justify-self: start; border: 0; }
.form-msg { padding: 16px 20px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; }
.form-msg.ok { background: #e8f8ef; color: #17663a; border: 1px solid #bfe9d0; }
.form-msg.err { background: #fff0ee; color: #a12a18; border: 1px solid #f6c9c1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); font-size: .95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--red) 0 50%, var(--blue) 50% 100%); }
.footer-top { padding: 80px 0 50px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 48px; }
.footer-brand img { height: 60px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; color: var(--blue); }
.footer-accred { display: flex; gap: 14px; align-items: center; margin-top: 24px; }
.footer-accred .cqc-box { background: #fff; border-radius: 8px; padding: 8px 10px; display: inline-flex; }
.footer-accred .cqc-box img { height: 40px; width: auto; }
.footer-accred .badge { border: 1px solid rgba(255,255,255,.2); border-radius: 8px; padding: 8px 12px; font-size: .8rem; line-height: 1.3; color: #fff; font-weight: 600; }
.footer-accred .badge small { display: block; color: rgba(255,255,255,.6); font-weight: 400; }
.site-footer .socials { margin-top: 22px; gap: 10px; }
.site-footer .socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.site-footer .socials a:hover { background: var(--red); }
.site-footer .socials svg { width: 17px; height: 17px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; font-size: .84rem; color: rgba(255,255,255,.55); }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom nav { display: flex; gap: 18px; }

/* back to top / mobile call */
.mobile-call { display: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .hero-slides .hero-bg.active, .hero-slides .hero-bg.leaving { animation: none; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .header-phone { display: none; }
  .main-nav > ul > li > a { padding: 10px 10px; font-size: .93rem; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .trust-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1020px) {
  :root { --header-h: 74px; }
  .logo img { height: 46px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease, visibility .3s; gap: 20px; visibility: hidden;
  }
  .admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { padding: 16px 4px; font-size: 1.1rem; justify-content: space-between; }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 8px; display: none; min-width: 0; }
  .main-nav li.open > .sub-menu { display: block; }
  .header-cta .btn { display: none; }
  .main-nav .mobile-only { display: flex; }
  .quick-tiles .grid { grid-template-columns: 1fr; }
  .quick-tile { border-right: 0; border-bottom: 1px solid var(--line); }
  .split { grid-template-columns: 1fr; gap: 56px; }
  .split.reverse .split-media { order: 0; }
  .cards, .cards.cols-4 { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 36px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .section-head.split { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1280px) { .main-nav .mobile-only { display: none; } }
@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar-left { display: none; }
  .topbar .container { justify-content: center; }
  .topbar-right .hide-sm { display: none; }
  .section { padding: 72px 0; }
  .hero .container { padding-top: 60px; padding-bottom: 130px; }
  .cards, .cards.cols-4, .cards.cols-2, .values, .trust-row { grid-template-columns: 1fr; }
  .check-list.cols-2 { grid-template-columns: 1fr; }
  .split-media .float-card { position: relative; right: auto !important; left: auto !important; bottom: auto; margin: -40px 16px 0; }
  .split-media .stack-img { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .ll-form { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .svc-card { min-height: 380px; }
  .mobile-call {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--red); color: #fff;
    justify-content: center; align-items: center; gap: 10px; padding: 14px; font-family: var(--font-head); font-weight: 700;
  }
  .mobile-call:hover { color: #fff; }
  .mobile-call svg { width: 20px; height: 20px; }
  .site-footer { padding-bottom: 52px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
}

/* FAQ accordion */
.faq { display: grid; gap: 12px; }
.faq-title { margin-bottom: 8px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-family: var(--font-head); font-weight: 700; color: var(--navy); position: relative; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 1.2rem; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 22px 18px; }
.faq-a p { margin: 0; color: var(--muted); }
.section.dark .faq summary { color: var(--navy); }

/* 4-up service cards */
.cards.cols-4 .svc-card { min-height: 420px; }
.cards.cols-4 .svc-card .inner { padding: 26px; }
.cards.cols-4 .svc-card h3 { font-size: 1.3rem; }

/* feature list (treatment centre / comms) */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.feature { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 24px; }
.feature .big { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: #fff; line-height: 1; }
.feature .big span { color: var(--red); }
.feature p { margin: 8px 0 0; color: rgba(255,255,255,.75); font-size: .95rem; }
.badge-soon { display: inline-block; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
@media (max-width: 1020px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .feature-grid { grid-template-columns: 1fr; } }

.main-nav > ul > li > a { white-space: nowrap; }
.feature .big svg { width: 38px; height: 38px; display: block; color: var(--blue); }
@media (max-width: 1360px) { .header-phone { display: none; } }

.header-cta .btn, .header-phone small, .header-phone a { white-space: nowrap; }

/* Header social icons (replaces old top bar) */
.header-socials .socials { gap: 8px; }
.header-socials .socials a { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); color: var(--navy); display: grid; place-items: center; transition: background .2s, color .2s; }
.header-socials .socials a:hover { background: var(--red); color: #fff; }
.header-socials .socials svg { width: 15px; height: 15px; }
@media (max-width: 1449px) { .header-socials { display: none; } }
.main-nav .mobile-socials { align-items: center; gap: 14px; margin-top: 8px; color: var(--muted); font-weight: 600; }
.mobile-socials .socials { gap: 10px; }
.mobile-socials .socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--navy); display: grid; place-items: center; }
.mobile-socials .socials svg { width: 17px; height: 17px; }
.site-header .logo { flex-shrink: 0; }
@media (max-width: 1639px) { .header-phone { display: none; } }
.site-header .container { max-width: none; padding: 0 32px; }

/* Burger menu below 1280px (nav no longer fits) */
@media (max-width: 1279px) {
  :root { --header-h: 74px; }
  .logo img { height: 46px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 20px 24px 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease, visibility .3s; gap: 20px; visibility: hidden;
  }
  .admin-bar .main-nav { top: calc(var(--header-h) + 46px); }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line); }
  .main-nav > ul > li > a { padding: 16px 4px; font-size: 1.1rem; justify-content: space-between; }
  .main-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px 8px; display: none; min-width: 0; }
  .main-nav li.open > .sub-menu { display: block; }
  .main-nav .mobile-only { display: flex; }
}
@media (max-width: 1020px) { .site-header .container { padding: 0 24px; } }

/* Our People */
.people { display: grid; gap: 64px; max-width: 1000px; margin: 0 auto; }
.person { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.person .role { display: inline-block; color: var(--red); font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.person h3 { font-size: 1.7rem; margin: 0 0 14px; }
.person p { color: var(--muted); }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; gap: 24px; } .person img { max-width: 260px; } }
.person h3 .post-nominals { font-size: .55em; font-weight: 600; color: var(--muted); margin-left: 6px; }

/* Testimonials – 3-column review cards */
.testimonials.grid3 { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.testimonials.grid3 .quote { padding: 30px 28px; display: flex; flex-direction: column; }
.testimonials.grid3 .quote:nth-child(3n+2) { border-top-color: var(--red); }
.testimonials.grid3 .quote:nth-child(3n+3) { border-top-color: var(--navy); }
.testimonials.grid3 .quote:nth-child(2) { border-top-color: var(--red); }
.testimonials.grid3 blockquote { font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.65; color: var(--ink); flex: 1; }
.testimonials.grid3 .who { justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--line); padding-top: 16px; }
.testimonials.grid3 .who .name, .testimonials.grid3 .who .src { display: flex; flex-direction: column; gap: 2px; }
.testimonials.grid3 .who .src { align-items: flex-end; text-align: right; }
.testimonials.grid3 .who strong { color: var(--navy); font-family: var(--font-head); }
.testimonials.grid3 .who small { font-size: .8rem; color: var(--muted); }
.reviews-link { text-align: center; margin-top: 32px; }
@media (max-width: 1020px) { .testimonials.grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .testimonials.grid3 { grid-template-columns: 1fr; } }

/* Cookie notice – small, non-blocking */
.ll-cookie { position: fixed; left: 20px; bottom: 20px; z-index: 95; max-width: 340px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 14px 16px; font-size: .86rem; line-height: 1.5; }
.ll-cookie[hidden] { display: none; }
.ll-cookie p { margin: 0 0 10px; }
.ll-cookie a { color: var(--blue-dark); text-decoration: underline; }
.ll-cookie-btns { display: flex; gap: 8px; }
.ll-cookie-btn { flex: 1; font: 600 .85rem var(--font-head); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.ll-cookie-btn.primary { background: var(--navy); color: #fff; }
.ll-cookie-btn:hover { opacity: .88; }
@media (max-width: 680px) { .ll-cookie { left: 12px; right: 12px; max-width: none; bottom: 64px; } }
