/* ==========================================================================
   Property Space — stylesheet
   Colours and fonts are set once here, in :root. Change them in one place.
   ========================================================================== */

@font-face {
  font-family: "Plus Jakarta Display";
  src: url("../fonts/plus-jakarta-sans-800.woff2") format("woff2");
  font-weight: 600 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}


:root {
  /* Brand palette: use these four, plus the tints/shades below derived from them */
  --navy: #102b4c;        /* deep navy: text, headings, footer */
  --terracotta: #b9502a;  /* terracotta: buttons, accents */
  --ivory: #f7f3ec;       /* warm ivory: tinted backgrounds */
  --sage: #9baf9a;        /* sage: nature, success */

  --navy-deep: var(--navy);
  --accent: var(--terracotta);
  --accent-dark: #973f1f;  /* terracotta, darker: hover */
  --ink: #1b2d44;          /* navy, softened: body text */
  --muted: #3f4d5f;        /* navy-grey: secondary text */
  --line: #e2dbcf;         /* ivory, darker: borders */
  --paper: #ffffff;
  --sand: var(--ivory);
  --paper-warm: var(--ivory);
  --success: #4a6a49;      /* sage, darker: success text */
  --error: #a3262a;

  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Plus Jakarta Display", "Source Sans 3", system-ui, sans-serif;
  --font-head: var(--font-display);

  --wrap: 68rem;
  --radius: 6px;
  --gutter: 1.25rem;
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.3rem, 6.5vw, 3.75rem); letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1rem; }

a { color: var(--navy); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  z-index: 100;
}
.skip-link:focus { top: 0.5rem; color: #fff; }

.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;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn:disabled { opacity: 0.6; cursor: wait; }

.btn--small { font-size: 0.95rem; padding: 0.55rem 1rem; white-space: nowrap; }
.btn--large { display: inline-flex; align-items: center; font-size: 1.1rem; padding: 0.95rem 1.4rem; border-radius: 8px; }
.btn-arrow { width: 1.3rem; height: 1.3rem; margin-left: 0.75rem; transition: transform 0.15s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

@media (max-width: 480px) {
  .site-header .wordmark img { height: 2.3rem; }
  .site-header .btn--small { font-size: 0.9rem; padding: 0.5rem 0.75rem; }
}

@media (max-width: 380px) {
  .site-header .wrap { padding: 0 0.75rem; gap: 0.5rem; }
  .site-header .wordmark img { height: 2.1rem; }
  .site-header .btn--small { font-size: 0.85rem; padding: 0.45rem 0.6rem; }
}

/* Phones: the hero button is just below, so the header keeps the logo and the call button */
@media (max-width: 480px) {
  .site-header .btn--small { display: none; }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 10px rgba(16, 43, 76, 0.18);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}

.wordmark { display: inline-flex; align-items: center; flex: none; }
.wordmark img { height: 3.3rem; width: auto; display: block; }

.header-actions { display: flex; align-items: center; gap: 1.25rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.header-phone svg { width: 1.25rem; height: 1.25rem; color: #e9a07c; flex: none; }
.header-phone:hover { color: #e9a07c; }

/* Phones: show just the phone icon, in a round button */
@media (max-width: 640px) {
  .header-actions { gap: 0.6rem; }
  .header-phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-phone {
    width: 2.4rem;
    height: 2.4rem;
    justify-content: center;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
  }
  .header-phone svg { width: 1.15rem; height: 1.15rem; }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--paper);
  padding: 2.25rem 0 2rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.eyebrow::after {
  content: "";
  flex: 0 0 3.5rem;
  height: 2px;
  margin-left: 0.4rem;
  background: var(--terracotta);
}

.hero h1 {
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 5px;
  margin-top: 1.4rem;
  border-radius: 3px;
  background: #e08a5e;
}

.hero p {
  font-size: clamp(1.1rem, 2.3vw, 1.3rem);
  line-height: 1.55;
  max-width: 33rem;
  margin-bottom: 2rem;
  color: var(--navy);
}
.hero .eyebrow { font-size: 0.9rem; margin-bottom: 1.25rem; color: var(--terracotta); }

.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; }

/* A few pen-drawn birds gliding over the hero illustration */
.hero-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.hero-sky .wings {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 0.6;
}
.hero-sky .bird { opacity: 0; }
.hero-sky .wisp {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-opacity: 0.4;
}
.hero-sky .smoke > g { opacity: 0; }
.hero-sky .cloud path {
  fill: #ffffff;
  fill-opacity: 0.6;
  stroke: var(--navy);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-opacity: 0.28;
}
.hero-sky .cloud { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  @keyframes glide {
    0%   { transform: translate(-40px, 0); opacity: 0; }
    8%   { opacity: 1; }
    50%  { transform: translate(560px, -14px); }
    92%  { opacity: 1; }
    100% { transform: translate(1170px, 6px); opacity: 0; }
  }
  @keyframes flap {
    0%, 60%, 100% { transform: scaleY(1); }
    70% { transform: scaleY(0.35); }
    80% { transform: scaleY(1.1); }
    90% { transform: scaleY(0.5); }
  }
  .hero-sky .bird { animation: glide 42s linear infinite; }
  .hero-sky .wings { transform-box: fill-box; transform-origin: center 80%; animation: flap 3.2s ease-in-out infinite; }
  .hero-sky .b1 { animation-delay: 1s; }
  .hero-sky .b2 { animation-delay: 2.6s; }
  .hero-sky .b2 .wings { animation-delay: -1.1s; }
  .hero-sky .b3 { animation-delay: 3.4s; }
  .hero-sky .b3 .wings { animation-delay: -2s; animation-duration: 2.7s; }
  .hero-sky .b4 { animation-delay: 22s; animation-duration: 50s; }
  .hero-sky .b4 .wings { animation-delay: -0.6s; }

  /* Smoke curling up from the chimneys */
  @keyframes puff {
    0%   { opacity: 0; transform: translate(0, 6px) scale(0.55); }
    25%  { opacity: 1; }
    100% { opacity: 0; transform: translate(9px, -30px) scale(1.25); }
  }
  .hero-sky .smoke > g { transform-box: fill-box; transform-origin: center bottom; animation: puff 7s ease-out infinite; }
  .hero-sky .smoke .w2 { animation-delay: 2.3s; }
  .hero-sky .smoke .w3 { animation-delay: 4.6s; }
  .hero-sky .s2 > g { animation-duration: 8s; }
  .hero-sky .s2 .w1 { animation-delay: 1.2s; }
  .hero-sky .s2 .w2 { animation-delay: 3.9s; }
  .hero-sky .s2 .w3 { animation-delay: 6.4s; }

  /* One soft cloud drifting very slowly across the sky */
  @keyframes drift {
    0%   { transform: translate(-150px, 18px); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 1; }
    100% { transform: translate(1150px, 8px); opacity: 0; }
  }
  .hero-sky .cloud { animation: drift 140s linear infinite; animation-delay: -40s; }
}

@media (min-width: 900px) {
  .hero { padding: 3rem 0 2.75rem; }
  .hero-grid { grid-template-columns: 5.2fr 6.8fr; gap: 2rem; }
  .hero .eyebrow { font-size: 0.95rem; }
}

@media (min-width: 1240px) {
  /* wide screens: let the drawing run past the column, like a sketch on a large sheet */
  .hero-art { margin-right: -5rem; margin-left: -1rem; }
}

/* ---------- Sections ---------- */

.section { padding: 2.75rem 0; }
.section--sand { background: var(--sand); }
.section--sage { background: #e4eae2; }   /* sage, lightened */
.section--tight-top { padding-top: 2.5rem; }

/* Navy band: for contrast down the page */
.section--navy { background: var(--navy); color: #e4e9ef; }
.section--navy h2 { color: #ffffff; }
.section--navy h2::after { background: #e08a5e; }
.section--navy .badges { border-top-color: rgba(255, 255, 255, 0.16); }
.section--navy .badges-label { color: #b9c4d2; }
.section--navy .badge { border-color: transparent; }

@media (min-width: 768px) {
  .section { padding: 3.75rem 0; }
  .section--tight-top { padding-top: 3rem; }
}

.section h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--accent);
  border-radius: 2px;
}

.section h2 { margin-bottom: 1.25rem; }

/* Display serif for the page's main headings (matches the hero headline) */
.section h2,
.page h1,
.page--center h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.section h2 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); }

.section-intro { color: var(--muted); max-width: 40rem; margin-bottom: 1.5rem; }

/* Situations we help with: illustrated cards */

.situations {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.situation {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 1.4rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(16, 43, 76, 0.06);
  color: var(--navy);
  text-decoration: none;
  transition: box-shadow 0.15s, transform 0.15s;
}
.situation:hover { color: var(--navy); box-shadow: 0 6px 18px rgba(16, 43, 76, 0.12); transform: translateY(-2px); }
.situation:focus-visible { outline-offset: 3px; }

.situation img {
  width: 100%;
  height: auto;
  aspect-ratio: 444 / 172;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.situation-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.situation-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 1.1rem;
}
.situation-text::after {
  content: none;
}
.situation-arrow { flex: none; width: 1.6rem; height: 1.6rem; color: var(--terracotta); transition: transform 0.15s; }
.situation:hover .situation-arrow { transform: translateX(4px); }

.situation::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  margin-top: 0.9rem;
  border-radius: 2px;
  background: var(--terracotta);
}

@media (min-width: 640px) { .situations { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .situations { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

@media (prefers-reduced-motion: reduce) {
  .situation, .situation-arrow { transition: none; }
  .situation:hover { transform: none; }
}

/* Intro and map */
.situations-grid { display: grid; gap: 2.5rem; }

.area-map { margin: 0; text-align: center; }
.area-map img { width: 100%; max-width: 34rem; height: auto; margin: 0 auto; }
.area-map figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.area-map .dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-right: 0.45rem;
  border-radius: 2px;
  background: #bd785a;
  border: 1.5px solid var(--navy);
  vertical-align: -0.05em;
}

@media (min-width: 900px) {
  .situations-grid { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
  .situations-grid > div { padding-top: 2.5rem; }
  .area-map { margin-top: -1rem; }
  .area-map img { max-width: none; }
}

/* How we can help */

.options {
  display: grid;
  gap: 1.25rem;
}

.option {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(16, 43, 76, 0.08);
}
.option h3 { margin: 1.4rem 1.6rem 0.5rem; font-size: 1.45rem; }
.option p { margin: 0 1.6rem 1.7rem; color: var(--ink); }

.option-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 220;
  object-fit: contain;
  padding: 1.25rem 2rem 0.75rem;
  background: var(--ivory);
  border-bottom: 3px solid var(--terracotta);
}

@media (min-width: 768px) {
  .options { grid-template-columns: repeat(3, 1fr); }
}

/* Why talk to us: large figures with short labels */

.stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 1.25rem;
}

.stats li {
  padding-left: 1rem;
  border-left: 3px solid #e08a5e;
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 4.2vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.stats span {
  display: block;
  margin-top: 0.4rem;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #e4e9ef;
}

@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .stats li { padding-left: 1.25rem; }
}

/* Memberships */

.badges {
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.badges-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 5.5rem;
  padding: 1rem 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--muted);
}

.badge img { width: auto; height: 2.6rem; flex: none; }
.badge .badge-icon { height: 2.8rem; }
.badge strong { display: block; color: var(--navy); font-size: 1rem; }

@media (min-width: 768px) {
  .badge-list { grid-template-columns: repeat(3, 1fr); }
  .badge { flex-direction: column; text-align: center; justify-content: center; gap: 0.6rem; }
}

/* ---------- Contact + form ---------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 18rem 1fr; gap: 4rem; align-items: start; }
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--navy);
  color: #e4e9ef;
  border-radius: 10px;
}

.contact-card img {
  border: 3px solid var(--ivory);
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.contact-card .role {
  display: block;
  font-size: 0.95rem;
  color: #b9c4d2;
}
.contact-card .name {
  display: block;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}
.contact-card p { margin: 0.75rem 0 0; font-size: 1.05rem; line-height: 1.45; color: #e4e9ef; }
.contact-card .phone {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f0a77f;
  text-decoration: none;
  white-space: nowrap;
}
.contact-card .phone:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .contact-card { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .contact-card img { width: 9rem; height: 9rem; }
}

.enquiry-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

@media (min-width: 600px) {
  .enquiry-form { padding: 2.25rem; }
}

.form-row { margin-bottom: 1.25rem; }

.form-pair { display: grid; gap: 0 1.25rem; }
@media (min-width: 600px) {
  .form-pair { grid-template-columns: 1fr 1fr; }
}

label, .legend {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.optional { font-weight: 400; color: var(--muted); }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #a7a49e;
  border-radius: var(--radius);
  padding: 0.7rem 0.8rem;
}

textarea { min-height: 7rem; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  outline: 3px solid rgba(16, 43, 76, 0.25);
  outline-offset: 0;
}

[aria-invalid="true"] { border-color: var(--error) !important; }

.hint { font-size: 1rem; color: var(--muted); margin: -0.5rem 0 1rem; }

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-weight: 400;
}
.consent input {
  width: 1.3rem;
  height: 1.3rem;
  margin: 0.2rem 0 0;
  flex: none;
  accent-color: var(--navy);
}

.form-error {
  color: var(--error);
  font-weight: 600;
  margin: 0 0 1rem;
}
.form-error:empty { display: none; }

.form-success {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.3;
  color: var(--success);
  font-weight: 700;
}

/* Honeypot: off-screen, not display:none, so simple bots still fill it */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #d4dbe3;
  padding: 3rem 0 2rem;
  font-size: 1rem;
}
.site-footer p { margin-bottom: 0.75rem; max-width: 52rem; }
.footer-logo { height: 2.8rem; width: auto; margin-bottom: 1rem; }
.site-footer .footer-phone { margin-bottom: 1.5rem; font-size: 1.05rem; }
.site-footer .footer-phone a { font-weight: 600; text-decoration: none; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #e9a07c; }

.footer-links {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.copyright { color: #9fadbd; margin: 0; }

/* ---------- Legal / plain pages ---------- */

.page { padding: 3rem 0 4.5rem; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-bottom: 1.5rem; }
.page h2 { font-size: 1.45rem; margin-top: 2.25rem; }
.page ul { padding-left: 1.25rem; }
.page li { margin-bottom: 0.4rem; }
.page .updated { color: var(--muted); }

.note {
  background: var(--sand);
  border-left: 4px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.page--center { text-align: center; padding: 6rem 0; }
.page--center .wrap { max-width: 36rem; }

/* ==========================================================================
   Subtle effects (all switched off for "reduce motion")
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* Scroll reveal: only when effects.js has run */
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  /* a one-off animation, so hover effects on the same cards still work afterwards */
  .js-reveal [data-reveal]:not(.is-visible) { opacity: 0; }
  .js-reveal [data-reveal].is-visible { animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

  /* Hero: ease in on load, and draw the bar under the headline */
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .hero .eyebrow { animation: rise 0.6s ease both; }
  .hero h1 { animation: rise 0.7s 0.08s ease both; }
  .hero h1::after { transform-origin: left; animation: draw 0.7s 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero p:not(.eyebrow) { animation: rise 0.7s 0.18s ease both; }
  .hero .btn { animation: rise 0.7s 0.28s ease both; }
  .hero-art { animation: rise 0.9s 0.2s ease both; }

  /* Buttons: slight lift */
  .btn { transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
  .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(185, 80, 42, 0.25); }
  .btn:active { transform: none; box-shadow: none; }

  /* "How we can help" cards: lift, and the drawing zooms in a touch */
  .option { transition: transform 0.2s, box-shadow 0.2s; }
  .option:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(16, 43, 76, 0.12); }
  .option-art { transition: transform 0.35s ease; transform-origin: center bottom; }
  .option:hover .option-art { transform: scale(1.03); }

  /* Membership badges: lift */
  .badge { transition: transform 0.2s, box-shadow 0.2s; }
  .badge:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }

  /* Header shadow once scrolled */
  .site-header { transition: box-shadow 0.25s; }

  /* Form fields: soft glow when focused */
  input, select, textarea { transition: border-color 0.15s, box-shadow 0.2s; }
}

.site-header.is-scrolled { box-shadow: 0 6px 18px rgba(16, 43, 76, 0.28); }

input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px rgba(185, 80, 42, 0.12); }

/* Links: underline slides in */
.site-footer .footer-links a,
.page a:not(.btn) {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
}
@media (prefers-reduced-motion: no-preference) {
  .site-footer .footer-links a,
  .page a:not(.btn) { transition: background-size 0.25s ease; }
  .site-footer .footer-links a { background-size: 0 1px; }
  .site-footer .footer-links a:hover,
  .site-footer .footer-links a:focus-visible { background-size: 100% 1px; }
}

/* ---------- Map: county highlight on hover / tap ---------- */

.area-map { position: relative; }
.area-map svg { display: block; width: 100%; max-width: 34rem; height: auto; margin: 0 auto; }
@media (min-width: 900px) { .area-map svg { max-width: none; } }

.area-map svg * { pointer-events: none; }
.area-map .county { pointer-events: fill; cursor: pointer; }
.area-map .county.is-active { fill-opacity: 0.32; }
@media (prefers-reduced-motion: no-preference) {
  .area-map .county { transition: fill-opacity 0.2s ease; }
}

.map-tip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, calc(-100% - 14px));
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--navy);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(16, 43, 76, 0.25);
}
.map-tip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: var(--navy);
  transform: rotate(45deg);
}


/* ---------- Hero: secondary link ---------- */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.text-link-icon {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta);
}
.text-link-icon svg { width: 1rem; height: 1rem; }
.text-link:hover { color: var(--terracotta); }
@media (prefers-reduced-motion: no-preference) {
  .text-link-icon { transition: transform 0.2s; }
  .text-link:hover .text-link-icon { transform: translateY(2px); }
  .hero .hero-actions { animation: rise 0.7s 0.28s ease both; }
  .hero .hero-actions .btn { animation: none; }
}

/* ---------- Process: three steps ---------- */
.section--compact h2 { margin-bottom: 1.5rem; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
.step { display: flex; align-items: flex-start; gap: 1rem; }
.step img { flex: none; width: 4.75rem; height: 4.75rem; }
.step h3 { margin: 0.4rem 0 0.3rem; font-size: 1.2rem; }
.step p { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.45; }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .step { position: relative; }
  /* arrow between the steps */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -1.85rem;
    top: 2rem;
    width: 1.3rem;
    height: 1.3rem;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15M13 6l6 6-6 6' fill='none' stroke='%23b9502a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}

/* ---------- Closing band ---------- */
.cta-band {
  background: var(--ivory);
  border-top: 1px solid var(--line);
}
.cta-inner {
  display: grid;
  gap: 1.25rem;
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.cta-tree { display: none; }
.cta-band h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 1.8rem); max-width: 26ch; }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
}
.cta-phone svg { width: 1.3rem; height: 1.3rem; color: var(--terracotta); }
.cta-phone:hover { color: var(--terracotta); }

/* Computers: tree | heading | actions, all inside the content column; the tree stands on the band's bottom edge */
@media (min-width: 900px) {
  .cta-inner {
    grid-template-columns: 15rem 1fr auto;
    align-items: center;
    gap: 2.5rem;
    padding-top: 0;
    padding-bottom: 0;
  }
  .cta-tree {
    display: block;
    align-self: end;
    width: 15rem;
    height: auto;
    margin-top: 1.25rem;
  }
  .cta-band h2 { padding-left: 1.75rem; border-left: 2px solid var(--terracotta); }
  .cta-actions { flex-direction: column; align-items: flex-start; padding: 2rem 0; }
}

/* ---------- Small text on tinted backgrounds: darker terracotta, for contrast (WCAG AA) ---------- */
.section--sand .eyebrow,
.section--sage .eyebrow { color: var(--accent-dark); }

.nowrap { white-space: nowrap; }

/* ---------- Hero: proof line under the buttons ---------- */
.proof {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.proof li::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.5 12.5l5 5L19.5 7' fill='none' stroke='%23b9502a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: no-preference) {
  .hero .proof { animation: rise 0.7s 0.36s ease both; }
}

/* ---------- Recent projects: a finished photo with a smaller "during the build" photo set in ---------- */
.projects {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
}
.project-photos { position: relative; }
.project-main {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--ivory);
  box-shadow: 0 2px 10px rgba(16, 43, 76, 0.1);
}
.project-inset {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 34%;
  max-width: 10rem;
}
.project-inset img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 3px solid #ffffff;
  border-radius: 10px;
  background: var(--ivory);
  box-shadow: 0 4px 14px rgba(16, 43, 76, 0.3);
}
.project-tag {
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  transform: translateX(-50%);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  background: var(--navy);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.project h3 { margin: 1.3rem 0 0.35rem; font-size: 1.3rem; }
.project p { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.45; }
.projects-cta { margin: 2rem 0 0; }
.projects-cta .text-link { white-space: normal; font-size: 1.1rem; }

@media (min-width: 640px) { .projects { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .projects { gap: 2.25rem 2rem; } }

/* ---------- Phones: call / enquire bar fixed to the bottom of the screen ---------- */
.mobile-bar { display: none; }

@media (max-width: 640px) {
  .mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--navy);
    box-shadow: 0 -4px 14px rgba(16, 43, 76, 0.25);
  }
  .mobile-bar a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    text-align: center;
    line-height: 1.2;
  }
  .mobile-bar-call { flex: 0 0 auto; padding: 0 1rem; color: #ffffff; border: 1.5px solid rgba(255, 255, 255, 0.45); }
  .mobile-bar-call svg { width: 1.2rem; height: 1.2rem; color: #e9a07c; }
  .mobile-bar-enquire { padding: 0 0.75rem; color: #ffffff; background: var(--accent); }
  .mobile-bar a:hover { color: #ffffff; }

  /* with JavaScript: tucked away until the hero buttons have scrolled off screen */
  .js-bar .mobile-bar { transform: translateY(110%); visibility: hidden; }
  .js-bar .mobile-bar.is-shown { transform: none; visibility: visible; }

  /* room at the bottom, so the bar never covers the footer links */
  .site-footer { padding-bottom: 6rem; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .js-bar .mobile-bar { transition: transform 0.25s ease, visibility 0.25s; }
}

/* ---------- Print: no sticky bars, keep cards in one piece ---------- */
@media print {
  .site-header { position: static; box-shadow: none; }
  .mobile-bar, .hero-sky { display: none !important; }
  .situation, .project, .option, .stats li { break-inside: avoid; }
}

/* Narrow phones: the hero column must never be pushed wider than the screen by its contents */
.hero-grid > * { min-width: 0; }
@media (max-width: 420px) {
  .hero .eyebrow { font-size: 0.82rem; letter-spacing: 0.14em; }
  .mobile-bar a { font-size: 1rem; }
}
