/* =====================================================================
   1st Cotswold Scout Group: Hall Hire styles
   ---------------------------------------------------------------------
   To change the look, edit the colours and fonts in :root just below.
   Everything else uses these variables.
   Mobile first: the base styles are for phones, and the @media
   (min-width: …) blocks adjust the layout for bigger screens.
   ===================================================================== */

:root {
  /* ── Brand colours ── */
  --purple-950: #1f0c34;
  --purple-900: #2a1145;
  --purple-800: #3b1763;
  --purple-700: #4b1f7a;   /* main brand colour */
  --purple-200: #d9c8ee;
  --purple-100: #ece3f7;
  --purple-50:  #f7f2fc;

  --teal-700: #0b6e70;     /* teal for text on light backgrounds */
  --teal-600: #0e8285;     /* teal buttons */
  --teal-400: #3fc1bd;     /* teal on dark backgrounds */
  --teal-100: #d8f1ef;
  --teal-50:  #eef9f8;

  --sand-50:  #fcfaf6;     /* warm neutrals */
  --sand-100: #f6f1e8;
  --sand-200: #ebe2d3;

  --ink-900: #231d29;      /* text */
  --ink-600: #5a5260;
  --ink-500: #6e6574;
  --ink-300: #cdc5d0;
  --ink-200: #e4dee6;

  /* ── What each colour is used for ── */
  --color-primary: var(--purple-700);
  --color-primary-hover: var(--purple-800);
  --color-accent: var(--teal-600);
  --color-accent-hover: var(--teal-700);
  --color-bg: var(--sand-50);
  --color-bg-alt: var(--sand-100);
  --color-surface: #ffffff;
  --color-text: var(--ink-900);
  --color-muted: var(--ink-500);
  --color-border: var(--ink-200);
  --color-border-strong: var(--ink-300);
  --color-heading: var(--purple-900);
  --color-whatsapp: #0f7a5f;
  --color-error: #b42318;
  --color-error-bg: #fef3f2;
  --focus-ring: var(--teal-700);

  /* Calendar states */
  --cal-available-bg: #e3f5ea;
  --cal-available-bg-hover: #c9ecd6;
  --cal-available-text: #17643a;
  --cal-booked-bg: #f1e6e6;
  --cal-booked-text: #8b3a3a;
  --cal-pending-bg: #fdf1d8;
  --cal-pending-text: #8a5a00;
  --cal-pending-border: #efcd85;
  --cal-past-text: #b3abb7;

  /* ── Fonts ── */
  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ── Shape and depth ── */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(35, 29, 41, .05), 0 2px 6px rgba(35, 29, 41, .05);
  --shadow: 0 2px 4px rgba(35, 29, 41, .04), 0 12px 32px rgba(35, 29, 41, .08);
  --shadow-lg: 0 4px 8px rgba(42, 17, 69, .05), 0 24px 60px rgba(42, 17, 69, .16);

  /* ── Layout ── */
  --header-h: 68px;
  --container: 1160px;
  --gutter: 16px;
  --section-space: clamp(64px, 11vw, 120px);
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

/* ===================== Base ===================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.lightbox-open { overflow: hidden; }

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

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

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
/* :where() keeps this reset weaker than any component style below */
:where(ul[class], ol[class], nav ul) { list-style: none; padding: 0; }

h1, h2 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-weight: 600;
  color: var(--color-heading);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); }
h3 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }

a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }

[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; color: #fff; }

.noscript {
  margin: calc(var(--header-h) + 16px) var(--gutter) 0;
  padding: 16px;
  background: var(--color-error-bg);
  border-radius: var(--radius-sm);
}

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

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.icon-wrap { display: inline-flex; }

/* ===================== Buttons ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 1.15em; height: 1.15em; }

.btn--primary { background: var(--color-primary); color: #fff; box-shadow: 0 6px 18px rgba(75, 31, 122, .22); }
.btn--primary:hover { background: var(--color-primary-hover); color: #fff; }

.btn--accent { background: var(--color-accent); color: #fff; box-shadow: 0 6px 18px rgba(14, 130, 133, .25); }
.btn--accent:hover { background: var(--color-accent-hover); color: #fff; }

.btn--ghost { border-color: var(--purple-200); color: var(--color-primary); background: transparent; }
.btn--ghost:hover { background: var(--purple-50); border-color: var(--color-primary); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .08); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .18); color: #fff; border-color: #fff; }

.btn--whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn--whatsapp:hover { background: #0b604b; color: #fff; }

.btn--link {
  min-height: 44px;
  padding: .5rem .75rem;
  background: none;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--link:hover { transform: none; color: var(--color-primary-hover); }

.btn--sm { min-height: 42px; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.6rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }

/* ===================== Header and navigation ===================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  color: #fff;
  --focus-ring: #fff;
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(252, 250, 246, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  color: var(--color-text);
  box-shadow: 0 1px 0 rgba(35, 29, 41, .06), 0 10px 30px rgba(35, 29, 41, .06);
  --focus-ring: var(--teal-700);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  min-width: 0;
}
.brand:hover { color: inherit; }
.brand__mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__short { display: none; }
@media (max-width: 359px) {
  .brand__full { display: none; }
  .brand__short { display: inline; }
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after,
.nav-toggle__bars span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle__bars { position: relative; background: transparent; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu: a panel that drops down below the header */
.nav-menu {
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 8px var(--gutter) 20px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 24px 40px rgba(35, 29, 41, .12);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.menu-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s, transform .3s var(--ease), visibility 0s;
}
.nav-links a {
  display: block;
  padding: 13px 4px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 500;
  font-size: 1.0625rem;
  text-decoration: none;
}
.nav-links a[aria-current] { color: var(--color-primary); }
.nav-cta { width: 100%; margin-top: 16px; min-height: 50px; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links { display: flex; gap: 4px; }
  .nav-links a {
    position: relative;
    padding: 8px 12px;
    border: 0;
    border-radius: var(--radius-pill);
    color: inherit;
    font-size: .9375rem;
    opacity: .88;
    transition: opacity .2s, background-color .2s;
  }
  .nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, .12); }
  .nav-links a[aria-current] { color: inherit; opacity: 1; }
  .nav-links a[aria-current]::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--teal-400);
  }
  .nav-cta { width: auto; margin: 0; min-height: 42px; }
}

/* ===================== Shared section styles ===================== */

.section { padding-block: var(--section-space); }
.section--pricing,
.section--gallery { background: var(--color-bg-alt); }

.eyebrow {
  margin-bottom: 10px;
  color: var(--teal-700);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow--light { color: var(--teal-400); }

.section-head { margin-bottom: clamp(32px, 6vw, 56px); }
.section-head--center { text-align: center; max-width: 680px; margin-inline: auto; }
.lead {
  margin-top: 14px;
  color: var(--ink-600);
  font-size: clamp(1.0625rem, 2.2vw, 1.1875rem);
}

/* Scroll-in animation (only when the visitor hasn't asked for less motion) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--delay, 0ms);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Stagger cards so they fade in one after another */
  .feature:nth-child(4n + 2), .gallery__item:nth-child(3n + 2) { --delay: 80ms; }
  .feature:nth-child(4n + 3), .gallery__item:nth-child(3n) { --delay: 160ms; }
  .feature:nth-child(4n) { --delay: 240ms; }
}

/* ===================== 1. Hero ===================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(92svh, 860px);
  min-height: max(600px, min(92svh, 860px));
  padding: calc(var(--header-h) + 40px) 0 104px;
  color: #fff;
  background: var(--purple-950);
  overflow: hidden;
  isolation: isolate;
  --focus-ring: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(31, 12, 52, .55) 0%, rgba(31, 12, 52, .35) 40%, rgba(31, 12, 52, .85) 100%);
}
@media (min-width: 900px) {
  .hero__overlay {
    background:
      linear-gradient(100deg, rgba(31, 12, 52, .9) 0%, rgba(31, 12, 52, .7) 42%, rgba(31, 12, 52, .15) 75%),
      linear-gradient(180deg, rgba(31, 12, 52, .35) 0%, transparent 30%, rgba(31, 12, 52, .45) 100%);
  }
}
.hero__content { position: relative; }
.hero__title {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(2.6rem, 9vw, 4.75rem);
  line-height: 1.02;
  text-wrap: balance;
}
.hero__tagline {
  max-width: 34rem;
  margin-top: 20px;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.0625rem, 2.6vw, 1.25rem);
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__actions .btn { flex: 1 1 220px; }
@media (min-width: 600px) {
  .hero__actions .btn { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .js .hero__content > * { animation: rise .9s var(--ease) both; }
  .js .hero__content > :nth-child(2) { animation-delay: .08s; }
  .js .hero__content > :nth-child(3) { animation-delay: .16s; }
  .js .hero__content > :nth-child(4) { animation-delay: .24s; }
  .js .hero__bg { animation: settle 1.6s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { transform: scale(1.06); } }

/* Quick facts strip that overlaps the bottom of the hero */
.facts-wrap { position: relative; z-index: 2; margin-top: -56px; }
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px 20px;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.fact {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.3;
}
.fact__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
}
.fact--featured { color: var(--color-primary); }
.fact--featured .fact__icon { background: var(--purple-100); color: var(--color-primary); }
@media (min-width: 900px) {
  .facts { padding: 24px 32px; }
  .fact { font-size: 1rem; }
}

/* ===================== 2. About ===================== */

.about__layout { display: grid; gap: 4px; }
.about__layout .section-head { margin-bottom: 16px; }
.about__text p { color: var(--ink-600); font-size: 1.0625rem; }
.about__text p + p { margin-top: 14px; }
@media (min-width: 900px) {
  .about__layout {
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: end;
    margin-bottom: 56px;
  }
  .about__layout .section-head { margin-bottom: 0; }
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.feature {
  padding: 18px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, transform .3s var(--ease), opacity .8s var(--ease);
}
.feature:hover { box-shadow: var(--shadow); }
.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--teal-50);
  color: var(--teal-700);
}
.feature__icon .icon { width: 24px; height: 24px; }
.feature__title { font-size: 1rem; color: var(--color-heading); }
.feature__text { margin-top: 4px; color: var(--color-muted); font-size: .9rem; line-height: 1.5; }
@media (min-width: 600px) {
  .features { gap: 16px; }
  .feature { padding: 24px; }
}
@media (min-width: 900px) {
  .features { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 0; }
}

/* ===================== 3. Pricing ===================== */

.pricing { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) {
  .pricing { grid-template-columns: 5fr 7fr; gap: 40px; }
}

.price-card {
  position: relative;
  padding: clamp(28px, 5vw, 44px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(63, 193, 189, .22) 0%, transparent 55%),
    linear-gradient(160deg, var(--purple-700) 0%, var(--purple-900) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  --focus-ring: #fff;
}
.price-card__label {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .12);
  color: var(--teal-100);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.price-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 20px 0 24px; }
.price-card__amount {
  font-family: var(--font-heading);
  font-size: clamp(3.25rem, 12vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-card__unit { color: rgba(255, 255, 255, .78); font-size: 1.125rem; }

.check-list { display: grid; gap: 12px; margin-bottom: 32px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .92); }
.check-list .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  padding: 3px;
  border-radius: 50%;
  background: rgba(63, 193, 189, .22);
  color: var(--teal-400);
  stroke-width: 2.6;
}

.pricing__notes-title { margin-bottom: 16px; font-size: 1.25rem; color: var(--color-heading); }
.notes { display: grid; gap: 12px; }
.note {
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.note dt { font-weight: 600; color: var(--color-heading); }
.note dd { margin-top: 4px; color: var(--ink-600); font-size: .9375rem; line-height: 1.55; }
@media (min-width: 600px) {
  .notes { grid-template-columns: 1fr 1fr; gap: 16px; }
}

.support-note {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  color: #0a4f51;
}
.support-note__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--teal-700);
}

/* ===================== 4. Availability calendar ===================== */

.availability { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) {
  .availability { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; }
}

.calendar { position: relative; padding: 14px 12px 16px; }
@media (min-width: 600px) { .calendar { padding: 24px; } }
@media (max-width: 359px) { .calendar { padding-inline: 8px; } }

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.calendar__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-heading);
  text-align: center;
}
.calendar__nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.calendar__nav:hover:not(:disabled) { background: var(--purple-50); border-color: var(--purple-200); }
.calendar__nav:disabled { opacity: .35; cursor: not-allowed; }

.calendar__grid {
  --cal-gap: 4px;
  width: calc(100% + 2 * var(--cal-gap));
  margin: 0 calc(-1 * var(--cal-gap));
  border-collapse: separate;
  border-spacing: var(--cal-gap);
  table-layout: fixed;
}
@media (max-width: 359px) { .calendar__grid { --cal-gap: 3px; } }
.calendar__grid th {
  padding-bottom: 4px;
  color: var(--color-muted);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.calendar__grid td { padding: 0; }

.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: clamp(42px, 11.5vw, 54px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  font-size: .9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s var(--ease), box-shadow .15s;
}
.cal-day:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; z-index: 1; }

.cal-day.is-available { background: var(--cal-available-bg); color: var(--cal-available-text); }
.cal-day.is-available:hover { background: var(--cal-available-bg-hover); transform: translateY(-1px); }

.cal-day.is-booked {
  background-color: var(--cal-booked-bg);
  background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(139, 58, 58, .09) 5px 10px);
  color: var(--cal-booked-text);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  cursor: not-allowed;
}
.cal-day.is-pending {
  background: var(--cal-pending-bg);
  color: var(--cal-pending-text);
  box-shadow: inset 0 0 0 1.5px var(--cal-pending-border);
  cursor: not-allowed;
}
.cal-day.is-past { color: var(--cal-past-text); font-weight: 500; cursor: default; }

/* Today: a small dot under the number */
.cal-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

/* Hover preview while choosing a range */
.cal-day.is-preview { background: var(--purple-50); color: var(--color-primary); box-shadow: inset 0 0 0 1.5px var(--purple-200); }

/* Chosen dates */
.cal-day.is-selected { background: var(--purple-100); color: var(--purple-800); }
.cal-day.is-range-start,
.cal-day.is-range-end {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 14px rgba(75, 31, 122, .3);
}
.cal-day.is-selected:hover { transform: none; }

.calendar__loading {
  position: absolute;
  inset: auto 16px 16px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--purple-50);
  color: var(--color-primary);
  font-size: .875rem;
  font-weight: 500;
  text-align: center;
}
.calendar__loading.is-error { position: static; margin-top: 12px; background: var(--color-error-bg); color: var(--color-error); }
.calendar.is-loading tbody { opacity: .4; }

.availability__side { display: grid; gap: 16px; }

.legend { padding: 18px 20px; }
.legend__title {
  margin-bottom: 12px;
  color: var(--color-muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.legend__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: .9375rem; }
.legend__list li { display: flex; align-items: center; gap: 10px; }
.swatch { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; }
.swatch--available { background: var(--cal-available-bg); box-shadow: inset 0 0 0 1.5px #9fd8b6; }
.swatch--selected { background: var(--color-primary); }
.swatch--booked {
  background-color: var(--cal-booked-bg);
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, rgba(139, 58, 58, .18) 4px 7px);
  box-shadow: inset 0 0 0 1.5px #e0c6c6;
}
.swatch--past { background: var(--color-surface); box-shadow: inset 0 0 0 1.5px var(--color-border-strong); }
.swatch--pending { background: var(--cal-pending-bg); box-shadow: inset 0 0 0 1.5px var(--cal-pending-border); }

.selection { padding: 22px 20px; }
.selection__empty { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-600); }
.selection__empty .icon { width: 28px; height: 28px; color: var(--teal-700); }
.selection__label {
  color: var(--color-muted);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.selection__dates {
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-heading);
}
.selection__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border-strong);
  color: var(--ink-600);
}
.selection__total { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--color-primary); }
.selection__hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  color: #0a4f51;
  font-size: .9rem;
}
.selection__actions { display: grid; gap: 4px; margin-top: 16px; justify-items: center; }

.calendar__message:not(:empty) {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--color-error-bg);
  border: 1px solid #f7d4d0;
  color: var(--color-error);
  font-size: .9375rem;
  font-weight: 500;
}

/* ===================== 5. Gallery ===================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.gallery__item { min-width: 0; }
.gallery__item:first-child { grid-column: span 2; }
.gallery__item:last-child:nth-child(even) { grid-column: span 2; }

.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-200);
  cursor: zoom-in;
}
.gallery__item:first-child .gallery__btn,
.gallery__item:last-child:nth-child(even) .gallery__btn { aspect-ratio: 16 / 10; }
.gallery__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__btn.is-missing img { opacity: 0; }
.gallery__btn.is-missing {
  background: repeating-linear-gradient(135deg, var(--sand-100) 0 12px, var(--sand-200) 12px 24px);
}
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(31, 12, 52, .75));
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  text-align: left;
}

@media (min-width: 900px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 230px;
    grid-auto-flow: dense;
    gap: 16px;
  }
  .gallery__item:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery__item:last-child:nth-child(even) { grid-column: auto; }
  .gallery__btn,
  .gallery__item:first-child .gallery__btn,
  .gallery__item:last-child:nth-child(even) .gallery__btn { aspect-ratio: auto; }
  .gallery__caption { padding: 40px 18px 16px; font-size: .9375rem; }
}

/* Photo viewer (lightbox) */
.lightbox {
  /* Space kept free around the photo: top bar, caption and buttons */
  --lb-chrome: 230px;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #120a1d;
  color: #fff;
  overflow: hidden;
  --focus-ring: #fff;
}
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: #120a1d; }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] { animation: fade .25s ease both; }
}
@keyframes fade { from { opacity: 0; } }

.lightbox__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 0 20px;
}
.lightbox__counter { color: rgba(255, 255, 255, .75); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  cursor: pointer;
  transition: background-color .2s;
}
.lightbox__btn:hover { background: rgba(255, 255, 255, .2); }
.lightbox__btn .icon { width: 24px; height: 24px; }

/* The figure fills the space under the bar; photo and caption sit centred in it */
.lightbox__figure {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 8px 12px 96px;
  touch-action: pan-y pinch-zoom;
}
.lightbox__stage { display: flex; justify-content: center; max-width: 100%; }
.lightbox__img {
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--lb-chrome));
  max-height: calc(100dvh - var(--lb-chrome));
  border-radius: 10px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .25s ease;
}
.lightbox__img.is-loading { opacity: 0; }
.lightbox__caption { padding-top: 14px; text-align: center; color: rgba(255, 255, 255, .9); font-size: 1rem; }

.lightbox__nav { position: absolute; bottom: 24px; }
.lightbox__nav--prev { left: calc(50% - 60px); }
.lightbox__nav--next { right: calc(50% - 60px); }
@media (min-width: 900px) {
  .lightbox { --lb-chrome: 160px; }
  .lightbox__figure { padding: 8px 96px 32px; }
  .lightbox__nav { top: 50%; bottom: auto; transform: translateY(-50%); width: 56px; height: 56px; }
  .lightbox__nav--prev { left: 24px; }
  .lightbox__nav--next { right: 24px; }
}

/* ===================== 6. Enquiry form ===================== */

.enquire { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) {
  .enquire { grid-template-columns: 5fr 7fr; gap: 56px; }
  .enquire__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

.steps { display: grid; gap: 4px; margin-top: 28px; counter-reset: step; }
.steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 20px 52px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--color-primary);
  font-weight: 700;
  font-size: .9375rem;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16.5px;
  top: 38px;
  bottom: 2px;
  width: 1px;
  background: var(--purple-200);
}
.steps strong { color: var(--color-heading); }
.steps span { color: var(--color-muted); font-size: .9375rem; }
.enquire__alt { margin-top: 8px; color: var(--ink-600); }
.enquire__alt a { font-weight: 600; }

.form-card { padding: clamp(20px, 5vw, 40px); }
.form__title { font-family: var(--font-heading); font-size: 1.5rem; color: var(--color-heading); }
.form__title:focus { outline: none; }
.form__required-note { margin: 2px 0 20px; color: var(--color-muted); font-size: .875rem; }
.req { color: var(--color-error); }
.optional { color: var(--color-muted); font-weight: 400; }

.form-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-error-bg);
  border: 1px solid #f7d4d0;
  color: var(--color-error);
  font-weight: 500;
}
.form-alert .icon { margin-top: 2px; }
.form-alert a { color: inherit; font-weight: 700; }

.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 6px; align-content: start; min-width: 0; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 1rem;   /* 16px stops phones zooming in on tap */
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #9a919f; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #b3a9b8; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(11, 110, 112, .25);
  border-radius: 12px;
}
.field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b1f7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px;
}
.field input[type="date"] { line-height: 1.4; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }

.field__hint { color: var(--color-muted); font-size: .8125rem; line-height: 1.4; }
.field__error:empty { display: none; }
.field__error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: var(--color-error);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.4;
}
.field__error .icon { width: 16px; height: 16px; margin-top: 1px; }
.has-error input,
.has-error select,
.has-error textarea { border-color: var(--color-error); background-color: var(--color-error-bg); }

/* Checkbox */
.field--check {
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: start;
}
.field--check label { font-weight: 400; font-size: .9375rem; line-height: 1.5; color: var(--ink-600); cursor: pointer; }
.field--check .field__error { grid-column: 1 / -1; }
.field input[type="checkbox"] {
  width: 24px;
  height: 24px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 7px;
  cursor: pointer;
}
.field input[type="checkbox"]:checked {
  border-color: var(--color-primary);
  background: var(--color-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Spam trap: hidden from people */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Live price estimate */
.estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--purple-50), var(--teal-50));
  border: 1px solid var(--purple-100);
}
.estimate__text { display: grid; gap: 2px; min-width: 0; }
.estimate__label { font-weight: 700; color: var(--color-heading); }
.estimate__detail { color: var(--ink-600); font-size: .875rem; line-height: 1.4; }
.estimate__total {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.form__submit { display: grid; gap: 10px; margin-top: 4px; }
.form__submit-note { color: var(--color-muted); font-size: .875rem; text-align: center; }
.btn.is-busy .icon { animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(4px); } }

/* Success message */
.form-success { padding: 12px 0 4px; text-align: center; }
.form-success__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--cal-available-bg);
  color: var(--cal-available-text);
}
.form-success__icon .icon { width: 34px; height: 34px; }
.form-success__title { font-family: var(--font-heading); font-size: 1.625rem; color: var(--color-heading); }
.form-success__title:focus { outline: none; }
.form-success__text { max-width: 34rem; margin: 12px auto 0; color: var(--ink-600); }
.form-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.form-success__actions .btn:not(.btn--link) { flex: 1 1 200px; }
.form-success__actions .btn--link { flex-basis: 100%; }

/* ===================== 7. Contact ===================== */

.contact { display: grid; gap: 20px; }
@media (min-width: 900px) {
  .contact { grid-template-columns: 5fr 7fr; gap: 32px; align-items: stretch; }
}
.contact-card { padding: clamp(24px, 5vw, 36px); }
.contact-card__name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--color-heading); }
.contact-card__role { color: var(--teal-700); font-weight: 600; font-size: .9375rem; }
.contact-list { display: grid; gap: 14px; margin: 24px 0 28px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-600); }
.contact-list a { font-weight: 600; word-break: break-word; }
.contact-list address { font-style: normal; }
.contact-list__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: -6px;
  border-radius: 10px;
  background: var(--purple-50);
  color: var(--color-primary);
}
.contact-list__icon .icon { width: 20px; height: 20px; }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-card__actions .btn { flex: 1 1 160px; }

.map { position: relative; min-height: 340px; overflow: hidden; padding: 0; }
.map--embed { display: grid; grid-template-rows: 1fr auto; }
.map__frame { position: relative; min-height: 300px; background: var(--sand-100); }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
}
.map__bar-text { color: var(--ink-600); font-size: .9375rem; }
.map__placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  height: 100%;
  min-height: 340px;
  padding: 32px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(63, 193, 189, .18) 0 18%, transparent 19%),
    radial-gradient(circle at 75% 70%, rgba(75, 31, 122, .1) 0 22%, transparent 23%),
    linear-gradient(transparent 47px, rgba(75, 31, 122, .07) 48px) 0 0 / 48px 48px,
    linear-gradient(90deg, transparent 47px, rgba(75, 31, 122, .07) 48px) 0 0 / 48px 48px,
    var(--sand-100);
}
.map__pin {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.map__pin .icon { width: 30px; height: 30px; transform: rotate(45deg); }
.map__title { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; color: var(--color-heading); }
.map__address { margin-bottom: 12px; color: var(--ink-600); }

/* ===================== 8. Footer ===================== */

.site-footer {
  padding: 56px 0 28px;
  background: var(--purple-950);
  color: rgba(255, 255, 255, .75);
  --focus-ring: #fff;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--teal-400); }
.footer { display: grid; gap: 32px; }
.footer__name { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; color: #fff; }
.footer__tagline { margin-top: 6px; }
.footer__nav ul { display: grid; gap: 8px; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__scouts a { font-weight: 600; }
.footer__bottom {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  font-size: .875rem;
  color: rgba(255, 255, 255, .6);
}
/* Divider line, lined up with the text rather than the container edge */
.footer__bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, .12);
}
@media (min-width: 760px) {
  .footer { grid-template-columns: 2fr 1fr 1fr; }
}

/* ===================== Reduced motion ===================== */

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

/* ===================== Simple pages (privacy, 404) ===================== */

.plain-header { border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.plain-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.brand--dark { color: var(--color-text); }
.plain-header .btn { flex-shrink: 0; }
@media (max-width: 480px) { .plain-header .brand__name { display: none; } }

.prose { max-width: 720px; padding-block: 48px 72px; }
.prose h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin-bottom: 12px; }
.prose h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-600); }
.prose p + p { margin-top: 12px; }
.prose ul { margin-top: 8px; padding-left: 1.25rem; display: grid; gap: 6px; }
.prose--center { text-align: center; display: grid; justify-items: center; gap: 8px; padding-top: 18vh; }

.terms-link { margin-top: 14px; font-weight: 600; }
