/* ==========================================================================
   FUANNE & GEORGE — WEDDING WEBSITE
   Aesthetic: Elegant Botanical
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Color — OKLCH — Deep teal/emerald + rich gold */
  --color-primary: oklch(45% 0.12 170);
  --color-primary-light: oklch(60% 0.10 170);
  --color-primary-dark: oklch(35% 0.12 170);
  --color-secondary: oklch(65% 0.12 70);
  --color-secondary-light: oklch(78% 0.08 70);
  --color-accent: oklch(50% 0.14 160);
  --color-accent-warm: oklch(80% 0.06 80);
  --color-bg: oklch(96% 0.012 85);
  --color-bg-alt: oklch(93% 0.018 85);
  --color-text: oklch(25% 0.02 50);
  --color-muted: oklch(50% 0.03 50);
  --color-border: oklch(86% 0.025 80);
  --color-error: oklch(55% 0.20 25);

  /* Spacing — 4pt base */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Josefin Sans', sans-serif;
  --font-script: 'Great Vibes', cursive;

  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem, 0.93rem + 0.35vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.5rem + 2.5vw, 3.375rem);
  --text-3xl: clamp(2.5rem, 1.8rem + 3.5vw, 5rem);
  --text-hero: clamp(3.5rem, 2rem + 7vw, 10rem);

  /* Motion */
  --ease-out-quart: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 600ms;
  --duration-entrance: 700ms;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

fieldset {
  border: none;
}

:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Layout ---------- */
.section-inner {
  width: min(90%, 1100px);
  margin-inline: auto;
  padding-block: var(--space-24);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: var(--space-12);
  color: var(--color-text);
  position: relative;
  letter-spacing: 0.01em;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: var(--color-secondary);
  margin-top: var(--space-4);
}

/* ---------- Scroll Animations ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--duration-entrance) var(--ease-out-quart),
    transform var(--duration-entrance) var(--ease-out-quart);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transform: translateY(0);
  transition: transform var(--duration-normal) var(--ease-out-quart);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-6);
  background: oklch(92% 0.015 170 / 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  transition: background var(--duration-normal), border-bottom var(--duration-normal);
}

/* Solid background once scrolled past hero */
.site-header--visible .nav {
  background: oklch(96% 0.012 85 / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.nav__logo {
  font-family: var(--font-script);
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 400;
  text-decoration: none;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 99px;
  transition:
    transform var(--duration-normal) var(--ease-out-quart),
    opacity var(--duration-fast);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: oklch(96% 0.012 85 / 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) var(--space-6);
}

.nav__menu--open {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.nav__menu a {
  display: block;
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: color var(--duration-fast);
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav__menu a:hover {
  color: var(--color-primary);
}

/* Desktop nav */
@media (min-width: 768px) {
  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: flex;
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    flex-direction: row;
    gap: var(--space-1);
  }

  .nav__menu a {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    position: relative;
  }

  .nav__menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-3);
    right: var(--space-3);
    height: 2px;
    background: var(--color-primary);
    border-radius: 99px;
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-out-quart);
    transform-origin: left;
  }

  .nav__menu a:hover::after {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   HERO — Illustrated paper-cut scene
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-bg);
}

/* Scene wrapper — the illustration area */
.hero__scene {
  width: 100%;
  position: relative;
  overflow: hidden;
  line-height: 0;
  min-height: clamp(420px, 70vw, 700px);
  margin-top: 52px; /* clear the fixed nav */
}

.scene__illustration {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
}

/* Names & tagline overlaid on the illustration */
.hero__overlay {
  position: absolute;
  top: 52px; /* align with scene top (below nav) */
  left: 0;
  right: 0;
  z-index: 2;
  text-align: center;
  padding: clamp(1.5rem, 4vw, 4rem) var(--space-6) 0;
  pointer-events: none;
}

.hero__prelude {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: oklch(45% 0.06 70);
  margin-bottom: var(--space-3);
  text-shadow: 0 1px 8px oklch(95% 0.01 85 / 0.6);
}

.hero__names {
  font-family: var(--font-script);
  font-size: clamp(2.8rem, 2rem + 5vw, 7rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: oklch(40% 0.08 70);
  margin-bottom: var(--space-2);
  text-shadow: 0 2px 12px oklch(95% 0.01 85 / 0.5);
}

.hero__name {
  display: block;
}

.hero__ampersand {
  display: block;
  font-family: var(--font-script);
  font-size: 0.5em;
  line-height: 1.4;
  color: oklch(50% 0.08 70);
  font-weight: 400;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: oklch(40% 0.04 50);
  text-shadow: 0 1px 8px oklch(95% 0.01 85 / 0.6);
}

/* Date & location below the V-cutout, on the cream area */
.hero__details {
  text-align: center;
  padding: var(--space-6) var(--space-6) var(--space-16);
  position: relative;
  z-index: 2;
}

.hero__date {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.hero__location {
  font-size: var(--text-sm);
  color: var(--color-muted);
  letter-spacing: 0.03em;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-muted);
  text-decoration: none;
  animation: bounce 2.5s var(--ease-out-quart) infinite;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ==========================================================================
   CULTURAL FLOATING STICKERS — Syrian & Chinese
   ========================================================================== */
.hero__shapes { display: none; }

.culture-decorations {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

/* Photo break wrappers need positioning for stickers */
.ci-wrapper {
  position: relative;
}

.culture-icon {
  position: absolute;
  width: clamp(45px, 7vw, 75px);
  height: clamp(45px, 7vw, 75px);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  animation: culture-float 14s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes culture-float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(6px, -10px) rotate(3deg); }
  50% { transform: translate(-4px, -16px) rotate(-2deg); }
  75% { transform: translate(8px, -6px) rotate(2deg); }
}

@keyframes culture-float-alt {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-5px, -8px) rotate(-2.5deg); }
  50% { transform: translate(6px, -12px) rotate(3deg); }
  75% { transform: translate(-3px, -5px) rotate(-1.5deg); }
}

/* Sticker images */
.culture-icon--dumpling      { background-image: url('photos/stickers/dumpling.png'); }
.culture-icon--red-envelope  { background-image: url('photos/stickers/red-envelope.png'); }
.culture-icon--lion          { background-image: url('photos/stickers/lion.png'); }
.culture-icon--hummus        { background-image: url('photos/stickers/hummus.png'); }
.culture-icon--olive-branch  { background-image: url('photos/stickers/olive-branch.png'); }
.culture-icon--jasmine       { background-image: url('photos/stickers/jasmine.png'); }
.culture-icon--pita          { background-image: url('photos/stickers/pita.png'); }
.culture-icon--damascus-arch { background-image: url('photos/stickers/damascus-arch.png'); }
.culture-icon--shawarma      { background-image: url('photos/stickers/shawarma.png'); }

/* Small variant */
.ci-sm {
  width: clamp(30px, 5vw, 50px);
  height: clamp(30px, 5vw, 50px);
  opacity: 0.5;
}

/* 30 unique positions — scattered across all sections */
/* Our Story (1-6) — some bleed across top/bottom edges */
.ci-pos-1  { top: -12px; right: 4%;  animation-duration: 14s; z-index: 4; opacity: 0.8; }
.ci-pos-2  { top: 25%; left: 2%;   animation-duration: 11s; animation-delay: -2s; animation-name: culture-float-alt; }
.ci-pos-3  { bottom: 30%; right: 2%; animation-duration: 16s; animation-delay: -5s; }
.ci-pos-4  { bottom: -15px; left: 6%;  animation-duration: 12s; animation-delay: -8s; animation-name: culture-float-alt; z-index: 4; opacity: 0.8; }
.ci-pos-5  { top: 55%; right: 6%;   animation-duration: 15s; animation-delay: -3s; animation-name: culture-float-alt; }
.ci-pos-6  { bottom: 45%; left: 1%;  animation-duration: 13s; animation-delay: -7s; }

/* Events (7-12) — edge bleeds */
.ci-pos-7  { top: -14px; right: 3%;  animation-duration: 15s; z-index: 4; opacity: 0.8; }
.ci-pos-8  { bottom: -16px; left: 4%; animation-duration: 12s; animation-delay: -4s; animation-name: culture-float-alt; z-index: 4; opacity: 0.8; }
.ci-pos-9  { top: 40%; right: 8%;   animation-duration: 17s; animation-delay: -6s; }
.ci-pos-10 { bottom: 35%; right: 2%; animation-duration: 10s; animation-delay: -1s; animation-name: culture-float-alt; }
.ci-pos-11 { top: 8%;  left: 3%;    animation-duration: 14s; animation-delay: -9s; }
.ci-pos-12 { bottom: 8%; left: 8%;  animation-duration: 13s; animation-delay: -3s; }

/* Travel (13-18) */
.ci-pos-13 { top: -10px; right: 5%;  animation-duration: 13s; z-index: 4; opacity: 0.8; }
.ci-pos-14 { bottom: -18px; left: 3%; animation-duration: 16s; animation-delay: -5s; animation-name: culture-float-alt; z-index: 4; opacity: 0.8; }
.ci-pos-15 { top: 35%; left: 1%;    animation-duration: 11s; animation-delay: -2s; }
.ci-pos-16 { bottom: 35%; right: 2%; animation-duration: 15s; animation-delay: -7s; animation-name: culture-float-alt; }
.ci-pos-17 { top: 60%; right: 3%;   animation-duration: 12s; animation-delay: -4s; }
.ci-pos-18 { bottom: 5%; right: 8%;  animation-duration: 14s; animation-delay: -8s; animation-name: culture-float-alt; }

/* RSVP (19-24) */
.ci-pos-19 { top: -12px; right: 4%;  animation-duration: 16s; z-index: 4; opacity: 0.8; }
.ci-pos-20 { top: 30%; left: 2%;    animation-duration: 12s; animation-delay: -3s; animation-name: culture-float-alt; }
.ci-pos-21 { bottom: -15px; right: 3%; animation-duration: 14s; animation-delay: -6s; z-index: 4; opacity: 0.8; }
.ci-pos-22 { top: 55%; right: 7%;   animation-duration: 11s; animation-delay: -1s; }
.ci-pos-23 { bottom: 8%; left: 5%;   animation-duration: 15s; animation-delay: -8s; animation-name: culture-float-alt; }
.ci-pos-24 { bottom: 40%; left: 1%;  animation-duration: 13s; animation-delay: -4s; }

/* FAQ (25-30) */
.ci-pos-25 { top: -14px; left: 3%;   animation-duration: 14s; animation-name: culture-float-alt; z-index: 4; opacity: 0.8; }
.ci-pos-26 { top: 25%; right: 4%;   animation-duration: 12s; animation-delay: -5s; }
.ci-pos-27 { bottom: 30%; left: 2%;  animation-duration: 16s; animation-delay: -2s; }
.ci-pos-28 { bottom: -12px; right: 6%; animation-duration: 11s; animation-delay: -7s; animation-name: culture-float-alt; z-index: 4; opacity: 0.8; }
.ci-pos-29 { top: 50%; right: 2%;   animation-duration: 15s; animation-delay: -4s; }
.ci-pos-30 { top: 65%; left: 5%;    animation-duration: 13s; animation-delay: -9s; animation-name: culture-float-alt; }

/* --- Edge-bleed stickers: overlap photos & section boundaries --- */
/* These use negative positioning and high z-index to spill across boundaries */
.ci-edge-1  { top: -15px;  right: 12%; animation-duration: 13s; z-index: 5; opacity: 0.85; }
.ci-edge-2  { bottom: -20px; left: 8%;  animation-duration: 15s; animation-delay: -4s; z-index: 5; opacity: 0.8; animation-name: culture-float-alt; }

/* On full-bleed photo */
.ci-edge-3  { top: -18px;  left: 10%;  animation-duration: 12s; z-index: 5; opacity: 0.85; }
.ci-edge-4  { bottom: -22px; right: 8%; animation-duration: 16s; animation-delay: -3s; z-index: 5; opacity: 0.8; animation-name: culture-float-alt; }
.ci-edge-5  { top: 15%;  right: -10px; animation-duration: 14s; animation-delay: -6s; z-index: 5; opacity: 0.75; }

/* On masonry gallery */
.ci-edge-6  { top: -20px; left: 15%;   animation-duration: 14s; z-index: 5; opacity: 0.85; }
.ci-edge-7  { bottom: -18px; right: 12%; animation-duration: 11s; animation-delay: -5s; z-index: 5; opacity: 0.8; animation-name: culture-float-alt; }
.ci-edge-8  { top: 40%; right: -8px;   animation-duration: 16s; animation-delay: -2s; z-index: 5; opacity: 0.7; }

/* On duo strip */
.ci-edge-9  { top: -16px; right: 20%;  animation-duration: 15s; z-index: 5; opacity: 0.85; }
.ci-edge-10 { bottom: -20px; left: 18%; animation-duration: 12s; animation-delay: -4s; z-index: 5; opacity: 0.8; animation-name: culture-float-alt; }

/* Mobile: show only 3 per section, hide the small ones */
@media (max-width: 639px) {
  .ci-sm {
    display: none;
  }
  .culture-icon {
    opacity: 0.5;
    width: clamp(30px, 8vw, 50px);
    height: clamp(30px, 8vw, 50px);
  }
}

/* ==========================================================================
   ORGANIC SECTION DIVIDERS
   ========================================================================== */

/* Wavy top edge for sections with different backgrounds */
.story::before,
.travel::before {
  content: '';
  display: block;
  width: 100%;
  height: clamp(30px, 4vw, 60px);
  background: var(--color-bg);
  clip-path: ellipse(55% 100% at 50% 0%);
  margin-bottom: calc(-1 * clamp(30px, 4vw, 60px));
  position: relative;
  z-index: 1;
}

.events::before,
.faq::before {
  content: '';
  display: block;
  width: 100%;
  height: clamp(30px, 4vw, 60px);
  background: var(--color-bg-alt);
  clip-path: ellipse(55% 100% at 50% 0%);
  margin-bottom: calc(-1 * clamp(30px, 4vw, 60px));
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   OUR STORY — TIMELINE
   ========================================================================== */
.story {
  background: var(--color-bg-alt);
  position: relative;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  position: relative;
  padding-left: var(--space-8);
}

/* Vertical line */
.timeline::before {
  content: '';
  position: absolute;
  left: 2px;
  top: var(--space-2);
  bottom: var(--space-2);
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
}

/* Dot on the timeline line */
.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + -4px);
  top: var(--space-2);
  width: 12px;
  height: 12px;
  background: var(--color-primary);
  border-radius: 50%;
  border: 3px solid var(--color-bg-alt);
}

.timeline__date {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.timeline__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.timeline__photo {
  margin-bottom: var(--space-4);
  border-radius: 10px;
  overflow: hidden;
  max-width: 360px;
}

.timeline__photo img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.timeline__desc {
  color: var(--color-muted);
  max-width: 48ch;
  line-height: 1.7;
}

/* Desktop: alternating left/right */
@media (min-width: 1024px) {
  .timeline {
    display: grid;
    grid-template-columns: 1fr 40px 1fr;
    gap: var(--space-16) 0;
    padding-left: 0;
  }

  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
  }

  .timeline__item {
    padding: 0;
  }

  .timeline__item::before {
    left: auto;
    top: var(--space-2);
  }

  /* Odd: left column */
  .timeline__item:nth-child(odd) {
    grid-column: 1;
    text-align: right;
    padding-right: var(--space-8);
  }

  .timeline__item:nth-child(odd) .timeline__desc {
    margin-left: auto;
  }

  .timeline__item:nth-child(odd) .timeline__photo {
    margin-left: auto;
  }

  .timeline__item:nth-child(odd)::before {
    right: calc(-1 * var(--space-8) + -26px);
    left: auto;
  }

  /* Even: right column */
  .timeline__item:nth-child(even) {
    grid-column: 3;
    text-align: left;
    padding-left: var(--space-8);
  }

  .timeline__item:nth-child(even)::before {
    left: calc(-1 * var(--space-8) + 14px);
  }
}

/* ==========================================================================
   EVENT DETAILS — Invitation style
   ========================================================================== */
.events {
  background: var(--color-bg);
  position: relative;
}

.events__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .events__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-12);
  }
}

.events__column {
  flex: 1;
  max-width: 280px;
}

.events__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-4);
}

.events__venue {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: var(--space-2);
}

.events__info {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.events__time {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: var(--color-muted);
}

/* Center column — the date */
.events__center {
  flex-shrink: 0;
  padding: 0 var(--space-6);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

@media (max-width: 639px) {
  .events__center {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-6) 0;
    width: 100%;
    order: -1;
  }
}

.events__day-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.events__day-number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 300;
  line-height: 1;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.events__day-date {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ==========================================================================
   TRAVEL & ACCOMMODATIONS
   ========================================================================== */
.travel {
  background: var(--color-bg-alt);
  position: relative;
}

.travel__grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .travel__grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

.travel__card {
  background: var(--color-bg);
  padding: var(--space-6);
  border-radius: 12px;
  transition:
    transform var(--duration-normal) var(--ease-out-quart),
    box-shadow var(--duration-normal) var(--ease-out-quart);
}

.travel__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px oklch(25% 0.02 50 / 0.08);
}

.travel__heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-primary-dark);
}

.travel__card p {
  color: var(--color-muted);
  line-height: 1.7;
}

/* ==========================================================================
   RSVP FORM
   ========================================================================== */
.rsvp {
  background: var(--color-bg-alt);
  position: relative;
}

.rsvp__form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label,
.form-group legend {
  font-weight: 600;
  font-size: var(--text-sm);
}

.form-group legend {
  margin-bottom: var(--space-2);
}

input[type="text"],
input[type="email"],
input[type="number"],
textarea {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 10px;
  transition:
    border-color var(--duration-fast) var(--ease-out-quart),
    box-shadow var(--duration-fast) var(--ease-out-quart);
}

input:focus,
textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px oklch(45% 0.12 170 / 0.12);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 60px;
}

/* Error states */
.form-group--error input,
.form-group--error textarea {
  border-color: var(--color-error);
}

.form-group--error input:focus,
.form-group--error textarea:focus {
  box-shadow: 0 0 0 4px oklch(55% 0.20 25 / 0.12);
}

.form-group__error {
  font-size: var(--text-sm);
  color: var(--color-error);
  font-weight: 500;
}

/* Custom radio buttons */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  padding: var(--space-2) 0;
  min-height: 44px;
  font-weight: 500;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-custom {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  position: relative;
  transition:
    border-color var(--duration-fast),
    background-color var(--duration-fast);
}

.radio-custom::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  transition: transform var(--duration-fast) var(--ease-out-quart);
}

.radio-label input[type="radio"]:checked + .radio-custom {
  border-color: var(--color-primary);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
  transform: scale(1);
}

.radio-label input[type="radio"]:focus-visible + .radio-custom {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 3px;
}

/* Submit button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 99px;
  text-decoration: none;
  min-height: 52px;
  transition:
    transform var(--duration-fast) var(--ease-out-quart),
    background-color var(--duration-fast),
    box-shadow var(--duration-normal) var(--ease-out-quart);
}

.btn--primary {
  background: var(--color-primary);
  color: oklch(98% 0.01 85);
  box-shadow: 0 4px 14px oklch(45% 0.12 170 / 0.25);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 6px 20px oklch(45% 0.12 170 / 0.3);
}

.btn--primary:active {
  transform: scale(0.97);
}

/* RSVP success state */
.rsvp__success-content {
  text-align: center;
  padding: var(--space-16) 0;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity var(--duration-slow) var(--ease-out-quart),
    transform var(--duration-slow) var(--ease-out-quart);
}

.rsvp__success-content.is-visible {
  opacity: 1;
  transform: scale(1);
}

.rsvp__success-content h3 {
  font-family: var(--font-script);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.rsvp__success-content p {
  font-size: var(--text-lg);
  color: var(--color-muted);
}

/* ==========================================================================
   FAQ — ACCORDION
   ========================================================================== */
.faq {
  background: var(--color-bg);
  position: relative;
}

.faq__list {
  max-width: 720px;
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-6) 0;
  text-align: left;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  min-height: 64px;
  transition: color var(--duration-fast);
}

.faq__question:hover {
  color: var(--color-primary);
}

.faq__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Plus icon made from pseudo-elements */
.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 99px;
  transition: transform var(--duration-normal) var(--ease-out-quart);
}

.faq__icon::before {
  width: 16px;
  height: 2px;
}

.faq__icon::after {
  width: 2px;
  height: 16px;
}

.faq__item.is-open .faq__icon::after {
  transform: rotate(90deg);
}

.faq__item.is-open .faq__icon::before {
  transform: rotate(90deg);
}

/* Grid-template-rows animation for smooth height */
.faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-normal) var(--ease-out-quart);
  overflow: hidden;
}

.faq__item.is-open .faq__answer {
  grid-template-rows: 1fr;
}

.faq__answer-inner {
  min-height: 0;
}

.faq__answer-inner p {
  padding-bottom: var(--space-6);
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 60ch;
}

/* ==========================================================================
   PHOTO BREAKS & GALLERIES
   ========================================================================== */

/* --- Scattered collage --- */
.photo-break--collage {
  padding: var(--space-12) 0;
  overflow: hidden;
}

.photo-break__inner {
  width: min(92%, 1200px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

.photo-scatter {
  overflow: hidden;
  border-radius: 10px;
}

.photo-scatter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-scatter--1 {
  aspect-ratio: 3 / 4;
  transform: rotate(-3deg);
  box-shadow: 0 8px 30px oklch(25% 0.02 50 / 0.12);
}

.photo-scatter--2 {
  aspect-ratio: 3 / 4;
  transform: rotate(1.5deg) translateY(-10px);
  box-shadow: 0 12px 40px oklch(25% 0.02 50 / 0.15);
  z-index: 2;
}

.photo-scatter--3 {
  aspect-ratio: 3 / 4;
  transform: rotate(3deg);
  box-shadow: 0 8px 30px oklch(25% 0.02 50 / 0.12);
}

@media (max-width: 639px) {
  .photo-break__inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
  }

  .photo-scatter--3 {
    display: none;
  }

  .photo-scatter--1 {
    transform: rotate(-2deg);
  }

  .photo-scatter--2 {
    transform: rotate(2deg);
  }
}

/* --- Full-bleed single image --- */
.photo-break--full {
  width: 100%;
  height: clamp(300px, 50vw, 560px);
  overflow: hidden;
}

.photo-break--full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* --- Masonry gallery --- */
.photo-break--gallery {
  width: min(94%, 1200px);
  margin-inline: auto;
  padding: var(--space-12) 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: var(--space-3);
}

.gallery__item {
  overflow: hidden;
  border-radius: 8px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-slow) var(--ease-out-quart);
}

.gallery__item:hover img {
  transform: scale(1.04);
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--wide {
  grid-column: span 2;
}

@media (max-width: 639px) {
  .photo-break--gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: var(--space-2);
  }

  .gallery__item--wide {
    grid-column: span 1;
  }
}

/* --- Duo strip --- */
.photo-break--duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  width: min(94%, 1200px);
  margin-inline: auto;
  padding: var(--space-8) 0;
}

.duo__item {
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
}

.duo__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 639px) {
  .photo-break--duo {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .duo__item {
    aspect-ratio: 16 / 9;
  }
}

/* --- RSVP layout with side photo --- */
.rsvp__layout {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}

.rsvp__photo-side {
  display: none;
}

@media (min-width: 1024px) {
  .rsvp__layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
  }

  .rsvp__photo-side {
    display: block;
    border-radius: 12px;
    overflow: hidden;
  }

  .rsvp__photo-side img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: oklch(28% 0.06 170);
  color: oklch(88% 0.02 85);
}

.footer .section-inner {
  padding-block: var(--space-12);
  text-align: center;
}

.footer__names {
  font-family: var(--font-script);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-bottom: var(--space-2);
  color: oklch(96% 0.01 85);
}

.footer__date {
  font-size: var(--text-sm);
  color: oklch(70% 0.04 170);
  margin-bottom: var(--space-4);
  letter-spacing: 0.1em;
}

.footer__note {
  font-size: var(--text-xs);
  color: oklch(55% 0.03 170);
  letter-spacing: 0.05em;
}
