/* =====================================================================
   TIPSY — Travel Industry Padel Society
   Design system + homepage styles
   Concept: sports-poster editorial, royal-blue led, padel court-line motif,
   lime used sparingly as the "spark".
   ===================================================================== */

/* ------------------------------- Tokens ------------------------------ */
:root {
  /* Palette (from build brief) */
  --royal: #0057D9;
  --royal-deep: #003F9E;
  --lime: #C7FF2E;
  --white: #FFFFFF;
  --offwhite: #F8F7F2;
  --charcoal: #111111;
  --pale-blue: #EAF3FF;
  --border-blue: #D9E2F1;

  /* Semantic */
  --ink: var(--charcoal);
  --ink-soft: #3a4658;
  --bg: var(--white);
  --focus: #0057D9;

  /* Type */
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing / layout */
  --container: 1200px;
  --container-narrow: 820px;
  --radius: 14px;
  --radius-sm: 8px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);
  --header-h: 76px;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(17, 17, 17, .06);
  --shadow-md: 0 14px 40px rgba(0, 63, 158, .12);
  --shadow-lg: 0 24px 60px rgba(0, 63, 158, .22);
}

/* ------------------------------- Reset ------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
/* Light ring on dark/royal surfaces where royal-on-navy wouldn't meet 3:1. */
.hero :focus-visible, .footer :focus-visible, .page-hero :focus-visible, .section--royal :focus-visible { outline-color: #C7FF2E; }

.visually-hidden, .skip-link:not(:focus) {
  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: 10px; left: 10px; z-index: 200;
  background: var(--royal); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}

/* ------------------------------ Layout ------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--offwhite { background: var(--offwhite); }
.section--pale { background: var(--pale-blue); }
.section--royal { background: var(--royal); color: #fff; }

/* --------------------------- Typography ------------------------------ */
.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .01em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0 0 1rem;
}
.section__title--center { text-align: center; margin-inline: auto; }
.section__head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section__title--center + .card-grid,
.section__title--center ~ * { margin-top: 2.5rem; }
.section__intro { font-size: 1.1rem; color: var(--ink-soft); margin: 0; }
.section--royal .section__intro { color: rgba(255,255,255,.85); }

.eyebrow {
  display: inline-block;
  font-weight: 700; text-transform: uppercase; letter-spacing: .18em;
  font-size: .78rem; color: var(--royal); margin-bottom: 1rem;
}
.eyebrow--light { color: var(--lime); }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  --btn-bg: var(--royal); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .92rem;
  padding: .85rem 1.5rem; border: 2px solid var(--btn-bg); border-radius: 999px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: .55rem 1.1rem; font-size: .82rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { --btn-bg: var(--royal); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--royal-deep); border-color: var(--royal-deep); }

.btn--lime { --btn-bg: var(--lime); --btn-fg: var(--charcoal); border-color: var(--lime); }
.btn--lime:hover { --btn-bg: #d6ff5c; border-color: #d6ff5c; }

.btn--ghost-light {
  --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.7);
}
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--royal); border-color: #fff; }

/* Ghost button for light backgrounds (royal outline) */
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--royal); border-color: var(--royal); }
.btn--ghost:hover { --btn-bg: var(--royal); --btn-fg: #fff; border-color: var(--royal); }

/* ------------------------------ Badges ------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem;
  padding: .4rem .8rem; border-radius: 999px;
}
.badge--lime { background: var(--lime); color: var(--charcoal); }
.badge--sm { font-size: .66rem; padding: .3rem .65rem; }

/* ------------------------------ Header ------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border-blue);
  transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand__mark { display: grid; place-items: center; line-height: 0; }
.brand__mark img { width: 40px; height: 40px; box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .02em; color: var(--charcoal); }
.brand__tagline { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); font-weight: 600; margin-top: 3px; }

.nav__list { display: flex; align-items: center; gap: 1.6rem; }
.nav__list a { font-weight: 600; font-size: .95rem; color: var(--ink); position: relative; }
.nav__list a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--royal); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav__list a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { margin-left: .3rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--charcoal); border-radius: 3px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -------------------------------- Hero ------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: clamp(560px, 88vh, 860px);
  display: flex; align-items: center;
  color: #fff;
  background: linear-gradient(120deg, var(--royal-deep) 0%, var(--royal) 55%, #1e6fee 100%);
}
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: url(../assets/img/hero.jpg);
  background-size: cover; background-position: center 30%;
}
/* Court-line motif drawn with layered gradients (the design signature). */
.hero__court {
  position: absolute; inset: -10% -5% -5% -5%;
  background:
    /* net centre line */
    linear-gradient(to right, transparent calc(50% - 1px), rgba(199,255,46,.35) 50%, transparent calc(50% + 1px)),
    /* service boxes */
    linear-gradient(to right, transparent 18%, rgba(255,255,255,.14) 18%, rgba(255,255,255,.14) calc(18% + 2px), transparent calc(18% + 2px)),
    linear-gradient(to right, transparent 82%, rgba(255,255,255,.14) 82%, rgba(255,255,255,.14) calc(82% + 2px), transparent calc(82% + 2px)),
    linear-gradient(to bottom, transparent 30%, rgba(255,255,255,.12) 30%, rgba(255,255,255,.12) calc(30% + 2px), transparent calc(30% + 2px)),
    linear-gradient(to bottom, transparent 70%, rgba(255,255,255,.12) 70%, rgba(255,255,255,.12) calc(70% + 2px), transparent calc(70% + 2px));
  transform: perspective(900px) rotateX(32deg) scale(1.25);
  transform-origin: center 65%;
  opacity: .35;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 40%, transparent 85%);
}
.hero::after {
  /* readability overlay, weighted to the left where the text sits + brand tint */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(0,26,66,.92) 0%, rgba(0,40,104,.72) 42%, rgba(0,55,150,.42) 100%),
    linear-gradient(180deg, rgba(0,40,104,.15), rgba(0,26,66,.55));
}
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 680px; }
.hero .badge { margin-bottom: 1.4rem; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(4.5rem, 16vw, 11rem); line-height: .82; letter-spacing: .01em;
  margin: 0; text-shadow: 0 10px 40px rgba(0,0,0,.28);
}
.hero__subtitle {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(1.1rem, 3.2vw, 2rem); margin: .4rem 0 1.2rem; color: var(--lime);
}
.hero__statement { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; margin: 0 0 1rem; }
.hero__body { font-size: 1.05rem; color: rgba(255,255,255,.9); max-width: 620px; margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 1.4rem; left: 50%; transform: translateX(-50%);
  font-size: .7rem; text-transform: uppercase; letter-spacing: .3em; color: rgba(255,255,255,.7);
}
.hero__scroll span { position: relative; padding-bottom: 26px; display: inline-block; }
.hero__scroll span::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 20px;
  background: rgba(255,255,255,.6); animation: scrollpulse 1.8s ease-in-out infinite;
}
@keyframes scrollpulse { 0%,100% { opacity: .2; height: 12px; } 50% { opacity: 1; height: 20px; } }

/* ------------------------------ Cards -------------------------------- */
.card-grid { display: grid; gap: var(--gap); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2rem); }
.card__index {
  display: inline-block; font-family: var(--font-display); font-size: 1.4rem;
  color: var(--royal); margin-bottom: .6rem;
}
.card__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 1;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 .7rem; letter-spacing: .01em;
}
.card p { margin: 0; color: var(--ink-soft); }
.card--benefit { position: relative; }
.benefit__tag {
  font-family: var(--font-display); color: var(--lime);
  -webkit-text-stroke: 1px var(--royal); font-size: 1.5rem;
  display: block; margin-bottom: .4rem;
}
.intro__cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ------------------------- Split sections ---------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__content p { color: var(--ink-soft); margin: 0 0 1.2rem; font-size: 1.05rem; }
.section--royal .split__content p { color: rgba(255,255,255,.9); }
.split__content .btn { margin-top: .4rem; }

/* Placeholder media frames (phase one) — blueprint court aesthetic */
.media-frame, .feature-card__media, .image-grid__item, .uk-map {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(135deg, var(--royal) 0%, var(--royal-deep) 100%);
  isolation: isolate;
}
/* Court-line motif — only drawn when the slot has no real photo */
.media-frame:not(:has(.photo))::before,
.feature-card__media:not(:has(.photo))::before,
.image-grid__item:not(:has(.photo))::before {
  content: ""; position: absolute; inset: 12%; border: 2px solid rgba(255,255,255,.35); border-radius: 4px;
  background:
    linear-gradient(to right, transparent calc(50% - 1px), rgba(255,255,255,.35) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(199,255,46,.5) 50%, transparent calc(50% + 1px));
}

/* Real photos fill their slot; gradient underneath is a fallback */
.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.media-frame--tall { min-height: 460px; }
.media-frame__label {
  position: absolute; z-index: 2; left: 1rem; bottom: 1rem;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  color: #fff; font-size: 1rem; background: rgba(0,0,0,.25); padding: .3rem .7rem; border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* --------------------------- Feature cards --------------------------- */
.offers .feature-card {
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.25);
  border-radius: var(--radius); padding: 1.1rem 1.1rem 1.5rem; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.offers .feature-card:hover { transform: translateY(-4px); border-color: var(--lime); background: rgba(255,255,255,.1); }
.feature-card__media { min-height: 150px; margin-bottom: 1.1rem; }
.feature-card__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; margin: 0 0 .6rem; }
.offers .feature-card p { color: rgba(255,255,255,.82); margin: 0; font-size: .96rem; }

/* ------------------------------ Events ------------------------------- */
.event-card {
  background: #fff; border: 1.5px solid var(--border-blue); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; align-items: flex-start;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--royal); }
.event-card__city { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; color: var(--royal); font-size: 1.7rem; line-height: 1; margin: .2rem 0 0; }
.event-card p { margin: 0; color: var(--ink-soft); flex: 1; }
.link-arrow { color: var(--royal); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translateX(4px); }

/* ----------------------------- Locations ----------------------------- */
.pill-list { display: flex; flex-wrap: wrap; gap: .55rem; margin: 0 0 1.8rem; }
.pill {
  background: #fff; border: 1.5px solid var(--border-blue); color: var(--royal-deep);
  font-weight: 600; font-size: .9rem; padding: .45rem .95rem; border-radius: 999px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.pill:hover { background: var(--royal); color: #fff; border-color: var(--royal); }
.uk-map {
  min-height: 420px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, .45);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.uk-map--open { padding: 0; background: rgba(255, 255, 255, .2); }
.uk-map__credit {
  margin: .6rem 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: .75rem;
  text-align: right;
}
.uk-map .leaflet-popup-content-wrapper { border-radius: 10px; }
.uk-map .leaflet-popup-content { margin: .45rem .65rem; font: 600 .8rem/1.2 var(--font-body); color: var(--royal-deep); }

/* ---------------------------- Membership ----------------------------- */
.split--form { align-items: start; }
.membership__pitch .check-list { margin: 1.4rem 0 0; display: grid; gap: .7rem; }
.check-list li { position: relative; padding-left: 2rem; font-weight: 500; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  background: var(--lime); color: var(--charcoal); border-radius: 50%; font-size: .8rem; font-weight: 800;
}

.membership__form-wrap { position: relative; }
.reg-form {
  background: #fff; color: var(--ink); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); display: grid; gap: 1.1rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink); }
.field input, .field select {
  width: 100%; padding: .8rem .9rem; font: inherit; line-height: 1.4; color: var(--ink);
  background: var(--offwhite); border: 1.5px solid var(--border-blue); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 52px; /* tap-friendly + matches select/input heights */
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--royal); background: #fff;
  box-shadow: 0 0 0 3px rgba(0,87,217,.15);
}
.field input:user-invalid { border-color: #d13438; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; font-size: .9rem; color: var(--ink-soft); }
.consent input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--royal); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-error { color: #d13438; font-weight: 600; margin: 0; font-size: .9rem; }

.form-success {
  position: relative; z-index: 5; min-height: 360px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: grid; place-content: center; justify-items: center; text-align: center; gap: .6rem; padding: 2.5rem;
  animation: pop .35s ease;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success__mark {
  width: 68px; height: 68px; margin: 0 auto; border-radius: 50%;
  background: var(--lime); color: var(--charcoal); display: grid; place-items: center;
  font-size: 2rem; font-weight: 800;
}
.form-success h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 2rem; margin: .4rem 0 0; color: var(--royal); }
.form-success p { margin: 0; color: var(--ink-soft); max-width: 34ch; }

/* ---------------------------- Image grid ----------------------------- */
.image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 2.5rem; }
.image-grid__item { aspect-ratio: 1 / 1; transition: transform .25s ease; }
.image-grid__item::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: rgba(0,42,110,.0); transition: background .25s ease;
}
.image-grid__item:hover { transform: scale(1.02); }
.image-grid__item:hover::after { background: rgba(0,42,110,.25); }

/* ------------------------------ Accordion ---------------------------- */
.accordion { margin-top: 2.5rem; display: grid; gap: .8rem; }
.accordion__item { background: #fff; border: 1.5px solid var(--border-blue); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s ease; }
.accordion__item:has(.accordion__trigger[aria-expanded="true"]) { border-color: var(--royal); }
.accordion__trigger {
  width: 100%; background: none; border: 0; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem; font-weight: 700; font-size: 1.05rem; color: var(--charcoal);
}
.accordion__trigger:hover { color: var(--royal); }
.accordion__icon { position: relative; width: 18px; height: 18px; flex: none; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; background: var(--royal); border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.accordion__icon::before { width: 16px; height: 2.5px; }
.accordion__icon::after { width: 2.5px; height: 16px; transition: transform .25s ease; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.accordion__panel > p { overflow: hidden; margin: 0; padding: 0 1.3rem; color: var(--ink-soft); }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__item.is-open .accordion__panel > p { padding-bottom: 1.2rem; }

/* ------------------------------- Footer ------------------------------ */
.footer { background: var(--royal); color: #fff; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: var(--lime); }
/* Buttons keep their own foreground colour inside the footer (fixes the
   lime CTA rendering white-on-lime, which .footer a would otherwise force) */
.footer a.btn { color: var(--btn-fg); }
.footer a.btn--lime:hover { color: var(--charcoal); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(2rem, 5vw, 3.4rem); padding-bottom: 3rem; }
.brand__name--footer { font-size: 2.6rem; color: #fff; display: block; line-height: 1; }
.footer__full { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; color: var(--lime); }
.footer__blurb { color: rgba(255,255,255,.85); margin: 1rem 0 1.4rem; max-width: 42ch; }
.footer__social { display: flex; gap: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.footer__heading { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.3rem; margin: 0 0 1rem; }
.footer__links ul { display: grid; gap: .6rem; }
.footer__cta p { color: rgba(255,255,255,.85); margin: 0 0 1.2rem; }
.footer__contact-note { margin-top: 1.2rem !important; font-size: .9rem; }
.footer__bar {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(255,255,255,.2); padding-block: 1.4rem; font-size: .85rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; margin: 0; }
.footer__copy { margin: 0; color: rgba(255,255,255,.82); }
.footer__powered {
  margin: 0; margin-left: auto; display: inline-flex; align-items: center; gap: .55rem;
  font-size: .8rem; color: rgba(255, 255, 255, .65);
}
.footer__powered .powered-mark { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: #fff; }
.powered-mark__badge {
  display: inline-flex; align-items: center; justify-content: center;
  color: #000; line-height: 0;
}
.footer__powered .powered-mark:hover .powered-mark__name { color: var(--lime); }

/* ===================== 3D interactive hero (padel) =================== */
/* The <padel-hero> canvas sits over the photo + court motif, which remain
   as the graceful fallback (js adds .hero--static when WebGL is missing). */
.hero--3d { background: #0B3F9E; }
.hero--3d padel-hero { position: absolute; inset: 0; display: block; }
.hero--3d:not(.hero--static)::after {
  background:
    linear-gradient(90deg, rgba(0, 40, 104, .7) 0%, rgba(0, 47, 128, .38) 40%, rgba(0, 55, 150, .05) 68%, rgba(0, 40, 104, 0) 100%),
    linear-gradient(180deg, rgba(0, 40, 104, .16), rgba(0, 40, 104, 0) 28%, rgba(0, 40, 104, 0) 75%, rgba(0, 40, 104, .32) 100%);
}
/* Let clicks fall through the copy block to the court; CTAs stay clickable */
.hero--3d .hero__inner { pointer-events: none; padding-block: 5.5rem 6.5rem; }
.hero--3d .hero__scroll { display: none; }
.hero--3d .hero__actions a { pointer-events: auto; }
.hero--3d { cursor: crosshair; }
.hero--3d .hero__actions a, .hero--3d .cam-btn { cursor: pointer; }

.hero__hud {
  position: absolute; z-index: 2; top: 1.6rem; right: clamp(1.1rem, 4vw, 2rem);
  display: flex; flex-direction: column; align-items: flex-end; gap: .25rem;
  text-align: right; pointer-events: none;
}
.hero__hud-label {
  font-size: .64rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .26em; color: rgba(255, 255, 255, .65); white-space: nowrap;
}
.hero__hud-count {
  font-family: var(--font-display); font-size: 2.1rem; line-height: 1;
  color: var(--lime); font-variant-numeric: tabular-nums;
  text-shadow: 0 4px 20px rgba(0, 0, 0, .35);
}

.hero__controls {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 1.3rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
  pointer-events: none;
}
.hero__cams { display: flex; gap: .5rem; pointer-events: auto; }
.cam-btn {
  background: rgba(0, 47, 128, .45); color: rgba(255, 255, 255, .9);
  border: 1.5px solid rgba(255, 255, 255, .32); border-radius: 999px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem;
  padding: .5rem 1rem; backdrop-filter: blur(8px);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.cam-btn:hover { color: var(--lime); border-color: rgba(199, 255, 46, .8); }
.cam-btn.is-active { color: var(--charcoal); background: var(--lime); border-color: var(--lime); }

.hero__hint {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0;
  font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  color: rgba(255, 255, 255, .65);
  animation: hintpulse 2.8s ease-in-out infinite;
}
.hero__hint::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
@keyframes hintpulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* Static fallback: hide the HUD when the 3D court can't run */
.hero--static .hero__hud, .hero--static .hero__controls { display: none; }

@media (max-width: 680px) {
  .hero__hint { display: none; }
  .hero__hud { top: 1.1rem; }
  .hero__hud-count { font-size: 1.7rem; }
  .hero__controls { bottom: 3.4rem; justify-content: center; }
}

/* ===================== Section rhythm & motion ======================= */
/* Court-line signature under section titles */
.section__title::after {
  content: ""; display: block; width: 56px; height: 4px; margin-top: .9rem;
  background: linear-gradient(to right, var(--lime) 0 18px, var(--royal) 18px);
  border-radius: 2px;
}
.section--royal .section__title::after {
  background: linear-gradient(to right, var(--lime) 0 18px, rgba(255, 255, 255, .55) 18px);
}
.section__title--center::after { margin-inline: auto; }

/* Faint court hairlines on tinted sections */
.section--offwhite, .section--pale {
  background-image:
    linear-gradient(to right, transparent calc(100% - 240px), rgba(0, 87, 217, .06) calc(100% - 240px), rgba(0, 87, 217, .06) calc(100% - 238px), transparent calc(100% - 238px)),
    linear-gradient(to bottom, transparent 84px, rgba(0, 87, 217, .06) 84px, rgba(0, 87, 217, .06) 86px, transparent 86px);
}

/* At-a-glance stat strip */
.stat-strip {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(100deg, var(--royal-deep), var(--royal) 60%, #1e6fee);
  padding-block: clamp(1.7rem, 3vw, 2.5rem);
}
.stat-strip::before {
  content: ""; position: absolute; inset: -12% -3%;
  background:
    linear-gradient(to right, transparent calc(50% - 1px), rgba(199, 255, 46, .3) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(255, 255, 255, .14) 50%, transparent calc(50% + 1px));
  transform: rotate(-2deg);
}
.stat-strip__inner {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; text-align: center;
}
.stat { display: grid; gap: .3rem; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .18); }
.stat__big {
  font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1; color: var(--lime); text-transform: uppercase;
}
.stat__label {
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(255, 255, 255, .82);
}

/* Scroll-reveal (classes only ever added by js/reveal.js) */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 680px) {
  .stat-strip__inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .stat:nth-child(3) { border-left: 0; }
}

/* =============== Court photo sections (Gemini imagery) ============== */
/* Why Join — full-bleed night court behind the white benefit cards */
.why--court {
  position: relative; color: #fff;
  background-image:
    linear-gradient(180deg, rgba(3, 18, 48, .80), rgba(2, 13, 36, .84)),
    url(../assets/img/court-why.jpg);
  background-size: cover; background-position: center;
}
.why--court .section__title { color: #fff; }
.why--court .section__intro { color: rgba(255, 255, 255, .85); }
.why--court .card { box-shadow: 0 22px 50px rgba(0, 8, 28, .45); }
.why--court .card__title { color: var(--charcoal); }  /* keep dark on the white card (parent sets white) */

/* Membership — high-five court behind the royal-blue sign-up section */
.membership--court {
  background-image:
    linear-gradient(90deg, rgba(0, 34, 92, .93) 0%, rgba(0, 42, 112, .82) 48%, rgba(0, 50, 134, .68) 100%),
    url(../assets/img/court-join.jpg);
  background-size: cover; background-position: center;
}

/* Closing brand band — racket & ball detail */
.brand-band {
  position: relative; color: #fff; text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(3, 16, 44, .72), rgba(2, 11, 32, .82)),
    url(../assets/img/court-band.jpg);
  background-size: cover; background-position: center 62%;
}
.brand-band__inner { position: relative; z-index: 1; max-width: 860px; margin-inline: auto; }
.brand-band__line {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.02; letter-spacing: .01em;
  margin: .5rem 0 1.8rem; text-shadow: 0 10px 40px rgba(0, 0, 0, .4);
}

/* --------- Branded card tiles: accent bar + royal hover-fill -------- */
.card--bordered {
  position: relative; overflow: hidden;
  border: 1.5px solid var(--border-blue);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease, background .25s ease;
}
/* lime -> royal accent bar along the top (brand signature, on at rest) */
.card--bordered::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(to right, var(--lime) 0 34%, var(--royal) 34%);
  transition: filter .25s ease;
}
/* hover: fill royal blue, invert text, lift */
.card--bordered:hover { background: var(--royal); border-color: var(--royal); transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card--bordered:hover .card__title { color: #fff; }
.card--bordered:hover p { color: rgba(255, 255, 255, .9); }
.card--bordered:hover .card__index { color: var(--lime); }
.card--bordered:hover .benefit__tag { color: var(--lime); -webkit-text-stroke-color: rgba(255, 255, 255, .85); }
.card--bordered:hover::before { filter: brightness(1.15); }

/* Intro tiles get a filled number badge for colour at rest */
.intro .card__index {
  width: 2.6rem; height: 2.6rem; display: inline-grid; place-items: center;
  background: var(--royal); color: #fff; border-radius: 10px; margin-bottom: 1rem;
  transition: background .25s ease, color .25s ease;
}
.intro .card--bordered:hover .card__index { background: var(--lime); color: var(--charcoal); }

/* ============================ Responsive ============================= */
@media (max-width: 960px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  /* Mobile nav */
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--border-blue); box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .3s ease; visibility: hidden; }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.2rem 1.4rem; }
  .nav__list li { border-bottom: 1px solid var(--border-blue); }
  .nav__list li:last-child { border: 0; }
  .nav__list a:not(.btn) { display: block; padding: .95rem .2rem; }
  .nav__list a:not(.btn)::after { content: none; }
  .nav__cta { margin: .8rem 0 0; }
  .nav__cta .btn { width: 100%; }
  .nav-toggle { display: flex; }

  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split--form .membership__pitch { margin-bottom: .5rem; }
  .media-frame--tall { min-height: 320px; }
  .uk-map { min-height: 300px; }
}

@media (max-width: 680px) {
  .card-grid--3 { grid-template-columns: 1fr; }
  .card-grid--4 { grid-template-columns: 1fr; }
  .image-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
  .hero__actions .btn { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   MULTI-PAGE ADDITIONS (site build-out, issue #175)
   New components for the sub-pages. Reuses the tokens + patterns above.
   ===================================================================== */

/* ------------------------- Hero logo (home) ------------------------- */
/* Sized as a badge (not a billboard) and lifted off the busy 3D court. */
.hero__logo {
  width: 170px;
  max-width: 42vw;
  min-width: 96px;
  height: auto;
  margin: 0 0 1.1rem;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.35));
}
/* When the real crest loads, keep the wordmark + subtitle for a11y but hide
   them visually — the crest already contains "TIPSY / Travel Industry Padel Society". */
.has-hero-logo .hero__title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.has-hero-logo .hero__subtitle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 680px) { .hero__logo { width: 120px; max-width: 38vw; min-width: 90px; } }

/* ---------------------- Locations dropdown (nav) -------------------- */
.nav__has-drop { position: relative; display: inline-flex; align-items: center; gap: .1rem; padding-bottom: 10px; margin-bottom: -10px; }
.nav__dropbtn { background: none; border: 0; display: inline-flex; align-items: center; padding: 6px 4px; color: var(--ink); line-height: 0; }
.nav__caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; display: inline-block; transition: transform .2s ease; }
.nav__has-drop.is-open .nav__caret { transform: rotate(180deg); }
.nav__drop {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 340px; background: #fff; border: 1px solid var(--border-blue); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: .6rem; z-index: 120;
  display: grid; grid-template-columns: 1fr 1fr; gap: .1rem;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
}
.nav__has-drop:hover .nav__drop,
.nav__has-drop:focus-within .nav__drop,
.nav__has-drop.is-open .nav__drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.nav__drop a { display: block; padding: .55rem .7rem; border-radius: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.nav__drop a::after { content: none !important; }
.nav__drop a:hover { background: var(--pale-blue); color: var(--royal); }
.nav__drop li:first-child { grid-column: 1 / -1; }
.nav__drop li:first-child a { background: var(--royal); color: #fff; text-align: center; }
.nav__drop li:first-child a:hover { background: var(--royal-deep); color: #fff; }
/* Active state on primary nav */
.nav__list a.is-active::after { transform: scaleX(1); }
.nav__has-drop.is-active .nav__droplink::after { transform: scaleX(1); }

/* ------------------------------ Page hero --------------------------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--royal-deep) 0%, var(--royal) 60%, #1e6fee 100%);
  padding-block: clamp(2.6rem, 6vw, 4.6rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: -20% -5%;
  background:
    linear-gradient(to right, transparent calc(50% - 1px), rgba(199,255,46,.28) 50%, transparent calc(50% + 1px)),
    linear-gradient(to bottom, transparent calc(50% - 1px), rgba(255,255,255,.1) 50%, transparent calc(50% + 1px));
  transform: rotate(-2deg); pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  line-height: .95; letter-spacing: .01em; font-size: clamp(2.3rem, 6vw, 4rem);
  margin: 0; text-shadow: 0 8px 30px rgba(0,0,0,.25);
}
.page-hero__intro { font-size: 1.12rem; color: rgba(255,255,255,.9); max-width: 58ch; margin: 1rem 0 0; }
.page-hero .eyebrow { margin-bottom: .8rem; }

/* ------------------------------ Breadcrumb -------------------------- */
.breadcrumb { background: var(--offwhite); border-bottom: 1px solid var(--border-blue); }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding-block: .85rem; font-size: .82rem; font-weight: 600; }
.breadcrumb__list li { color: var(--ink-soft); display: inline-flex; align-items: center; gap: .5rem; }
.breadcrumb__list li + li::before { content: "/"; color: var(--border-blue); }
.breadcrumb__list a { color: var(--royal); }
.breadcrumb__list a:hover { text-decoration: underline; }
.breadcrumb__list li[aria-current="page"] { color: var(--ink-soft); }

/* -------------------------------- Prose ----------------------------- */
.prose { color: var(--ink); }
.prose p { color: var(--ink-soft); margin: 0 0 1.2rem; font-size: 1.06rem; }
.prose h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; margin: 2rem 0 .9rem; letter-spacing: .01em; }
.prose ul { display: grid; gap: .55rem; margin: 0 0 1.4rem; }
.prose ul li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, var(--lime), var(--royal)); }
.prose a { color: var(--royal); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--royal-deep); }
.prose .check-list { margin: 1.4rem 0; }
.prose .check-list li::before { content: "✓"; background: var(--lime); }
.prose--center { text-align: center; margin-inline: auto; }
.prose--center ul { justify-items: center; }
.prose--legal p { font-size: 1rem; }
.prose__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.split--about { align-items: start; }
.prose-section .split__content .btn { margin-top: 0; }

/* --------------------------- Location cards ------------------------- */
.loc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.loc-card {
  background: #fff; border: 1.5px solid var(--border-blue); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 1.9rem); display: flex; flex-direction: column; align-items: flex-start; gap: .5rem;
  position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.loc-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(to right, var(--lime) 0 34%, var(--royal) 34%); }
.loc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--royal); }
.loc-card__region { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--royal); }
.loc-card__city { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.8rem; line-height: 1; margin: 0; color: var(--charcoal); }
.loc-card p { margin: 0; color: var(--ink-soft); flex: 1; font-size: .96rem; }
.loc-card .link-arrow { margin-top: .3rem; }

/* ------------------------------- Blog ------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2rem); }
.post-card { background: #fff; border: 1.5px solid var(--border-blue); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--royal); }
.post-card__media { position: relative; aspect-ratio: 16 / 10; display: block; background: var(--royal-deep); }
.post-card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.post-card__meta { font-size: .76rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.post-card__cat { color: var(--royal); }
.post-card__title { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.4rem; line-height: 1.05; margin: 0; }
.post-card__title a:hover { color: var(--royal); }
.post-card__body p { margin: 0; color: var(--ink-soft); font-size: .96rem; flex: 1; }
.post-card__body .link-arrow { margin-top: .3rem; }

/* ------------------------------ Article ----------------------------- */
.article__meta { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); margin: 0 0 1.2rem; }
.article__hero { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--royal-deep); margin-bottom: 2rem; }
.article__back { margin-top: 2.4rem; }
.link-arrow--back span { transition: transform .2s ease; }
.link-arrow--back:hover span { transform: translateX(-4px); }

/* ------------------------------ Sitemap ----------------------------- */
.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.sitemap__heading { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 1.2rem; margin: 0 0 .9rem; color: var(--royal); }
.sitemap__group ul { display: grid; gap: .5rem; }
.sitemap__group a { color: var(--ink); font-weight: 500; }
.sitemap__group a:hover { color: var(--royal); text-decoration: underline; }

/* --------------------------- Contact page --------------------------- */
.contact-list { display: grid; gap: 1rem; margin: 1.6rem 0; }
.contact-list li { display: grid; gap: .1rem; }
.contact-list__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--royal); }
.contact-list a { color: var(--ink); font-weight: 600; font-size: 1.05rem; }
.contact-list a:hover { color: var(--royal); }
.contact-note { color: var(--ink-soft); }
.contact-note a { color: var(--royal); font-weight: 600; text-decoration: underline; }

/* -------------------------- Notice / holding ------------------------ */
.notice-card {
  background: #fff; border: 1.5px solid var(--border-blue); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(1.8rem, 4vw, 3rem); text-align: center;
  display: grid; justify-items: center; gap: .5rem; position: relative; overflow: hidden;
}
.notice-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(to right, var(--lime) 0 34%, var(--royal) 34%); }
.notice-card .badge { margin-bottom: .4rem; }
.notice-card p { color: var(--ink-soft); max-width: 54ch; margin: 0 auto; }
.notice-card .prose__cta { justify-content: center; }

/* ----------------------------- Forms (shared) ----------------------- */
.form-wrap { position: relative; }
.field textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  background: var(--offwhite); border: 1.5px solid var(--border-blue); border-radius: var(--radius-sm);
  min-height: 120px; resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea:focus { outline: none; border-color: var(--royal); background: #fff; box-shadow: 0 0 0 3px rgba(0,87,217,.15); }
.field textarea:user-invalid { border-color: #d13438; }
.field label { display: inline-flex; align-items: baseline; gap: .35rem; flex-wrap: wrap; }
.field__req { color: #d13438; font-weight: 700; }
.field__opt { color: #5b6675; font-weight: 500; font-size: .74rem; text-transform: none; letter-spacing: 0; }

/* ------------------------- Footer refinements ----------------------- */
.footer__social a { display: inline-flex; align-items: center; gap: .5rem; }
.footer__social svg { flex: none; }
.footer__links--cols { grid-template-columns: 1fr 1fr; column-gap: 1.2rem; }

/* Location pills become links */
.pill { padding: 0; }
.pill a { display: block; padding: .45rem .95rem; color: inherit; }

/* --------------------------- Responsive ----------------------------- */
@media (max-width: 960px) {
  .loc-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  /* Locations dropdown inside the mobile stack */
  .nav__has-drop { display: grid; grid-template-columns: 1fr auto; width: 100%; padding: 0; margin: 0; }
  .nav__droplink { padding: .95rem .2rem !important; }
  .nav__dropbtn { padding: .95rem .6rem; justify-content: flex-end; }
  .nav__drop {
    position: static; transform: none; min-width: 0; grid-column: 1 / -1;
    opacity: 1; visibility: hidden; pointer-events: none; display: none;
    box-shadow: none; border: 0; border-top: 1px solid var(--border-blue); border-radius: 0;
    padding: .4rem 0 .8rem; margin: 0; background: var(--offwhite);
  }
  .nav__has-drop:hover .nav__drop, .nav__has-drop:focus-within .nav__drop { opacity: 1; visibility: hidden; pointer-events: none; display: none; }
  .nav__has-drop.is-open .nav__drop { display: grid; visibility: visible; pointer-events: auto; transform: none; }
  .nav__drop li:first-child a { text-align: left; }
}

@media (max-width: 680px) {
  .loc-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .sitemap { grid-template-columns: 1fr 1fr; }
  .prose__cta .btn { width: 100%; }
  .footer__links--cols { grid-template-columns: 1fr; }
}
