/* Estcourt Vets: homepage concept
   Palette sampled from the current logo and site. Idea: the gold arch from the logo
   (the archway into the practice) runs through the hero, photo frames and the closing panel. */

:root {
  /* brand */
  --green: #08271B;          /* logo text, dark sections */
  --green-2: #123A2A;        /* hover on dark */
  --gold: #968554;           /* the arch, decoration and large type only (3.6:1 on white) */
  --gold-ink: #6E5F35;       /* gold for small text on light backgrounds (6.3:1) */
  --gold-light: #C9B77F;     /* gold on dark backgrounds and gold buttons (8:1 with green) */
  --olive: #4F4C21;
  --sage: #9C9C7D;
  --sage-tint: #EEF0E7;
  --sage-200: #DFE1D3;
  --ink: #2B2E2A;            /* body text (13.7:1 on white) */
  --white: #FFFFFF;

  /* type */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --font-wordmark: "Open Sans", "Source Sans 3", Arial, sans-serif;

  /* layout */
  --max: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --radius: 20px;
  --arch: 50% 50% 0 0 / 34% 34% 0 0;   /* arched top for photo frames */

  /* compliance kit */
  --kit-ink: var(--green);
  --kit-accent: var(--gold-ink);
  --kit-surface: var(--white);
  --kit-tint: var(--white);
  --kit-max: var(--max);
  --kit-gut: var(--gut);
  --kit-radius: var(--radius);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--green); }
p { margin: 0 0 1em; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--green);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.75rem); }
.lead { font-size: clamp(1.25rem, 1.8vw, 1.4rem); line-height: 1.5; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--section) 0; }
.section-tint { background: var(--sage-tint); }
.section-dark { background: var(--green); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 40rem; margin-bottom: clamp(32px, 4vw, 56px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--green); color: var(--white); padding: 12px 18px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.section-dark :focus-visible, .site-footer :focus-visible, .hero-panel :focus-visible { outline-color: var(--gold-light); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: var(--olive); }
.btn-gold { background: var(--gold-light); color: var(--green); }
.btn-gold:hover { background: var(--white); }
.btn-outline { border-color: var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--green); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.btn-row.center { justify-content: center; margin-top: clamp(36px, 4vw, 56px); }
.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.125rem; color: var(--green);
  text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.text-link i { transition: transform .2s; }
.text-link:hover i { transform: translateX(4px); }
.text-link.light { color: var(--white); text-decoration-color: var(--gold-light); }

/* the arch line from the logo */
.arch-line { display: block; overflow: visible; }
.arch-line path { fill: none; stroke: var(--gold-light); stroke-width: 2; vector-effect: non-scaling-stroke; }
.arch-frame { border-radius: var(--arch); overflow: hidden; }
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { display: block; width: 72px; flex: none; }
.brand-mark svg { display: block; width: 100%; height: auto; overflow: visible; }
.brand-arch { fill: none; stroke: var(--gold); stroke-width: 4; }
.brand-word { display: flex; align-items: baseline; gap: .3em; white-space: nowrap; font-size: 1.75rem; line-height: 1; }
.brand-name { font-family: var(--font-wordmark); font-weight: 600; color: var(--green); letter-spacing: -0.01em; }
.brand-town { font-family: Georgia, "Times New Roman", serif; color: var(--gold); }
.brand-light .brand-name { color: var(--white); }
.brand-light .brand-town { color: var(--gold-light); }
.brand-light .brand-arch { stroke: var(--gold-light); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(8, 39, 27, .1); }
.topbar { background: var(--green); color: rgba(255,255,255,.88); font-size: 1rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; }
.topbar p { margin: 0; }
.topbar i { color: var(--gold-light); margin-right: 6px; }
.topbar-links { display: flex; align-items: center; gap: 28px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--gold-light); text-decoration: underline; }
.topbar-phone { font-size: 1.125rem; font-weight: 700 !important; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 92px; }
.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 2px; }
.main-nav ul a {
  display: block; padding: 10px 11px; border-radius: 8px; white-space: nowrap;
  font-size: 1.125rem; font-weight: 600; text-decoration: none; color: var(--green);
}
.main-nav ul a:hover { background: var(--sage-tint); }
.nav-extra { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; flex: none; }
.header-book { white-space: nowrap; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1.125rem; text-decoration: none; color: var(--green); white-space: nowrap;
}
.header-phone i { color: var(--gold); }
.menu-toggle { display: none; }

/* desktop: phone lives in the top bar, so the header holds logo, menu and Book */
@media (min-width: 1101px) {
  .header-phone { display: none; }
}
@media (min-width: 1101px) and (max-width: 1340px) {
  .brand-mark { width: 60px; }
  .brand-word { font-size: 1.5rem; }
  .header-inner { gap: 16px; }
  .main-nav ul a { padding: 10px 8px; }
  .header-book { padding: 12px 18px; }
}
@media (min-width: 1101px) and (max-width: 1220px) {
  .header-book { display: none; }
}

@media (max-width: 1100px) {
  .topbar { display: none; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 8px 16px; border-radius: 999px;
    border: 2px solid var(--green); background: var(--white); color: var(--green);
    font: 700 1.125rem/1 var(--font-body); cursor: pointer;
  }
  .menu-toggle-bars { display: grid; gap: 4px; width: 20px; }
  .menu-toggle-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
  .menu-open .menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle-bars span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .header-actions { margin-left: auto; }

  /* JavaScript on: the menu becomes a full-screen panel */
  .js .main-nav {
    position: fixed; inset: 92px 0 0 0; z-index: 40;
    margin: 0; padding: 24px var(--gut) 40px;
    background: var(--green); overflow-y: auto;
    display: flex; flex-direction: column; gap: 28px;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility 0s .25s;
  }
  .js .menu-open .main-nav { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .25s; }
  .js .main-nav ul { flex-direction: column; gap: 0; }
  .js .main-nav ul a {
    color: var(--white); font-family: var(--font-head); font-weight: 500;
    font-size: 1.75rem; padding: 14px 0; border-radius: 0;
  }
  .js .main-nav ul a:hover { background: none; color: var(--gold-light); }
  .js .nav-extra { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .nav-phone { color: var(--white); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
  .nav-phone i { color: var(--gold-light); margin-right: 6px; }
  body.menu-open { overflow: hidden; }

  /* JavaScript off: the links simply wrap under the logo */
  .no-js .header-inner { flex-wrap: wrap; padding-bottom: 12px; }
  .no-js .main-nav { order: 3; width: 100%; margin: 0; }
  .no-js .main-nav ul { flex-wrap: wrap; }
}

@media (max-width: 1100px) {
  .header-book { display: none; }
}
@media (max-width: 900px) {
  .header-phone span { display: none; }
  .header-phone {
    width: 48px; height: 48px; justify-content: center;
    border-radius: 50%; background: var(--sage-tint); font-size: 1.1rem;
  }
}
@media (max-width: 640px) {
  .header-inner { min-height: 76px; gap: 12px; }
  .js .main-nav { inset: 76px 0 0 0; }
  .brand { gap: 10px; }
  .brand-mark { width: 50px; }
  .brand-word { font-size: 1.25rem; }
  .js .menu-toggle { padding: 8px 14px; }
}
@media (max-width: 430px) {
  .header-inner { gap: 10px; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .menu-toggle { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .brand { min-width: 0; gap: 8px; }
  .brand-mark { width: 44px; }
  .brand-word { font-size: 1.0625rem; }
  .header-phone { width: 44px; height: 44px; }
  .header-actions { gap: 10px; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(16px, 3vw, 40px) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(16px, 2vw, 28px); align-items: stretch;
}
.hero-panel {
  position: relative;
  background: var(--green); color: var(--white);
  border-radius: 50% 50% 0 0 / 210px 210px 0 0;
  padding: 150px clamp(28px, 4vw, 64px) clamp(36px, 4vw, 56px);
  min-height: 640px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero-arch {
  position: absolute; top: 18px; left: 18px; right: 18px;
  width: calc(100% - 36px); height: 192px;
}
.hero-title {
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.12;
  margin-bottom: .4em;
}
.hero-lead { font-size: clamp(1.2rem, 1.6vw, 1.35rem); line-height: 1.5; color: rgba(255,255,255,.92); max-width: 30em; }
.hero-emergency {
  margin: 28px 0 0; padding-top: 22px; border-top: 1px solid rgba(201,183,127,.45);
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 1.0625rem;
}
.hero-emergency i { color: var(--gold-light); }
.hero-emergency a { color: var(--gold-light); font-weight: 700; font-size: 1.1875rem; }
.hero-photo { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }

/* ---------- quick links ---------- */
.quick-links { background: var(--sage-tint); padding: clamp(20px, 3vw, 32px) 0; }
.quick-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.quick-grid a {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; height: 100%;
  padding: 20px 18px; border-radius: 16px; background: var(--white);
  text-decoration: none; color: var(--green); font-weight: 700; font-size: 1.125rem; line-height: 1.3;
  transition: background-color .2s, color .2s;
}
.quick-grid i { font-size: 1.5rem; color: var(--gold-ink); transition: color .2s; }
.quick-grid a:hover { background: var(--green); color: var(--white); }
.quick-grid a:hover i { color: var(--gold-light); }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.about-old { aspect-ratio: 4 / 4.4; }
.about-old img { filter: sepia(.25); object-position: 30% 50%; }
.about-copy .lead { color: var(--green); }
.about-team {
  margin-top: clamp(40px, 6vw, 80px); aspect-ratio: 2.1 / 1;
  border-radius: var(--radius); overflow: hidden;
}
.about-team img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- facilities ---------- */
.facilities-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.facilities .lead { color: rgba(255,255,255,.92); }
.facility-list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin: 32px 0;
}
.facility-list li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.4; }
.facility-list i { color: var(--gold-light); font-size: 1.2rem; width: 1.5em; flex: none; margin-top: 3px; text-align: center; }
.facilities-photo { aspect-ratio: 4 / 5; }

/* ---------- services ---------- */
.service-feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--sage-tint); border-radius: var(--radius);
  overflow: hidden; align-items: stretch;
}
.service-feature figure { aspect-ratio: 4 / 3.4; margin: 24px 0 0 24px; }
.service-feature-copy { padding: clamp(28px, 4vw, 56px); align-self: center; }
.service-feature-copy h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.service-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; margin-top: 20px;
}
.service-card a {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
  background: var(--white); border: 2px solid var(--sage-200);
  transition: border-color .2s;
}
.service-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; transition: transform .5s; }
.service-card .service-name {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex: 1;
  padding: 18px 20px; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.25; color: var(--green);
}
.service-card .service-name::after {
  content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 1rem; color: var(--gold-ink);
}
.service-card a:hover { border-color: var(--gold); }
.service-card a:hover img { transform: scale(1.04); }

/* ---------- health plan and Vidivet ---------- */
.plans-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; }
.plan { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.plan-club { background: var(--white); }
.plan-photo { aspect-ratio: 2.2 / 1; }
.plan-photo img { width: 100%; height: 100%; object-fit: cover; }
.plan-body { padding: clamp(28px, 3.5vw, 48px); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.plan-body .btn { margin-top: auto; }
.plan-body p:last-of-type { margin-bottom: 28px; }
.plan-vidivet { background: var(--olive); color: var(--white); }
.plan-vidivet h3 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); }
.plan-club h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.plan-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px;
  border-radius: 50%; background: rgba(255,255,255,.12); color: var(--gold-light); font-size: 1.6rem;
}

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); text-align: center; }
.team-member img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%;
  border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--gold);
  margin-bottom: 18px; background: var(--sage-tint);
}
.team-member h3 { font-size: 1.3rem; margin-bottom: .2em; }
.team-member p { margin: 0; font-size: 1.0625rem; color: var(--gold-ink); font-weight: 600; line-height: 1.35; }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(28px, 3vw, 44px); }
.quote {
  background: var(--white); border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column;
}
.quote::before {
  content: "\f10d"; font-family: "Font Awesome 6 Free"; font-weight: 900;
  font-size: 1.6rem; color: var(--gold); margin-bottom: 14px;
}
.quote blockquote { margin: 0 0 20px; }
.quote blockquote p { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.45; color: var(--green); margin: 0; }
.quote figcaption { margin-top: auto; font-weight: 700; color: var(--gold-ink); }

/* ---------- leave a review (compliance kit) ---------- */
.tbc{display:inline-block;font-weight:700;font-size:.78em;line-height:1;letter-spacing:.04em;color:var(--kit-accent,#0b6e78);border:1.5px dashed currentColor;border-radius:999px;padding:.45em .8em .4em;vertical-align:middle;white-space:nowrap;background:var(--kit-surface,#fff)}
.kit-reviews{padding:clamp(70px,9vw,120px) 0;background:var(--kit-tint,#f3f6f7)}
.kit-wrap{width:100%;max-width:var(--kit-max,1280px);margin:0 auto;padding:0 var(--kit-gut,24px)}
.kit-reviews > .kit-wrap > p{max-width:36em;margin-top:12px}
.kit-cards{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:40px}
.kit-card{background:var(--sage-tint);border-radius:var(--kit-radius,20px);padding:clamp(24px,3vw,40px);display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.kit-card h3{margin:0}
.kit-card p{margin:0}
.kit-card .kit-btn,.kit-card .tbc{margin-top:auto}
.kit-btn{display:inline-flex;align-items:center;gap:10px;padding:15px 24px;border-radius:999px;background:var(--kit-ink,#10282c);color:#fff;font-weight:700;text-decoration:none}
.kit-own{font-size:.95em;opacity:.9}
.tbc { white-space: normal; }

/* ---------- emergencies and call to action ---------- */
.cta { background: var(--sage-tint); color: var(--ink); }
.cta-grid {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.cta-emergency h2 { color: var(--green); }
.cta-emergency p { font-size: 1.25rem; }
.cta-emergency a:not(.text-link) { font-weight: 700; }
.cta-emergency .text-link.light { color: var(--green); text-decoration-color: var(--gold); }
.cta-register {
  position: relative; background: var(--green); color: var(--white);
  border-radius: 50% 50% var(--radius) var(--radius) / 170px 170px var(--radius) var(--radius);
  padding: 130px clamp(28px, 4vw, 56px) clamp(36px, 4vw, 52px);
  text-align: center;
}
.cta-register h2 { color: var(--white); }
.cta-mark { width: 120px; margin: -60px auto 24px; opacity: .95; }
.cta-register .btn-row { justify-content: center; }
.cta-arch { position: absolute; top: 16px; left: 16px; width: calc(100% - 32px); height: 150px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green); color: rgba(255,255,255,.9); padding: clamp(56px, 7vw, 88px) 0 32px; font-size: 1.0625rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-brand .brand { margin-bottom: 24px; }
.footer-brand .brand-word { font-size: 1.5rem; }
.footer-accred { color: var(--gold-light); font-weight: 600; }
.footer-heading { font-family: var(--font-body); font-size: 1.125rem; font-weight: 700; color: var(--gold-light); margin-bottom: 14px; letter-spacing: 0; }
.footer-links ul li { margin-bottom: 6px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); text-decoration: none;
}
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(201,183,127,.35);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-credit { margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid li:nth-child(n+4) { grid-column: auto; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-photo { order: -1; aspect-ratio: 5 / 3.6; border-radius: var(--radius); }
  .hero-panel {
    margin: -90px 12px 0; min-height: 0;
    border-radius: 50% 50% 0 0 / 150px 150px 0 0;
    padding-top: 168px;
  }
  .hero-arch { height: 134px; top: 14px; left: 14px; width: calc(100% - 28px); }
  .about-grid, .facilities-grid, .cta-grid, .plans-grid { grid-template-columns: 1fr; }
  .about-copy { order: -1; }
  .about-old { aspect-ratio: 16 / 10; max-width: 640px; }
  .about-team { aspect-ratio: 1688 / 982; }
  .facilities-photo { aspect-ratio: 4 / 3; max-width: 640px; }
  .service-feature { grid-template-columns: 1fr; }
  .service-feature figure { margin: 20px 20px 0; aspect-ratio: 16 / 10; }
  .quote-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .hero-panel { margin: -70px 0 0; padding-left: 24px; padding-right: 24px; border-radius: 50% 50% 0 0 / 120px 120px 0 0; padding-top: 140px; }
  .hero-arch { height: 108px; }
  .hero .btn-row .btn, .cta-register .btn-row .btn { width: 100%; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .quick-grid a { padding: 16px 14px; font-size: 1.0625rem; }
  .facility-list { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kit-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-register { border-radius: 50% 50% var(--radius) var(--radius) / 120px 120px var(--radius) var(--radius); padding-top: 104px; }
  .cta-arch { height: 104px; }
}

/* ---------- motion ---------- */
/* SplitText line masks: room for descenders (g, y, p) so they never clip */
.hero-title .line-mask { padding-bottom: .14em; margin-bottom: -.14em; }

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