/* Hearwell — brand palette and type taken from the Hearwell leaflet */
:root {
  --cream: #f8f3ec;
  --linen: #efe4d6;
  --sand: #d8c0a4;
  --tan: #b8936f;
  --cocoa: #7a5034;
  --cocoa-dark: #5e3c26;
  --espresso: #3a2417;
  --white: #ffffff;
  --text: #3a2417;
  --muted: #6d5646;
  --line: #e2d3c1;
  --wa: #25d366;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --script: "Allura", "Brush Script MT", cursive;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --shadow: 0 18px 40px -24px rgba(58, 36, 23, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--cocoa); text-underline-offset: 3px; }
a:hover { color: var(--cocoa-dark); }
:focus-visible { outline: 3px solid var(--tan); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  color: var(--espresso);
  margin: 0 0 0.5em;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.measure { max-width: 66ch; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--linen { background: var(--linen); }
.section--white { background: #fdfaf5; } /* soft warm off-white: lighter than cream, less stark than pure white */

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--espresso); color: var(--cream); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* Tagline — the leaflet's own spaced subtitle; used once per page at most */
.tagline {
  font-family: var(--sans); font-weight: 500; font-size: 0.9rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cocoa);
  margin: 0 0 1.4rem;
}
.rule { width: 72px; height: 2px; background: var(--tan); border: 0; margin: 1.6rem 0; }

/* Highlighter for key selling points, e.g. "no travel fee" in the clinic boxes */
.hl, .way p strong.hl, .clinic-card p strong.hl {
  font-weight: 600; color: var(--espresso); white-space: nowrap;
  background: linear-gradient(transparent 52%, rgba(216, 192, 164, 0.7) 52%);
  padding: 0 0.15em; border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--sans); font-weight: 500; font-size: 1rem;
  padding: 0.95em 1.6em; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
  line-height: 1.2;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn--primary { background: var(--cocoa); color: var(--white); }
.btn--primary:hover { background: var(--cocoa-dark); color: var(--white); }
.btn--ghost { border-color: var(--cocoa); color: var(--cocoa); background: transparent; }
.btn--ghost:hover { background: var(--cocoa); color: var(--white); }
.btn--light { background: var(--cream); color: var(--espresso); }
.btn--light:hover { background: var(--white); color: var(--espresso); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 243, 236, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--espresso); flex-shrink: 0; }
.brand img { width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--sans); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.16em; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--cocoa); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav a, .nav button.nav-parent {
  display: block; padding: 10px 14px; border-radius: 8px;
  font: 500 0.98rem var(--sans); color: var(--espresso); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.nav-parent:hover { background: var(--linen); color: var(--espresso); }
.nav a[aria-current="page"] { color: var(--cocoa); box-shadow: inset 0 -2px 0 var(--tan); border-radius: 0; }
.has-sub { position: relative; }
.nav-parent::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-3px) rotate(45deg); }
.submenu {
  list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  display: none;
}
.has-sub.is-open .submenu { display: block; }
/* Mid-size desktops: tighten link spacing so the six menu items fit beside the logo and call button */
@media (min-width: 1201px) and (max-width: 1440px) {
  .nav a, .nav button.nav-parent { padding: 10px 9px; font-size: 0.95rem; }
  .header-call { margin-left: 4px; padding: 0.7em 1.05em; }
}
@media (hover: hover) and (min-width: 1201px) {
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: block; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }
}
.header-call { margin-left: 10px; padding: 0.75em 1.25em; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--espresso); }
.menu-toggle svg { width: 28px; height: 28px; }

.nav a, .nav button.nav-parent, .brand-sub, .header-call { white-space: nowrap; }
@media (max-width: 1200px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--cream); }
  .nav { visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s !important; }
  .nav.is-open { visibility: visible; transition: transform .3s ease !important; }
  .menu-toggle { display: block; }
  .header-call { display: none; }
  .nav {
    position: fixed; inset: 84px 0 0 0; background: var(--cream);
    flex-direction: column; align-items: stretch; padding: 16px var(--gutter) 40px;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a, .nav button.nav-parent { font-size: 1.25rem; padding: 14px 6px; width: 100%; text-align: left; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; background: transparent; }
  .submenu a { font-size: 1.1rem; }
  .nav .header-call-mobile { display: inline-flex; margin-top: 24px; justify-content: center; }
}
.nav .header-call-mobile { display: none; background: var(--cocoa); color: var(--white); border: 0; border-radius: 999px; padding: 16px 24px; }
@media (max-width: 1200px) { .nav .header-call-mobile { display: inline-flex; margin-top: 24px; justify-content: center; } }

/* Hero (home) — video with the leaflet's cream wash and wave edge */
.hero { position: relative; background: var(--cream); overflow: hidden; }
.hero-media {
  position: absolute; inset: 0 0 0 40%;
  /* Gentle fade: stays mostly cream where the end of the text sits, full strength further right */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 15%, rgba(0,0,0,.72) 27%, #000 38%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 15%, rgba(0,0,0,.72) 27%, #000 38%);
}
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-media video { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.hero-media video.is-active { opacity: 1; }
/* Desktop: slide the ear-check clip right so the patient sits clear of the faded edge */
.hero-media video:first-child { object-position: 53% center; }
/* Consultation clip is landscape (1280×720); centred keeps the Hearwell clipboard clear of the faded edge */
.hero-media video.hero-clip-consult { object-position: 50% center; }
.hero .wrap { position: relative; z-index: 2; }
.hero-copy { max-width: 560px; padding: clamp(72px, 11vw, 150px) 0 clamp(120px, 14vw, 190px); }
/* Home hero: the H1 is the small keyword line ("Mobile ear wax removal in Leicester", styled as .tagline);
   the big slogan below it is a styled paragraph so search engines read the H1 as what Hearwell does. */
.hero h1.tagline { line-height: 1.5; letter-spacing: 0.22em; margin: 0 0 1.4rem; }
.hero-slogan {
  font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--espresso); letter-spacing: -0.005em;
  font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 0 0 0.35em;
}
.hero-slogan span { display: block; }
/* Soft cream halo so text stays crisp where it meets the video */
.hero-copy h1, .hero-copy .hero-slogan, .hero-copy .tagline, .hero-copy .lede { text-shadow: 0 0 2px var(--cream), 0 0 10px var(--cream), 0 0 22px var(--cream); }
.hero-copy .lede { color: #4f3726; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; width: 100%; height: clamp(60px, 9vw, 130px); }
.hero-intro { animation: rise 1s ease-out both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.video-toggle {
  position: absolute; right: var(--gutter); bottom: clamp(80px, 11vw, 150px); z-index: 4;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(58,36,23,0.55); color: var(--cream); display: grid; place-items: center;
}
.video-toggle svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .hero-media { position: relative; inset: auto; height: 62vw; min-height: 260px;
    -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 30%); mask-image: linear-gradient(0deg, transparent 0%, #000 30%); }
  .hero-copy { max-width: 560px; padding: 8px 0 110px; }
  .hero-media video:first-child { object-position: 60% center; }
  .video-toggle { top: calc(62vw - 60px); bottom: auto; }
}
@media (max-width: 420px) { .video-toggle { top: 200px; } }

/* Page hero (inner pages) */
.page-hero { position: relative; padding: clamp(56px, 8vw, 100px) 0 clamp(90px, 11vw, 140px); background: var(--linen); overflow: hidden; }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.page-hero-img { border-radius: 200px 200px var(--radius) var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 4.4; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--simple .wrap { grid-template-columns: 1fr; }
.page-hero .hero-wave { color: var(--cream); }
.page-hero--to-white .hero-wave { color: var(--white); }
@media (max-width: 860px) {
  .page-hero .wrap { grid-template-columns: 1fr; }
  .page-hero-img { max-width: 460px; aspect-ratio: 4 / 3.4; border-radius: 160px 160px var(--radius) var(--radius); }
}

/* Welcome */
.welcome-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
/* Aside items (portrait, script lines, circle) share one centre line */
.welcome-aside { border-left: 1px solid var(--line); padding-left: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; align-items: center; }
.script {
  font-family: var(--script); font-size: clamp(2.2rem, 3.4vw, 2.7rem); line-height: 1.02; text-align: center;
  color: var(--espresso); margin: 0 0 1.1rem; transform: rotate(-5deg); transform-origin: center;
}
.script span { display: block; }
.come-to-you {
  width: min(100%, 200px); aspect-ratio: 1; border-radius: 50%;
  background: var(--sand); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
}
.come-to-you svg { width: 28px; height: 28px; color: var(--cocoa-dark); }
.come-to-you h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; margin: 4px 0 6px; }
.come-to-you ul { list-style: none; padding: 0; margin: 0; text-align: left; font-size: 0.9rem; }
.come-to-you-link { margin-top: 6px; font-size: 0.85rem; font-weight: 600; color: var(--cocoa-dark); text-decoration: underline; text-underline-offset: 3px; }
.come-to-you-link:hover { color: var(--espresso); }
.come-to-you li { padding-left: 22px; position: relative; line-height: 1.5; }
.come-to-you li::before { content: ""; position: absolute; left: 4px; top: 0.3em; width: 5px; height: 10px; border: solid var(--cocoa-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.welcome-portrait {
  margin: 0 0 2rem; width: min(100%, 210px); aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 160px 160px var(--radius) var(--radius); box-shadow: var(--shadow); background: var(--linen);
}
.welcome-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transition: transform .5s ease; }
.welcome-portrait-link { display: block; width: min(100%, 210px); margin-bottom: 1.3rem; text-decoration: none; color: var(--cocoa); }
.welcome-portrait-link .welcome-portrait { margin: 0 0 10px; }
.welcome-portrait-link:hover .welcome-portrait img { transform: scale(1.03); }
.welcome-portrait-caption { display: block; text-align: center; font-weight: 500; letter-spacing: 0.02em; }
.nowrap { white-space: nowrap; }
.welcome-portrait-link:hover .welcome-portrait-caption { color: var(--cocoa-dark); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-aside { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 36px; flex-direction: column; align-items: center; gap: 24px; }
  .script { margin: 0; }
  .welcome-portrait { margin: 0; width: min(100%, 220px); }
  .welcome-portrait-link { margin-bottom: 0; width: min(100%, 220px); }
  .welcome-portrait-link .welcome-portrait { margin-bottom: 10px; }
}

/* Services */
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.services-head p { max-width: 46ch; margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.service {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
.service-img { aspect-ratio: 16 / 10; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.service:hover .service-img img { transform: scale(1.03); }
.service-body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; }
.service-body p { color: var(--muted); }
.service-price { font-family: var(--serif); font-size: 1.35rem; color: var(--cocoa); margin-bottom: 1rem; }
.service .btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 760px) { .service-grid { grid-template-columns: 1fr; } }

/* Home: "Two ways to be seen" (home visits first, Wigston clinic second) */
.ways { margin-top: clamp(36px, 5vw, 56px); }
.ways-title { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 0 0 18px; }
.ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.way {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px); display: flex; flex-direction: column; align-items: flex-start;
}
.way--main { border: 2px solid var(--tan); box-shadow: var(--shadow); }
.way-badge {
  position: absolute; top: -13px; left: 24px; background: var(--cocoa); color: var(--cream);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.way-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--sand); color: var(--cocoa-dark); display: grid; place-items: center; margin-bottom: 12px; }
.way-icon svg { width: 26px; height: 26px; }
/* Home "Two ways to be seen": larger icon, centred in the card */
.way > .way-icon { align-self: center; width: 84px; height: 84px; margin-bottom: 18px; }
.way > .way-icon svg { width: 42px; height: 42px; }
.way h4 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 6px; color: var(--espresso); }
.way p { color: var(--muted); margin: 0 0 18px; flex: 1; }
.way p strong { color: var(--espresso); font-weight: 600; }
.way .btn, .clinic-card .btn { text-align: center; justify-content: center; flex-wrap: wrap; column-gap: 0.3em; }
@media (max-width: 760px) { .ways-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Areas We Cover: Wigston clinic card */
.clinic-card {
  margin-top: 24px; background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px); display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
}
.clinic-card .way-icon { margin: 0; width: 84px; height: 84px; }
.clinic-card .way-icon svg { width: 42px; height: 42px; }
.clinic-card h3 { margin: 0 0 6px; font-size: 1.4rem; }
.clinic-card p { margin: 0; color: var(--muted); }
.clinic-card p strong { color: var(--espresso); font-weight: 600; }
@media (max-width: 900px) { .clinic-card { grid-template-columns: auto 1fr; } .clinic-card .btn { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 520px) { .clinic-card { grid-template-columns: 1fr; } .clinic-card .way-icon { justify-self: center; } }

/* Why choose us — icon circles from the leaflet */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 48px; }
.why-item { text-align: center; padding: 30px 22px; }
.why-item:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.why-item:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
.icon-circle {
  width: 76px; height: 76px; border-radius: 50%; background: var(--cocoa); color: var(--cream);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.icon-circle svg { width: 36px; height: 36px; }
.why-item h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 500; line-height: 1.4; margin: 0; }
@media (max-width: 760px) {
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item { border: 0 !important; padding: 22px 10px; }
  .icon-circle { width: 64px; height: 64px; }
}
.center { text-align: center; }
.center .lede, .center .measure { margin-left: auto; margin-right: auto; }
.center .btn-row { justify-content: center; }

/* Booking band — dark, as the leaflet footer */
.band {
  position: relative; background: linear-gradient(135deg, var(--cocoa-dark), var(--espresso) 70%);
  color: var(--cream); overflow: hidden;
}
.band h2 { color: var(--cream); }
.band p { color: #e9dccd; }
.band .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.band-mark { position: absolute; right: -60px; bottom: -80px; width: 420px; opacity: 0.12; pointer-events: none; }
.band-script { font-family: var(--script); font-size: clamp(2.4rem, 4vw, 3.2rem); color: var(--sand); margin: 0; }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* Reviews */
.reviews-panel {
  margin-top: 40px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.reviews-panel .g-logo { width: 56px; height: 56px; }
.reviews-panel p { margin: 0; color: var(--muted); }
.reviews-panel strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--espresso); font-weight: 600; }
@media (max-width: 760px) { .reviews-panel { grid-template-columns: 1fr; text-align: left; } }
.reviews-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.reviews-img { aspect-ratio: 5 / 4; }
.reviews-img img { object-position: 30% center; }
.reviews-widget { margin-top: 28px; min-height: 120px; }
.reviews-panel--stack { grid-template-columns: auto 1fr; margin-top: 28px; }
.reviews-panel--stack .btn { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } .reviews-img { max-width: 520px; } }
@media (max-width: 760px) { .reviews-panel--stack { grid-template-columns: 1fr; } }

/* Home: hand-picked Google review cards */
.reviews-head { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 40px); }
.reviews-head h2 { margin: 0; }
/* Photo beside the heading and rating badge */
.reviews-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(28px, 4vw, 44px); }
.reviews-intro .reviews-head { flex-direction: column; align-items: flex-start; justify-content: center; margin-bottom: 0; }
.reviews-intro .reviews-head { gap: 0; }
.reviews-intro .rule { margin: 18px 0 20px; }
.reviews-rating { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 10px; color: var(--muted); font-size: 1.05rem; }
.reviews-rating strong { color: var(--espresso); font-size: 1.25rem; }
.reviews-lede { margin: 0; color: var(--muted); max-width: 34ch; line-height: 1.6; }
/* When the carousel stacks, its summary panel sits right below, so don't repeat the stars */
@media (max-width: 900px) { .reviews-rating { display: none; } .reviews-lede { max-width: none; } }
.reviews-photo { aspect-ratio: 16 / 11; }
.reviews-photo img { object-position: 45% 30%; }
@media (max-width: 760px) { .reviews-intro { grid-template-columns: 1fr; } .reviews-photo { aspect-ratio: 4 / 3; } }
.stars { color: #e7a417; letter-spacing: 0.08em; font-size: 1.05rem; line-height: 1; }
.reviews-more { margin-top: clamp(24px, 3vw, 36px); text-align: center; }

/* Reviews carousel (Trustindex-style): summary panel + sliding cards. Behaviour: "Reviews carousel" in main.js */
.rv-carousel { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(20px, 3vw, 32px); align-items: center; }
.rv-carousel > * { min-width: 0; }
.rv-stars { color: #f2ab1b; letter-spacing: 0.06em; font-size: 1.05rem; line-height: 1; }
.rv-summary { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.rv-excellent { font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1.2rem; color: var(--espresso); }
.rv-stars--big { font-size: 1.7rem; }
.rv-summary p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.rv-summary p strong { color: var(--espresso); }
.rv-google { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--espresso); }
.rv-google svg { width: 24px; height: 24px; }
.rv-review-btn { margin-top: 10px; padding: 0.75em 1.25em; font-size: 0.95rem; }
.rv-slider { position: relative; }
.rv-track {
  list-style: none; margin: 0; padding: 4px 2px 10px; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rv-track::-webkit-scrollbar { display: none; }
.rv-card {
  scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 20px 18px; box-shadow: 0 6px 18px rgba(58, 36, 23, 0.06); display: flex; flex-direction: column; gap: 10px;
}
.rv-head { display: flex; align-items: center; gap: 10px; }
.rv-avatar { width: 42px; height: 42px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 1.1rem; flex: none; }
.rv-who { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.rv-who strong { color: var(--espresso); font-weight: 600; }
.rv-who small { color: var(--muted); font-size: 0.8rem; }
.rv-g { width: 22px; height: 22px; flex: none; }
.rv-card blockquote { margin: 0; }
.rv-text { margin: 0; color: var(--espresso); line-height: 1.6; font-size: 0.97rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rv-card.is-open .rv-text { display: block; -webkit-line-clamp: unset; overflow: visible; }
.rv-more {
  align-self: flex-start; background: none; border: 0; padding: 0; color: var(--cocoa); font: inherit; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.rv-arrow {
  position: absolute; top: calc(50% - 12px); transform: translateY(-50%); z-index: 1; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); color: var(--espresso);
  font-size: 1.5rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px;
}
.rv-arrow:hover { background: var(--cocoa); color: var(--white); }
.rv-prev { left: -20px; }
.rv-next { right: -20px; }
.rv-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.rv-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: var(--sand); cursor: pointer; transition: width .2s, background-color .2s; }
.rv-dots button.is-on { width: 22px; background: var(--cocoa); }
@media (max-width: 980px) { .rv-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 900px) {
  .rv-carousel { grid-template-columns: 1fr; }
  .rv-arrow { display: none; }
}
@media (max-width: 640px) { .rv-track { grid-auto-columns: 86%; } }

/* Content sections on service pages */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.split-img img, .split-img video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split-img { max-height: 520px; } }
/* Ear Wax Removal page: keep the equipment photo modest on desktop so the two columns stay balanced */
.equipment-img { width: min(100%, 340px); aspect-ratio: 896 / 975; }
/* Ear Wax Removal: side by side, the equipment photo stretches so its bottom lines up with the "Think it might be wax?" card */
@media (min-width: 861px) {
  .split--align-bottom { align-items: stretch; }
  .split--align-bottom > div { display: flex; flex-direction: column; }
  .split--align-bottom .cta-card { margin-top: auto; }
  .split--align-bottom .equipment-img { aspect-ratio: auto; flex: 1 1 0; min-height: 280px; position: relative; }
  .split--align-bottom .equipment-img img { position: absolute; inset: 0; }
}
@media (max-width: 860px) { .equipment-img { width: 100%; } }

.symptoms { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.symptoms li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 14px 46px; position: relative; line-height: 1.45; }
.symptoms li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--tan); }
@media (max-width: 560px) { .symptoms { grid-template-columns: 1fr; } }
.note { border-left: 3px solid var(--tan); padding: 4px 0 4px 18px; color: var(--muted); font-style: italic; }

/* Areas We Cover: postcode checker card and district lists */
.postcode-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 36px); }
.postcode-card h2 { font-size: clamp(1.7rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.postcode-card > p { margin: 0 0 16px; color: var(--muted); }
.postcode-form { display: flex; gap: 10px; }
.postcode-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--cream); color: var(--espresso);
}
.postcode-form input:focus { outline: 2px solid var(--cocoa); outline-offset: 2px; }
.postcode-result:empty { display: none; }
.postcode-result { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); background: var(--linen); }
.postcode-result.is-yes { background: #eef3e8; }
.postcode-result p { margin: 0 0 6px; color: var(--muted); }
.postcode-result .postcode-result-title { color: var(--espresso); font-weight: 600; font-size: 1.1rem; }
.postcode-result .btn-row { margin-top: 12px; gap: 10px; }
.area-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 2.2rem; align-items: start; }
.area-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 18px rgba(58, 36, 23, 0.05); }
.area-group h3 { font-size: 1.35rem; margin: 0 0 10px; }
.area-group--note { background: var(--linen); border-color: transparent; box-shadow: none; }
.area-group--note p { color: var(--muted); }
.districts { list-style: none; padding: 0; margin: 0; }
.districts li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding: 10px 8px; border-top: 1px solid var(--line); border-radius: 8px; transition: background .3s; }
.districts li:first-child { border-top: 0; }
.districts strong { color: var(--cocoa); font-weight: 600; }
.districts span { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.districts li.is-match { background: #eef3e8; }
@media (max-width: 980px) { .area-groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .area-groups { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .postcode-form { flex-direction: column; } }

/* Meet Your Audiologist: "Experience at a glance" card and closing script line */
.glance-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow); margin-top: 8px;
}
.glance-card h3 { margin: 0 0 6px; }
.glance-card ul { list-style: none; padding: 0; margin: 0; }
.glance-card li { position: relative; padding: 14px 0 14px 30px; border-top: 1px solid var(--line); }
.glance-card li:first-child { border-top: 0; }
.glance-card li::before { content: ""; position: absolute; left: 6px; top: 1.15em; width: 6px; height: 12px; border: solid var(--cocoa); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.glance-card strong { display: block; color: var(--espresso); font-weight: 600; }
.glance-card span { display: block; color: var(--muted); font-size: 0.95rem; }
.story-quote { font-family: var(--script); font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--cocoa); line-height: 1.15; margin: 1.6rem 0 0; }

/* Meet Your Audiologist: qualification cards */
.qual-grid { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.qual {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: 0 6px 18px rgba(58, 36, 23, 0.05);
}
.qual .icon-circle { margin: 0 auto 16px; }
/* Logo area: fixed height so cards with logos and icons line up */
.qual-logo { height: 76px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.qual-logo img { max-height: 76px; max-width: min(100%, 190px); width: auto; height: auto; border-radius: 4px; }
.qual .icon-circle { width: 76px; height: 76px; }
.qual h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; line-height: 1.35; margin: 0 0 8px; }
.qual p { margin: 0; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 980px) { .qual-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .qual-grid { grid-template-columns: 1fr; } }

/* Numbered steps: each step is a light card with the number in a brown circle (echoes the "Why choose us" icons) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 20px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: 0 6px 18px rgba(58, 36, 23, 0.05);
}
.steps li::before {
  content: counter(step); width: 52px; height: 52px; border-radius: 50%;
  background: var(--cocoa); color: var(--cream); display: grid; place-items: center;
  font-family: var(--sans); font-size: 1.25rem; font-weight: 500; line-height: 1; font-variant-numeric: lining-nums;
}
.steps li > div { padding-top: 4px; }
@media (max-width: 520px) {
  .steps li { grid-template-columns: 42px 1fr; gap: 14px; padding: 18px; }
  .steps li::before { width: 42px; height: 42px; font-size: 1.1rem; }
}
.steps h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; margin: 0 0 6px; line-height: 1.35; }
.steps p { margin: 0; color: var(--muted); max-width: 70ch; }

.prep-card { background: var(--white); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow); }
.prep-card .big { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--espresso); line-height: 1.25; margin-bottom: 1rem; }

/* Pricing */
.price-table { width: 100%; border-collapse: collapse; margin: 1.6rem 0 2rem; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.price-table th, .price-table td { padding: 20px 26px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.price-table th { font-weight: 500; }
.price-table td { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--cocoa); text-align: right; white-space: nowrap; }
.policies { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cta-card { margin-top: 32px; background: var(--linen); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); }
.cta-card h3 { margin: 0 0 8px; }
.cta-card p { margin: 0; color: var(--muted); }
.cta-card .btn-row { margin-top: 1.2rem; gap: 12px; }
.policy { background: var(--linen); border-radius: var(--radius); padding: 24px; }
.policy h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; line-height: 1.35; }
.policy p { margin: 0; font-size: 0.98rem; color: var(--muted); }
@media (max-width: 860px) { .policies { grid-template-columns: 1fr; } }
/* Pricing section: heading + prices side by side, then policies as a full-width 2×2 grid */
.pricing-top { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.pricing-top .price-table { margin: 0; }
.policies-title { margin: clamp(36px, 5vw, 52px) 0 18px; }
.policies--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .pricing-top { grid-template-columns: 1fr; gap: 8px; }
  .pricing-top .price-table { margin-top: 1rem; }
  .policies--2 { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--espresso); line-height: 1.25;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 10px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border: solid var(--cocoa); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-item .answer { padding: 0 0 26px; color: var(--muted); max-width: 68ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
/* Desktop: both columns end level. The message box is kept short; whichever column is shorter stretches
   (the "Get in touch" card fills to the form's height, or the message box grows if the card is taller). */
@media (min-width: 901px) {
  .contact-grid { align-items: stretch; }
  .form-card, #contact-form { display: flex; flex-direction: column; }
  #contact-form { flex: 1; }
  #contact-form .field:has(textarea) { flex: 1; }
  #contact-form .field textarea { flex: 1; min-height: 96px; }
  .contact-grid > div:last-child { display: flex; flex-direction: column; }
  .contact-grid > div:last-child > .info-card { flex: 1; }
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label, fieldset legend { font-weight: 500; font-size: 0.98rem; margin-bottom: 6px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.req { color: var(--cocoa); }
.field input, .field textarea {
  font: inherit; color: var(--text); background: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--tan); border-color: var(--tan); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.form-status { margin-top: 14px; font-weight: 500; }
.honey { position: absolute; left: -9999px; }

.info-card { background: var(--espresso); color: var(--cream); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); }
.info-card h2 { color: var(--cream); font-size: 2rem; }
.info-card dl { margin: 0; }
.info-card dt { font-size: 0.9rem; color: var(--sand); margin-top: 20px; }
.info-card dd { margin: 2px 0 0; font-size: 1.15rem; }
.info-card a { color: var(--cream); }
.info-card .dd-prices { font-size: 1.02rem; line-height: 1.5; }
.info-card .dd-prices a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sand); }
.info-card .dd-prices small { display: block; color: var(--sand); font-size: 0.88rem; margin-top: 4px; }
/* Blog */
.empty-state { max-width: 640px; margin: 0 auto; text-align: center; }
.empty-state img { width: 90px; margin: 0 auto 24px; opacity: .9; }

/* Footer */
.site-footer { position: relative; background: var(--espresso); color: #e7d9c9; padding: 0 0 28px; margin-top: 0; }
.footer-wave { display: block; width: 100%; height: clamp(50px, 7vw, 100px); color: var(--espresso); margin-bottom: -1px; }
.footer-wave-wrap { background: var(--cream); line-height: 0; }
.footer-wave-wrap--white { background: var(--white); }
.footer-wave-wrap--linen { background: var(--linen); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; padding: 40px 0 44px; }
.footer-brand img { width: 64px; margin-bottom: 12px; }
.footer-brand .brand-name { color: var(--cream); display: block; }
.footer-brand .brand-sub { color: var(--sand); display: block; }
.footer-script { font-family: var(--script); font-size: 2.2rem; color: var(--sand); margin: 18px 0 0; line-height: 1; }
.site-footer h2 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--cream); margin-bottom: 14px; letter-spacing: 0.04em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer ul + h2 { margin-top: 26px; }
.site-footer a { color: #e7d9c9; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(231,217,201,.35); display: grid; place-items: center; }
.socials a:hover { background: var(--cocoa); border-color: var(--cocoa); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid rgba(231,217,201,.18); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 0.9rem; color: #c8b5a2; }
.footer-bottom .hcpc-mini { display: flex; align-items: center; gap: 10px; }
.footer-bottom .hcpc-mini img { width: 44px; border-radius: 3px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* WhatsApp widget */
.wa-launch {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  background: var(--wa); color: #fff; border: 0; border-radius: 999px; cursor: pointer;
  font: 500 0.98rem var(--sans); box-shadow: 0 10px 24px -8px rgba(0,0,0,.35);
}
.wa-launch svg { width: 28px; height: 28px; }
.wa-launch:hover { background: #1fb956; }
.wa-panel {
  position: fixed; right: 20px; bottom: 88px; z-index: 91; width: min(360px, calc(100vw - 32px));
  border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -16px rgba(0,0,0,.4);
  background: #efeae2; display: none; flex-direction: column;
}
.wa-panel.is-open { display: flex; animation: rise .25s ease-out; }
.wa-head { background: #075e54; color: #fff; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.wa-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; flex: none; }
.wa-avatar img { width: 30px; }
.wa-head strong { display: block; font-weight: 500; }
.wa-head small { opacity: .85; font-size: 0.8rem; }
.wa-close { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: 6px; }
.wa-close svg { width: 20px; height: 20px; }
.wa-body {
  padding: 22px 16px; min-height: 190px;
  background-color: #efeae2;
  background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
  background-size: 14px 14px;
}
.wa-bubble { background: #fff; border-radius: 0 10px 10px 10px; padding: 9px 12px 6px; max-width: 85%; box-shadow: 0 1px 1px rgba(0,0,0,.08); font-size: 0.98rem; line-height: 1.45; position: relative; }
.wa-bubble time { display: block; text-align: right; font-size: 0.72rem; color: #8a8a8a; margin-top: 2px; }
.wa-form { display: flex; gap: 8px; padding: 10px; background: #f0f0f0; }
.wa-form input { flex: 1; border: 0; border-radius: 999px; padding: 12px 16px; font: inherit; font-size: 0.98rem; min-width: 0; }
.wa-form button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #00a884; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.wa-form button svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .wa-launch span { display: none; } .wa-launch { padding: 14px; } }

/* Cookie banner */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 95; width: min(440px, calc(100vw - 40px));
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 50px -18px rgba(58,36,23,.45);
  padding: 22px 24px; display: none;
}
.cookie.is-open { display: block; animation: rise .35s ease-out; }
.cookie h2 { font-family: var(--sans); font-size: 1.1rem; font-weight: 600; margin: 0 0 6px; }
.cookie p { font-size: 0.95rem; color: var(--muted); margin: 0 0 14px; line-height: 1.55; }
.cookie .btn { padding: 0.7em 1.3em; font-size: 0.95rem; }
.cookie .btn-row { margin-top: 0; gap: 10px; }
@media (max-width: 520px) { .cookie { left: 10px; right: 10px; bottom: 84px; width: auto; } }

.prose h2 { margin-top: 1.6em; font-size: 2rem; }
.prose { max-width: 70ch; }
/* Articles and the privacy page: keep the text column left-aligned with the page title above it */
.wrap.prose { max-width: var(--wrap); }
.wrap.prose > * { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose a { color: var(--cocoa); text-underline-offset: 3px; }

/* Blog: listing cards and article details */
.post-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.post-card a { display: flex; flex-direction: column; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 6px 18px rgba(58, 36, 23, 0.05); transition: box-shadow .3s, transform .3s; }
.post-card a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--linen); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: clamp(20px, 2.6vw, 28px); display: flex; flex-direction: column; flex: 1; }
.post-card-body h2 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); margin: 0 0 8px; }
.post-card-body p { color: var(--muted); margin: 0 0 14px; }
.post-more { margin-top: auto; font-weight: 600; color: var(--cocoa); }
.post-meta { font-size: 0.9rem; color: var(--muted); letter-spacing: 0.02em; margin: 0 0 8px; }
.page-hero .post-meta { margin-top: 12px; }
.tagline a { color: inherit; text-decoration: none; }
.tagline a:hover { text-decoration: underline; text-underline-offset: 3px; }
.callout { background: var(--white); border-left: 4px solid var(--tan); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; font-size: 1.1rem; }
.table-scroll { overflow-x: auto; margin: 0 0 1.4em; }
.compare-table { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px rgba(58, 36, 23, 0.05); }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { background: var(--linen); font-weight: 600; color: var(--espresso); }
.compare-table tbody th { font-weight: 500; color: var(--espresso); }
.compare-table td { color: var(--muted); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .compare-table { min-width: 0; font-size: 0.9rem; }
  .compare-table th, .compare-table td { padding: 10px 10px; }
}
.prose li { margin-bottom: 0.6em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
