/* ═══════════════════════════════════════════════
   CSS VARIABLES & RESET
   ═══════════════════════════════════════════════ */
:root {
  --ivory: #FDF8F0;
  --cream: #F5EDE0;
  --blush: #E8D5C4;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --gold-dark: #A8884E;
  --forest: #2C3E2D;
  --forest-light: #3D5240;
  --sage: #8B9E7E;
  --sage-light: #B5C4AB;
  --wine: #7A2E3A;
  --wine-light: #9E4A57;
  --charcoal: #3A3A3A;
  --charcoal-light: #6B6B6B;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-sc: 'Cormorant SC', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ═══════════════════════════════════════════════
   SHARED UTILITIES
   ═══════════════════════════════════════════════ */
.section-pad {
  padding: 4.5rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.narrow {
  max-width: 740px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--forest);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--charcoal);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

/* Decorative flourish divider */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  color: var(--gold);
  font-size: 1.2rem;
  opacity: 0.7;
}
.flourish::before,
.flourish::after {
  content: '';
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.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; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s var(--ease-out-quart);
}

.nav.scrolled {
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.8rem 2rem;
  box-shadow: 0 1px 0 rgba(196, 162, 101, 0.15);
}

.nav-menu {
  display: contents;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  padding: 0.5rem 0.85rem;
  border-radius: 2px;
  transition: color 0.3s, background 0.3s;
  white-space: nowrap;
}

.nav.scrolled .nav-links a {
  color: var(--forest);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-monogram {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  color: var(--ivory);
  margin: 0 1.5rem;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.nav.scrolled .nav-monogram {
  color: var(--forest);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  position: relative;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
  transform-origin: center;
}
.nav.scrolled .nav-toggle span,
.nav.menu-open .nav-toggle span {
  background: var(--forest);
}

/* Hamburger to X animation */
.nav.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav.menu-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.menu-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--forest);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139, 158, 126, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(196, 162, 101, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(122, 46, 58, 0.15) 0%, transparent 50%),
    linear-gradient(170deg, #1E2E1F 0%, #2C3E2D 30%, #3D5240 60%, #2C3E2D 100%);
}

/* Subtle botanical pattern overlay */
.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 15% 25%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 85% 75%, var(--gold) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--gold) 0.5px, transparent 0.5px);
  background-size: 80px 80px, 90px 90px, 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-date-top {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.3s forwards;
}

.hero-names {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  color: var(--ivory);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.3rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.5s forwards;
}

.hero-ampersand {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--gold);
  margin: 0.2rem 0;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.7s forwards;
}

.hero-location {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0.28em;
  color: var(--ivory);
  margin-top: 1.25rem;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-out-expo) 1.4s forwards;
}

.hero-scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gold-light), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.2); }
}

/* ═══════════════════════════════════════════════
   COUNTDOWN
   ═══════════════════════════════════════════════ */
.countdown-bar {
  background: var(--forest);
  padding: 2rem 1.5rem;
  text-align: center;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  color: var(--ivory);
  line-height: 1;
}

.countdown-label {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.25em;
  color: var(--gold-light);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════
   OUR STORY
   ═══════════════════════════════════════════════ */
.story {
  background: var(--ivory);
}

.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), var(--gold), transparent);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

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

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline-content {
  width: 45%;
  padding: 0 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--ivory);
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold-dark);
  margin-bottom: 0.3rem;
  letter-spacing: 0.05em;
}

.timeline-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--forest);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.timeline-text {
  font-size: 1.2rem;
  color: var(--charcoal);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   WEDDING DETAILS
   ═══════════════════════════════════════════════ */
.details {
  background: var(--cream);
  position: relative;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.detail-card {
  background: var(--ivory);
  padding: 3rem 2.5rem;
  text-align: center;
  border: 1px solid rgba(196, 162, 101, 0.2);
  position: relative;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--gold);
}

.detail-icon {
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
  color: var(--gold);
}

.detail-icon svg {
  display: block;
}

.detail-type {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.25em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.detail-venue {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.detail-time {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--wine);
  margin-bottom: 1rem;
}

.detail-address {
  font-size: 1.15rem;
  color: var(--charcoal);
  line-height: 1.7;
}

.weather-note {
  background: var(--ivory);
  border: 1px solid rgba(196, 162, 101, 0.2);
  padding: 2rem 2.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.weather-note span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--forest);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   GALLERY
   ═══════════════════════════════════════════════ */
.gallery {
  background: var(--cream);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--blush), var(--cream));
  border: 1px solid rgba(196, 162, 101, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease-out-expo);
}


.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ═══════════════════════════════════════════════
   TRAVEL
   ═══════════════════════════════════════════════ */
.travel {
  background: var(--ivory);
}

.travel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.travel-card {
  padding: 2.5rem;
  border: 1px solid rgba(196, 162, 101, 0.2);
  background: var(--white);
}

.travel-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.travel-card-sub {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.travel-card p, .travel-card li {
  font-size: 1.15rem;
  color: var(--charcoal);
  line-height: 1.7;
}

.travel-card ul {
  list-style: none;
  padding: 0;
}

.travel-card ul li a {
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.travel-card ul li::before {
  content: '\2726';
  color: var(--gold);
  margin-right: 0.6rem;
  font-size: 0.7rem;
}

.things-to-do {
  border: 1px solid rgba(196, 162, 101, 0.2);
  background: var(--white);
  padding: 2.5rem;
}

.things-to-do-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--forest);
  text-align: center;
  margin-bottom: 2rem;
}

.things-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.thing {
  text-align: center;
  padding: 1.5rem 1rem;
}

.thing-icon {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--gold);
}
.thing-icon svg {
  display: block;
  margin: 0 auto;
}

.thing-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--forest);
  margin-bottom: 0.4rem;
}

.thing-desc {
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.55;
}

/* ═══════════════════════════════════════════════
   ITINERARY
   ═══════════════════════════════════════════════ */
.itinerary {
  background: var(--cream);
  text-align: center;
}

.itinerary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
}

.itinerary-day {
  background: var(--white);
  border: 1px solid rgba(196, 162, 101, 0.2);
  padding: 2.5rem 2.25rem;
  text-align: center;
}

.itinerary-day-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.85rem;
  color: var(--forest);
  margin-bottom: 0.25rem;
}

.itinerary-day-date {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(196, 162, 101, 0.25);
}

.itinerary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.itinerary-item {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.25rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px dashed rgba(196, 162, 101, 0.2);
}

.itinerary-item:last-child {
  border-bottom: none;
}

.itinerary-time {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.itinerary-event {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--charcoal);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   REGISTRY
   ═══════════════════════════════════════════════ */
.registry {
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
}

.registry .section-label { color: var(--gold-light); }
.registry .section-title { color: var(--ivory); }
.registry .section-subtitle { color: var(--sage-light); }

.registry-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.registry-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196, 162, 101, 0.2);
  padding: 2.5rem 3rem;
  min-width: 200px;
  transition: all 0.4s var(--ease-out-expo);
}

.registry-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.registry-card-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--ivory);
  margin-bottom: 0.8rem;
}

.registry-card-link {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  color: var(--gold-light);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.registry-card:hover .registry-card-link {
  color: var(--white);
}

/* ═══════════════════════════════════════════════
   RSVP
   ═══════════════════════════════════════════════ */
.rsvp {
  background: var(--cream);
}

.rsvp-form {
  max-width: 620px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

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

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

.form-label {
  font-family: var(--font-sc);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 1rem;
  border: 1px solid rgba(196, 162, 101, 0.3);
  background: var(--ivory);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--charcoal);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196, 162, 101, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--charcoal-light);
  opacity: 0.5;
}

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

.form-select {
  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='%23C4A265' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  padding-top: 0.3rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--charcoal);
}

.radio-option input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(196, 162, 101, 0.4);
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: border-color 0.3s;
}

.radio-option input[type="radio"]:checked {
  border-color: var(--gold);
}

.radio-option input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--gold);
  border-radius: 50%;
}

.form-submit {
  display: block;
  width: 100%;
  padding: 1.2rem;
  margin-top: 2rem;
  font-family: var(--font-sc);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--forest);
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease-out-expo);
}

.form-submit:hover {
  background: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(44, 62, 45, 0.25);
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.form-success.show {
  display: block;
  animation: fadeUp 0.8s var(--ease-out-expo);
}

.form-success-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.form-success h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--charcoal);
  font-size: 1.15rem;
}

.form-error {
  font-size: 0.95rem;
  color: var(--wine);
  margin-top: 0.35rem;
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-select {
  border-color: var(--wine);
}

/* ═══════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════ */
.faq {
  background: var(--ivory);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(196, 162, 101, 0.2);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--forest);
  cursor: pointer;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--gold-dark);
}

.faq-toggle {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.4s var(--ease-out-expo);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--charcoal);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  background: var(--forest);
  color: var(--ivory);
  text-align: center;
  padding: 5rem 2rem;
}

.footer-names {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.footer-names em {
  font-style: italic;
  color: var(--gold-light);
}

.footer-contact {
  font-size: 1.15rem;
  color: var(--sage-light);
}

.footer-contact a {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(196, 162, 101, 0.3);
  transition: border-color 0.3s;
}

.footer-contact a:hover {
  border-color: var(--gold-light);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .section-pad { padding: 3.5rem 1.5rem; }

  .details-grid,
  .travel-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before { left: 1.5rem; }
  .timeline-item,
  .timeline-item:nth-child(odd) {
    flex-direction: column;
    text-align: left;
    padding-left: 3.5rem;
  }
  .timeline-content { width: 100%; padding: 0; }
  .timeline-dot {
    left: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item.tall {
    grid-row: span 1;
    aspect-ratio: 1;
  }
}

@media (max-width: 680px) {
  .nav {
    justify-content: space-between;
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 1.5rem;
    box-shadow: 0 1px 0 rgba(196, 162, 101, 0.15);
  }

  .nav .nav-monogram {
    color: var(--forest);
  }

  .nav .nav-toggle span {
    background: var(--forest);
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle { display: flex; }

  .section-pad { padding: 3rem 1.25rem; }

  .form-row { grid-template-columns: 1fr; }
  .countdown-grid { gap: 1.5rem; }

  .registry-cards { flex-direction: column; align-items: center; }
  .registry-card { width: 100%; max-width: 320px; }

  .itinerary-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .itinerary-day { padding: 2rem 1.5rem; }
  .itinerary-item { grid-template-columns: 8rem 1fr; gap: 1rem; }
}

/* ═══════════════════════════════════════════════
   MOBILE MENU OVERLAY
   ═══════════════════════════════════════════════ */
.mobile-overlay {
  display: none;
}

@media (max-width: 680px) {
  .mobile-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ivory);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out-expo), visibility 0.4s;
  }

  .mobile-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-overlay .mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
  }

  .mobile-overlay .mobile-nav-links a {
    font-family: var(--font-sc);
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--forest);
    padding: 0.9rem 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo), color 0.3s;
  }

  .mobile-overlay.open .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile-overlay.open .mobile-nav-links li:nth-child(1) a { transition-delay: 0.05s; }
  .mobile-overlay.open .mobile-nav-links li:nth-child(2) a { transition-delay: 0.1s; }
  .mobile-overlay.open .mobile-nav-links li:nth-child(3) a { transition-delay: 0.15s; }
  .mobile-overlay.open .mobile-nav-links li:nth-child(4) a { transition-delay: 0.2s; }
  .mobile-overlay.open .mobile-nav-links li:nth-child(5) a { transition-delay: 0.25s; }
  .mobile-overlay.open .mobile-nav-links li:nth-child(6) a { transition-delay: 0.3s; }
  .mobile-overlay.open .mobile-nav-links li:nth-child(7) a { transition-delay: 0.35s; }
  .mobile-overlay.open .mobile-nav-links li:nth-child(8) a { transition-delay: 0.4s; }

  .mobile-overlay .mobile-nav-links a:hover {
    color: var(--gold);
  }
}

/* ═══════════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}
