:root {
  --blue: #2480C4;
  --blue-mid: #1E73B4;
  --blue-dark: #134E80;
  --blue-deep: #0E3F69;
  --orange: #F58220;
  --orange-dark: #DA6A0E;
  --yellow: #FFD24D;
  --white: #ffffff;
  --ink: #123952;
  --radius: 20px;
  --shadow: 0 10px 26px rgba(8, 40, 66, 0.30);
  --font-display: "Anton", "Arial Narrow Bold", "Impact", sans-serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--white);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  background-color: var(--blue);
  background-image: linear-gradient(165deg, #2C8FD4 0%, #1E73B4 45%, #134E80 100%);
}

/* Crumpled-paper texture over the blue (like the flyer) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url("images/paper.svg");
  background-size: 760px 760px;
  background-repeat: repeat;
  mix-blend-mode: soft-light;
  opacity: 0.55;
  pointer-events: none;
}

main { max-width: 640px; margin: 0 auto; }
section { padding: 0 18px; }

/* ===== Logo ===== */
.logo { display: block; margin: 0 auto; filter: drop-shadow(0 5px 12px rgba(8, 40, 66, 0.32)); }
.logo-top { width: 62px; height: 62px; margin-bottom: 8px; }
.logo-bottom { width: 74px; height: 74px; margin: 0 auto 10px; }

/* ===== Language toggle (floating) ===== */
.lang-toggle {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 14px;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  color: var(--blue-dark);
  border: 2px solid var(--white);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  box-shadow: var(--shadow);
}
.lang-toggle:active { transform: scale(0.96); }

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 18px 18px 16px;
  padding-top: max(16px, calc(env(safe-area-inset-top) + 14px));
}
.hero-church {
  margin: 0 0 6px;
  font-size: clamp(0.72rem, 3.4vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #DCEBF7;
}
.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.94;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 4px 14px rgba(7, 33, 56, 0.45);
}
.wordmark .l1 {
  display: block;
  color: var(--orange);
  font-size: clamp(3.6rem, 19vw, 6rem);
}
.wordmark .l2 {
  display: block;
  color: var(--white);
  font-size: clamp(3rem, 16vw, 5rem);
}
.date-line {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 5.8vw, 1.7rem);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 3px 10px rgba(7, 33, 56, 0.45);
}
.hero-tag {
  margin: 10px 0 0;
  font-size: clamp(0.92rem, 4vw, 1.1rem);
  font-weight: 600;
  color: #EAF4FC;
}

/* ===== Action buttons ===== */
.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  padding: 16px 18px 6px;
}
.action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  min-height: 162px;
  padding: 18px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 4px solid;
  transition: transform 0.08s ease;
}
.action:active { transform: scale(0.97); }
.action-icon { font-size: 2.7rem; line-height: 1; margin-bottom: 2px; }
.action-kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.9;
}
.action-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 8.5vw, 2.2rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}
.action-desc {
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 500;
  margin-top: 5px;
  min-height: 2.4em;
  display: flex;
  align-items: center;
  text-align: center;
}

.action--primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange-dark);
}
.action--secondary {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--white);
}
.action--secondary .action-kicker { color: var(--blue-mid); opacity: 1; }

/* Highlighted (primary) button — make it the clear standout */
.action--highlight {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.22), 0 12px 30px rgba(8, 40, 66, 0.34);
}
.action--highlight .action-title { color: var(--orange-dark); }
.action--highlight .action-kicker { color: var(--orange-dark); opacity: 1; }

/* ===== Required callout (plain text) ===== */
.required {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 18px 2px;
  text-align: center;
}
.required-icon { font-size: 1.3rem; flex: none; }
.required p {
  margin: 0;
  font-size: clamp(0.95rem, 4.3vw, 1.12rem);
  font-weight: 700;
  color: var(--yellow);
  text-shadow: 0 2px 8px rgba(7, 33, 56, 0.45);
}

/* ===== Section headings ===== */
.block { padding: 26px 18px 4px; }
.block-title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  text-shadow: 0 3px 10px rgba(7, 33, 56, 0.4);
}

/* ===== Gift list (what to expect) ===== */
.gift { position: relative; }
.gift-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.gift-grid li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.98rem;
}
.gift-grid li span:first-child {
  font-size: 1.35rem;
  width: 30px;
  text-align: center;
  flex: none;
}
.burst {
  display: block;
  width: 130px;
  margin: 18px auto 2px;
  filter: drop-shadow(0 6px 14px rgba(8, 40, 66, 0.35));
}
.stickers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}
.sticker {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 5px 12px rgba(8, 40, 66, 0.3);
}
.sticker:nth-child(1) { background: #E25A12; transform: rotate(-4deg); }
.sticker:nth-child(2) { background: #E91E8C; transform: rotate(3deg); }
.sticker:nth-child(3) { background: #7B3FE4; transform: rotate(-3deg); }
.sticker:nth-child(4) { background: #2BA6E0; transform: rotate(4deg); }

/* ===== Photo slideshow ===== */
.photos-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
  background: var(--blue-dark);
}
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.is-active { opacity: 1; }

/* ===== White info cards ===== */
.card {
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.detail-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
}
.detail-row + .detail-row { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3edf4; }
.detail-row span:first-child { font-size: 1.3rem; flex: none; }
.detail-link { color: var(--blue-dark); }

.notes-card ul { margin: 0; padding-left: 20px; }
.notes-card li { margin-bottom: 8px; font-size: 0.94rem; line-height: 1.4; font-weight: 500; }
.notes-card li:last-child { margin-bottom: 0; }

/* ===== Footer ===== */
.footer {
  margin-top: 30px;
  padding: 26px 18px calc(28px + env(safe-area-inset-bottom));
  text-align: center;
  background: rgba(11, 50, 82, 0.55);
}
.footer-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}
