/* =====================================================================
   Cafe Arev: styles
   Mobile-first. Colors come from the logo and the printed menu.
   Every text/background pair below is checked for WCAG AA (4.5:1+).
   ===================================================================== */

:root {
  /* Brand palette */
  --navy: #0E2357;        /* text, wordmark. 13.5:1 on cream */
  --navy-2: #172E6B;      /* slightly lighter navy for layered dark panels */
  --blue: #1747B5;        /* royal blue (the coffee). 7.2:1 on cream, 8:1 with white */
  --sun: #FFC600;         /* sun-ray yellow. Backgrounds/decoration only, never text on light */
  --gold-text: #7A5600;   /* deeper gold for small text on light. 6:1 on cream */
  --cream: #FBF3D5;       /* page background (from the menu) */
  --butter: #F4E8A6;      /* the trailer's butter yellow. Section accent */
  --white: #FFFFFF;
  --black: #111111;
  --muted: #4A4E63;       /* secondary text. 7.4:1 on cream, 6.6:1 on butter */
  --on-navy-muted: #C9D2EA; /* secondary text on navy. 9.9:1 */
  --error: #B42318;       /* 5.9:1 on cream */
  --ok: #1E6B3A;

  /* Type */
  --font-display: "Fredoka", "Nunito", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape and rhythm */
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(14, 35, 87, .08), 0 8px 24px rgba(14, 35, 87, .10);
  --shadow-lg: 0 2px 4px rgba(14, 35, 87, .08), 0 18px 48px rgba(14, 35, 87, .16);
  --wrap: 1180px;
  --gutter: 16px;
  --bar-h: 64px; /* mobile bottom bar */

  /* Subtle Persian 8-point star tile, navy at low opacity */
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230E2357' stroke-opacity='.07' stroke-width='1.2'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 0l10 10M64 0L54 10M0 64l10-10M64 64L54 54'/%3E%3C/g%3E%3C/svg%3E");
  --tile-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23FFC600' stroke-opacity='.10' stroke-width='1.2'%3E%3Crect x='20' y='20' width='24' height='24'/%3E%3Crect x='20' y='20' width='24' height='24' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 0l10 10M64 0L54 10M0 64l10-10M64 64L54 54'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--navy); }
ul { padding: 0; margin: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .site-footer :focus-visible, .mobile-bar :focus-visible { outline-color: var(--sun); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 32px; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .2em; font-size: .8rem; color: var(--gold-text);
  margin-bottom: .6em;
}
.section-title { font-size: clamp(2rem, 6vw, 3rem); color: var(--navy); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--sun); color: var(--navy); border-color: var(--navy); box-shadow: 3px 3px 0 var(--navy); }
.btn-primary:hover { color: var(--navy); box-shadow: 4px 4px 0 var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--blue); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.on-dark .btn-outline { color: var(--white); border-color: var(--white); }
.on-dark .btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-lg { min-height: 56px; font-size: 1.12rem; padding: .8em 1.5em; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ---------- Announcement ---------- */
.announcement { background: var(--navy); color: var(--white); text-align: center; padding: 8px var(--gutter); font-weight: 700; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 243, 213, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(14, 35, 87, .10);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-logo { width: auto; height: 56px; filter: drop-shadow(0 1px 2px rgba(14, 35, 87, .25)); }
.brand-text { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: var(--white); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px;
  font: 600 1rem var(--font-display); cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars span { top: 5px; }
.nav-toggle-bars::after { bottom: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span { opacity: 0; }

.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: var(--cream); border-bottom: 2px solid var(--navy); box-shadow: var(--shadow);
  padding: 8px var(--gutter) 16px;
}
.site-nav.is-open { display: block; }
.site-nav ul { display: grid; gap: 2px; }
.site-nav a {
  display: block; padding: 12px 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
  color: var(--navy); text-decoration: none; border-radius: 10px;
}
.site-nav a:hover { background: var(--butter); }
.header-call { display: none; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
  .site-nav ul { display: flex; gap: 4px; }
  .site-nav a { font-size: 1rem; padding: 8px 12px; }
  .header-call { display: inline-flex; min-height: 44px; padding: .55em 1.1em; font-size: 1rem; }
  .brand-logo { height: 60px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(255, 198, 0, .45), rgba(255, 198, 0, 0) 42%),
    radial-gradient(circle at 0% 100%, rgba(244, 232, 166, .9), rgba(244, 232, 166, 0) 55%),
    var(--tile), var(--cream);
  padding: 32px 0 56px;
}
.hero-rays {
  position: absolute; width: 900px; height: 900px; right: -380px; top: -420px;
  color: var(--sun); opacity: .35; pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 32px; align-items: center; }
.hero-name {
  display: block; font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .24em; color: var(--blue); margin-bottom: .5em;
}
.hero-tagline { display: block; font-size: clamp(2.4rem, 10vw, 4.4rem); line-height: 1.02; color: var(--navy); letter-spacing: -.015em; }
.hero-tagline .sun-word { position: relative; white-space: nowrap; }
.hero-tagline .sun-word::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .26em;
  background: var(--sun); border-radius: 999px; z-index: -1;
}
.hero h1 { position: relative; z-index: 0; margin-bottom: .4em; }
.hero-mission { margin: -.1em 0 .9em; }
.hero-mission a {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 4.2vw, 1.75rem); line-height: 1.2;
  color: var(--blue); text-decoration: none;
  border-left: 5px solid var(--sun); padding: .1em 0 .1em .6em;
}
.hero-mission a:hover { color: var(--navy); }
.hero-mission svg { width: 1.1em; height: 1.1em; flex: none; color: var(--gold-text); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.vibes {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .85rem;
  color: var(--navy); background: var(--butter); border: 2px solid var(--navy); border-radius: 999px; padding: 6px 14px;
  transform: rotate(-1.5deg);
}
.vibes svg { width: 18px; height: 18px; color: var(--navy); }

.status {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--white);
  border: 2px solid var(--navy); font-weight: 700; font-size: .98rem; color: var(--navy);
  margin-bottom: 18px;
}
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); flex: none; box-shadow: 0 0 0 3px rgba(74, 78, 99, .18); }
.status.is-open .status-dot { background: #1F8A4C; box-shadow: 0 0 0 3px rgba(31, 138, 76, .22); animation: pulse 2.4s ease-in-out infinite; }
.status.is-closed .status-dot { background: var(--error); box-shadow: 0 0 0 3px rgba(180, 35, 24, .18); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(31, 138, 76, 0); } }

.hero-facts { display: grid; gap: 6px; margin: 0 0 24px; color: var(--navy); font-weight: 600; }
.hero-facts li { display: flex; gap: 10px; align-items: flex-start; }
.hero-facts svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--blue); }
.hero-actions { display: grid; gap: 12px; }
.hero-actions .btn { width: 100%; }

.hero-figure { position: relative; margin: 0; }
.photo-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  border: 3px solid var(--navy); background: var(--butter); box-shadow: 6px 6px 0 var(--navy);
  aspect-ratio: 4 / 3;
}
.photo-frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* Hero photo: the trailer sits low and center in the frame */
.photo-hero img { object-position: 50% 70%; }
.photo-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.photo-frame.has-photo .photo-fallback { display: none; }
.photo-note {
  position: absolute; left: 12px; bottom: 12px; margin: 0;
  background: var(--sun); color: var(--navy); font-family: var(--font-display); font-size: .9rem; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; border: 2px solid var(--navy);
  box-shadow: 0 4px 12px rgba(14, 35, 87, .25);
}
.photo-frame.has-photo .photo-note { display: none; }
.hero-sticker {
  position: absolute; width: 34%; max-width: 180px; right: -6px; top: -26px; z-index: 2;
  transform: rotate(6deg); filter: drop-shadow(0 6px 10px rgba(14, 35, 87, .28));
}

@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; white-space: nowrap; }
}
@media (min-width: 960px) {
  .hero { padding: 64px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-sticker { right: -28px; top: -44px; max-width: 200px; }
}

/* ---------- Find us ---------- */
.find { background: var(--white); }
.find-grid { display: grid; gap: 24px; }
.card {
  background: var(--cream); border: 2px solid var(--navy); border-radius: var(--radius);
  padding: 24px; box-shadow: 4px 4px 0 var(--navy);
}
.place-name { font-size: 1.5rem; margin-bottom: .2em; }
.place-area { color: var(--muted); margin-bottom: 1em; }
.address { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.2em; }
.hours-title { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .14em; margin: 1.2em 0 .5em; }
.hours-list { display: grid; gap: 4px; margin-bottom: 1.2em; }
.hours-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(14, 35, 87, .25); }
.hours-list .hours-days { font-weight: 700; }
.hours-list .is-closed { color: var(--muted); }
.find-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.find-actions .btn { flex: 1 1 auto; }
.find-visuals { display: grid; gap: 20px; align-content: start; }
.find-photo { margin: 0; }
.find-photo .photo-frame { box-shadow: 4px 4px 0 var(--navy); }
.photo-side img { object-position: 50% 40%; }
.find-photo figcaption { margin-top: 10px; font-weight: 700; }
.map-frame {
  position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden;
  border: 2px solid var(--navy); background: var(--butter) var(--tile);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 16px; color: var(--navy); font-weight: 700; }

.events { margin-top: 48px; }
.events-title { font-size: 1.6rem; }
.event-list { display: grid; gap: 14px; }
.event {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px; background: var(--cream);
  border-radius: var(--radius); border: 2px solid var(--navy);
}
.event-date {
  flex: none; width: 64px; text-align: center; background: var(--navy); color: var(--white);
  border-radius: 14px; padding: 8px 4px; font-family: var(--font-display);
}
.event-month { display: block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--sun); }
.event-day { display: block; font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.event-title { font-size: 1.2rem; margin-bottom: .2em; }
.event-meta, .event-place, .event-note { margin: 0; }
.event-meta { font-weight: 700; }
.event-place, .event-note { color: var(--muted); }

@media (min-width: 900px) {
  .find-grid { grid-template-columns: 5fr 7fr; align-items: stretch; }
  .find-visuals .photo-frame { aspect-ratio: 16 / 9; }
  .event-list { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Menu ---------- */
.menu { background: var(--tile), var(--cream); }
.menu-paper {
  background: var(--cream); border: 2px solid var(--navy); border-radius: var(--radius-lg);
  padding: 28px 18px; box-shadow: var(--shadow-lg);
}
.menu-top { text-align: center; margin-bottom: 24px; }
.menu-takeaway {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .4em; font-weight: 500; font-size: .95rem;
}
.menu-takeaway::before, .menu-takeaway::after { content: ""; height: 2px; width: 48px; background: var(--navy); }
.menu-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 520px; margin: 0 auto 32px; }
.menu-photos figure { margin: 0; }
.menu-photos img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  border: 2px solid var(--navy);
}
.menu-photos figure:first-child img { object-position: 35% 50%; }
.menu-photos figure:last-child img { object-position: 50% 75%; }
.menu-photos figcaption { margin-top: 8px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: .95rem; }
.menu-cats { display: grid; gap: 32px; }
.menu-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.menu-table caption {
  text-align: left; font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; font-size: 1.15rem; padding-bottom: 6px; color: var(--navy);
}
.menu-table thead th {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-align: right;
  padding: 0 0 6px; border-bottom: 2px solid var(--navy); color: var(--navy);
}
.menu-table thead th:first-child { text-align: left; }
.menu-table abbr { text-decoration: none; }
.menu-table td, .menu-table tbody th { padding: 9px 0; border-bottom: 1px dashed rgba(14, 35, 87, .22); vertical-align: top; }
.menu-table tbody th { text-align: left; font-weight: 600; padding-right: 8px; }
.menu-table td { text-align: right; white-space: nowrap; width: 4.6em; font-weight: 700; }
.menu-table td.price-range { width: auto; }
.menu-table tbody tr:last-child > * { border-bottom: 0; }
.menu-note { margin: 10px 0 0; font-size: .95rem; color: var(--muted); }
.menu-note strong { color: var(--navy); }
.menu-foot {
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center;
  margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--navy);
}
.order-soon {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  background: var(--butter); border: 2px dashed var(--navy); border-radius: 999px; padding: 10px 18px;
  font-family: var(--font-display); font-weight: 600;
}
.menu-small { font-size: .95rem; color: var(--muted); margin: 0; }
.menu-slogan { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .22em; font-style: italic; font-weight: 500; margin: 0; }

@media (min-width: 760px) {
  .menu-paper { padding: 40px 40px 32px; }
  .menu-cats { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
}
@media (min-width: 1100px) {
  .menu-cats { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Story ---------- */
.story { background: var(--tile), var(--butter); }
.story-grid { display: grid; gap: 36px; align-items: center; }
.story-body p { font-size: 1.1rem; }
.values { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.values li {
  background: var(--white); border: 2px solid var(--navy); border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
}
.meaning {
  margin: 28px 0 0; padding: 20px 22px; border-radius: var(--radius); background: var(--navy); color: var(--white);
  position: relative; overflow: hidden;
}
.meaning::before {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 0, .55), rgba(255, 198, 0, 0) 70%);
}
.meaning p { margin: 0; position: relative; font-size: 1.08rem; }
.meaning strong { color: var(--sun); font-family: var(--font-display); font-size: 1.25rem; }
.story-visuals { display: grid; gap: 28px; }
.story-owner { margin: 0; }
.photo-owner { aspect-ratio: 5 / 3; }
.photo-owner img { object-position: 60% 45%; }
.story-figure { margin: 0; }
.story-figure figcaption { margin-top: 14px; font-size: 1.05rem; font-weight: 700; color: var(--navy); }
.photo-cards { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #F4E8A6 0%, #F4E8A6 62%, #22356F 62%, #22356F 100%); }
.photo-cards img { object-position: 50% 45%; }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
}

/* ---------- Catering ---------- */
.catering { background: var(--tile-light), var(--navy); color: var(--white); }
.catering .section-title { color: var(--white); }
.catering .eyebrow { color: var(--sun); }
.catering .lead { color: var(--on-navy-muted); }
.catering-grid { display: grid; gap: 36px; }
.gallery { margin-bottom: 48px; }
.gallery-title { font-size: 1.4rem; color: var(--white); }
.gallery-list {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 12px; margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.gallery-item { scroll-snap-align: start; }
.gallery-item figure { margin: 0; }
.gallery-item img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  border: 2px solid var(--sun); background: var(--navy-2);
}
.g-crowd img { object-position: 62% 50%; }
.g-pointing img { object-position: 40% 50%; }
.g-deputies img { object-position: 50% 55%; }
.g-kids img { object-position: 45% 65%; }
.gallery-item figcaption { margin-top: 8px; color: var(--on-navy-muted); font-weight: 600; font-size: .95rem; }
.perks { display: grid; gap: 10px; margin-bottom: 20px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 1.08rem; }
.perks svg { width: 24px; height: 24px; flex: none; color: var(--sun); }
@media (min-width: 640px) {
  .gallery-list { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; padding: 0; margin: 0; }
}
@media (min-width: 1000px) {
  .gallery-list { grid-template-columns: repeat(4, 1fr); }
  .gallery-item img { aspect-ratio: 1 / 1; }
}
.event-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.event-types li {
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px;
  background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .16); font-weight: 700;
}
.event-types svg { width: 26px; height: 26px; flex: none; color: var(--sun); }
.church-note {
  border-left: 4px solid var(--sun); padding: 6px 0 6px 16px; margin: 0 0 24px; color: var(--white); font-size: 1.08rem;
}
.catering-contact { color: var(--on-navy-muted); }
.catering-contact a { color: var(--white); font-weight: 700; }

.form-card { background: var(--cream); color: var(--navy); border-radius: var(--radius-lg); padding: 24px 18px; box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.5rem; }
.form-intro { color: var(--muted); }
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1rem; color: var(--navy);
  background: var(--white); border: 2px solid #6B7089; border-radius: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 71, 181, .28); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 700; font-size: .92rem; margin: 6px 0 0; min-height: 0; }
.field-error:empty { display: none; }
.form-summary { color: var(--error); font-weight: 700; margin: 0; }
.form-summary:empty { display: none; }
.form-fine { font-size: .9rem; color: var(--muted); margin: 0; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 640px) {
  .form-card { padding: 32px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .event-types { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .catering-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
  .event-types { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- "Be the Light" mission banner ---------- */
.light-band {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  padding: clamp(72px, 12vw, 128px) 0;
  background: radial-gradient(ellipse at 50% 38%, var(--blue) 0%, #12398F 45%, var(--navy) 100%);
}
.light-rays {
  position: absolute; left: 50%; top: 38%; width: 220vmax; height: 220vmax;
  transform: translate(-50%, -50%); pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 198, 0, .09) 0deg 6deg, transparent 6deg 18deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 42%);
          mask-image: radial-gradient(circle, #000 0%, transparent 42%);
}
.light-inner { position: relative; max-width: 860px; }
.light-sun { width: 72px; height: 72px; margin: 0 auto 18px; display: block; filter: drop-shadow(0 0 22px rgba(255, 198, 0, .7)); }
.light-title {
  font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0 0 .45em;
  font-size: clamp(2.4rem, 8vw, 4.75rem); color: var(--sun);   /* sun on #1747B5 centre ≈5.1:1; darker toward the edges */
  text-shadow: 0 2px 14px rgba(5, 15, 45, .45);                 /* dark halo keeps contrast; glow lives on the sun icon */
  text-wrap: balance;
}
.light-text { font-size: clamp(1.1rem, 2.6vw, 1.35rem); max-width: 640px; margin: 0 auto; color: var(--white); }
.light-ref { margin: 18px 0 0; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-muted); }
@media (prefers-reduced-motion: no-preference) {
  .light-sun { animation: glow 4s ease-in-out infinite alternate; }
}
@keyframes glow { from { filter: drop-shadow(0 0 12px rgba(255, 198, 0, .45)); } to { filter: drop-shadow(0 0 30px rgba(255, 198, 0, .9)); } }

/* ---------- Footer ---------- */
.site-footer { background: #0A1A42; color: var(--white); padding: 56px 0 32px; }
.footer-grid { display: grid; gap: 32px; }
.footer-logo { width: 150px; height: auto; margin-bottom: 12px; }
.footer-tag { font-family: var(--font-display); font-size: 1.25rem; margin: 0 0 .2em; }
.footer-vibes { text-transform: uppercase; letter-spacing: .2em; font-size: .85rem; color: var(--sun); font-family: var(--font-display); font-weight: 600; }
.site-footer .footer-light { margin-top: .9em; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--white); }
.site-footer h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .16em; color: var(--sun); margin-bottom: .8em; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sun); }
.site-footer p, .site-footer li, .site-footer address { color: var(--on-navy-muted); }
.footer-list { display: grid; gap: 6px; }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .95rem; color: var(--on-navy-muted);
}
.footer-bottom p { margin: 0; }
.social-list { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.footer-hours li { display: grid; gap: 0; }
.footer-hours .hours-days { color: var(--white); font-weight: 700; }

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* ---------- Mobile bottom bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--navy); border-top: 3px solid var(--sun);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -6px 20px rgba(14, 35, 87, .25);
}
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--bar-h); color: var(--white); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
}
.mobile-bar a + a { border-left: 1px solid rgba(255, 255, 255, .14); }
.mobile-bar svg { width: 24px; height: 24px; color: var(--sun); }
.mobile-bar a:active { background: var(--navy-2); }
@media (min-width: 900px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Simple pages (thanks / 404) ---------- */
body.no-bar { padding-bottom: 0; }
.simple-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; background: var(--tile), var(--cream); }
.simple-page .sticker { width: 220px; margin: 0 auto 20px; filter: drop-shadow(0 6px 10px rgba(14, 35, 87, .25)); }
.simple-page h1 { font-size: clamp(2rem, 7vw, 3rem); }
.simple-page .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.simple-footer { background: #0A1A42; color: var(--on-navy-muted); text-align: center; padding: 20px var(--gutter); font-size: .95rem; }
.simple-footer p { margin: 0; }
.simple-footer a { color: var(--white); }
.simple-footer a:hover { color: var(--sun); }

/* ---------- Privacy page (long text, left-aligned) ---------- */
.legal-page { text-align: left; place-items: start center; }
.legal-page .wrap { max-width: 760px; }
.legal-page .sticker { width: 140px; margin: 0 0 16px; }
.legal-page h1 { font-size: clamp(2rem, 6vw, 2.6rem); }
.legal-page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal-page ul { list-style: disc; padding-left: 1.25em; margin: 0 0 1em; }
.legal-page li { margin-bottom: .4em; }
.legal-updated { color: var(--muted); font-weight: 700; }
.legal-page .actions { justify-content: flex-start; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-rays { animation: spin 140s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .mobile-bar, .hero-actions, .map-frame, .form-card, .hero-rays { display: none !important; }
  body { padding: 0; background: #fff; }
}
