/* ==========================================================================
   Sri Adi Narayana Swamy Temple, Kodakanchi
   Main stylesheet  |  Mobile-first, vanilla CSS3, no frameworks
   --------------------------------------------------------------------------
   Table of contents
   01. Design tokens (colours, type, spacing, shadows)
   02. Base & reset
   03. Reusable utilities & layout helpers
   04. Buttons
   05. Header / navigation
   06. Hero & home slider
   07. Section headings & decorative dividers
   08. Cards (feature, fact, info, event, person, architecture)
   09. Timeline
   10. Gallery + lightbox
   11. Forms
   12. Tables (timings)
   13. Footer
   14. Back-to-top button
   15. Animations & scroll reveal
   16. Responsive breakpoints (tablet, desktop, wide)
   17. Print & reduced-motion
   ========================================================================== */

/* ==========================================================================
   01. DESIGN TOKENS
   Blue / Gold / White palette inspired by traditional South-Indian temples.
   ========================================================================== */
:root {
  /* Brand colours */
  --blue-900: #061a38;   /* deepest navy - footer, overlays          */
  --blue-800: #0b2b57;   /* primary brand blue - header, headings    */
  --blue-700: #123a72;   /* buttons, links                            */
  --blue-600: #1c4f96;   /* hover states                              */
  --blue-100: #e8eff9;   /* tinted surfaces                           */
  --blue-050: #f4f8fd;   /* very light section background             */

  --gold-700: #8c6d13;   /* accessible gold text on white             */
  --gold-600: #b8901f;   /* borders, icon fills                       */
  --gold-500: #c9a227;   /* primary gold                              */
  --gold-400: #e3bd4b;   /* highlights                                */
  --gold-100: #f7edcf;   /* soft gold surface                         */

  --white: #ffffff;
  --cream: #fdfbf5;      /* page background - warm white              */
  --sand: #f3ede0;       /* alternating section background            */

  --ink-900: #1a1c22;    /* body text                                 */
  --ink-700: #3d4351;    /* secondary text                            */
  --ink-500: #626a7a;    /* muted text                                */
  --line: #e3ded1;       /* hairline borders                          */

  --success-bg: #e7f6ec;
  --success-fg: #1c6b3a;
  --error-bg: #fdecec;
  --error-fg: #a51f1f;

  /* Typography */
  --font-display: "Cinzel", "Trajan Pro", "Georgia", "Times New Roman", serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1rem;
  --fs-md: 1.075rem;
  --fs-lg: 1.3rem;
  --fs-xl: 1.65rem;
  --fs-2xl: 2.05rem;
  --fs-3xl: 2.6rem;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 5.5rem;

  /* Structure */
  --wrap: 1180px;
  --wrap-narrow: 860px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(6, 26, 56, 0.08);
  --shadow: 0 6px 20px rgba(6, 26, 56, 0.09);
  --shadow-lg: 0 18px 46px rgba(6, 26, 56, 0.16);

  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   02. BASE & RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--cream);
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Locks background scroll while the mobile menu or lightbox is open */
body.no-scroll { overflow: hidden; }

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--blue-800);
  line-height: 1.25;
  margin: 0 0 var(--sp-4);
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25rem; }
li { margin-bottom: var(--sp-2); }

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--sp-6) 0;
}

/* Visible, high-contrast focus ring for keyboard users everywhere */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Screen-reader-only text */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link - first tab stop on every page */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 2000;
  background: var(--gold-500);
  color: var(--blue-900);
  font-weight: 700;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; color: var(--blue-900); }

/* ==========================================================================
   03. UTILITIES & LAYOUT
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sp-7); }
.section--tint { background: var(--blue-050); }
.section--sand { background: var(--sand); }
.section--blue {
  background: linear-gradient(160deg, var(--blue-800), var(--blue-900));
  color: #e9eef7;
}
.section--blue h2,
.section--blue h3 { color: var(--white); }
.section--blue .section-head p { color: #c2d0e6; }

.text-center { text-align: center; }
.lead {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ink-700);
}
.muted { color: var(--ink-500); }
.gold { color: var(--gold-700); }

/* Generic responsive grid: 1 column on phones, expands at breakpoints */
.grid { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }

/* Sanskrit / Telugu invocation line */
.mantra {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--gold-700);
  text-align: center;
  margin-bottom: var(--sp-4);
}

/* Small gold pill label above headings */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-700);
  background: var(--gold-100);
  border: 1px solid rgba(184, 144, 31, 0.35);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: var(--sp-3);
}
.section--blue .eyebrow {
  color: var(--gold-400);
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(227, 189, 75, 0.4);
}

/* ==========================================================================
   04. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold-500);
  color: var(--blue-900);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--gold-400);
  color: var(--blue-900);
  box-shadow: var(--shadow);
}

.btn--secondary {
  background: var(--blue-700);
  color: var(--white);
}
.btn--secondary:hover { background: var(--blue-600); color: var(--white); }

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); color: var(--white); }

.btn--outline {
  background: transparent;
  border-color: var(--blue-700);
  color: var(--blue-700);
}
.btn--outline:hover { background: var(--blue-700); color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
}

/* ==========================================================================
   05. HEADER / NAVIGATION
   ========================================================================== */
.topbar {
  background: var(--blue-900);
  color: #cfdcef;
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  align-items: center;
  justify-content: center;
  padding-block: 7px;
  text-align: center;
}
.topbar a { color: var(--gold-400); }
.topbar a:hover { color: var(--white); }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(201, 162, 39, 0.35);
  transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
/* Class added by JS once the page is scrolled */
.site-header.is-scrolled { box-shadow: var(--shadow); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

/* --- Brand lockup ------------------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--blue-800);
  padding-block: 8px;
}
.brand:hover { color: var(--blue-800); }
.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  border: 2px solid var(--gold-500);
  padding: 2px;
  background: var(--white);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--blue-800);
}
.brand__sub {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 600;
}

/* --- Hamburger ---------------------------------------------------------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 42px;
  padding: 9px;
  background: var(--blue-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue-800);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
/* Animate the three bars into an X when the menu is open */
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Menu (mobile: slide-down panel) ------------------------------------ */
.nav-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border-bottom: 3px solid var(--gold-500);
  box-shadow: var(--shadow-lg);
  list-style: none;
  margin: 0;
  padding: var(--sp-2) var(--sp-4) var(--sp-5);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  /* Hidden by default on small screens */
  display: none;
}
.nav-menu.is-open { display: block; animation: slideDown 0.28s var(--ease); }
.nav-menu li { margin: 0; }

.nav-menu a {
  display: block;
  padding: 0.85rem var(--sp-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--blue-800);
  border-bottom: 1px solid var(--line);
}
.nav-menu a:hover { color: var(--gold-700); }
.nav-menu li:last-child a { border-bottom: 0; }

/* Active page marker */
.nav-menu a[aria-current="page"] {
  color: var(--gold-700);
  border-left: 3px solid var(--gold-500);
  padding-left: var(--sp-3);
  background: var(--gold-100);
}

.nav-cta { display: none; } /* desktop-only donate button */

/* ==========================================================================
   06. HERO & SLIDER
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 74vh;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  background: var(--blue-900);
}

/* Slider layer -------------------------------------------------------- */
.slider {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease), transform 6s linear;
  transform: scale(1.06);
}
.slide.is-active { opacity: 1; transform: scale(1); } /* slow Ken-Burns zoom */
.slide img { width: 100%; height: 100%; object-fit: cover; }

/* Readability scrim over the photos */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 26, 56, 0.72) 0%, rgba(6, 26, 56, 0.55) 45%, rgba(6, 26, 56, 0.88) 100%);
}

.hero__inner {
  padding-block: var(--sp-8);
  text-align: center;
  max-width: 780px;
  margin-inline: auto;
}
.hero__kicker {
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--sp-3);
}
.hero h1 {
  color: var(--white);
  font-size: clamp(1.85rem, 6.2vw, 3.4rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  margin-bottom: var(--sp-3);
}
.hero__sub {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  color: #eddfb8;
  margin-bottom: var(--sp-5);
}

/* Slider controls ------------------------------------------------------ */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(6, 26, 56, 0.45);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.slider-btn:hover { background: var(--gold-500); color: var(--blue-900); border-color: var(--gold-500); }
.slider-btn--prev { left: 10px; }
.slider-btn--next { right: 10px; }

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.slider-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--white);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.slider-dot[aria-current="true"] { background: var(--gold-500); border-color: var(--gold-500); transform: scale(1.25); }

/* Compact hero used on inner pages ------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: var(--sp-7);
  text-align: center;
  color: var(--white);
  background: linear-gradient(150deg, var(--blue-800), var(--blue-900));
  overflow: hidden;
}
.page-hero::after { /* subtle gold arch motif */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(circle at 50% 120%, rgba(201, 162, 39, 0.28), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 44px);
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(1.7rem, 5.4vw, 2.8rem);
  margin-bottom: var(--sp-2);
}
.page-hero p { color: #cddaee; max-width: 640px; margin-inline: auto; margin-bottom: 0; }

/* Breadcrumbs */
.breadcrumb {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9c8de;
  margin-bottom: var(--sp-3);
}
.breadcrumb a { color: var(--gold-400); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span[aria-hidden="true"] { margin-inline: 6px; opacity: 0.6; }

/* ==========================================================================
   07. SECTION HEADINGS & DIVIDERS
   ========================================================================== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-6);
}
.section-head h2 { margin-bottom: var(--sp-3); }
.section-head p { color: var(--ink-700); margin-bottom: 0; }

/* Gold rule with a diamond in the middle - repeated temple motif */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto var(--sp-4);
  max-width: 220px;
  color: var(--gold-500);
}
.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--gold-500));
}
.divider::after { background: linear-gradient(90deg, var(--gold-500), transparent); }
.divider span {
  width: 10px;
  height: 10px;
  background: var(--gold-500);
  transform: rotate(45deg);
  display: block;
}

/* ==========================================================================
   08. CARDS
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(201, 162, 39, 0.55);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--blue-100);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }
.card__body { padding: var(--sp-5); flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: var(--sp-2); }
.card__body p:last-child { margin-bottom: 0; }
.card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold-500);
  color: var(--blue-900);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}
.card__link {
  margin-top: auto;
  padding-top: var(--sp-3);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.card__link::after { content: " \2192"; }

/* Event card extras (rendered by js/script.js) --------------------------- */
.event-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--gold-700);
  margin-bottom: var(--sp-3);
}
.event-highlights {
  list-style: none;
  padding: var(--sp-3) 0 0;
  margin: var(--sp-3) 0 0;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.event-highlights li {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 999px;
  padding: 3px 11px;
}

/* Icon feature card (no image) ----------------------------------------- */
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-050);
  border: 1px solid rgba(201, 162, 39, 0.4);
  margin-bottom: var(--sp-4);
  font-size: 1.5rem;
  color: var(--blue-700);
}
.feature h3 { margin-bottom: var(--sp-2); font-size: var(--fs-md); }
.feature p { margin-bottom: 0; color: var(--ink-700); font-size: var(--fs-sm); }

/* Quick-fact tile ------------------------------------------------------- */
.fact {
  text-align: center;
  padding: var(--sp-5) var(--sp-3);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(227, 189, 75, 0.28);
  border-radius: var(--radius);
}
.fact__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  color: var(--gold-400);
  line-height: 1.2;
  margin-bottom: 4px;
}
.fact__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #cbd8ea;
}

/* Two-column media + text block ---------------------------------------- */
.split {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}
.split__media img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.split__media {
  position: relative;
}
/* Decorative gold frame offset behind the image */
.split__media::before {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius);
  z-index: -1;
  opacity: 0.6;
}

/* Person / trustee card -------------------------------------------------- */
.person {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0;
}
.person__photo {
  background: linear-gradient(160deg, var(--blue-100), var(--gold-100));
  padding: var(--sp-5);
  display: grid;
  place-items: center;
}
.person__photo img {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.person__body { padding: var(--sp-5); }
.person__name { margin-bottom: var(--sp-1); }
.person__role {
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
  font-weight: 700;
  margin-bottom: var(--sp-4);
}

/* Definition-style info list (address, timings, contacts) ---------------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--line);
  margin: 0;
}
.info-list li:last-child { border-bottom: 0; }
.info-list dt, .info-list__label {
  font-weight: 700;
  color: var(--blue-800);
  min-width: 108px;
}
.info-list__icon { color: var(--gold-600); flex: 0 0 22px; font-size: 1.05rem; }

/* Panel: soft bordered content box --------------------------------------- */
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}
.panel--blue {
  background: var(--blue-050);
  border-left-color: var(--blue-700);
}
.panel h3 { margin-bottom: var(--sp-3); }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }

/* Quote block ------------------------------------------------------------ */
.quote {
  font-family: var(--font-serif);
  font-size: var(--fs-lg);
  font-style: italic;
  color: var(--blue-800);
  border-left: 4px solid var(--gold-500);
  padding: var(--sp-3) var(--sp-5);
  margin: var(--sp-5) 0;
  background: var(--gold-100);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.quote cite {
  display: block;
  font-size: var(--fs-sm);
  font-style: normal;
  font-family: var(--font-body);
  color: var(--ink-700);
  margin-top: var(--sp-2);
}

/* Call-to-action strip ---------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-800), var(--blue-700));
  color: var(--white);
  text-align: center;
  padding-block: var(--sp-7);
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #cfdcef; max-width: 640px; margin-inline: auto; }

/* ==========================================================================
   09. TIMELINE
   ========================================================================== */
.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 34px;
}
/* The vertical spine */
.timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--blue-700));
}
.timeline__item {
  position: relative;
  margin: 0 0 var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.timeline__item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
/* Diamond node on the spine */
.timeline__item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: var(--gold-500);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold-500);
  transform: rotate(45deg);
}
.timeline__era {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 999px;
  padding: 3px 12px;
  margin-bottom: var(--sp-2);
}
.timeline__item h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.timeline__item p { margin-bottom: 0; color: var(--ink-700); font-size: var(--fs-sm); }

/* ==========================================================================
   10. GALLERY + LIGHTBOX
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  justify-content: center;
  margin-bottom: var(--sp-6);
}
.filter-btn {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--blue-800);
  cursor: pointer;
  transition: all 0.22s var(--ease);
}
.filter-btn:hover { border-color: var(--gold-500); color: var(--gold-700); }
.filter-btn[aria-pressed="true"] {
  background: var(--blue-800);
  border-color: var(--blue-800);
  color: var(--white);
}

/* Masonry via CSS multi-column: reflows naturally at every width */
.masonry {
  column-count: 1;
  column-gap: var(--sp-4);
}
.masonry__item {
  break-inside: avoid;
  margin-bottom: var(--sp-4);
}
.masonry__item.is-hidden { display: none; }

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-100);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  width: 100%;
  transition: transform 0.5s var(--ease), filter 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); filter: brightness(0.82); }
.gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--sp-5) var(--sp-4) var(--sp-3);
  background: linear-gradient(transparent, rgba(6, 26, 56, 0.9));
  color: var(--white);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.gallery-item:hover .gallery-item__caption,
.gallery-item:focus-visible .gallery-item__caption { opacity: 1; transform: translateY(0); }

/* Lightbox --------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  background: rgba(4, 14, 30, 0.94);
}
.lightbox.is-open { display: flex; animation: fadeIn 0.25s var(--ease); }
.lightbox__figure {
  margin: 0;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 74vh;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 2px solid rgba(201, 162, 39, 0.6);
  box-shadow: var(--shadow-lg);
  background: var(--blue-900);
}
.lightbox__caption {
  color: #eddfb8;
  font-family: var(--font-serif);
  font-size: var(--fs-md);
  margin-top: var(--sp-3);
}
.lightbox__count { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: #9fb2cd; letter-spacing: 0.1em; }
.lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.lightbox__btn:hover { background: var(--gold-500); color: var(--blue-900); }
.lightbox__btn--close { top: 16px; right: 16px; font-size: 1.6rem; }
.lightbox__btn--prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   11. FORMS
   ========================================================================== */
.form { display: grid; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--blue-800);
  letter-spacing: 0.02em;
}
.field .req { color: var(--error-fg); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: var(--fs-base);
  color: var(--ink-900);
  padding: 0.8rem 0.9rem;
  border: 1px solid #cfd6e0;
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px rgba(28, 79, 150, 0.15);
  outline: none;
}
/* Invalid state set by JS */
.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid {
  border-color: var(--error-fg);
  background: #fffafa;
}
.field-error {
  color: var(--error-fg);
  font-size: var(--fs-sm);
  min-height: 1.1em;
  font-weight: 600;
}
.field-hint { color: var(--ink-500); font-size: var(--fs-xs); }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}

.form-message {
  display: none;
  border-radius: var(--radius-sm);
  padding: var(--sp-4);
  font-weight: 600;
  border: 1px solid transparent;
}
.form-message.is-visible { display: block; animation: fadeIn 0.3s var(--ease); }
.form-message--success {
  background: var(--success-bg);
  color: var(--success-fg);
  border-color: rgba(28, 107, 58, 0.3);
}
.form-message--error {
  background: var(--error-bg);
  color: var(--error-fg);
  border-color: rgba(165, 31, 31, 0.3);
}

/* ==========================================================================
   12. TABLES (timings)
   ========================================================================== */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table.timings {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
  font-size: var(--fs-sm);
}
table.timings caption {
  caption-side: top;
  text-align: left;
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
  font-weight: 700;
  color: var(--blue-800);
  font-family: var(--font-display);
}
table.timings th,
table.timings td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
table.timings thead th {
  background: var(--blue-800);
  color: var(--white);
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--fs-xs);
}
table.timings tbody tr:nth-child(even) { background: var(--blue-050); }
table.timings tbody tr:hover { background: var(--gold-100); }
table.timings td:first-child { font-weight: 600; color: var(--blue-800); }

/* Map embed -------------------------------------------------------------- */
.map-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background: var(--blue-100);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Numbered step list (directions) ---------------------------------------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 var(--sp-4) 52px;
  margin: 0;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  font-weight: 700;
  font-family: var(--font-display);
}
.steps li:not(:last-child)::after { /* connector line */
  content: "";
  position: absolute;
  left: 17px;
  top: 38px;
  bottom: 6px;
  width: 1px;
  background: var(--line);
}
.steps strong { color: var(--blue-800); display: block; }

/* Accordion (FAQ) --------------------------------------------------------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 0; }
.accordion summary {
  cursor: pointer;
  padding: var(--sp-4) var(--sp-5);
  font-weight: 700;
  color: var(--blue-800);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--gold-600); font-size: 1.4rem; line-height: 1; }
.accordion details[open] summary::after { content: "\2013"; }
.accordion summary:hover { background: var(--blue-050); }
.accordion details > p { padding: 0 var(--sp-5) var(--sp-4); margin: 0; color: var(--ink-700); }

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--blue-900);
  color: #b9c8de;
  padding-top: var(--sp-7);
  font-size: var(--fs-sm);
  border-top: 4px solid var(--gold-500);
}
.site-footer h3 {
  color: var(--white);
  font-size: var(--fs-md);
  margin-bottom: var(--sp-4);
  position: relative;
  padding-bottom: var(--sp-2);
}
.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background: var(--gold-500);
}
.site-footer a { color: #cfdcef; }
.site-footer a:hover { color: var(--gold-400); }
.footer-grid { display: grid; gap: var(--sp-6); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-links a { display: inline-block; }
.footer-links a::before { content: "\203A"; color: var(--gold-500); margin-right: 8px; }

.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-brand img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--gold-500); padding: 2px; }
.footer-brand strong { color: var(--white); font-family: var(--font-display); display: block; line-height: 1.3; }

.socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); padding: 0; list-style: none; }
.socials li { margin: 0; }
.social-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.5);
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold-400);
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-icon:hover {
  background: var(--gold-500);
  color: var(--blue-900);
  transform: translateY(-3px);
}
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

.footer-bottom {
  margin-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: var(--sp-4);
  text-align: center;
  font-size: var(--fs-xs);
  color: #92a4bd;
}
.footer-bottom p { margin: 0 0 4px; }

/* ==========================================================================
   14. BACK-TO-TOP
   ========================================================================== */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 800;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue-800);
  color: var(--gold-400);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-500); color: var(--blue-900); }

/* ==========================================================================
   15. ANIMATIONS & SCROLL REVEAL
   ========================================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Elements tagged [data-reveal] fade up when scrolled into view (see script.js) */
[data-reveal] { opacity: 0; }
[data-reveal].is-revealed { animation: riseIn 0.7s var(--ease) forwards; }
/* If JS is disabled, never leave content invisible */
.no-js [data-reveal] { opacity: 1; animation: none; }

/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* --- Small tablets (>= 600px) ------------------------------------------- */
@media (min-width: 600px) {
  :root { --fs-2xl: 2.3rem; --fs-3xl: 3rem; }
  .section { padding-block: var(--sp-8); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .masonry { column-count: 2; }
  .form--2col { grid-template-columns: repeat(2, 1fr); }
  .form--2col .field--full { grid-column: 1 / -1; }
  .form--2col .form-message,
  .form--2col .form-actions { grid-column: 1 / -1; }
  .person { grid-template-columns: 260px 1fr; align-items: stretch; }
  .to-top { right: 24px; bottom: 24px; width: 50px; height: 50px; }
}

/* --- Desktop (>= 900px): switch nav from hamburger to inline bar --------- */
@media (min-width: 900px) {
  :root { --header-h: 76px; }

  .nav-toggle { display: none; }

  .nav-menu {
    position: static;
    display: flex !important; /* always visible on desktop */
    align-items: center;
    gap: var(--sp-1);
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
    animation: none;
  }
  .nav-menu a {
    border-bottom: 0;
    padding: 0.55rem 0.7rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    position: relative;
    white-space: nowrap;
  }
  /* Gold underline that grows on hover / active */
  .nav-menu a::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 2px;
    height: 2px;
    background: var(--gold-500);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.28s var(--ease);
  }
  .nav-menu a:hover::after { transform: scaleX(1); }
  .nav-menu a[aria-current="page"] {
    background: transparent;
    border-left: 0;
    padding-left: 0.7rem;
  }
  .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }

  .nav-cta { display: inline-flex; padding: 0.6rem 1.1rem; font-size: var(--fs-xs); flex: 0 0 auto; }

  /* Keep the brand from crowding the eight nav items on narrow desktops */
  .brand { min-width: 0; }
  .brand__text { max-width: 200px; }
  .brand__mark { width: 46px; height: 46px; flex-basis: 46px; }
  .brand__name { font-size: 0.92rem; }
  .nav-menu { flex: 0 1 auto; }

  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .masonry { column-count: 3; }

  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .split--reverse .split__media { order: 2; }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1.3fr; gap: var(--sp-7); }

  .hero { min-height: 82vh; }
  .section { padding-block: var(--sp-9); }

  /* Alternating two-sided timeline on wide screens */
  .timeline--alt { padding-left: 0; }
  .timeline--alt::before { left: 50%; transform: translateX(-50%); }
  .timeline--alt .timeline__item { width: calc(50% - 34px); }
  .timeline--alt .timeline__item:nth-child(odd) { margin-left: 0; text-align: right; }
  .timeline--alt .timeline__item:nth-child(odd)::before { left: auto; right: -41px; }
  .timeline--alt .timeline__item:nth-child(even) { margin-left: calc(50% + 34px); }
  .timeline--alt .timeline__item:nth-child(even)::before { left: -41px; }
  .timeline--alt .timeline__item:hover { transform: translateY(-4px); }

  .slider-btn--prev { left: 26px; }
  .slider-btn--next { right: 26px; }
}

/* --- Wide desktop (>= 1200px) ------------------------------------------- */
@media (min-width: 1200px) {
  .nav-menu a { font-size: 0.84rem; padding-inline: 0.85rem; }
  .nav-menu a::after { left: 0.85rem; right: 0.85rem; }
  .brand__text { max-width: 280px; }
  .brand__mark { width: 52px; height: 52px; flex-basis: 52px; }
  .brand__name { font-size: 1.1rem; }
  .masonry { column-count: 4; }
  .wrap { padding-inline: var(--sp-5); }
}

/* ==========================================================================
   17. REDUCED MOTION & PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; }
  .slide { transform: none; }
}

@media print {
  .site-header, .site-footer, .to-top, .slider-btn, .slider-dots,
  .filters, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .hero, .page-hero { color: #000; background: #fff; min-height: auto; }
  .hero::before, .page-hero::after { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
