/* =====================================================================
   St Mary the Virgin, Ware — website stylesheet
   Brand: deep navy (from logo), parchment cream, antique brass gold
   ===================================================================== */

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
ul[class] { list-style: none; padding: 0; }

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

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --navy:        #173162;   /* primary — sampled from logo */
  --navy-deep:   #0e2148;   /* darker */
  --navy-900:    #0a1832;   /* deepest, footer */
  --navy-700:    #24437f;   /* hover / lighter */
  --gold:        #b8863b;   /* antique brass accent (borders, eyebrows) */
  --gold-soft:   #cda45c;
  --gold-pale:   #e7d3a6;
  --gold-btn:      #8a6420; /* darker gold for buttons — white text passes WCAG AA (5.3:1) */
  --gold-btn-hover:#73521a;
  --sage:        #8f9a86;   /* dove grey-green */
  --cream:       #f7f2e7;   /* page background */
  --cream-2:     #efe7d5;   /* alt section */
  --card:        #fffdf8;   /* card surface */
  --stone:       #e3dcca;   /* borders */
  --ink:         #24262b;   /* body text */
  --ink-soft:    #55585f;   /* muted text */
  --ink-faint:   #7c7f86;
  --white:       #ffffff;

  /* type */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* rhythm */
  --container: 1180px;
  --container-narrow: 820px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.75rem, 8vw, 7rem);
  --radius: 4px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(14,33,72,.08), 0 4px 12px rgba(14,33,72,.05);
  --shadow-md: 0 6px 20px rgba(14,33,72,.10), 0 18px 46px rgba(14,33,72,.10);
  --shadow-lg: 0 14px 40px rgba(10,24,50,.20), 0 30px 80px rgba(10,24,50,.16);
  --ring: 0 0 0 3px rgba(184,134,59,.45);
}

/* ---------- Base ---------- */
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: clamp(1rem, .96rem + .18vw, 1.075rem);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: .003em;
}
h1 { font-size: clamp(2.5rem, 1.7rem + 3.6vw, 4.4rem); font-weight: 600; }
h2 { font-size: clamp(1.95rem, 1.4rem + 2.2vw, 3rem); }
h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); }
h4 { font-size: 1.18rem; }
p { color: var(--ink); }
strong { font-weight: 700; color: var(--navy-deep); }

a { text-decoration: none; transition: color .2s ease; }

::selection { background: var(--gold); color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-cream2 { background: var(--cream-2); }
.bg-navy { background: var(--navy); color: #eaf0fb; }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.lead { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); line-height: 1.6; color: var(--ink-soft); font-weight: 400; }
.measure { max-width: 62ch; }
.measure.center { margin-inline: auto; }

/* Eyebrow / section heads */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 700;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }
.bg-navy .eyebrow { color: var(--gold-soft); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.12rem; }
.bg-navy .section-head p { color: #c4d0e8; }

/* Divider flourish */
.flourish { display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold); margin: 1.2rem 0; }
.flourish::before, .flourish::after { content: ""; height: 1px; width: min(90px, 18vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish::after { background: linear-gradient(90deg, var(--gold), transparent); }
.flourish svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: .93rem; letter-spacing: .02em;
  padding: .85rem 1.5rem; border-radius: var(--radius);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-700); border-color: var(--navy-700); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold-btn); color: #fff; border-color: var(--gold-btn); }
.btn-gold:hover { background: var(--gold-btn-hover); border-color: var(--gold-btn-hover); box-shadow: 0 10px 24px rgba(138,100,32,.4); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-lg { padding: 1rem 1.9rem; font-size: 1rem; }
.btn-sm { padding: .6rem 1.05rem; font-size: .84rem; }

.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--navy); border-bottom: 2px solid transparent; padding-bottom: 2px; transition: color .2s, border-color .2s, gap .2s; }
.link-more:hover { color: var(--gold); border-color: var(--gold); gap: .65rem; }
.link-more::after { content: "\2192"; transition: transform .2s; }
.link-more:hover::after { transform: translateX(3px); }

/* ---------- Skip link & focus ---------- */
.skip-link { position: absolute; left: 1rem; top: -3.5rem; z-index: 200; background: var(--navy); color: #fff; padding: .7rem 1.1rem; border-radius: var(--radius); transition: top .2s; }
.skip-link:focus { top: 1rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 3px; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--navy-900); color: #b9c6e2;
  font-size: .82rem; letter-spacing: .01em;
}
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; padding-block: .35rem; }
.utility a { color: #d7e0f2; }
.utility a:hover { color: #fff; }
.utility .u-left { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.utility .u-item { display: inline-flex; align-items: center; gap: .45rem; }
.utility .u-item svg { width: 15px; height: 15px; opacity: .85; }
.utility .u-social { display: inline-flex; align-items: center; gap: .8rem; }
.utility .u-social a { display: inline-flex; }
.utility .u-social svg { width: 17px; height: 17px; }
@media (max-width: 720px) { .utility .u-hide-sm { display: none; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,242,231,.9);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--stone);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand img { width: 50px; height: 50px; border-radius: 8px; box-shadow: 0 2px 8px rgba(14,33,72,.28); }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt .b-name { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; color: var(--navy); letter-spacing: .01em; }
.brand-txt .b-sub { font-family: var(--sans); font-weight: 700; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.nav-menu { display: flex; align-items: center; gap: .3rem; }
.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  position: relative; font-family: var(--sans); font-weight: 600; font-size: .93rem;
  color: var(--navy-deep); padding: .55rem .8rem; border-radius: var(--radius);
}
.nav-links a::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .3rem; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-links a[aria-current="page"] { color: var(--navy); }
.nav-cta { margin-left: .6rem; }

.nav-toggle { display: none; }

/* Mobile nav */
@media (max-width: 980px) {
  /* backdrop-filter creates a containing block that would trap the fixed drawer — disable on mobile */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--card); }
  .brand { position: relative; z-index: 3; }
  .nav-cta.desktop { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 46px; height: 46px; border: 1px solid var(--stone); border-radius: var(--radius);
    background: var(--card); position: relative; z-index: 3;
  }
  .nav-toggle span { display: block; height: 2px; width: 22px; margin-inline: auto; background: var(--navy); transition: transform .25s, opacity .2s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-menu {
    position: fixed; inset: 0 0 0 auto; width: min(340px, 84vw); z-index: 2;
    background: var(--card); flex-direction: column; align-items: stretch; gap: 0;
    padding: 7.25rem 1.6rem 2.5rem; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .32s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  .nav-menu.open { transform: translateX(0); }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { padding: .95rem .4rem; font-size: 1.06rem; border-bottom: 1px solid var(--stone); border-radius: 0; }
  .nav-links a::after { display: none; }
  .nav-links a[aria-current="page"] { color: var(--gold); }
  .nav-cta.mobile { display: inline-flex; margin: 1.4rem 0 0; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(10,24,50,.5); opacity: 0; visibility: hidden; transition: opacity .3s; z-index: 90; }
  .nav-backdrop.show { opacity: 1; visibility: visible; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 981px) { .nav-cta.mobile { display: none; } .nav-backdrop { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,24,50,.34) 0%, rgba(10,24,50,.12) 35%, rgba(10,24,50,.55) 100%),
    linear-gradient(75deg, rgba(10,24,50,.72) 0%, rgba(10,24,50,.30) 55%, rgba(10,24,50,.08) 100%);
}
.hero-inner { padding-block: clamp(5rem, 16vh, 9.5rem); position: relative; }
.hero--home .hero-inner { padding-block: clamp(6.5rem, 22vh, 12rem); }
.hero h1 { color: #fff; max-width: 17ch; text-shadow: 0 2px 24px rgba(6,16,38,.4); }
.hero .eyebrow { color: var(--gold-pale); }
.hero .eyebrow::before { background: var(--gold-pale); }
.hero-sub { margin-top: 1.4rem; max-width: 46ch; font-size: clamp(1.1rem, 1rem + .55vw, 1.45rem); color: #eef2fb; font-weight: 400; text-shadow: 0 1px 12px rgba(6,16,38,.35); }
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .9rem; }

/* Page (interior) hero — a touch shorter */
.hero--page .hero-inner { padding-block: clamp(4rem, 12vh, 7rem); }
.hero-crumb { margin-top: 1.1rem; font-size: .9rem; color: #cdd8ee; letter-spacing: .02em; }
.hero-crumb a:hover { color: #fff; text-decoration: underline; }

/* Quick service strip under home hero */
.hero-strip { background: var(--navy); color: #eaf0fb; border-top: 3px solid var(--gold); }
.hero-strip .container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.hero-strip .hs-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1.5rem 1.4rem; }
.hero-strip .hs-item + .hs-item { border-left: 1px solid rgba(255,255,255,.14); }
.hero-strip svg { width: 26px; height: 26px; color: var(--gold-soft); flex: none; margin-top: 3px; }
.hero-strip .hs-k { font-family: var(--serif); font-size: 1.3rem; color: #fff; line-height: 1.15; }
.hero-strip .hs-v { font-size: .9rem; color: #b9c6e2; margin-top: .2rem; }
@media (max-width: 760px) {
  .hero-strip .container { grid-template-columns: 1fr; }
  .hero-strip .hs-item + .hs-item { border-left: none; border-top: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: stretch; }
.split.reverse .split-media { order: 2; }
.split-body { align-self: center; }
.split > .aside { align-self: center; }
/* Media column stretches to the full height of the text so the image never leaves gaps */
.split-media { position: relative; align-self: stretch; min-height: 320px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.split-media.framed::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--gold); border-radius: var(--radius-lg); z-index: -1; }
.split-body h2 { margin-bottom: .3rem; }
.split-body p + p { margin-top: 1rem; }
.split-body .btn, .split-body .link-more { margin-top: 1.6rem; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split.reverse .split-media { order: 0; }
  .split-media.framed::before { inset: 10px -10px -10px 10px; }
}

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 1.8rem); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold-pale); }
.card-media { aspect-ratio: 3/2; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5rem; }
.card-body p { color: var(--ink-soft); font-size: .98rem; }
.card-body .link-more { margin-top: auto; padding-top: 1.1rem; font-size: .9rem; }

/* Feature card with icon (no image) */
.feature { background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius-lg); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; height: 100%; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--gold-soft); margin-bottom: 1.1rem; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Service schedule ---------- */
.sched { display: grid; gap: 1.5rem; }
.sched-group { background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.sched-group > h3 { background: var(--navy); color: #fff; padding: 1rem 1.5rem; font-size: 1.35rem; display: flex; align-items: center; gap: .7rem; }
.sched-group > h3 svg { width: 22px; height: 22px; color: var(--gold-soft); }
.svc { display: grid; grid-template-columns: 190px 1fr; gap: 1rem 1.6rem; padding: 1.15rem 1.5rem; border-top: 1px solid var(--stone); }
.svc:first-of-type { border-top: none; }
.svc-when { font-weight: 700; color: var(--navy); }
.svc-when .day { display: block; font-family: var(--serif); font-size: 1.28rem; font-weight: 600; }
.svc-when .time { font-size: .92rem; color: var(--gold); font-weight: 700; letter-spacing: .04em; }
.svc-what h4 { color: var(--navy-deep); margin-bottom: .2rem; }
.svc-what p { color: var(--ink-soft); font-size: .95rem; }
.tag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--gold-pale); padding: .2rem .55rem; border-radius: 100px; margin-left: .5rem; vertical-align: middle; }
.tag.live { background: #f4d6d0; color: #8a2b1c; }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; gap: .4rem; padding: 1.1rem 1.2rem; } }

/* ---------- Info / contact tiles ---------- */
.tiles { display: grid; gap: 1.3rem; }
.tile { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius-lg); padding: 1.5rem 1.6rem; box-shadow: var(--shadow-sm); }
.tile .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); color: var(--navy); }
.tile .ic svg { width: 22px; height: 22px; }
.tile h3 { font-size: 1.25rem; margin-bottom: .25rem; }
.tile p, .tile a { color: var(--ink-soft); font-size: .98rem; }
.tile a.strong-link { color: var(--navy); font-weight: 700; }
.tile a.strong-link:hover { color: var(--gold); }

/* Definition rows */
.dl { display: grid; gap: 0; }
.dl div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--stone); }
.dl dt { font-weight: 700; color: var(--navy); }
.dl dd { color: var(--ink-soft); }
@media (max-width: 520px) { .dl div { grid-template-columns: 1fr; gap: .15rem; } }

/* ---------- Prose ---------- */
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.9rem; color: var(--navy-deep); }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose ul li { list-style: none; position: relative; padding-left: 1.4rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--gold); border-radius: 50%; }
.prose a:not(.btn) { color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--gold-pale); }
.prose a:not(.btn):hover { color: var(--gold); border-color: var(--gold); }
.prose blockquote { border-left: 3px solid var(--gold); padding: .3rem 0 .3rem 1.4rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.4; color: var(--navy); font-style: italic; }

/* Pull quote block */
.pullquote { background: var(--navy); color: #eaf0fb; border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.pullquote::before { content: "\201C"; position: absolute; top: -1.5rem; left: 1.5rem; font-family: var(--serif); font-size: 10rem; color: rgba(184,134,59,.25); line-height: 1; }
.pullquote blockquote { font-family: var(--serif); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); line-height: 1.35; color: #fff; font-style: italic; position: relative; }
.pullquote cite { display: block; margin-top: 1.2rem; font-family: var(--sans); font-style: normal; font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); }

/* Facilities chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--stone); border-radius: 100px; padding: .5rem .95rem; font-size: .9rem; font-weight: 600; color: var(--navy-deep); }
.chip svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery { columns: 4; column-gap: 14px; }
@media (max-width: 1080px) { .gallery { columns: 3; } }
@media (max-width: 720px)  { .gallery { columns: 2; } }
.gallery button {
  display: block; width: 100%; padding: 0; margin: 0 0 14px; border: none; background: none;
  border-radius: var(--radius); overflow: hidden; position: relative; break-inside: avoid; line-height: 0;
}
.gallery img { width: 100%; height: auto; border-radius: var(--radius); transition: transform .5s ease, filter .3s; box-shadow: var(--shadow-sm); }
.gallery button::after { content: ""; position: absolute; inset: 0; background: rgba(14,33,72,.0); transition: background .3s; border-radius: var(--radius); }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:hover::after { background: rgba(14,33,72,.18); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; background: rgba(8,17,36,.94); padding: clamp(1rem, 4vw, 3rem); opacity: 0; transition: opacity .25s; }
.lb.open { display: flex; opacity: 1; }
.lb img { max-width: 100%; max-height: 84vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-cap { position: absolute; bottom: max(1rem, 3vh); left: 0; right: 0; text-align: center; color: #d7e0f2; font-size: .95rem; padding-inline: 1rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; transition: background .2s, transform .2s; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: max(1rem, 3vh); right: max(1rem, 3vw); }
.lb-prev { left: max(.5rem, 2vw); top: 50%; transform: translateY(-50%); }
.lb-next { right: max(.5rem, 2vw); top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.lb-next:hover { transform: translateY(-50%) scale(1.06); }
@media (max-width: 620px) { .lb-prev, .lb-next { width: 44px; height: 44px; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; color: #fff; text-align: center; overflow: hidden; }
.cta-band .hero-media { position: absolute; inset: 0; z-index: -2; }
.cta-band .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14,33,72,.86), rgba(10,24,50,.9)); }
.cta-band .container { padding-block: clamp(3.5rem, 8vw, 6rem); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7e0f2; max-width: 50ch; margin: 1rem auto 0; }
.cta-actions { margin-top: 2rem; display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b6c4e0; padding-top: clamp(3rem, 6vw, 4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand .brand img { width: 54px; height: 54px; }
.footer-brand .b-name { color: #fff; }
.footer-brand p { margin-top: 1rem; font-size: .93rem; color: #97a7c9; max-width: 32ch; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.3rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #d7e0f2; transition: background .2s, color .2s, transform .2s; }
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { font-size: .95rem; color: #b6c4e0; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-contact li { display: flex; gap: .7rem; font-size: .95rem; margin-bottom: .8rem; align-items: flex-start; }
.footer-contact svg { width: 17px; height: 17px; color: var(--gold-soft); flex: none; margin-top: 3px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: #8496ba; }
.footer-bottom a:hover { color: var(--gold-soft); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Map ---------- */
.map-embed { border: 0; width: 100%; height: 100%; min-height: 340px; display: block; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--stone); min-height: 340px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; gap: 0; margin-left: .5rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--gold-pale)); }
.tl-item { position: relative; padding: 0 0 2.2rem 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--cream); }
.bg-cream2 .tl-item::before { box-shadow: 0 0 0 4px var(--cream-2); }
.tl-year { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--gold); line-height: 1; }
.tl-item h3 { font-size: 1.35rem; margin: .35rem 0 .4rem; }
.tl-item p { color: var(--ink-soft); font-size: .98rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.4rem; }
.stat { text-align: center; padding: 1.5rem 1rem; background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stat .num { font-family: var(--serif); font-weight: 700; font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); color: var(--navy); line-height: 1; }
.stat .lbl { margin-top: .5rem; font-size: .9rem; color: var(--ink-soft); }
.bg-navy .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.bg-navy .stat .num { color: #fff; }
.bg-navy .stat .lbl { color: #c4d0e8; }

/* ---------- People ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.person { background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); text-align: center; }
.person .avatar { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: var(--gold-soft); font-family: var(--serif); font-size: 1.8rem; font-weight: 600; }
.person h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.person .role { font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.person p { margin-top: .7rem; font-size: .94rem; color: var(--ink-soft); }

/* ---------- Two-col content ---------- */
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.two-col .aside { position: sticky; top: 100px; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } .two-col .aside { position: static; } }
.aside-card { background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.aside-card + .aside-card { margin-top: 1.3rem; }
.aside-card h3 { font-size: 1.3rem; margin-bottom: .9rem; }
.aside-card.navy { background: var(--navy); color: #eaf0fb; border: none; }
.aside-card.navy h3 { color: #fff; }
.aside-card.navy a:not(.btn) { color: var(--gold-soft); }

/* ---------- Event list ---------- */
.events { display: grid; gap: 1.1rem; }
.event { display: grid; grid-template-columns: 92px 1fr; gap: 1.4rem; align-items: center; background: var(--card); border: 1px solid var(--stone); border-radius: var(--radius-lg); padding: 1.2rem 1.5rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.event:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.event .date { text-align: center; border-right: 1px solid var(--stone); padding-right: 1.1rem; }
.event .date .d { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.event .date .m { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.event .meta { font-size: .88rem; color: var(--ink-faint); margin-top: .3rem; }
.event h4 { font-size: 1.2rem; }
@media (max-width: 520px) { .event { grid-template-columns: 70px 1fr; gap: 1rem; padding: 1rem 1.1rem; } .event .date .d { font-size: 1.6rem; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.2rem; }
.form-row { display: grid; gap: 1.2rem; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; }
.field label { font-weight: 700; font-size: .9rem; color: var(--navy); margin-bottom: .45rem; }
.field .req { color: var(--gold); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid var(--stone); border-radius: var(--radius); padding: .8rem .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 152px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23173162' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184,134,59,.2);
}
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; margin-top: .2rem; }
.form-note { font-size: .84rem; color: var(--ink-faint); max-width: 38ch; margin: 0; }
.form-hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: .9rem 1.15rem; border-radius: var(--radius); font-size: .95rem; }
.form-status.show { display: block; }
.form-status.error { background: #f6ddd7; color: #8a2b1c; border-left: 3px solid #b5432c; }
.form-status.error a { color: #8a2b1c; font-weight: 700; text-decoration: underline; }
.form-success { display: none; text-align: center; padding: 1.5rem 1rem; }
.form-success.show { display: block; }
.form-success .tick { width: 66px; height: 66px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: grid; place-items: center; }
.form-success .tick svg { width: 32px; height: 32px; }
.form-success h3 { margin-bottom: .5rem; }
.form-success p { color: var(--ink-soft); max-width: 40ch; margin-inline: auto; }

/* ---------- Misc ---------- */
.note { background: var(--cream-2); border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.1rem 1.4rem; font-size: .95rem; color: var(--ink-soft); }
.note strong { color: var(--navy); }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.stack-sm > * + * { margin-top: .8rem; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.gold-text { color: var(--gold); }
