:root {
  --navy: #214261;
  --navy-deep: #132a43;
  --navy-mid: #3a5b7a;
  --teal: #1a8f96;
  --teal-dark: #0e6a72;
  --teal-soft: #dff4f5;
  --orange: #ef6c1e;
  --orange-deep: #c94d0a;
  --gold: #f0b429;
  --gold-soft: #ffe8a3;
  --cream: #fff6e9;
  --paper: #fffdf8;
  --ink: #1c2430;
  --muted: #5a6470;
  --line: #ead9c2;
  --leaf: #c4491d;
  --ok: #1f7a46;
  --shadow: 0 14px 40px rgba(22, 50, 90, 0.12);
  --radius: 22px;
  --font-body: "Segoe UI", "Avenir Next", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  --font-display: ui-rounded, "Trebuchet MS", "Segoe UI Semibold", "Avenir Next", system-ui, sans-serif;
  --font-script: "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-west: Rockwell, "Courier New", ui-serif, Georgia, serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], #see-carnival, #top { scroll-margin-top: 5.75rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(240, 180, 41, 0.18), transparent 60%),
    radial-gradient(900px 500px at 110% 0%, rgba(26, 143, 150, 0.14), transparent 55%),
    var(--cream);
  line-height: 1.55;
  min-height: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--orange-deep); }
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -200px;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner, .wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.15;
}
.brand small {
  display: block;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.75rem;
}
.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  justify-content: flex-end;
}
.nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.35rem 0.15rem;
}
.nav a:hover { color: var(--orange-deep); }
.lang-toggle {
  display: inline-flex;
  border: 2px solid var(--navy);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
  background: #fff;
}
.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: 800 0.8rem var(--font-body);
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 40px;
}
.lang-toggle button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.4rem 0 3.2rem;
}
.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.kicker {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  color: var(--teal-dark);
  margin: 0 0 0.35rem;
  line-height: 1;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 0.95;
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 5.6rem);
}
.hero h1 .line-1 { color: var(--navy); display: block; }
.hero h1 .line-2 {
  display: block;
  background: linear-gradient(180deg, #ffb347 0%, #ef6c1e 55%, #c94d0a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,0.4));
}
html[lang="en"] .hero h1 .line-1 { color: transparent; background: linear-gradient(180deg, #ffb347 0%, #ef6c1e 55%, #c94d0a 100%); -webkit-background-clip: text; background-clip: text; }
html[lang="en"] .hero h1 .line-2 { background: none; color: var(--navy); filter: none; }

.tagline-event {
  font-weight: 800;
  color: var(--navy-mid);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  margin: 0.85rem 0 1.1rem;
}
.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(201, 77, 10, 0.28);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
}
.reason {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  color: var(--navy);
  margin: 1.15rem 0 0.3rem;
  line-height: 1.1;
}
.church-line {
  color: var(--muted);
  font-weight: 700;
  margin: 0 0 1.4rem;
}

.countdown {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 0 auto 1.5rem;
}
.countdown-item {
  background: #fff;
  border: 2px solid var(--line);
  min-width: 76px;
  padding: 0.7rem 0.55rem 0.55rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.countdown-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--navy);
  line-height: 1;
}
.countdown-item span {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.countdown[data-state="live"] .countdown-item,
.countdown[data-state="past"] .countdown-item { display: none; }
.countdown-status { display: none; font-weight: 800; color: var(--teal-dark); }
.countdown[data-state="live"] .countdown-status,
.countdown[data-state="past"] .countdown-status { display: block; }

.hero-actions, .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.85rem 1.2rem;
  min-height: 48px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-deep); color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover { background: var(--teal-soft); color: var(--navy); }

section { padding: 3.2rem 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 1.8rem; }
.eyebrow {
  font-family: var(--font-west);
  color: var(--orange-deep);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.35rem;
}
.section-head h2, .panel h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.lede { margin: 0; color: var(--muted); font-size: 1.08rem; }

.program {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.65), rgba(255,255,255,0.2));
}
.program-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .program-grid { grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
}
.card, .activity, .prize, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .panel { padding: 1.4rem 1.45rem 1.5rem; }
.card h3, .activity h3, .prize h3 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
}
.card p { margin: 0 0 0.8rem; }
.people {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0.8rem 0 0;
  list-style: none;
}
.people li {
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
}

.activities { background: var(--navy-deep); color: #fff; }
.activities .eyebrow { color: var(--gold); }
.activities .section-head h2, .activities .lede { color: #fff; }
.activities .lede { color: #d5e0ea; }
.activity-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 800px) {
  .activity-grid { grid-template-columns: repeat(4, 1fr); }
}
.activity {
  text-align: center;
  padding: 1.3rem 0.9rem 1.2rem;
  background: #fff;
}
.activity .ico { font-size: 2.4rem; display: block; margin-bottom: 0.45rem; }
.activity p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.prizes-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .prizes-grid { grid-template-columns: 1fr 1fr; }
}
.prize {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  padding: 1.15rem 1.2rem;
}
.prize .ico {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: var(--teal-soft);
}
.prize.featured {
  border: 2px solid var(--gold);
  background: linear-gradient(180deg, #fffaf0, #fff);
}
.prize p { margin: 0; color: var(--muted); }
.note {
  margin: 1.1rem auto 0;
  text-align: center;
  max-width: 640px;
  color: var(--muted);
  font-weight: 700;
}

.location-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 840px) {
  .location-grid { grid-template-columns: 0.85fr 1.15fr; align-items: stretch; }
}
.map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 280px;
  background: #dce7de;
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}
.addr { font-style: normal; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.addr span { display: block; font-weight: 650; color: var(--muted); margin-top: 0.2rem; }

.heaven {
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(240, 180, 41, 0.16), transparent 60%),
    var(--navy-deep);
  color: #fff;
  text-align: center;
}
.heaven h2 { color: #fff; font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 0.7rem; }
.heaven p { color: #d5e0ea; max-width: 640px; margin: 0 auto 1.3rem; font-size: 1.08rem; }
.heaven .btn-accent { background: var(--gold); color: var(--navy-deep); }
.heaven .btn-accent:hover { background: #ffd56a; color: var(--navy-deep); }

.rsvp .panel { max-width: 640px; margin: 0 auto; }
form { display: grid; gap: 0.85rem; }
label { display: grid; gap: 0.3rem; font-weight: 800; color: var(--navy); text-align: left; }
input, select {
  font: 600 1rem var(--font-body);
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1.5px solid #d7c7b0;
  background: #fff;
  min-height: 48px;
  width: 100%;
  color: var(--ink);
}
input:focus, select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 143, 150, 0.2);
  outline: none;
}
.form-note, .thanks p { color: var(--muted); font-weight: 600; }
.thanks {
  display: none;
  text-align: center;
  padding: 1rem 0;
}
.thanks h3 { color: var(--ok); margin: 0 0 0.4rem; font-family: var(--font-display); }
.panel[data-state="done"] form { display: none; }
.panel[data-state="done"] .thanks { display: block; }

.site-footer {
  background: var(--navy-deep);
  color: #c9d6e2;
  padding: 2rem 0 2.4rem;
  text-align: center;
}
.site-footer a { color: var(--gold-soft); }
.site-footer p { margin: 0.35rem 0; }
.footer-name {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

/* decorative leaves */
.leaf {
  position: absolute;
  width: 28px;
  height: 28px;
  background: var(--orange);
  border-radius: 0 80% 0 80%;
  transform: rotate(var(--r, 20deg));
  opacity: 0.85;
}
.leaf.gold { background: var(--gold); }
.leaf.red { background: var(--leaf); }
.leaf.l1 { top: 12%; left: 6%; --r: -20deg; }
.leaf.l2 { top: 28%; left: 3%; background: #d35400; --r: 50deg; }
.leaf.l3 { top: 16%; right: 7%; --r: 30deg; }
.leaf.l4 { top: 38%; right: 4%; background: var(--gold); --r: -40deg; }
.pumpkin, .pumpkin-r {
  position: absolute;
  bottom: 8%;
  width: 54px;
  height: 40px;
  background: radial-gradient(circle at 30% 30%, #ffb347, #ef6c1e 60%, #c94d0a);
  border-radius: 50% 50% 45% 45%;
  opacity: 0.9;
}
.pumpkin { left: 8%; }
.pumpkin-r { right: 8%; }
.pumpkin::before, .pumpkin-r::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 8px;
  height: 12px;
  background: #2d6a3a;
  border-radius: 4px;
  transform: translateX(-50%);
}

@media (max-width: 799px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .activity-grid { grid-template-columns: 1fr 1fr; }
  .pumpkin, .pumpkin-r, .leaf.l2, .leaf.l4 { display: none; }
}
@media (min-width: 800px) {
  section { padding: 4rem 0; }
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.party-grid, .name-grid, .contact-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .name-grid, .party-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 160px 1fr; }
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-weight: 800;
  color: var(--navy);
  text-align: left;
}
.check input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin-top: 0.15rem;
  accent-color: var(--teal-dark);
  flex-shrink: 0;
}
.form-error, .form-status[data-kind="error"] {
  color: #8a1f11;
  background: #fdecea;
  border: 1px solid #f3c0b8;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
  display: none;
}
.form-status[data-kind="error"] { display: block; }
.form-status[data-kind="ok"] {
  display: block;
  color: var(--ok);
  background: #e8f6ee;
  border: 1px solid #b7e0c5;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
}
.privacy-page .wrap { max-width: 760px; padding: 2rem 0 3rem; }
.privacy-page h1 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}
.privacy-page h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.3rem;
  margin: 1.6rem 0 0.4rem;
}
.admin-body { background: var(--cream); }
.admin-wrap { width: min(960px, calc(100% - 2rem)); margin: 2rem auto 3rem; }
.admin-wrap table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.92rem;
}
.admin-wrap th, .admin-wrap td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.admin-wrap th { background: var(--navy); color: #fff; }
.muted { color: var(--muted); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.map-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.map-hint { text-align: left; margin: 0 0 0.8rem; }
.tight { margin: 0; }
.notfound { padding: 4rem 0; text-align: center; }
.privacy-rule { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--line); }
.privacy-back { margin-top: 2rem; }

.see-carnival { margin-top: 2.4rem; }
.see-carnival h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: #fff;
  margin: 0 0 0.4rem;
}
.promo-player { margin: 0 auto 1.2rem; max-width: 860px; }
.promo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.promo-player figcaption {
  margin: 0.65rem 0 0;
  color: #d5e0ea;
  font-size: 0.95rem;
}
.promo-player figcaption a { display: inline-block; margin-left: 0.35rem; color: var(--gold-soft); }
.promo-player figcaption a:hover { color: #fff; }
.photo-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.photo-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  background: var(--teal-soft);
  box-shadow: 0 6px 18px rgba(22, 50, 90, 0.1);
}
@media (min-width: 800px) {
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-video { box-shadow: none; }
}

/* Church branding + primary sign-up CTA */
.brand-logo { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 4px 12px rgba(33, 66, 97, 0.25); }
.nav a.nav-cta { background: var(--orange); color: #fff; border-radius: 999px; padding: 0.3rem 0.9rem; }
.nav a.nav-cta:hover { background: var(--orange-deep); color: #fff; }
.btn-xl { font-size: 1.2rem; padding: 1rem 1.8rem; min-height: 58px; box-shadow: 0 10px 24px rgba(201, 77, 10, 0.32); }
.hero-note { margin: 0.9rem auto 0; max-width: 560px; font-weight: 700; color: var(--navy); }
.poster-card { margin: 0; padding: 0; overflow: hidden; }
.poster-card img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.ride-title { font-family: var(--font-display); color: var(--navy); margin: 1.2rem 0 0.3rem; font-size: 1.2rem; }
.footer-logo { display: block; margin: 0 auto 0.8rem; width: 240px; max-width: 70%; height: auto; }
.footer-fine { font-size: 0.85rem; opacity: 0.85; }
#rsvp-submit { width: 100%; margin-top: 0.4rem; }
.thanks:focus { outline: none; }
.sticky-cta { display: none; }
@media (max-width: 799px) {
  .sticky-cta {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 50;
    min-height: 54px; border-radius: 999px; background: var(--orange); color: #fff;
    font-weight: 800; font-size: 1.1rem; text-decoration: none;
    box-shadow: 0 10px 28px rgba(19, 42, 67, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .sticky-cta:hover { color: #fff; background: var(--orange-deep); }
  .sticky-cta[data-hidden="true"], body[data-signed-up="true"] .sticky-cta { opacity: 0; transform: translateY(140%); pointer-events: none; }
  .site-footer { padding-bottom: 6rem; }
}
.hero h1 .line-1, .hero h1 .line-2 { padding-bottom: 0.1em; margin-bottom: -0.1em; }
.rsvp { background: linear-gradient(180deg, #ffe9cf 0%, #fff3e2 100%); border-top: 4px solid var(--orange); border-bottom: 4px solid var(--orange); }
.rsvp .section-head h2 { color: var(--orange-deep); }
.rsvp .panel { border: 2px solid rgba(239, 108, 30, 0.35); box-shadow: 0 18px 44px rgba(201, 77, 10, 0.16); }
@media (max-width: 479px) {
  .countdown { gap: 0.45rem; flex-wrap: nowrap; }
  .countdown-item { min-width: 0; flex: 1 1 0; max-width: 84px; padding: 0.6rem 0.3rem 0.5rem; }
  .countdown-item span { font-size: 0.62rem; letter-spacing: 0.03em; }
}
