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

:root {
  --white:      #ffffff;
  --off-white:  #FDFAF5;
  --orange:     #b05728;
  --btn-bg:     #a8521f;
  --btn-hover:  #8e4519;
  --text:       #2c2620;
  --text-light: #6b5e52;
  --text-muted: #766860;
  --divider:    #e8e0d4;
}

html { scroll-behavior: smooth; font-size: 18px; scrollbar-gutter: stable; }

body {
  background: var(--white);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

/* ── NAV ─────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  transform: translateY(0);
  transition: transform 0.3s ease;
}

nav.nav--hidden { transform: translateY(-100%); }

@media (min-width: 861px) {
  #site-nav { align-items: stretch; }
  .nav-logo { display: flex; align-items: center; }
  .nav-links { align-items: stretch; }
  .nav-links li { display: flex; align-items: center; }
  .nav-links a {
    display: inline-flex;
    align-items: center;
    position: relative;
  }
  .nav-links a.active::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--btn-bg);
  }
}

.nav-logo {
  font-size: 0.8rem;
  font-weight: 400;
  color: #111;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-links a {
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--btn-bg); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 70px 24px 60px;
  background: var(--white);
}

.hero-invite {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.hero-logo {
  display: block;
  margin: 0 auto 24px;
  width: clamp(200px, 40vw, 300px);
  height: auto;
}

.hero-date {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-venue {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: #fff;
  text-decoration: none;
  padding: 12px 32px;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.btn:hover { background: var(--btn-hover); }

/* ── PHOTO STRIP ─────────────────────────────────────────── */
.photo-strip {
  overflow: hidden;
  height: 300px;
  background: var(--white);
}

.photo-track {
  display: flex;
  animation: marquee 40s linear infinite;
  height: 100%;
  will-change: transform;
}


.photo-slot {
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  margin-right: 16px;
  overflow: hidden;
}

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

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ddd6cb 0%, #ccc3b5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-10 * (300px + 16px))); }
}

/* ── MESSAGE ─────────────────────────────────────────────── */
.message-wrap { background: var(--white); }

.message {
  text-align: center;
  padding: 70px 24px;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.message h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.35;
  margin-bottom: 24px;
  text-wrap: balance;
}

.message p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ── COUNTDOWN ───────────────────────────────────────────── */
.countdown-section {
  background: var(--off-white);
  border-top: 1px solid var(--divider);
  padding: 55px 24px;
  text-align: center;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--divider);
  padding: 28px 48px 20px;
  min-width: 100px;
}

.countdown-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  min-width: 72px;
  text-align: center;
}

.countdown-label {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
}

/* ── VENUE ───────────────────────────────────────────────── */
.venue-section {
  background: var(--white);
  padding: 70px 24px 0;
  text-align: center;
}

.venue-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  margin: 12px 0 16px;
}

.venue-section p {
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
}

.venue-address { margin-bottom: 48px !important; }

.venue-photo,
.venue-photo-placeholder {
  width: 100%;
  max-width: 780px;
  margin: 0 auto 40px;
  display: block;
  height: 420px;
}

.venue-photo { object-fit: cover; }

.venue-photo-placeholder {
  background: linear-gradient(135deg, #ccc3b5 0%, #bbb09f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.venue-btn-wrap { padding-bottom: 60px; }

.venue-travel { padding: 56px 0 70px; }

/* ── ORDER OF DAY ────────────────────────────────────────── */
.order-section {
  background: var(--white);
  padding: 70px 24px;
  text-align: center;
}

.order-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  margin: 12px 0 40px;
}

.timeline {
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
}

.timeline-item:not(:last-child)::after {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background: var(--divider);
  margin-top: 8px;
}

.timeline-time {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.timeline-event {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--text);
}

.dress-code-note {
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ── INFO STACK (Getting There cards) ────────────────────── */
.info-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.info-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  text-align: left;
}

.info-card-image {
  width: 100%;
}

.info-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #ddd6cb 0%, #ccc3b5 100%);
}

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

.info-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.info-icon { font-size: 1.6rem; margin-bottom: 4px; }

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}

.info-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.75;
}

/* ── GIFTS ───────────────────────────────────────────────── */
.gifts-section {
  background: var(--white);
  padding: 70px 24px;
  text-align: center;
}

.gifts-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 400;
  margin: 12px 0 16px;
}

.gifts-text {
  max-width: 520px;
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.8;
  text-wrap: balance;
}

/* ── RSVP ────────────────────────────────────────────────── */
.rsvp-section {
  background: var(--white);
  padding: 70px 24px 80px;
  text-align: center;
}

.rsvp-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 600;
  margin: 12px 0 8px;
}

.rsvp-subtitle {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 32px;
}

.rsvp-form {
  max-width: 480px;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.radio-group {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-bottom: 8px;
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
}

.radio-group input[type="radio"] {
  accent-color: var(--btn-bg);
  width: 16px;
  height: 16px;
}

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

.form-group label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.form-group input,
.form-group textarea {
  background: var(--white);
  border: 1px solid #9d8f80;
  padding: 11px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--btn-bg); }

.form-group textarea { resize: vertical; min-height: 100px; }

.rsvp-btn-wrap { text-align: center; margin-top: 8px; }
.rsvp-form--declined .attending-only { display: none; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--white);
  border-top: 1px solid var(--divider);
  text-align: center;
  padding: 28px 24px;
  font-size: 0.79rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

footer .footer-logo {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 auto 20px;
  opacity: 0.75;
}

/* ── HAMBURGER BUTTON (hidden on desktop) ────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 860px) {
  nav { padding: 14px 20px; }
  .nav-hamburger { display: flex; padding-right: 0; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--divider); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    text-align: left;
    padding: 16px 20px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }
  .photo-strip { height: 220px; }
  .photo-slot { width: 220px; height: 220px; }
  @keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-10 * (220px + 16px))); }
  }
  .info-card { grid-template-columns: 1fr; gap: 20px; }
  .countdown-grid { gap: 6px; }
  .countdown-unit { padding: 16px 8px 12px; min-width: 0; }
  .countdown-number { font-size: clamp(1.6rem, 6vw, 2.6rem); min-width: 0; }
  .countdown-label { letter-spacing: 0.08em; font-size: 0.67rem; }
}

@media (max-width: 480px) {
  .info-stack { gap: 32px; }
  .photo-strip { height: 160px; }
  .photo-slot { width: 160px; height: 160px; }
  @keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(calc(-10 * (160px + 16px))); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .photo-track { animation: none; }
}
