/* ---------------------------------------------------------------------------------------------
 * Fylde Coast International Cultural Festival.
 * The design of the Fylde Coast Hindu Society site (fyldecoasthindusociety.org): Roboto, white,
 * the navy and saffron of the logo, a floating glass header, arches, toran, lotus and mandala.
 * Breakpoints: 480 / 640 / 768 / 1024, and 1100 where the menu becomes a drawer.
 * --------------------------------------------------------------------------------------------- */

/* ---- fonts ---- */
@font-face { font-family: Roboto; font-style: normal; font-display: swap; font-weight: 400; src: url('../assets/fonts/roboto-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-display: swap; font-weight: 500; src: url('../assets/fonts/roboto-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-display: swap; font-weight: 700; src: url('../assets/fonts/roboto-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: Roboto; font-style: normal; font-display: swap; font-weight: 800; src: url('../assets/fonts/roboto-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: FontAwesome; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/fontawesome-webfont.woff2') format('woff2'); }

.fa { display: inline-block; font: normal normal normal 14px/1 FontAwesome; font-size: inherit; text-rendering: auto; -webkit-font-smoothing: antialiased; }
.fa-arrow-right::before { content: '\f061'; }
.fa-arrow-up::before { content: '\f062'; }
.fa-bars::before { content: '\f0c9'; }
.fa-briefcase::before { content: '\f0b1'; }
.fa-chevron-left::before { content: '\f053'; }
.fa-chevron-right::before { content: '\f054'; }
.fa-comments::before { content: '\f086'; }
.fa-cutlery::before { content: '\f0f5'; }
.fa-envelope::before { content: '\f0e0'; }
.fa-facebook::before { content: '\f09a'; }
.fa-graduation-cap::before { content: '\f19d'; }
.fa-heart::before { content: '\f004'; }
.fa-map-marker::before { content: '\f041'; }
.fa-moon-o::before { content: '\f186'; }
.fa-music::before { content: '\f001'; }
.fa-scissors::before { content: '\f0c4'; }
.fa-sun-o::before { content: '\f185'; }
.fa-times::before { content: '\f00d'; }
.fa-users::before { content: '\f0c0'; }

/* ---- design tokens ---- */
:root {
  color-scheme: light;

  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-display: var(--font);

  /* the logo */
  --navy-950: #00132e;
  --navy-900: #002555;
  --navy-800: #1b3b6f;
  --blue-700: #002555;
  --blue-600: #1b3b6f;
  --blue-500: #3d5f96;
  --saffron-700: #ac3402;
  --saffron-600: #d9500b;
  --saffron-500: #f58220;
  --saffron-300: #ffc58a;

  /* the status colours of the member area */
  --marigold: #e29a00;
  --teal: #0b7168;
  --magenta: #a8195f;
  --indigo: #41409c;

  --bg: #fffdf9;
  --bg-band: #fffdf9;
  --bg-tint: #fdf3e6; /* the logo's saffron, very soft: the bands that carry white cards */
  --bg-inner: #fffdf9;
  --surface: #ffffff;
  --surface-2: #f6f2ea;
  --text: #43474f;
  --muted: #5c6270;
  --heading: #002555;
  --border: #e9e4da;
  --link: #1b3b6f;
  --link-hover: #ac3402;
  --ring: #1b3b6f;
  --accent-text: #002555;
  --warm-text: #ac3402;
  --error-text: #d93025;
  --icon-filter: none;
  --shadow-sm: 0 1px 2px rgb(0 37 85 / 6%), 0 2px 8px rgb(0 37 85 / 6%);
  --shadow-md: 0 6px 24px rgb(0 37 85 / 10%);
  --shadow-lg: 0 18px 50px rgb(0 37 85 / 16%);

  --grad-primary: linear-gradient(135deg, var(--saffron-600), var(--saffron-700));
  --grad-brand: linear-gradient(90deg, var(--blue-600), var(--saffron-500));
  --grad-hero:
    radial-gradient(90% 80% at 0% 0%, rgb(61 95 150 / 55%) 0%, transparent 55%),
    radial-gradient(95% 90% at 100% 100%, rgb(245 130 32 / 38%) 0%, transparent 55%),
    radial-gradient(circle at 60% 35%, rgb(167 192 234 / 14%) 0%, transparent 50%),
    linear-gradient(135deg, #00132e, #002555 45%, #1b2c5c);

  /* the scalloped edges of the slogan band, and the toran that hangs under it */
  --scallop-top: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 12'%3E%3Cpath d='M0 12A18 12 0 0 1 36 12Z' fill='%23d9500b'/%3E%3Cpath d='M5 12A13 8 0 0 1 31 12' fill='none' stroke='%23ffc58a' stroke-width='1.2'/%3E%3C/svg%3E");
  --scallop-bottom: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 12'%3E%3Cpath d='M0 0A18 12 0 0 0 36 0Z' fill='%23d9500b'/%3E%3Cpath d='M5 0A13 8 0 0 0 31 0' fill='none' stroke='%23ffc58a' stroke-width='1.2'/%3E%3C/svg%3E");
  --toran: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='48'%3E%3Cg fill='%23d9500b'%3E%3Cpath d='M0 5Q36 30 72 5M36 20V32' fill='none' stroke='%23d9500b' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cy='5' r='2.6'/%3E%3Ccircle cx='72' cy='5' r='2.6'/%3E%3Cpath d='M36 31C32 36 32 41 36 46C40 41 40 36 36 31Z'/%3E%3C/g%3E%3Cg transform='translate(36 18)' fill='%23f58220'%3E%3Cellipse cy='-5.4' rx='2.7' ry='5'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(45)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(90)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(135)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(180)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(225)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(270)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(315)'/%3E%3Ccircle r='2.6' fill='%23ac3402'/%3E%3C/g%3E%3C/svg%3E");
  --toran-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='48'%3E%3Cg fill='%23ffc58a'%3E%3Cpath d='M0 5Q36 30 72 5M36 20V32' fill='none' stroke='%23ffc58a' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cy='5' r='2.6'/%3E%3Ccircle cx='72' cy='5' r='2.6'/%3E%3Cpath d='M36 31C32 36 32 41 36 46C40 41 40 36 36 31Z'/%3E%3C/g%3E%3Cg transform='translate(36 18)' fill='%23f58220'%3E%3Cellipse cy='-5.4' rx='2.7' ry='5'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(45)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(90)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(135)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(180)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(225)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(270)'/%3E%3Cellipse cy='-5.4' rx='2.7' ry='5' transform='rotate(315)'/%3E%3Ccircle r='2.6' fill='%23ac3402'/%3E%3C/g%3E%3C/svg%3E");

  --radius-sm: 10px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
  --section-y: clamp(56px, 8vw, 96px);
  --gutter: clamp(16px, 4vw, 28px);
}

@media (max-width: 1099.98px) {
  :root { --header-h: 62px; }
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --marigold: #f0b429;
  --teal: #1a9c90;
  --magenta: #cf3a84;
  --indigo: #7577d8;

  --bg: #070f1f;
  --bg-band: #070f1f;
  --bg-tint: #0b1630;
  --bg-inner: #070f1f;
  --surface: #0f1c38;
  --surface-2: #14244a;
  --text: #c3cee6;
  --muted: #92a2c4;
  --heading: #eaf1ff;
  --border: #1f2f55;
  --link: #8cc0ff;
  --link-hover: #ffc58a;
  --ring: #8cc0ff;
  --accent-text: #8cc0ff;
  --warm-text: #ffc58a;
  --error-text: #ff8a80;
  --icon-filter: brightness(1.8) saturate(0.8);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 40%);
  --shadow-md: 0 8px 28px rgb(0 0 0 / 40%);
  --shadow-lg: 0 20px 56px rgb(0 0 0 / 55%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.no-scroll { overflow: hidden; }

img, svg { max-width: 100%; }
img { height: auto; vertical-align: middle; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--heading);
  text-wrap: balance;
}

h1 { font-size: clamp(1.85rem, 4.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 1.8vw, 1.15rem); }

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
address { font-style: normal; }

a { color: var(--link); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--link-hover); }

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 4px; }
::selection { color: #fff; background: var(--blue-600); }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 3000;
  padding: 10px 18px;
  font-weight: 700;
  color: #fff;
  background: var(--blue-700);
  border-radius: var(--radius-pill);
  transform: translateY(-220%);
  transition: transform 0.2s ease;
}

.skip-link:focus { color: #fff; transform: translateY(0); }

/* ---- layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 1400px) {
  .container { max-width: 1320px; padding-inline: 12px; }
}

.container--narrow { max-width: 920px; }

main { background: var(--bg); }

.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-band); }

.section-head {
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 52px);
  text-align: center;
}

.section-head--left { justify-items: start; margin: 0 0 22px; text-align: left; }
.section-head--wide { max-width: 860px; }
.section-head__sub { margin: 0; font-size: 1.05rem; color: var(--muted); }

/* The lotus between two fading lines, under the titles */
.ornament {
  display: block;
  width: 200px;
  height: 24px;
  background:
    url('../assets/images/lotus.svg') center / 48px 24px no-repeat,
    linear-gradient(90deg, transparent, var(--saffron-600)) left center / 62px 2px no-repeat,
    linear-gradient(90deg, var(--saffron-600), transparent) right center / 62px 2px no-repeat;
  filter: var(--icon-filter);
}

.ornament--light {
  background:
    url('../assets/images/lotus.svg') center / 48px 24px no-repeat,
    linear-gradient(90deg, transparent, var(--saffron-300)) left center / 62px 2px no-repeat,
    linear-gradient(90deg, var(--saffron-300), transparent) right center / 62px 2px no-repeat;
  filter: brightness(2.4) saturate(0.7);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--blue-500) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--blue-500) 28%, transparent);
  border-radius: var(--radius-pill);
}

.eyebrow--warm {
  color: var(--warm-text);
  background: color-mix(in srgb, var(--saffron-600) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--saffron-600) 22%, transparent);
}

.eyebrow--glass {
  color: #fff;
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 22%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* A short slogan that closes a section */
.statement {
  margin: clamp(24px, 3vw, 36px) 0 0;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
  color: var(--warm-text);
}

.statement--left { margin-top: 20px; text-align: left; }

/* ---- buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  color: #fff;
  background: var(--grad-primary);
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 24px rgb(217 80 11 / 32%);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover, .btn:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgb(217 80 11 / 42%); }
.btn:active { transform: translateY(0); }
.btn .fa { font-size: 0.85em; }

.btn--sm { min-height: 40px; padding: 0 20px; font-size: 0.85rem; }

.btn--ghost {
  color: #fff;
  background: rgb(255 255 255 / 8%);
  border-color: rgb(255 255 255 / 38%);
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; background: rgb(255 255 255 / 18%); border-color: rgb(255 255 255 / 70%); box-shadow: none; }

.btn--light { color: var(--blue-700); background: #fff; box-shadow: 0 10px 26px rgb(0 0 0 / 22%); }
.btn--light:hover, .btn--light:focus-visible { color: var(--saffron-700); box-shadow: 0 14px 32px rgb(0 0 0 / 30%); }

.btn--outline {
  color: var(--link);
  background: transparent;
  border-color: color-mix(in srgb, var(--blue-500) 55%, transparent);
  box-shadow: none;
}

.btn--outline:hover, .btn--outline:focus-visible { color: #fff; background: var(--blue-600); border-color: var(--blue-600); box-shadow: none; }

/* ---- cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.card--hover:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--blue-500) 40%, var(--border)); box-shadow: var(--shadow-lg); }

/* The aims: ticks in a small disc of the brand colours */
.list-check {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px clamp(28px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check > li { position: relative; padding-left: 34px; }

.list-check > li::before {
  content: '\f00c';
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  font: 11px/1 FontAwesome;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 50%;
}

@media (max-width: 1023.98px) {
  .list-check { grid-template-columns: minmax(0, 1fr); }
}

/* ---- header: fixed over the page; the blur is on .bar::before because a backdrop-filter on an
   ancestor of the drawer would trap the drawer inside it ---- */
.site-header { position: fixed; top: 0; right: 0; left: 0; z-index: 999; pointer-events: none; }

.bar {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 6px 8px 6px 16px;
  pointer-events: auto;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-top: 0;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.3s ease;
}

.bar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border-radius: inherit;
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition: background-color 0.3s ease;
}

.is-scrolled .bar { box-shadow: var(--shadow-lg); }
.is-scrolled .bar::before { background: color-mix(in srgb, var(--surface) 92%, transparent); }

.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; color: var(--heading); }
.brand:hover { color: var(--heading); }
.brand__logo { width: 44px; height: auto; }
.brand__text { display: grid; gap: 2px; line-height: 1.15; }
.brand__text strong, .brand__text span { font-weight: 700; letter-spacing: -0.01em; color: var(--heading); }
.brand__text strong { font-size: 0.8rem; }
.brand__text span { font-size: 1.05rem; }

/* Phones: the long festival name may take two lines, so the header's buttons always fit */
@media (max-width: 479.98px) {
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand__logo { width: 38px; }
  .brand__text strong { font-size: 0.72rem; }
  .brand__text span { font-size: 0.86rem; }
}

.nav { flex: 1 1 auto; min-width: 0; }
.nav__head, .nav__mail { display: none; }

.nav__list { display: flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav__list .is-cta { display: none; }

.nav__link {
  position: relative;
  display: block;
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav__link:hover { color: var(--heading); }
.nav__link.is-active { font-weight: 700; color: var(--accent-text); }

/* The line under the page you are on, and under the link you point at */
.nav__link::after {
  content: '';
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  background: var(--saffron-600);
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav__link:hover::after, .nav__link:focus-visible::after, .nav__link.is-active::after { transform: scaleX(1); }

@media (min-width: 1100px) and (max-width: 1320px) {
  .nav__link { padding: 8px 9px; font-size: 0.84rem; }
}

.actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  font-size: 1.05rem;
  color: var(--heading);
  background: var(--surface-2);
  border: 0;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.icon-btn:hover { color: #fff; background: var(--blue-600); transform: rotate(8deg); }

.menu-toggle { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 1099.98px) {
  .site-header .container { max-width: none; padding-inline: 0; }
  .bar { padding-inline: var(--gutter) calc(var(--gutter) - 4px); border-inline: 0; border-radius: 0; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: min(340px, 88vw);
    overflow-y: auto;
    pointer-events: auto;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -16px 0 40px rgb(0 0 0 / 30%);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }

  .nav.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--ease), visibility 0s; }

  .nav__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px 24px; border-bottom: 1px solid var(--border); }
  .nav__title { font-size: 1.1rem; font-weight: 800; color: var(--heading); }

  .nav__list { flex: 1 1 auto; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 14px; }
  .nav__list .is-cta { display: block; }
  .nav__link { padding: 14px 18px; font-size: 1.05rem; }

  .nav__mail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 24px 24px;
    padding-top: 18px;
    overflow-wrap: anywhere;
    font-size: 0.9rem;
    color: var(--text);
    border-top: 1px solid var(--border);
  }

  .nav__mail .fa { color: var(--saffron-600); }

  .actions__cta { display: none; }
  .menu-toggle { display: inline-grid; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgb(3 8 20 / 62%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-backdrop.is-visible { pointer-events: auto; opacity: 1; visibility: visible; transition: opacity 0.3s ease, visibility 0s; }
}

/* ---- hero: the photos fill the top of the window, the words lie on them.
   Below 1100 the panorama stands alone under the header, as on the Society's site: the words would hide most of it ---- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(560px, min(54vw, 100svh), 780px);
  padding: calc(var(--header-h) + 32px) 0 96px;
  overflow: hidden;
  color: #fff;
  background: var(--grad-hero);
}

/* Darker at the left behind the words and towards the bottom, so white text reads on bright photos too */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgb(0 0 0 / 45%) 0%, rgb(0 0 0 / 22%) 45%, rgb(0 0 0 / 0%) 70%),
    linear-gradient(180deg, rgb(0 0 0 / 30%), rgb(0 0 0 / 45%));
}

.hero__slider { position: absolute; inset: 0; }

.stage { position: absolute; inset: 0; overflow: hidden; background: var(--navy-900); touch-action: pan-y; }

.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 0s linear 1.1s; pointer-events: none; }
.slide.is-active { z-index: 1; opacity: 1; transition: opacity 1.1s ease-in-out; }
.slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; user-select: none; }

/* Empty space around the words lets clicks and swipes reach the slider */
.hero__inner { position: relative; z-index: 3; pointer-events: none; animation: slide-up 0.8s var(--ease) both; }

.hero__copy { display: grid; justify-items: start; gap: 18px; max-width: 680px; pointer-events: auto; }

.hero__title {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.04;
  color: #fff;
  text-shadow: 0 4px 40px rgb(0 0 0 / 35%);
}

.hero__highlight { display: block; color: #fff; }

.hero__tagline { margin: 0; font-size: clamp(1.05rem, 1.5vw, 1.2rem); font-weight: 700; line-height: 1.4; color: #fff; text-shadow: 0 2px 12px rgb(0 0 0 / 55%); }
.hero__sub { max-width: 52ch; margin: 0; font-size: 0.95rem; line-height: 1.6; color: rgb(255 255 255 / 90%); text-shadow: 0 2px 12px rgb(0 0 0 / 55%); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.hero .btn:focus-visible { outline-color: #fff; }

.arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  font-size: 1rem;
  color: #fff;
  background: rgb(8 16 36 / 45%);
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, background-color 0.2s ease;
}

.arrow--prev { left: clamp(12px, 2vw, 28px); }
.arrow--next { right: clamp(12px, 2vw, 28px); }
.arrow:hover { background: rgb(8 16 36 / 75%); }
.hero__slider:hover .arrow, .hero__slider:focus-within .arrow, .arrow:focus-visible { opacity: 1; }
@media (hover: none) { .arrow { opacity: 0.9; } }

.controls {
  position: absolute;
  right: clamp(14px, 3vw, 40px);
  bottom: 30px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: rgb(8 16 36 / 45%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: var(--radius-pill);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dots { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.dot { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; background: transparent; border: 0; }
.dot::before { content: ''; display: block; width: 10px; height: 10px; background: rgb(255 255 255 / 45%); border-radius: var(--radius-pill); transition: width 0.35s var(--ease), background 0.3s ease; }
.dot:hover::before { background: #fff; }
.dot.is-active::before { width: 32px; background: var(--saffron-500); }
.arrow:focus-visible, .dot:focus-visible { outline-color: #fff; }

/* The slider sits under .hero::after and its buttons above it, so the hero keeps them clickable */
.hero__slider { z-index: auto; }

@media (max-width: 1099.98px) {
  .hero { display: block; min-height: 0; aspect-ratio: 1800 / 550; margin-top: var(--header-h); padding: 0; }
  .hero::after { display: none; }
  .hero__inner { position: static; padding: 0; }
  .hero__copy { display: block; }
  .hero__copy > :not(.hero__title) { display: none; }
  .hero__title { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}

@media (max-width: 767.98px) {
  .arrow, .controls { display: none; }
}

/* Keeps the words clear of the "previous photo" arrow until the page margin is wide enough */
@media (min-width: 1100px) and (max-width: 1479.98px) {
  .hero__copy { margin-left: 56px; }
}

/* ---- slogan band: a saffron ribbon with scalloped edges, each scallop half a toran swag wide ---- */
.marquee {
  --gap: clamp(22px, 3vw, 44px);
  --scallop-w: 36px;
  --scallop-h: 12px;
  position: relative;
  z-index: 2;
  overflow-x: clip;
  overflow-y: visible;
  color: #fff;
  background: linear-gradient(180deg, var(--saffron-600), var(--saffron-700) 50%, var(--saffron-600));
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  height: var(--scallop-h);
  background-repeat: repeat-x;
  background-size: var(--scallop-w) var(--scallop-h);
  pointer-events: none;
}

.marquee::before { bottom: calc(100% - 1px); background-image: var(--scallop-top); }
.marquee::after { top: calc(100% - 1px); background-image: var(--scallop-bottom); }

/* The toran's nails sit in the valleys between the lower scallops */
.marquee + .bunting { margin-top: 5px; }

.marquee__track { display: flex; width: max-content; }
.marquee__track.is-ready { animation: marquee-scroll 55s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__group { display: flex; flex: none; align-items: center; justify-content: space-around; min-width: 100vw; margin: 0; padding: 0; list-style: none; }

.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 17px var(--gap) 17px 0;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__star { flex: none; width: 18px; height: 18px; color: var(--saffron-300); }

@media (max-width: 1099.98px) {
  .marquee__item { padding-block: 8px; font-size: 0.78rem; }
}

@media (max-width: 767.98px) {
  .marquee { --scallop-w: 22.5px; --scallop-h: 8px; }
  .marquee + .bunting { margin-top: 3px; }
  .marquee__item { padding-block: 5px; font-size: 0.7rem; }
}

@keyframes marquee-scroll { to { transform: translateX(-50%); } }

/* ---- toran ---- */
.bunting { height: 48px; background: var(--toran) top left repeat-x; pointer-events: none; }

@media (max-width: 767.98px) {
  .bunting { height: 30px; background-size: 45px 30px; }
}

/* ---- welcome ---- */
.welcome { padding-block: clamp(32px, 5vw, 64px) var(--section-y); }

.welcome__lead {
  margin: 0 0 18px;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
  color: var(--heading);
}

.welcome__body .ornament { margin-bottom: 20px; }
.welcome__text { max-width: 58ch; margin: 0; font-size: 1.06rem; line-height: 1.8; }

.welcome__statement {
  width: fit-content;
  margin-top: 26px;
  padding: 12px 22px;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
  background: var(--bg-tint);
  border-left: 4px solid var(--saffron-600);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* One tall arch and two smaller photos, with the mandala turning slowly behind them */
.welcome__photos {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
  aspect-ratio: 1 / 0.85;
}

.welcome__photos::before {
  content: '';
  position: absolute;
  top: -12%;
  right: -10%;
  z-index: -1;
  width: 62%;
  aspect-ratio: 1;
  background: url('../assets/images/mandala.svg') center / contain no-repeat;
  opacity: 0.28;
  animation: welcome-turn 120s linear infinite;
}

.welcome__photo { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.welcome__photo--arch { grid-row: 1 / 3; object-position: 78% center; border-radius: 999px 999px var(--radius) var(--radius); }

@keyframes welcome-turn { to { transform: rotate(360deg); } }

@media (max-width: 1023.98px) {
  .welcome__photos { width: 100%; max-width: 620px; margin-inline: auto; }
}

/* ---- photo and words side by side ---- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.split--reverse .split__media { order: 2; }
.split__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split__body p:not(.statement) { font-size: 1.06rem; line-height: 1.8; }
.split__body > :last-child { margin-bottom: 0; }

@media (max-width: 1023.98px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .split__media img { aspect-ratio: 16 / 9; }
}

/* ---- the four themes: the service cards of the Society's site, two to a row, on white ---- */
#about, #year-round, #get-involved { background: var(--bg-tint); }
#themes, #across { background: var(--surface); }
:root[data-theme='dark'] #themes, :root[data-theme='dark'] #across { background: var(--bg); }

.themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.themes > li { display: flex; }

@media (max-width: 639.98px) {
  .themes { grid-template-columns: minmax(0, 1fr); }
}

.theme { --tone: var(--warm-text); display: flex; flex: 1; flex-direction: column; overflow: hidden; }
.themes > li:nth-child(even) .theme { --tone: var(--accent-text); }
.theme__media { flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.theme__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.theme__media .theme__img--top { object-position: center 30%; }
.theme:hover .theme__media img { transform: scale(1.05); }

.theme__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }

.theme__category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tone);
}

.theme__category .fa { font-size: 1.15em; }
.theme__title { font-size: 1.15rem; line-height: 1.25; }
.theme__body p { margin: 0; font-size: 0.95rem; line-height: 1.6; }

/* Wide screens: the photo beside the words, because a card this wide would make a very tall photo */
@media (min-width: 1024px) {
  .theme { flex-direction: row; min-height: 260px; }
  .theme__media { position: relative; width: 42%; aspect-ratio: auto; }
  .theme__media img { position: absolute; inset: 0; }
  .theme__body { justify-content: center; padding: 26px 28px; }
}

/* ---- across the Fylde Coast: the festival cards of the Society's site ---- */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }

@media (max-width: 767.98px) {
  .places { grid-template-columns: minmax(0, 1fr); }
}

.place {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 10px;
  min-height: 240px;
  padding: clamp(24px, 3.4vw, 36px);
  overflow: hidden;
  color: #fff;
  background: var(--grad-hero);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.place::before {
  content: '';
  position: absolute;
  top: -64px;
  right: -64px;
  z-index: -1;
  width: 250px;
  height: 250px;
  background: url('../assets/images/mandala.svg') center / contain no-repeat;
  opacity: 0.28;
}

.place::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  z-index: -1;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgb(245 130 32 / 55%), transparent 65%);
}

.place__tag {
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--saffron-300);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: var(--radius-pill);
}

.place__name { font-size: clamp(1.5rem, 2.6vw, 1.9rem); font-weight: 800; line-height: 1.15; }

/* ---- why we celebrate ---- */
.why__belief {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
  color: var(--heading);
}

.aims {
  position: relative;
  max-width: 1040px;
  margin-inline: auto;
  padding: clamp(26px, 3.4vw, 40px) clamp(22px, 3.4vw, 36px) clamp(22px, 3.4vw, 36px);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.aims::before { content: ''; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: var(--grad-brand); }
.aims__title { margin-bottom: 24px; }

/* ---- ways to get involved ---- */
.ways { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }

.way { grid-column: span 2; padding: 26px 24px; }
.way:nth-child(4) { grid-column: 2 / span 2; }
.way h3 { margin-bottom: 10px; }
.way p { margin: 0; font-size: 0.95rem; }

.way__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  font-size: 1.05rem;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgb(217 80 11 / 30%);
}

@media (max-width: 1023.98px) {
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .way, .way:nth-child(4) { grid-column: auto; }
  .way:nth-child(5) { grid-column: 1 / -1; }
}

@media (max-width: 639.98px) {
  .ways { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .way:nth-child(5) { grid-column: auto; }
}

.center-action { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: clamp(28px, 4vw, 40px); }

/* ---- trustees: round photos on a soft mandala, four to a view on the home page, all of them on /trustees/ ---- */
.trustees__slider { --tgap: 22px; }

.trustees__track {
  display: grid;
  grid-auto-columns: calc((100% - 3 * var(--tgap)) / 4);
  grid-auto-flow: column;
  gap: var(--tgap);
  margin: 0;
  padding: 6px 2px 18px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.trustees__track::-webkit-scrollbar { display: none; }
.trustees__track > li { scroll-snap-align: start; }

@media (max-width: 1099.98px) {
  .trustees__track { grid-auto-columns: calc((100% - var(--tgap)) / 2); }
}

@media (max-width: 599.98px) {
  .trustees__track { grid-auto-columns: 84%; }
}

.trustees__dots { display: flex; justify-content: center; gap: 8px; min-height: 10px; margin-top: 8px; }

.trustees__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: width 0.3s var(--ease), background-color 0.3s ease;
}

.trustees__dot.is-active { width: 28px; background: var(--saffron-600); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }

.trustee { display: flex; }

.trustee__card { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; text-align: center; }
.trustee__card::before { content: ''; position: absolute; top: 0; right: 0; left: 0; z-index: 1; height: 4px; background: var(--grad-brand); }

.trustee__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 34px 16px 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue-500) 9%, var(--surface)), color-mix(in srgb, var(--saffron-500) 14%, var(--surface)));
}

.trustee__media::before {
  content: '';
  position: absolute;
  inset: 10px;
  background: url('../assets/images/mandala.svg') center / contain no-repeat;
  opacity: 0.32;
  filter: var(--icon-filter);
}

.trustee__photo {
  position: relative;
  width: 128px;
  height: 128px;
  object-fit: cover;
  background: var(--surface-2);
  border: 4px solid var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.trustee__photo--none { display: grid; place-items: center; font-size: 2.6rem; color: var(--muted); }

.trustee__body { display: grid; flex: 1; align-content: start; gap: 4px; padding: 18px 16px 22px; }
.trustee__name { margin: 0; font-size: 1.05rem; line-height: 1.3; color: var(--heading); }
.trustee__role { margin: 0; font-size: 0.88rem; color: var(--muted); }

.trustee__more {
  justify-self: center;
  margin-top: 8px;
  padding: 4px 6px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--warm-text);
  background: none;
  border: 0;
  cursor: pointer;
}

.trustee__more .fa { margin-left: 4px; transition: transform 0.2s ease; }
.trustee__more:hover .fa, .trustee__more:focus-visible .fa { transform: translateX(3px); }

.trustee-dialog {
  width: min(640px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--surface);
  border: 0;
  border-top: 6px solid var(--saffron-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.trustee-dialog::backdrop { background: rgb(3 8 20 / 62%); }
.trustee-dialog__box { position: relative; max-height: calc(100dvh - 30px); padding: clamp(22px, 4vw, 32px); overflow: auto; }
.trustee-dialog__close { position: absolute; top: 12px; right: 12px; }
.trustee-dialog__head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding-right: 44px; }
.trustee-dialog__photo { flex: none; width: 96px; height: 96px; object-fit: cover; border: 3px solid var(--surface); border-radius: 50%; box-shadow: var(--shadow-md); }
.trustee-dialog__photo[hidden] { display: none; }
.trustee-dialog__name { margin: 0; font-size: 1.3rem; line-height: 1.25; color: var(--heading); }
.trustee-dialog__role { margin: 4px 0 0; font-weight: 700; color: var(--warm-text); }
.trustee-dialog__bio p { margin: 0 0 12px; line-height: 1.7; }

/* ---- closing band: the hero's navy, under a toran ---- */
.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: 0 clamp(52px, 7vw, 80px);
  color: #fff;
  background: var(--grad-hero);
}

.band__bunting { background-image: var(--toran-light); }

.band__globe {
  position: absolute;
  right: -120px;
  bottom: -160px;
  z-index: -1;
  width: min(560px, 90vw);
  max-width: none;
  opacity: 0.16;
  pointer-events: none;
}

.band__inner { display: grid; justify-items: center; gap: 14px; padding-top: clamp(24px, 4vw, 44px); text-align: center; }
.band__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 800; color: #fff; }
.band__text { max-width: 52ch; margin: 0; font-size: 1rem; color: rgb(255 255 255 / 90%); }
.band__words { margin: 0 0 12px; font-size: clamp(1rem, 1.6vw, 1.1rem); font-weight: 700; color: var(--saffron-300); }
.band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---- closing call to action of the home page: the same in both colour themes ---- */
.cta {
  position: relative;
  padding-block: clamp(48px, 6.5vw, 170px) calc(clamp(48px, 6.5vw, 170px) + 18px); /* grows with the drawing, so the people stay under the buttons */
  color: #fff;
  text-align: center;
  background:
    url('../assets/images/world-community.svg') center bottom 6px / max(100%, 1100px) auto no-repeat,
    var(--grad-hero);
}

.cta::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--saffron-600), var(--saffron-300) 50%, var(--saffron-600));
}

/* The line of colours takes the place of the footer's own line */
main:has(> .cta:last-child) + .footer { border-top: 0; }

.cta__inner { display: grid; justify-items: center; gap: 16px; }
.cta__title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 800; color: #fff; }
.cta__text { max-width: 56ch; margin: 0; font-size: 1rem; line-height: 1.6; color: rgb(255 255 255 / 90%); text-wrap: balance; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.cta .btn:focus-visible { outline-color: #fff; }

/* ---- footer: dark in both colour themes ---- */
.footer {
  position: relative;
  padding: clamp(40px, 6vw, 64px) 0 28px;
  color: rgb(255 255 255 / 72%);
  background:
    radial-gradient(rgb(255 255 255 / 5%) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, #002555, #00183a);
  border-top: 3px solid transparent;
  border-image: var(--grad-brand) 1;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.footer__brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; }
.footer__brand:hover { color: #fff; }
.footer__brand img { flex: none; width: 52px; height: auto; padding: 4px; background: #fff; border-radius: 50%; }
.footer__brand strong { display: block; font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.footer__brand small { font-size: 0.85rem; color: rgb(255 255 255 / 70%); }

.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 36px; }

@media (max-width: 1023.98px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 479.98px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

.footer__title {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer__title::after { content: ''; position: absolute; bottom: 0; left: 0; width: 28px; height: 2px; background: var(--grad-brand); border-radius: 2px; }

.footer__col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer__col a { color: rgb(255 255 255 / 75%); transition: color 0.2s ease, padding-left 0.25s var(--ease); }
.footer__col a:hover, .footer__col a:focus-visible { color: #fff; }
.footer__col ul a:hover { padding-left: 6px; }

.footer__line { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; margin: 0 0 14px; overflow-wrap: anywhere; }
.footer__line .fa { margin-top: 4px; color: var(--saffron-500); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.footer__social > a { display: grid; place-items: center; width: 40px; height: 40px; color: #fff; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 14%); border-radius: 50%; transition: background-color 0.2s ease, transform 0.25s var(--ease); }
.footer__social > a:hover, .footer__social > a:focus-visible { color: #fff; background: var(--blue-600); transform: translateY(-3px); }
.footer__charity { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 0.8rem; font-weight: 500; color: rgb(255 255 255 / 85%); border: 1px solid rgb(255 255 255 / 20%); border-radius: var(--radius-pill); }
.footer__charity .fa { color: var(--saffron-500); }
.footer__copy { margin: 0; font-size: 0.82rem; color: rgb(255 255 255 / 70%); }

/* ---- back to top ---- */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 50%;
  box-shadow: 0 10px 26px rgb(217 80 11 / 40%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), visibility 0.25s;
}

.back-to-top:hover { color: #fff; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top.is-visible:hover, .back-to-top.is-visible:focus-visible { transform: translateY(-3px); }

/* ---- animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease) var(--reveal-delay, 0ms), transform 0.7s var(--ease) var(--reveal-delay, 0ms);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 1024px) {
  .reveal--left { transform: translateX(-28px); }
  .reveal--right { transform: translateX(28px); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* No movement: everything stands still and shows at once; the slogans wrap and centre */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .reveal--left, .reveal--right { opacity: 1; transform: none; }
  .card--hover:hover, .btn:hover, .btn:focus-visible, .icon-btn:hover, .theme:hover .theme__media img { transform: none; }
  .marquee__track { display: block; width: auto; }
  .marquee__group { flex-wrap: wrap; justify-content: center; min-width: 0; padding: 6px var(--gutter); }
  .marquee__group[aria-hidden='true'] { display: none; }
  .marquee__item { padding: 9px calc(var(--gap) / 2); white-space: normal; text-align: center; }
}

@media print {
  body { color: #000; background: #fff; }
  .site-header, .back-to-top, .arrow, .controls { display: none; }
}
