/* ==========================================================================
   Serenity Vets: homepage review prototype
   Brand values verified from https://serenityvets.co.uk/wp-content/uploads/elementor/css/post-10.css
   ========================================================================== */

/* Fonts (self-hosted, latin subset, only the weights in use) */
@font-face {
  font-family: "DM Serif Display";
  src: url("../fonts/dm-serif-display-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Tokens */
:root {
  /* Brand colours: exact source values */
  --magenta: #F60FE7;        /* accent: details, markers, rules only */
  --slate: #3E455F;          /* text, primary buttons, dark surfaces */
  --paper: #FEFBF8;          /* main page background */
  --sand: #F6F0EA;           /* alternating section */
  --mist: #E5F2F2;           /* calm information section */
  --white: #FFFFFF;

  /* Derived treatments (documented in HANDOVER.md) */
  --ink: var(--slate);
  --ink-soft: #5A5F74;                       /* slate at 85% on light: >= 5.5:1 */
  --on-dark-soft: #D8DADF;                   /* white at 80% on slate: 6.8:1 */
  --rule: rgba(62, 69, 95, 0.16);
  --rule-strong: rgba(62, 69, 95, 0.32);
  --magenta-wash: rgba(246, 15, 231, 0.08);
  --focus-halo: rgba(246, 15, 231, 0.38);

  /* Type */
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 1.0625rem;                             /* 17px */
  --fs-small: 0.9375rem;                            /* 15px */
  --fs-lead: clamp(1.1875rem, 1.05rem + 0.6vw, 1.4375rem);
  --fs-h3: clamp(1.375rem, 1.22rem + 0.6vw, 1.625rem);
  --fs-h2: clamp(2rem, 1.6rem + 1.7vw, 3.1rem);
  --fs-h1: clamp(2.35rem, 1.75rem + 2.6vw, 4.1rem);
  --lh-body: 1.7;
  --lh-tight: 1.12;
  --measure: 64ch;

  /* Space (8px base) */
  --s-1: 0.5rem;
  --s-2: 1rem;
  --s-3: 1.5rem;
  --s-4: 2rem;
  --s-5: 3rem;
  --s-6: 4rem;
  --s-7: 6rem;
  --section-y: clamp(4rem, 2.8rem + 5vw, 7.5rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 2.5rem);

  /* Layout */
  --container: 1200px;
  --header-h: 84px;
  --bar-h: 0px;

  /* Shape */
  --r-sm: 6px;
  --r-md: 14px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
  --t-slow: 1400ms;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: calc(var(--bar-h) + 16px);
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 var(--s-2); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; }
strong { font-weight: 500; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: var(--lh-tight);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
p, li { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--slate);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--focus-halo);
  border-radius: var(--r-sm);
}
main:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: var(--s-2);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--slate);
  color: var(--white);
  font-weight: 500;
  border-radius: var(--r-sm);
  text-decoration: none;
}
.skip-link:focus { top: var(--s-2); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Type helpers */
.h2 { font-size: var(--fs-h2); margin-bottom: var(--s-3); }
.h3 { font-size: var(--fs-h3); margin-bottom: var(--s-1); }
.h3--small { font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4rem); }
.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  max-width: 36ch;
}

/* Buttons and links */
.btn {
  --btn-bg: var(--slate);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid var(--btn-bg);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 1rem/1.2 var(--font-body);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
/* The magenta detail: a short underline that widens on hover/focus */
.btn--primary::after,
.btn--light::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--magenta);
  transform: translateX(-50%);
  transition: width var(--t-med) var(--ease);
}
.btn--primary:hover::after,
.btn--primary:focus-visible::after,
.btn--light:hover::after,
.btn--light:focus-visible::after { width: calc(100% - 3rem); }
.btn--primary:hover { --btn-bg: #333A51; }
.btn--secondary {
  --btn-bg: transparent;
  --btn-fg: var(--slate);
  border-color: var(--rule-strong);
}
.btn--secondary:hover { border-color: var(--slate); background: var(--white); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--slate); }
.btn--light:hover { --btn-bg: var(--white); }
.btn--large { min-height: 56px; padding: 0.9rem 1.85rem; font-size: 1.0625rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--slate);
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-underline-offset var(--t-fast) var(--ease);
}
.text-link:hover { text-underline-offset: 9px; }

p a:not(.btn) {
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
/* No backdrop-filter here: it would become the containing block for the fixed mobile menu */
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: var(--header-h);
}
.brand { display: block; flex: none; margin-right: auto; border-radius: var(--r-sm); }
.brand img { width: auto; height: 66px; }

.site-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.15rem 0.25rem; }
.site-nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.7rem;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--r-sm);
  background-image: linear-gradient(var(--magenta), var(--magenta));
  background-size: 0 2px;
  background-position: 50% 85%;
  background-repeat: no-repeat;
  transition: background-size var(--t-med) var(--ease);
}
.site-nav__list a:hover { background-size: calc(100% - 1.4rem) 2px; }
.site-nav__contact { display: none; }

.menu-toggle { display: none; }
.header-cta { flex: none; min-height: 46px; padding-inline: 1.25rem; font-size: var(--fs-small); }

/* Collapsed navigation (only when JS is available) */
@media (max-width: 1179px) {
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    order: 3;
    min-height: 46px;
    min-width: 46px;
    padding: 0 0.9rem;
    border: 1.5px solid var(--rule-strong);
    border-radius: var(--r-pill);
    background: transparent;
    color: var(--slate);
    font: 500 var(--fs-small)/1 var(--font-body);
    cursor: pointer;
  }
  .menu-toggle__bars,
  .menu-toggle__bars::before,
  .menu-toggle__bars::after {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--t-med) var(--ease), opacity var(--t-fast);
  }
  .menu-toggle__bars { position: relative; }
  .menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle__bars::before { top: -6px; }
  .menu-toggle__bars::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 49;
    display: flex;
    flex-direction: column;
    gap: var(--s-4);
    padding: var(--s-4) var(--gutter) calc(var(--s-5) + var(--bar-h));
    background: var(--paper);
    border-top: 1px solid var(--rule);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease), visibility 0s;
  }
  .js .site-nav__list { flex-direction: column; gap: 0; max-width: 520px; }
  .js .site-nav__list li { border-bottom: 1px solid var(--rule); }
  .js .site-nav__list a {
    width: 100%;
    min-height: 60px;
    padding: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.6rem;
    background-position: 0 80%;
  }
  .js .site-nav__list a:hover { background-size: 2.5rem 2px; }
  .js .site-nav__contact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-1); }

  /* No-JS fallback: show links in a wrapping row below the logo */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: var(--s-1); }
  html:not(.js) .site-nav { order: 4; width: 100%; }
}
@media (max-width: 599px) {
  .header-cta { display: none; }
  .brand img { height: 56px; }
  :root { --header-h: 72px; }
}
@media (min-width: 1180px) {
  .site-nav { margin-left: auto; }
  .brand { margin-right: 0; }
  .brand img { height: 70px; }
}
body.menu-open { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-top: clamp(1.5rem, 0.5rem + 3vw, 3.5rem); }
.hero-grid {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
.hero-title {
  font-size: var(--fs-h1);
  line-height: 1.06;
  max-width: 20ch;
  margin-bottom: var(--s-3);
}
.hero-areas {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 34ch;
  margin-bottom: var(--s-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: var(--s-2); }
.hero-whatsapp { font-size: var(--fs-small); color: var(--ink-soft); }
.hero-whatsapp a { color: var(--slate); }

.hero-media {
  position: relative;
  margin: 12px 12px 0;
}
.arch-frame {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: 999px 999px var(--r-md) var(--r-md);
  overflow: hidden;
  background: var(--sand);
}
.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 50%;
}
.arch-line {
  position: absolute;
  inset: -12px -12px 0 -12px;
  border: 1.5px solid var(--magenta);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}
.arch-frame { z-index: 1; }

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); gap: var(--s-6); }
  .hero-media { max-width: 480px; justify-self: end; width: 100%; }
}
@media (max-width: 1023px) {
  .hero-media { max-width: 560px; }
  .arch-frame { aspect-ratio: 4 / 3.4; }
}
@media (max-width: 599px) {
  .arch-frame { aspect-ratio: 1 / 0.92; }
  .hero-actions .btn { width: 100%; }
}

/* Ledger of verified facts */
.ledger {
  list-style: none;
  display: grid;
  gap: var(--s-3);
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  padding: var(--s-4) 0 clamp(3rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid var(--rule);
}
.ledger__item { display: grid; grid-template-columns: 14px 1fr; gap: 0.9rem; align-items: start; }
.ledger__item p { font-size: var(--fs-small); line-height: 1.65; color: var(--ink-soft); max-width: 40ch; }
.ledger__item strong { color: var(--ink); }
.ledger__mark {
  width: 12px;
  height: 15px;
  margin-top: 0.35rem;
  border: 1.5px solid var(--magenta);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}
@media (min-width: 768px) {
  .ledger { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: var(--section-y); }
.section--sand { background: var(--sand); }
.section--mist { background: var(--mist); }

/* Intro */
.intro-grid { display: grid; gap: var(--s-5); }
.intro-copy p:not(.lead) { max-width: var(--measure); }
.intro-copy .lead { margin-bottom: var(--s-3); }
.intro-copy .btn { margin-top: var(--s-2); }
.intro-aside { display: grid; gap: 0; }
.intro-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--r-md);
}
.farewell {
  position: relative;
  margin: -3rem var(--s-2) 0 var(--s-4);
  padding: var(--s-4);
  background: var(--paper);
  border-radius: var(--r-md);
  border-left: 2px solid var(--magenta);
}
.farewell p { font-size: var(--fs-small); line-height: 1.7; }
@media (min-width: 1024px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
  .intro-aside { margin-top: var(--s-3); }
  .farewell { margin: -5rem 0 0 -3rem; padding: var(--s-4) var(--s-4) var(--s-4) var(--s-4); }
}
@media (max-width: 599px) {
  .farewell { margin: -2rem 0 0 var(--s-2); padding: var(--s-3); }
}

/* Services + George */
.services-grid { display: grid; gap: var(--s-5); }
.services-copy > p { max-width: var(--measure); }
.services-copy .h3 { margin-top: var(--s-1); }
.george { margin: 0; max-width: 380px; }
.george__frame {
  border-radius: 999px 999px var(--r-md) var(--r-md);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 480 / 600;
}
.george__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.george figcaption {
  display: grid;
  margin-top: var(--s-2);
  padding-left: var(--s-2);
  border-left: 2px solid var(--magenta);
}
.george__name { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; }
.george__role { font-size: var(--fs-small); color: var(--ink-soft); }
.about-george {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  max-width: var(--measure);
}
.about-george p { color: var(--ink-soft); }
.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-4); }
@media (min-width: 900px) {
  .services-grid { grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.6fr); gap: var(--s-6); align-items: start; }
  .george { position: sticky; top: calc(var(--header-h) + 2rem); }
}
@media (max-width: 599px) {
  .george { max-width: 300px; }
}

/* How it works */
.how .h2 { margin-bottom: var(--s-5); }
.steps { list-style: none; display: grid; gap: var(--s-5); counter-reset: none; position: relative; }
.step { position: relative; padding-left: 4.25rem; }
.step p { max-width: 46ch; margin-bottom: var(--s-1); }
.step__num {
  position: absolute;
  left: 0;
  top: -0.2rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--slate);
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1;
  z-index: 1;
}
/* Connecting thread */
.steps::before {
  content: "";
  position: absolute;
  left: calc(1.375rem - 0.75px);
  top: 1rem;
  bottom: 2rem;
  width: 1.5px;
  background: var(--magenta);
  opacity: 0.55;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
  .step { padding-left: 0; padding-top: 4.5rem; }
  .step__num { top: 0; }
  .steps::before { left: 2.75rem; right: 2rem; top: calc(1.375rem - 0.75px); bottom: auto; width: auto; height: 1.5px; }
}

/* Aftercare */
.aftercare-head { display: grid; gap: var(--s-2); margin-bottom: var(--s-5); }
.aftercare-intro p { max-width: var(--measure); }
@media (min-width: 1024px) {
  .aftercare-head { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: var(--s-6); align-items: start; }
  .aftercare-head .h2 { max-width: 10ch; }
}
.options { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); }
.option { padding: var(--s-4) 0; border-bottom: 1px solid var(--rule); }
.option p { color: var(--ink-soft); max-width: 44ch; }
.option .h3::before {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  margin-bottom: var(--s-2);
  background: var(--magenta);
}
@media (min-width: 900px) {
  .options { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .option { padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: 0; }
  .option + .option { padding-left: var(--s-4); border-left: 1px solid var(--rule); }
}
.aftercare-foot { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); align-items: center; margin-top: var(--s-4); }

/* Coverage */
.coverage-grid { display: grid; gap: var(--s-5); align-items: start; }
.coverage-list { font-size: var(--fs-small); color: var(--ink-soft); }
.coverage-regions {
  display: block;
  margin-top: var(--s-1);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 22ch;
}
.practical { list-style: none; border-top: 1px solid var(--rule-strong); }
.practical li { border-bottom: 1px solid var(--rule-strong); }
.practical__link {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding: var(--s-3) 3rem var(--s-3) 0;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.practical__link::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid var(--slate);
  border-right: 1.5px solid var(--slate);
  transform: translateY(-50%) rotate(45deg);
  transition: right var(--t-fast) var(--ease), border-color var(--t-fast);
}
.practical__link:hover::after { right: 0.15rem; border-color: var(--magenta); }
.practical__title { font-family: var(--font-display); font-size: 1.45rem; line-height: 1.25; }
.practical__desc { font-size: var(--fs-small); color: var(--ink-soft); }
@media (min-width: 900px) {
  .coverage-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-6); }
}

/* FAQ */
.faq-grid { display: grid; gap: var(--s-4); }
.qol {
  margin-top: var(--s-2);
  padding: var(--s-3);
  background: var(--mist);
  border-radius: var(--r-md);
  max-width: 400px;
}
.qol .h3 { margin-bottom: var(--s-1); line-height: 1.3; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--s-6); align-items: start; }
  .faq-side { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq-list { border-top: 1px solid var(--rule-strong); }
.faq-item { border-bottom: 1px solid var(--rule-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  min-height: 64px;
  padding: var(--s-2) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.45;
  border-radius: var(--r-sm);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover .faq-q { text-decoration: underline; text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.faq-icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 50%;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 1.5px;
  background: var(--slate);
  transform: translate(-50%, -50%);
  transition: transform var(--t-med) var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon { border-color: var(--magenta); background: var(--magenta-wash); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a { padding: 0 0 var(--s-4); max-width: var(--measure); color: var(--ink-soft); }
.faq-a ul { margin: 0 0 var(--s-2); padding-left: 1.2rem; }
.faq-a li { margin-bottom: 0.4rem; }
.faq-a li::marker { color: var(--magenta); }
.faq-a a { color: var(--slate); }

/* Smooth disclosure where the browser supports animating <details> content */
@supports selector(::details-content) {
  .faq-item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size var(--t-med) var(--ease), content-visibility var(--t-med) allow-discrete;
  }
  .faq-item[open]::details-content { block-size: auto; }
}

/* Closing */
.closing {
  background: var(--slate);
  color: var(--white);
  padding-block: var(--section-y);
}
.closing-grid { display: grid; gap: var(--s-5); align-items: end; }
.closing-title {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem);
  line-height: 1.1;
  max-width: 17ch;
}
.closing-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  margin-top: var(--s-4);
  background: var(--magenta);
}
.closing-actions { display: grid; gap: var(--s-3); justify-items: start; }
.closing-routes { list-style: none; display: grid; gap: 0.25rem; }
.closing-routes a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 48px;
  color: var(--on-dark-soft);
  text-decoration: none;
}
.closing-routes a:hover span { color: var(--white); text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 5px; }
.closing-routes strong { color: var(--white); font-weight: 500; }
.closing :focus-visible,
.site-footer :focus-visible { outline-color: var(--white); box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.25); }
@media (min-width: 900px) {
  .closing-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--s-6); }
}

/* Footer */
.site-footer {
  background: var(--slate);
  color: var(--on-dark-soft);
  padding: var(--s-5) 0 var(--s-4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-small);
}
.footer-grid { display: grid; gap: var(--s-4); }
.footer-brand { display: inline-block; width: fit-content; border-radius: var(--r-sm); }
.footer-brand img { width: 150px; }
.footer-links { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-3); }
.footer-links a,
.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--on-dark-soft);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--magenta); text-underline-offset: 5px; }
.footer-contact { display: grid; align-content: start; }
.footer-contact a:first-child { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); }
.footer-copy { margin: 0; padding-top: var(--s-3); border-top: 1px solid rgba(255, 255, 255, 0.14); grid-column: 1 / -1; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 0.8fr); gap: var(--s-6); align-items: start; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Mobile contact bar */
.contact-bar { display: none; }
@media (max-width: 767px) {
  :root { --bar-h: 72px; }
  .contact-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem;
    align-items: center;
    height: var(--bar-h);
    padding: 0.6rem var(--s-2) calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: rgba(254, 251, 248, 0.97);
    border-top: 1px solid var(--rule-strong);
  }
  .contact-bar a { text-decoration: none; border-radius: var(--r-pill); }
  .contact-bar__primary {
    position: relative;
    display: grid;
    place-items: center;
    height: 50px;
    padding: 0 0.75rem;
    background: var(--slate);
    color: var(--white);
    font-weight: 500;
    font-size: 0.875rem;
    white-space: nowrap;
  }
  .contact-bar__primary::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 7px;
    width: 18px; height: 2px;
    background: var(--magenta);
    transform: translateX(-50%);
    border-radius: 2px;
  }
  .contact-bar__icon {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 2px;
    min-width: 58px;
    height: 50px;
    padding: 0 0.5rem;
    border: 1.5px solid var(--rule-strong);
    color: var(--slate);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
  }
  .contact-bar__icon .icon { width: 20px; height: 20px; }
  .js .contact-bar { transform: translateY(110%); transition: transform var(--t-med) var(--ease); }
  .js .contact-bar.is-visible { transform: none; }
  body.menu-open .contact-bar { display: none; }
}

/* ==========================================================================
   Google reviews: hero badge + review slider
   ========================================================================== */
.hero-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: block;
  width: clamp(124px, 30%, 160px);
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: rgba(62, 69, 95, 0.86);
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.hero-badge img { width: 100%; height: auto; }
.hero-badge:hover { background: rgba(62, 69, 95, 0.96); transform: translateY(-2px); }
.hero-badge:focus-visible { outline-color: var(--white); box-shadow: 0 0 0 3px var(--slate), 0 0 0 9px var(--focus-halo); }

.reviews { padding-block: 0 var(--section-y); }
.reviews-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.reviews-summary { display: grid; justify-items: center; text-align: center; gap: 0.35rem; }
.reviews-summary__rating {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem);
  line-height: 1.1;
}
.reviews-summary__count { margin: 0; font-size: var(--fs-small); color: var(--ink-soft); }
.reviews-summary__count strong { color: var(--ink); }
.reviews-summary__logo { width: 110px; height: auto; margin-top: 0.25rem; }

.stars { display: inline-flex; gap: 2px; color: #FBBC05; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.stars--lg svg { width: 30px; height: 30px; }

.reviews-slider { position: relative; min-width: 0; }
.review-track { position: relative; }
.review-track {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 1fr);
  gap: var(--s-2);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 2px;
  padding: 4px 2px var(--s-2);
  scrollbar-width: thin;
  scrollbar-color: var(--rule-strong) transparent;
  border-radius: var(--r-md);
}
.js .review-track { scrollbar-width: none; }
.js .review-track::-webkit-scrollbar { display: none; }
.review { scroll-snap-align: start; display: flex; }
.review article {
  position: relative; /* contains the visually-hidden rating text */
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--s-3);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
}
.review__head { display: grid; grid-template-columns: 44px 1fr 22px; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.review__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sand);
  border: 1.5px solid var(--rule-strong);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}
.review__who { min-width: 0; display: grid; }
.review__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review__date { font-size: 0.875rem; color: var(--ink-soft); white-space: nowrap; }
.g-icon { width: 22px; height: 22px; align-self: start; }
.review .stars { margin-bottom: 0.6rem; }
.review__text { font-size: var(--fs-small); line-height: 1.65; }
.review__text p { margin-bottom: 0.6rem; }
.js .review__text.is-clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
.js .review__text.is-clamped p { display: inline; }
.js .review__text.is-clamped p + p::before { content: " "; }
.review__more {
  align-self: flex-start;
  min-height: 44px;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--slate);
  font: 500 var(--fs-small)/1 var(--font-body);
  text-decoration: underline;
  text-decoration-color: var(--magenta);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  cursor: pointer;
}

.slider-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -31px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--slate);
  cursor: pointer;
  transition: border-color var(--t-fast), background-color var(--t-fast), opacity var(--t-fast);
}
.slider-btn svg { width: 22px; height: 22px; }
.slider-btn:hover { border-color: var(--slate); background: var(--white); }
.slider-btn[disabled] { opacity: 0.35; cursor: default; }
.slider-btn--prev { left: -12px; }
.slider-btn--next { right: -12px; }

@media (min-width: 768px) {
  .review-track { grid-auto-columns: calc((100% - var(--s-2)) / 2); }
}
@media (min-width: 1024px) {
  .reviews-grid { grid-template-columns: 220px minmax(0, 1fr); gap: var(--s-5); }
  .slider-btn--prev { left: -23px; }
  .slider-btn--next { right: -23px; }
}
@media (min-width: 1280px) {
  .review-track { grid-auto-columns: calc((100% - var(--s-2) * 2) / 3); }
}
@media (max-width: 599px) {
  .review-track { grid-auto-columns: 86%; }
  .slider-btn { display: none; }
}

/* ==========================================================================
   Motion (progressive; content is visible without JS)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-copy > * { animation: rise 700ms var(--ease) both; }
  .js .hero-copy > :nth-child(2) { animation-delay: 80ms; }
  .js .hero-copy > :nth-child(3) { animation-delay: 160ms; }
  .js .hero-copy > :nth-child(4) { animation-delay: 220ms; }
  .js .arch-line { animation: draw var(--t-slow) var(--ease) 300ms both; }
  .js .arch-frame { animation: settle 1000ms var(--ease) both; }

  .js [data-reveal].reveal-pending { opacity: 0; transform: translateY(16px); }
  .js [data-reveal] { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
}
/* Heading and actions stay readable throughout: only a short drift and a partial fade */
@keyframes rise { from { opacity: 0.55; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0.001; transform: scale(1.015); } to { opacity: 1; transform: none; } }
@keyframes draw { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  /* Show/hide the menu instantly so focus can move into it straight away */
  .js .site-nav, .js .site-nav.is-open { transition: none !important; }
}

@media print {
  .site-header, .contact-bar, .hero-actions, .closing-actions .btn { display: none !important; }
  .faq-a { display: block !important; }
  body { padding: 0; }
}
