/* =====================================================================
   Safe Support Ventures — Stylesheet
   Palette: calming teal (trust/safety) + warm amber accent (warmth)
   ===================================================================== */

:root {
  /* Brand */
  --teal-900: #134e4a;
  --teal-800: #115e59;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-50:  #f0fdfa;

  --amber-500: #f59e0b;
  --amber-400: #fbbf24;

  /* Neutrals */
  --ink:      #102a26;
  --body:     #3f4f4c;
  --muted:    #6b7c79;
  --line:     #e3ebe9;
  --surface:  #ffffff;
  --tint:     #f4f9f8;
  --tint-2:   #eef6f4;

  --radius:   18px;
  --radius-sm: 12px;
  --shadow:   0 18px 40px -20px rgba(15, 118, 110, 0.35);
  --shadow-sm: 0 8px 24px -14px rgba(16, 42, 38, 0.35);

  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-head: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--surface);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1.1em; }
a { color: var(--teal-700); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--teal-600); }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--teal-900); color: #d6e9e6; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--teal-600);
  margin: 0 0 .65em;
}
.eyebrow--light { color: var(--amber-400); }

.section__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; }
.section--dark .section__title { color: #fff; }

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section__intro { color: var(--muted); font-size: 1.08rem; }
.section--dark .section__intro { color: #aecfca; }

.section__note { text-align: center; margin-top: 2.5rem; color: var(--muted); }
.section__note--light { color: #aecfca; }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  --btn-bg: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--btn-bg); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--teal-600); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ----------------------------- Header / Nav ----------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }

.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); }
.brand__mark {
  display: grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800));
  color: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.brand__mark img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  display: block;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand__text strong { font-weight: 700; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__text small { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-600); margin-top: 3px; }

.nav__menu { display: flex; align-items: center; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav__menu a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: .92rem;
  color: var(--ink);
  padding: .55rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.nav__menu a:hover { color: var(--teal-700); background: var(--teal-50); }
.nav__cta { background: var(--teal-700); color: #fff !important; margin-left: .35rem; white-space: nowrap; }
.nav__cta:hover { background: var(--teal-600) !important; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav__toggle span { display: block; height: 2.5px; width: 24px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(19,78,74,.94), rgba(13,148,136,.78)),
    radial-gradient(circle at 75% 30%, rgba(245,158,11,.25), transparent 45%),
    var(--teal-800);
  overflow: hidden;
}
.hero__overlay {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 18% 78%, rgba(255,255,255,.10), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(255,255,255,.08), transparent 28%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 760px; padding-block: 96px; }
.hero__eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--amber-400);
  border: 1px solid rgba(251,191,36,.5);
  border-radius: 999px;
  padding: .35rem 1rem;
  margin-bottom: 1.4rem;
}
.hero__title { color: #fff; font-size: clamp(2.5rem, 6.5vw, 4.6rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: #e3f3f1; max-width: 620px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.55); border-radius: 999px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: #fff;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; top: 8px; } 40% { opacity: 1; } 80% { opacity: 0; top: 22px; } 100% { opacity: 0; } }

/* ----------------------------- Values strip ----------------------------- */
.values { background: var(--surface); margin-top: -1px; }
.values__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding-block: clamp(48px, 7vw, 80px);
}
.value { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.value__icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 1rem;
  border-radius: 16px; background: var(--teal-50); color: var(--teal-700);
}
.value__icon svg { width: 28px; height: 28px; }
.value h3 { font-size: 1.12rem; font-weight: 600; }
.value p { font-size: .95rem; color: var(--muted); margin: 0; }

/* ----------------------------- About ----------------------------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.about__media {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  /* push the image column down so it starts below the heading */
  margin-top: 11rem;
}
.about__media-main {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  background: var(--teal-800);
}
.about__media-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about__media-main::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,78,74,0) 45%, rgba(15,78,74,0.55) 100%);
  pointer-events: none;
}
.about__badge {
  position: absolute; left: 22px; bottom: 22px; z-index: 2;
  background: #fff; color: var(--ink); border-radius: var(--radius-sm);
  padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.about__badge-num { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--teal-700); }
.about__badge-label { font-size: .8rem; color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ----------------------------- Cards (homes) ----------------------------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, var(--teal-600), var(--teal-800)); color: #fff; margin-bottom: 1.25rem;
}
.card__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.4rem; font-weight: 600; }
.card__meta { font-family: var(--font-head); font-weight: 500; font-size: .9rem; color: var(--teal-600); margin-bottom: .9rem; }
.card p:last-child { margin-bottom: 0; }

/* ----------------------------- Who we support ----------------------------- */
.support__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.support__item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.support__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: transparent; }
.support__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tint-2); color: var(--teal-700); margin-bottom: 1rem; }
.support__icon svg { width: 26px; height: 26px; }
.support__item h3 { font-size: 1.08rem; font-weight: 600; }
.support__item p { font-size: .94rem; color: var(--muted); margin: 0; }

/* ----------------------------- Property videos ----------------------------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.75rem; }
.video-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.video-card:hover { transform: translateY(-5px); border-color: rgba(251,191,36,.5); }

.video-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: #0b3531 center / cover no-repeat;
  display: block;
}
.video-card__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,53,49,.15), rgba(11,53,49,.55));
  transition: opacity .25s var(--ease);
}
.video-card__thumb:hover::after { opacity: .7; }
.video-card__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: 66px; height: 66px; border-radius: 50%;
  background: rgba(245,158,11,.95); color: #102a26;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.video-card__thumb:hover .video-card__play { transform: translate(-50%, -50%) scale(1.08); background: var(--amber-400); }
.video-card__play svg { width: 26px; height: 26px; margin-left: 3px; }

.video-card__iframe { width: 100%; aspect-ratio: 16/9; border: 0; display: block; }
.video-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.video-card__title { color: #fff; font-size: 1.2rem; font-weight: 600; margin-bottom: .35rem; }
.video-card__desc { color: #aecfca; font-size: .95rem; margin: 0; }

/* ----------------------------- Careers ----------------------------- */
.careers__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.careers__steps {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-sm);
}
.careers__steps-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; }
.steps__num {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--teal-700); color: #fff; font-family: var(--font-head); font-weight: 700;
}
.steps strong { display: block; color: var(--ink); font-family: var(--font-head); }
.steps p { margin: .15rem 0 0; font-size: .92rem; color: var(--muted); }

/* ----------------------------- Contact ----------------------------- */
.contact__grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__lead { color: var(--muted); }
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__ic {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--teal-50); color: var(--teal-700);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: .95rem; }
.contact__list a { display: block; font-weight: 500; }
.contact__list small { color: var(--muted); font-size: .85rem; }
.contact__list address { font-style: normal; color: var(--body); }

.contact__form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); box-shadow: var(--shadow-sm); }
.contact__form-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .9rem; font-weight: 500; color: var(--ink); margin-bottom: .4rem; }
.field .optional { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--tint);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); background: #fff; box-shadow: 0 0 0 4px rgba(20,184,166,.15); }
.field textarea { resize: vertical; }
.form__status { margin: 1rem 0 0; font-size: .92rem; font-weight: 500; min-height: 1.2em; }
.form__status.is-error { color: #c0392b; }
.form__status.is-success { color: var(--teal-700); }

/* ----------------------------- Footer ----------------------------- */
.footer { background: var(--ink); color: #b7cbc7; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(48px, 6vw, 72px); }
.brand--footer .brand__text strong { color: #fff; }
.brand--footer .brand__text small { color: var(--teal-500); }
.footer__tag { font-family: var(--font-head); font-weight: 500; color: #fff; margin: 1.1rem 0 .4rem; }
.footer__regulated { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-400); margin: 0; }
.footer h4 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer__nav ul, .footer__contact ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__nav a, .footer__contact a { color: #b7cbc7; font-size: .95rem; }
.footer__nav a:hover, .footer__contact a:hover { color: #fff; }
.footer__rrn { display: block; margin-top: 1.2rem; width: 150px; height: auto; background: #fff; padding: 8px 12px; border-radius: 8px; }
.card__ofsted { display: inline-block; margin-top: 1.1rem; }
.card__ofsted img { width: 72px; height: 72px; display: block; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); }
.footer__bar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 1.4rem; font-size: .85rem; color: #8aa39f; }
.footer__bar-inner p { margin: 0; }

/* ----------------------------- Entrance animation -----------------------------
   CSS-only. Content is visible by default — if animations are unsupported or
   blocked for any reason, the `to` state (visible) is what shows. No JS
   dependency, so content can never get stuck hidden. */
.reveal { animation: revealIn .7s var(--ease) both; }
@keyframes revealIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

/* When JS is active, hold reveals until they scroll into view (more deliberate,
   professional feel). Without JS, the rule above still shows everything. */
.js-reveal .reveal { animation: none; opacity: 0; transform: translateY(20px); }
.js-reveal .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ----------------------------- Responsive ----------------------------- */
@media (max-width: 980px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { margin-top: 0; max-width: 460px; order: 2; }
  .about__content { order: 1; }
  .careers__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed; inset: 88px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 24px 1.5rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-130%);
    transition: transform .35s var(--ease);
    max-height: calc(100vh - 88px); overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); }
  .nav__menu a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__cta { margin: .75rem 0 0; text-align: center; border-radius: 999px !important; }
  .nav__cta { border-bottom: none; }

  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .support__grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .values__grid, .support__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .hero__scroll span { animation: none; }
}

/* ============================ TRUST BAR ============================ */
.trustbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
}
.trustbar__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}
.trustbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .25rem;
  padding: 0 .5rem;
}
.trustbar__figure {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: var(--teal-700);
  line-height: 1.1;
}
.trustbar__label {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.3;
}
.trustbar__divider {
  width: 1px;
  background: var(--line);
  align-self: stretch;
}
@media (max-width: 760px) {
  .trustbar__inner { flex-wrap: wrap; gap: 1.25rem 0; padding: 1.5rem 0; }
  .trustbar__item { flex: 0 0 50%; }
  .trustbar__divider { display: none; }
}

/* ============================ REFERRALS EMPHASIS ============================ */
#referrals.section--tint {
  background:
    linear-gradient(120deg, rgba(15,118,110,.04), rgba(13,148,136,.07)),
    var(--tint);
}
.referrals__cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal-600);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  max-width: 760px;
  margin: 1.5rem auto 0;
  text-align: center;
}
.referrals__cta p { color: var(--body); margin-bottom: 1.5rem; }
.referrals__cta .hero__actions { justify-content: center; }

/* ---------------------------- Footer facts ---------------------------- */
.footer__facts {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .4rem;
}
.footer__facts li {
  font-size: .85rem;
  line-height: 1.4;
  color: rgba(255,255,255,.72);
}
.footer__facts strong { color: #fff; font-weight: 600; }

/* ============================ PHOTO MOSAIC ============================ */
.mosaic {
  max-width: 980px;
  margin: 1.5rem auto 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 140px;
  gap: .6rem;
}
.mosaic__item {
  position: relative;
  margin: 0; padding: 0; border: none; cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.05);
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.mosaic__item--feature {
  grid-column: span 2;
  grid-row: span 2;
}
.mosaic__item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .5s var(--ease), opacity .3s var(--ease);
}
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__item::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(13,148,136,0);
  transition: background .25s var(--ease);
}
.mosaic__item:hover::after { background: rgba(13,148,136,.12); }
.mosaic__item:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

@media (max-width: 720px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 120px; gap: .4rem; }
  .mosaic__item--feature { grid-column: span 2; grid-row: span 2; }
}

/* ============================ LIGHTBOX ============================ */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 20, 18, .92);
  padding: 2rem 1rem;
}
.lightbox[hidden] { display: none; }
.lightbox__stage {
  margin: 0;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex; flex-direction: column; align-items: center;
}
.lightbox__stage img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.lightbox__stage figcaption {
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  margin-top: .9rem; text-align: center;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  border-radius: 999px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.lightbox__close { top: 1.25rem; right: 1.25rem; width: 44px; height: 44px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.25); }
.lightbox__nav:hover { transform: translateY(-50%) scale(1.08); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav svg { width: 26px; height: 26px; }
.lightbox__counter {
  position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: .85rem;
  background: rgba(255,255,255,.1); padding: .25rem .8rem; border-radius: 999px;
}
@media (max-width: 600px) {
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: .5rem; }
  .lightbox__nav--next { right: .5rem; }
  .lightbox__close { top: .6rem; right: .6rem; }
}

/* ---------------------- Gallery home titles ---------------------- */
.gallery__home-title {
  font-family: var(--font-head);
  color: #fff;
  font-size: 1.25rem;
  text-align: center;
  margin: 2.5rem 0 0;
}
.gallery__home-title--soon { margin-top: 4rem; }
.gallery__home-title--soon span {
  color: #fcd34d;
  font-weight: 500;
  font-size: .95rem;
}

/* ---------------------- Gallery Ofsted rating subtitles ---------------------- */
.gallery__rating {
  display: block;
  font-family: var(--font-body, inherit);
  font-style: italic;
  font-weight: 500;
  font-size: .9rem;
  margin-top: .3rem;
}
.gallery__rating--outstanding { color: #fcd34d; }   /* warm amber (matches Good) */
.gallery__rating--good { color: #fcd34d; }           /* warm amber */


/* ---------------------- Home card "Opening soon" tag ---------------------- */
.card__tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: .5rem;
  font-family: var(--font-body, inherit);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-50, #ecfdf5);
  border: 1px solid var(--teal-600, #0d9488);
  border-radius: 999px;
  padding: .2rem .6rem;
  white-space: nowrap;
}

/* ---------------------- Video tour as mosaic feature tile ---------------------- */
.mosaic__item--video {
  cursor: default;
  background: #000;
}
.mosaic__item--video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
/* video tile shouldn't zoom/tint like photo tiles */
.mosaic__item--video::after { content: none; }
