/* Town & Country Care — bespoke front end.
   Warm, calm, accessible: large type for an older audience, deep plum + teal
   brand (from their uniforms & Shetland House identity), Whitby coast warmth. */

:root {
  --plum: #4b2a68;
  --plum-deep: #331d49;
  --plum-soft: #f0eaf6;
  --teal: #0e7c72;
  --teal-bright: #35c4b5;
  --teal-soft: #e3f4f1;
  --cream: #faf6ef;
  --sand: #f4ecdf;
  --ink: #322a3d;
  --ink-soft: #5d5468;
  --white: #ffffff;
  --amber: #e8a33d;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(51, 29, 73, .18);
  --shadow-lg: 0 24px 60px -20px rgba(51, 29, 73, .28);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--plum); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--plum-deep); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--plum); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }

/* ── top bar ─────────────────────────────────────────────────────────────── */
.topbar { background: var(--plum-deep); color: #e8e0f2; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 0; }
.topbar-item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar .icon { color: var(--teal-bright); flex: none; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover { color: var(--teal-bright); }
@media (max-width: 560px) { .topbar-item:first-child { display: none; } .topbar-inner { justify-content: center; } }

/* ── header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(75, 42, 104, .1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark svg { display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--plum-deep); }
.brand-sub { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1rem;
  padding: .35rem 0; position: relative;
}
.site-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  border-radius: 2px; background: var(--teal-bright);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav a:hover { color: var(--plum); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { color: var(--plum); }
.nav-cta {
  background: var(--plum); color: #fff !important; padding: .65rem 1.3rem !important;
  border-radius: 999px; border: none !important; box-shadow: var(--shadow);
}
.nav-cta:hover { background: var(--plum-deep); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0;
  padding: .8rem; cursor: pointer; min-width: 48px; min-height: 48px; align-items: center; justify-content: center;
}
.nav-toggle-bar { width: 26px; height: 3px; background: var(--plum-deep); border-radius: 2px; transition: transform .25s, opacity .25s; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); border-bottom: 1px solid rgba(75, 42, 104, .12);
    flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.25rem 1.25rem;
    display: none; box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .9rem .25rem; font-size: 1.1rem; border-bottom: 1px solid rgba(75, 42, 104, .08); }
  .site-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 1rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ── flash ───────────────────────────────────────────────────────────────── */
.flash-wrap { margin-top: 1.25rem; }
.flash { padding: 1rem 1.25rem; border-radius: 14px; font-weight: 700; margin-bottom: .75rem; }
.flash-success { background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(14, 124, 114, .25); }
.flash-error { background: #fdecec; color: #a03030; border: 1px solid rgba(160, 48, 48, .25); }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.7rem; border-radius: 999px; text-decoration: none;
  font-weight: 800; font-size: 1.05rem; font-family: var(--font-body);
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  min-height: 48px;
}
.btn .icon { flex: none; }
.btn-primary { background: var(--plum); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--plum-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--plum); border-color: rgba(75, 42, 104, .35); }
.btn-ghost:hover { border-color: var(--plum); color: var(--plum-deep); }
.btn-light { background: #fff; color: var(--plum); box-shadow: var(--shadow); }
.btn-light:hover { color: var(--plum-deep); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.btn-teal:hover { background: #0a635b; color: #fff; transform: translateY(-2px); }

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(160deg, var(--plum-deep), var(--plum) 60%, #5d3a7e);
}
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 65%;
  opacity: .88;
  animation: slowzoom 24s ease-out forwards;
}
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
.hero-inner > *, .page-hero-inner > * { animation: rise .7s cubic-bezier(.2, .7, .3, 1) backwards; }
.hero-inner > *:nth-child(1), .page-hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2), .page-hero-inner > *:nth-child(2) { animation-delay: .16s; }
.hero-inner > *:nth-child(3), .page-hero-inner > *:nth-child(3) { animation-delay: .27s; }
.hero-inner > *:nth-child(4), .page-hero-inner > *:nth-child(4) { animation-delay: .38s; }
.hero-inner > *:nth-child(5), .page-hero-inner > *:nth-child(5) { animation-delay: .49s; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(51, 29, 73, .93) 18%, rgba(51, 29, 73, .68) 48%, rgba(51, 29, 73, .18) 78%, rgba(51, 29, 73, .05)); }
.page-hero .hero-scrim { background: linear-gradient(100deg, rgba(51, 29, 73, .94) 25%, rgba(51, 29, 73, .75) 60%, rgba(51, 29, 73, .45)); }
.hero-inner { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 0; max-width: 720px; }

/* ── home hero: full-bleed Whitby harbour behind the copy ─────────────────── */
/* Same pattern as the inner-page heroes, so the site reads as one thing. The
   photo is a free-licence stock shot of the harbour (no attribution required);
   the client's own scraped photos are too small to fill a banner cleanly. */
.hero-home .hero-photo { background-image: url('../img/hero-whitby.jpg'); }
.hero-home .hero-inner { padding-bottom: clamp(3.5rem, 8vw, 6rem); }
/* Scrim carries the whole copy column, not just the first third — measured:
   the trust note and eyebrow drop under 4.5:1 against the sunlit harbour with
   the default gradient. */
.hero-home .hero-scrim {
  background: linear-gradient(100deg, rgba(51, 29, 73, .95) 22%, rgba(51, 29, 73, .84) 52%,
              rgba(51, 29, 73, .42) 78%, rgba(51, 29, 73, .12));
}
.hero-home .hero-note { color: #e8e1f2; }
/* eyebrow is 13.6px bold — small text, so it needs the full 4.5:1; the standard
   --teal-bright lands at 4.15 over the lighter phone scrim */
.hero-home .eyebrow { color: #74e5d6; }
@media (max-width: 780px) {
  /* smaller file for phones, and a near-solid scrim — on a narrow screen the
     copy sits over the bright sky, not just the shaded left third */
  .hero-home .hero-photo { background-image: url('../img/hero-whitby-sm.jpg'); }
  .hero-home .hero-scrim {
    background: linear-gradient(180deg, rgba(51, 29, 73, .82), rgba(51, 29, 73, .72) 55%, rgba(51, 29, 73, .84));
  }
}
.hero-postcard {
  position: relative; margin: clamp(2rem, 5vw, 3.2rem) 0 0;
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
  animation: rise .8s cubic-bezier(.2, .7, .3, 1) .45s backwards;
}
.hero-postcard img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .55);
}
.hero-postcard figcaption {
  position: absolute; left: 1rem; bottom: calc(clamp(3.5rem, 8vw, 6.5rem) + 1rem);
  background: rgba(51, 29, 73, .78); color: #efe9f7; font-size: .88rem; font-weight: 700;
  padding: .45rem .95rem; border-radius: 999px; backdrop-filter: blur(4px);
}
@media (max-width: 560px) { .hero-postcard figcaption { display: none; } }
.hero .eyebrow { color: var(--teal-bright); }
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p.lead { font-size: clamp(1.15rem, 2.2vw, 1.35rem); color: #efe9f7; max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: .98rem; color: #d8cde8; display: flex; align-items: center; gap: .5rem; }
.hero-note .icon { color: var(--teal-bright); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: clamp(30px, 6vw, 70px); display: block; }

.eyebrow {
  display: inline-block; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  font-size: .85rem; color: var(--teal); margin-bottom: .9rem;
}

/* ── sections ────────────────────────────────────────────────────────────── */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--plum-soft); }
.section-sand { background: var(--sand); }
.section-head { max-width: 700px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.15rem; }

/* trust bar */
.trustbar { background: var(--white); border-bottom: 1px solid rgba(75, 42, 104, .08); }
.trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.4rem 0; }
.trust-item { display: flex; align-items: center; gap: .8rem; font-weight: 700; font-size: .98rem; color: var(--plum-deep); }
.trust-item .icon { color: var(--teal); flex: none; }
@media (max-width: 880px) { .trustbar-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .trustbar-inner { grid-template-columns: 1fr 1fr; gap: .8rem; } .trust-item { font-size: .88rem; } }

/* cards */
.card-grid { display: grid; gap: 1.5rem; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cols-3, .cols-2, .cols-4 { grid-template-columns: 1fr; } }

.pathway-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
.pathway-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.pathway-photo { aspect-ratio: 3 / 2; overflow: hidden; }
.pathway-photo img { width: 100%; height: 100%; object-fit: cover; }
.pathway-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.pathway-body h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.pathway-kicker { font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.pathway-body p { color: var(--ink-soft); flex: 1; margin-bottom: 1.1rem; }
.pathway-link { font-weight: 800; color: var(--plum); display: inline-flex; align-items: center; gap: .45rem; }
.pathway-link .icon { transition: transform .2s ease; }
.pathway-card:hover .pathway-link { color: var(--teal); }
.pathway-card:hover .pathway-link .icon { transform: translateX(5px); }
.pathway-photo img { transition: transform .5s ease; }
.pathway-card:hover .pathway-photo img { transform: scale(1.05); }

.feature-card {
  background: var(--white); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.5rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.section-alt .feature-card, .section-sand .feature-card { box-shadow: 0 6px 20px -10px rgba(51, 29, 73, .15); }
.feature-icon {
  width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: var(--teal); margin-bottom: 1rem;
  transition: transform .25s ease, background .25s, color .25s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); background: var(--teal); color: #fff; }
.feature-icon .icon { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: .35rem; }
.feature-card p { color: var(--ink-soft); margin: 0; }

/* split sections */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 880px) { .split, .split.reverse { grid-template-columns: 1fr; } }
.split-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); position: relative; aspect-ratio: 3 / 2; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack { display: grid; gap: 1.1rem; }
.photo-stack .split-photo { aspect-ratio: 16 / 9; }

.checklist { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-size: 1.05rem; }
.checklist .icon { color: var(--teal); flex: none; margin-top: .2rem; }

/* quote */
.bigquote {
  position: relative; background: var(--plum); color: #fff; border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.2rem, 5vw, 3.5rem) clamp(1.6rem, 5vw, 4rem); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.bigquote::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  border-radius: 50%; background: rgba(53, 196, 181, .18);
  animation: drift 11s ease-in-out infinite alternate;
}
.bigquote .icon-quote { color: var(--teal-bright); width: 44px; height: 44px; margin-bottom: 1rem; }
.bigquote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.35rem, 3vw, 1.9rem); line-height: 1.35; font-weight: 500; }
.bigquote figcaption { margin-top: 1.3rem; font-weight: 700; color: #d9cdea; }
.bigquote figcaption strong { color: #fff; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--white); border-radius: var(--radius); padding: 1.7rem 1.6rem; box-shadow: var(--shadow);
  position: relative; counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem;
  color: var(--teal-bright); display: block; margin-bottom: .4rem; line-height: 1;
}
.step h3 { margin-bottom: .3rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* awards */
.awards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
@media (max-width: 980px) { .awards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .awards { grid-template-columns: 1fr; } }
.award {
  background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.3rem; box-shadow: var(--shadow);
  border-top: 4px solid var(--amber);
  transition: transform .2s, box-shadow .2s;
}
.award:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.award .icon { color: var(--amber); margin-bottom: .6rem; }
.award-year { font-weight: 800; color: var(--teal); font-size: .9rem; letter-spacing: .1em; }
.award h3 { font-size: 1.1rem; margin: .2rem 0 .3rem; }
.award p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* cqc band */
.cqc-band { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.8rem, 4vw, 2.6rem); display: flex; gap: 1.6rem; align-items: center; flex-wrap: wrap; }
.cqc-badge {
  flex: none; width: 74px; height: 74px; border-radius: 20px; background: var(--plum-deep);
  color: var(--teal-bright); display: flex; align-items: center; justify-content: center;
}
.cqc-badge .icon { width: 40px; height: 40px; }
.cqc-band-text { flex: 1 1 320px; }
.cqc-band-text h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.cqc-band-text p { margin: 0; color: var(--ink-soft); }

/* timeline */
.timeline { position: relative; margin: 0; padding: 0 0 0 1.9rem; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: linear-gradient(var(--teal-bright), var(--plum)); }
.timeline li { position: relative; padding: 0 0 1.9rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -1.9rem; top: 8px; width: 15px; height: 15px;
  border-radius: 50%; background: var(--teal-bright); border: 3px solid var(--cream);
  transform: translateX(1px);
}
.timeline-year { font-weight: 800; color: var(--teal); letter-spacing: .08em; }
.timeline h3 { margin: .1rem 0 .25rem; font-size: 1.2rem; }
.timeline p { color: var(--ink-soft); margin: 0; max-width: 60ch; }

/* faq */
.faq-list { display: grid; gap: .9rem; max-width: 820px; margin-inline: auto; }
.faq {
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 1.15rem 1.4rem; font-weight: 800; font-size: 1.08rem; color: var(--plum-deep);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; color: var(--teal); flex: none; line-height: 1; }
.faq[open] summary::after { content: "–"; }
.faq-body { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); }

/* CTA panel */
.cta-panel {
  background: linear-gradient(135deg, var(--plum-deep), var(--plum) 55%, #10574f 130%);
  border-radius: calc(var(--radius) + 8px); color: #fff; text-align: center;
  padding: clamp(2.6rem, 6vw, 4.2rem) clamp(1.4rem, 5vw, 4rem); box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.cta-panel::before, .cta-panel::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(53, 196, 181, .14);
}
.cta-panel::before { width: 300px; height: 300px; left: -120px; bottom: -160px; animation: drift 9s ease-in-out infinite alternate; }
.cta-panel::after { width: 220px; height: 220px; right: -90px; top: -110px; animation: drift 7s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(16px); } }
.cta-panel h2 { color: #fff; }
.cta-panel p { color: #e5dcf1; max-width: 54ch; margin-inline: auto; position: relative; }
.cta-panel .hero-ctas { justify-content: center; position: relative; }
.cta-phones { margin-top: 1.6rem; display: flex; gap: 2.2rem; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-phone { text-align: center; }
.cta-phone-label { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-bright); font-weight: 800; }
.cta-phone a { display: block; color: #fff; text-decoration: none; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.cta-phone a:hover { color: var(--teal-bright); }

/* page hero (inner pages) */
.page-hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(150deg, var(--plum-deep), var(--plum)); }
.page-hero .hero-photo { opacity: .6; }
.page-hero-inner { position: relative; padding: clamp(2.8rem, 7vw, 5rem) 0; max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #e9e1f4; font-size: 1.2rem; max-width: 58ch; margin: 0; }
.page-hero .eyebrow { color: var(--teal-bright); }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-grid > * { min-width: 0; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem 1.6rem; display: flex; gap: 1.1rem; margin-bottom: 1.1rem; }
.contact-card > div { min-width: 0; }
.contact-card a { overflow-wrap: anywhere; }
.contact-card .feature-icon { margin: 0; flex: none; }
.contact-card h3 { margin-bottom: .15rem; font-size: 1.12rem; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.contact-card a { font-weight: 800; text-decoration: none; }
.contact-card a.tel { font-size: 1.3rem; font-family: var(--font-display); color: var(--plum-deep); }
.contact-card a.tel:hover { color: var(--teal); }

.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 4vw, 2.4rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; font-size: .98rem; color: var(--plum-deep); }
.field input, .field select, .field textarea {
  font: inherit; padding: .85rem 1rem; border-radius: 12px; border: 2px solid #ddd4e8;
  background: var(--cream); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.field textarea { min-height: 150px; resize: vertical; }
.field-hint { font-size: .88rem; color: var(--ink-soft); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* footer */
.site-footer { margin-top: clamp(2.5rem, 6vw, 4rem); }
.footer-wave { line-height: 0; background: transparent; }
.footer-wave svg { width: 100%; height: clamp(34px, 5vw, 70px); display: block; }
.footer-body { background: var(--plum-deep); color: #cfc3de; padding: 2.6rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-family: var(--font-display); font-size: 1.35rem; color: #fff; font-weight: 600; margin-bottom: .5rem; }
.footer-head { font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .82rem; color: var(--teal-bright); margin-bottom: .7rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal-bright); }
.site-footer address { font-style: normal; }
.site-footer p { margin-bottom: .6rem; }
.footer-social { display: flex; gap: .9rem; margin-top: 1rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; background: rgba(255,255,255,.08); border-radius: 10px; }
.footer-social a:hover { background: rgba(53,196,181,.25); color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1.3rem; font-size: .92rem; }
.footer-base p { margin: 0; }

/* reveal on scroll — hidden state only applies when JS is running (html.js),
   and reduced-motion users get everything visible with no movement */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
/* gentle stagger when a row of cards reveals together */
html.js .card-grid > .reveal:nth-child(2), html.js .steps > .reveal:nth-child(2),
html.js .awards > .reveal:nth-child(2) { transition-delay: .1s; }
html.js .card-grid > .reveal:nth-child(3), html.js .steps > .reveal:nth-child(3),
html.js .awards > .reveal:nth-child(3) { transition-delay: .2s; }
html.js .card-grid > .reveal:nth-child(4), html.js .awards > .reveal:nth-child(4) { transition-delay: .3s; }

/* reduced motion: everything visible immediately, nothing moves — never broken */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; transition-delay: 0s; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── mobile sticky call bar ──────────────────────────────────────────────── */
/* Phone is the primary enquiry route for a care agency, but it sits in the
   top bar and scrolls away. Keep a thumb-reachable Call + Enquire on mobile. */
.mobile-callbar { display: none; }

@media (max-width: 880px) {
  .mobile-callbar {
    display: flex; gap: .6rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-top: 1px solid rgba(75, 42, 104, .14);
    box-shadow: 0 -8px 24px -12px rgba(51, 29, 73, .45);
  }
  .mcb-btn {
    flex: 1; display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; min-height: 52px; padding: .6rem 1rem; border-radius: 999px;
    font-family: var(--font-body); font-weight: 800; font-size: 1.05rem;
    text-decoration: none; border: 2px solid transparent;
  }
  .mcb-call { flex: 1.35; background: var(--teal); color: #fff; box-shadow: var(--shadow); }
  .mcb-call .icon { color: #fff; flex: none; }
  .mcb-enquire { background: #fff; color: var(--plum); border-color: rgba(75, 42, 104, .35); }
  /* clear the fixed bar so it never covers footer links (bar is ~71px tall) */
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
