/* ============================================================
   Wedding Site — Majka & Ivo — "The Digital Heirloom"
   Design System: High-End Editorial Wedding Experience
   ============================================================ */

/* ---------- Imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300;0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,300;1,6..72,400;1,6..72,500&family=Plus+Jakarta+Sans:wght@300;400;500&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Surfaces */
  --surface:                  #fff8f6;
  --surface-container-lowest: #ffffff;
  --surface-container-low:    #fff1eb;
  --surface-container:        #f5e6e0;
  --surface-container-high:   #f0ddd5;
  --surface-container-highest:#eedfd9;
  --surface-variant:          #f5e0da;
  --outline-variant:          #ddc0be;

  /* Primary / Brand */
  --primary:                  #7d1d21;
  --primary-container:        #9d3536;
  --primary-fixed-variant:    #842326;
  --on-primary:               #ffffff;
  --on-secondary-container:   #671f00;

  /* Text */
  --on-background:            #211a17;
  --on-surface:               #3a2c28;
  --on-surface-muted:         #7a6560;

  /* Spacing */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   32px;
  --space-lg:   64px;
  --space-xl:   96px;
  --space-2xl: 144px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;

  /* Elevation (tinted shadow) */
  --shadow-float: 0 12px 40px rgba(125, 29, 33, 0.06);
  --shadow-card:  0 4px 20px  rgba(125, 29, 33, 0.04);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Vertical stripe texture (ribbed paper effect) */
.texture {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(221, 192, 190, 0.05) 0px,
    rgba(221, 192, 190, 0.05) 1px,
    transparent 1px,
    transparent 32px
  );
}

/* ---------- Typography Scale ---------- */
.display-lg  { font-family: 'Newsreader', serif; font-size: clamp(4rem, 10vw, 9rem); font-weight: 300; line-height: 1.0; letter-spacing: -0.02em; }
.display-md  { font-family: 'Newsreader', serif; font-size: clamp(3rem, 7vw,  6rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; }
.display-sm  { font-family: 'Newsreader', serif; font-size: clamp(2rem, 4vw,  3.5rem); font-weight: 400; line-height: 1.1; }
.headline-lg { font-family: 'Newsreader', serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 400; line-height: 1.2; }
.headline-md { font-family: 'Newsreader', serif; font-size: clamp(1.4rem, 2.5vw, 2.2rem); font-weight: 400; line-height: 1.25; }
.title-sm    { font-family: 'Newsreader', serif; font-size: 1rem; font-weight: 500; }
.label       { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.body-lg     { font-size: 1.15rem; line-height: 1.8; }
.body-md     { font-size: 1rem; line-height: 1.75; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(255, 248, 246, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  font-family: 'Newsreader', serif;
  font-size: 1.3rem;
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-rsvp {
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary) !important;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s !important;
}

.nav-rsvp:hover { opacity: 0.88; }

.lang-toggle {
  background: none;
  border: 1px solid rgba(103, 31, 0, 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: pointer;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--on-surface-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: border-color 0.2s;
}
.lang-toggle:hover { border-color: var(--primary); }
.lang-toggle-sep { opacity: 0.3; }
.lang-toggle-cz,
.lang-toggle-en { transition: color 0.2s; }
.lang-active { color: var(--primary); font-weight: 700; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--on-surface);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Wavy Divider ---------- */
.wavy-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  display: block;
}

.wavy-divider svg {
  display: block;
  width: 100%;
}

.wavy-line {
  display: flex;
  justify-content: center;
  margin: var(--space-lg) auto;
}

.wavy-line svg { opacity: 0.7; }

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 120px 72px 80px;
  position: relative;
  overflow: hidden;
  background-color: var(--surface);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(221, 192, 190, 0.05) 0px,
    rgba(221, 192, 190, 0.05) 1px,
    transparent 1px,
    transparent 32px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-label {
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.hero-names {
  color: var(--on-background);
  margin-bottom: var(--space-sm);
}

.hero-ampersand {
  font-style: italic;
  color: var(--primary);
}

.hero-date {
  color: var(--on-surface-muted);
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
  font-family: 'Newsreader', serif;
}

.hero-cta-group {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-image-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-circle {
  width: clamp(280px, 38vw, 520px);
  height: clamp(280px, 38vw, 520px);
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-container-high);
  box-shadow: var(--shadow-float);
  position: relative;
  z-index: 1;
}

.hero-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder pattern when no photo */
.hero-circle-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, var(--surface-container-low), var(--surface-container-highest));
}

.hero-circle-placeholder .ph-icon {
  font-size: 3rem;
  opacity: 0.3;
}

.hero-circle-placeholder .ph-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  opacity: 0.6;
}

.hero-decor-circle {
  position: absolute;
  width: clamp(180px, 24vw, 320px);
  height: clamp(180px, 24vw, 320px);
  border-radius: 50%;
  background: var(--surface-container-low);
  z-index: 0;
  top: -40px;
  right: -40px;
}

/* Announcement card in hero */
.hero-ozn {
  position: relative;
  z-index: 1;
  width: clamp(220px, 28vw, 400px);
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  filter: drop-shadow(0 20px 48px rgba(125, 29, 33, 0.10));
}

/* ---------- Invitation Preview Strip ---------- */
.invites-strip {
  background: var(--surface-container-low);
  padding: var(--space-xl) clamp(24px, 8vw, 120px);
}

.invites-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 64px);
  max-width: 600px;
  margin: 0 auto;
}

.invite-card img {
  width: clamp(140px, 18vw, 212px);
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-float);
  filter: drop-shadow(0 12px 32px rgba(125, 29, 33, 0.08));
  transition: transform 0.3s cubic-bezier(.22,.61,.36,1);
}

.invite-card img:hover {
  transform: rotate(-2deg) scale(1.04);
}

.invite-card:last-child img:hover {
  transform: rotate(2deg) scale(1.04);
}

.invites-divider {
  flex-shrink: 0;
  opacity: 0.6;
}

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--primary), var(--primary-container));
  color: var(--on-primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: var(--shadow-float);
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--on-primary);
}

.btn-secondary {
  display: inline-block;
  padding: 13px 32px;
  background: var(--surface-container-low);
  color: var(--primary);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--surface-container);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--primary);
}

/* ---------- Countdown ---------- */
.countdown-section {
  background: var(--surface-container-low);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.countdown-number {
  font-family: 'Newsreader', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  color: var(--primary);
  line-height: 1;
  min-width: 120px;
  text-align: center;
}

.countdown-label {
  color: var(--on-surface-muted);
}

/* ---------- Section Shell ---------- */
.section {
  padding: var(--space-2xl) clamp(24px, 8vw, 120px);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  color: var(--primary);
  margin-bottom: var(--space-sm);
}

/* ---------- Story Section ---------- */
.story-section {
  background: var(--surface);
}

.story-grid {
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.story-text .headline-lg {
  margin-bottom: var(--space-md);
}

.story-text .body-lg {
  color: var(--on-surface);
  margin-bottom: var(--space-md);
}

.story-image-wrap {
  position: relative;
}

.story-oval {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border-radius: 50% / 40%;
  overflow: hidden;
  background: var(--surface-container-high);
  box-shadow: var(--shadow-float);
  margin: 0 auto;
}

.story-oval img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Flip animation */
.story-oval--flip {
  overflow: visible;
  background: none;
  cursor: pointer;
  perspective: 1000px;
}

.story-flip-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.55, 1);
  border-radius: inherit;
}

.story-oval--flip.is-flipped .story-flip-inner {
  transform: rotateY(180deg);
}

.story-flip-front,
.story-flip-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 50% / 40%;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.story-flip-back {
  transform: rotateY(180deg);
}

.story-oval-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, var(--surface-container), var(--surface-container-highest));
}

.story-decor-sq {
  position: absolute;
  width: 120px;
  height: 120px;
  background: var(--surface-container-low);
  border-radius: var(--radius-md);
  bottom: -30px;
  left: -30px;
  z-index: -1;
}

/* ---------- Venue Section ---------- */
.venue-section {
  background: var(--surface-container-low);
}

.venue-grid {
  display: grid;
  grid-template-columns: 4fr 5fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.venue-card {
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.venue-card h3 {
  font-family: 'Newsreader', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.venue-card .body-md {
  color: var(--on-surface);
  margin-bottom: var(--space-sm);
}

.venue-detail {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
  color: var(--on-surface-muted);
  font-size: 0.95rem;
}

.venue-detail svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--primary);
}

.venue-map-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--surface-container);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.venue-map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: sepia(20%) saturate(0.8);
}

/* ---------- Schedule Section ---------- */
.schedule-section {
  background: var(--surface-container-highest);
}

.schedule-timeline {
  max-width: 680px;
  margin: var(--space-lg) auto 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary) 0%, transparent 100%);
  opacity: 0.15;
  transform: translateX(calc(var(--space-md) / 2 - 0.5px));
}

.timeline-item:last-child::before { display: none; }

.timeline-time {
  text-align: right;
  padding-top: 4px;
  color: var(--primary);
  font-style: italic;
  font-size: 1rem;
}

.timeline-dot {
  position: relative;
  padding-left: calc(var(--space-md) + 10px);
}

.timeline-dot::before {
  content: '';
  position: absolute;
  left: calc(var(--space-md) / 2 - 5px);
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.5;
}

.timeline-event {
  font-family: 'Newsreader', serif;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--on-background);
  margin-bottom: 4px;
}

.timeline-desc {
  color: var(--on-surface-muted);
  font-size: 0.95rem;
}

/* ---------- RSVP Section ---------- */
.rsvp-section {
  background: var(--surface);
}

.rsvp-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.rsvp-inner .headline-lg {
  margin-bottom: var(--space-sm);
}

.rsvp-inner .body-lg {
  color: var(--on-surface-muted);
  margin-bottom: var(--space-lg);
}

.rsvp-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-family: 'Newsreader', serif;
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--surface-container-lowest);
  border: none;
  border-bottom: 1px solid rgba(221, 192, 190, 0.3);
  border-radius: 0;
  padding: 12px 14px;
  font-family: 'Newsreader', serif;
  font-size: 1rem;
  color: var(--on-surface);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-bottom-color: var(--primary);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--on-surface-muted);
  opacity: 0.6;
}

.form-field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237d1d21' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  text-align: center;
  margin-top: var(--space-xs);
}

.form-note {
  text-align: center;
  color: var(--on-surface-muted);
  font-size: 0.85rem;
  font-style: italic;
  margin-top: var(--space-sm);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--on-background);
  padding: var(--space-xl) clamp(24px, 8vw, 120px);
  text-align: center;
}

.footer-names {
  font-family: 'Newsreader', serif;
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  color: var(--surface-container-low);
  margin-bottom: var(--space-sm);
}

.footer-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  opacity: 0.6;
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  list-style: none;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.footer-links a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outline-variant);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-copy {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  color: var(--outline-variant);
  opacity: 0.35;
}

/* ---------- Success / Notification ---------- */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-md);
  background: var(--surface-container-low);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.form-success.visible { display: block; }

.form-success p {
  font-size: 1.2rem;
  color: var(--primary);
  font-style: italic;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 248, 246, 0.97);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 99;
  }
  .nav-links.open a { font-size: 1.1rem; }
  .nav-hamburger { display: flex; z-index: 101; }

  .hero {
    grid-template-columns: 1fr;
    padding: 120px 24px 64px;
    text-align: center;
  }
  .hero-cta-group { justify-content: center; }
  .hero-image-col { margin-top: var(--space-lg); }
  .hero-ozn { width: clamp(180px, 55vw, 280px); }

  .story-grid { grid-template-columns: 1fr; }
  .story-image-wrap { order: -1; }
  .story-oval { max-width: 260px; }

  .venue-grid { grid-template-columns: 1fr; }

  .timeline-item { grid-template-columns: 90px 1fr; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .countdown-grid { gap: var(--space-md); }
  .countdown-number { font-size: clamp(2.2rem, 10vw, 3.5rem); min-width: 80px; }
}

/* ---------- Info Card Layout ---------- */
/*
 * Used in Schedule (card left, content right)
 * and RSVP (content left, card right — reversed).
 * The card column holds the illustrated SVG; the content
 * column holds the heading + timeline / form.
 */

.info-card-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Reverse column order for RSVP section */
.info-card-layout--reverse .info-card-col  { order: 2; }
.info-card-layout--reverse .info-card-content { order: 1; }

.info-card-col {
  position: sticky;
  top: 100px; /* stays visible while scrolling past the content column */
}

.info-card-img {
  width: 100%;
  max-width: 480px;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  display: block;
  /* Slight warm tint to match surface palette */
  filter: drop-shadow(0 16px 40px rgba(125, 29, 33, 0.08));
}

/* Schedule section: card sticks left, timeline on right */
.schedule-section .info-card-content .schedule-timeline {
  margin-top: var(--space-md);
  max-width: 100%;
}

/* RSVP section: allow the card to mirror the form height naturally */
.rsvp-section .info-card-col {
  top: 120px;
}

/* Responsive: stack vertically on smaller screens */
@media (max-width: 860px) {
  .info-card-layout,
  .info-card-layout--reverse {
    grid-template-columns: 1fr;
  }

  .info-card-layout--reverse .info-card-col,
  .info-card-layout--reverse .info-card-content {
    order: unset;
  }

  /* Card appears above content when stacked */
  .info-card-col {
    position: static;
    display: flex;
    justify-content: center;
  }

  .info-card-img {
    max-width: 320px;
  }

  /* In RSVP, show card below the form on mobile */
  .rsvp-section .info-card-col {
    order: 2;
  }

  .rsvp-section .info-card-content {
    order: 1;
  }
}

/* ---------- Scroll animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- FAQ Section ---------- */
.faq-section {
  background: var(--surface);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 720px;
}

.faq-item {
  padding: var(--space-md);
  background: var(--surface-container-lowest);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.faq-question {
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.faq-answer {
  color: var(--on-surface-muted);
}

.faq-answer a {
  color: var(--primary);
}

/* ---------- Venue actions ---------- */
.venue-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: 20px;
}

.venue-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-sm);
}

.venue-map-caption {
  margin-top: 12px;
  text-align: center;
  color: var(--on-surface-muted);
  font-size: 0.85rem;
}

/* ---------- Form errors ---------- */
.field-error {
  display: block;
  color: var(--primary);
  font-size: 0.8rem;
  margin-top: 4px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.banner-error {
  color: var(--primary);
  text-align: center;
  font-size: 0.9rem;
  margin-top: 16px;
  font-family: 'Newsreader', serif;
  font-style: italic;
}

/* ---------- RSVP closed ---------- */
.rsvp-closed {
  display: none;
  text-align: center;
  padding: var(--space-md);
  background: var(--surface-container-low);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-top: var(--space-md);
}

.rsvp-closed.visible {
  display: block;
}

.rsvp-closed h3 {
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.rsvp-closed p {
  color: var(--on-surface-muted);
}

.rsvp-closed a {
  color: var(--primary);
}

/* ---------- Footer contact ---------- */
.footer-contact {
  margin-bottom: var(--space-md);
}

.footer-contact a {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--outline-variant);
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-contact a:hover {
  opacity: 1;
  text-decoration: none;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .story-flip-inner { transition: none; }

  .invite-card img:hover { transform: none; }

  .btn-primary:hover,
  .btn-secondary:hover { transform: none; }
}
