/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --taupe:       #6b8f71;   /* sage green — primary */
  --taupe-dark:  #4a6b50;   /* forest green — dark */
  --taupe-light: #a8c5a0;   /* light sage — accents */
  --cream:       #f4f7f4;   /* green-tinted white */
  --beige:       #e8f0e8;   /* soft mint background */
  --dark:        #1e2e20;   /* deep forest dark */
  --mid:         #3d5c42;   /* mid green */
  --text:        #253028;   /* near-black green */
  --light-text:  #607b65;   /* muted sage text */
  --white:       #ffffff;
  --gold:        #8b6bab;   /* violet accent */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
}

a { color: var(--taupe); text-decoration: none; transition: color .2s; }
a:hover { color: var(--taupe-dark); }

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 2px;
  font-family: 'Montserrat', sans-serif;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .3s;
  border: 2px solid transparent;
}

.btn-light {
  background: var(--white);
  color: var(--taupe-dark);
  border-color: var(--white);
}
.btn-light:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--taupe);
  border-color: var(--taupe);
}
.btn-outline:hover {
  background: var(--taupe);
  color: var(--white);
}

.btn-full { width: 100%; text-align: center; }

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .4s, box-shadow .4s;
  padding: 0 2rem;
}

#navbar.scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .1em;
  transition: color .4s;
}

#navbar.scrolled .nav-logo { color: var(--taupe-dark); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  transition: color .3s;
}

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

#navbar.scrolled .nav-links a { color: var(--mid); }
#navbar.scrolled .nav-links a:hover { color: var(--taupe); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}
#navbar.scrolled .nav-toggle { color: var(--taupe-dark); }

/* ============================================
   HERO
   ============================================ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1e2e20 0%, #3d5c42 35%, #6b8f71 65%, #8b6bab 100%);
}

/* Decorative floral overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(139,107,171,.2) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139,107,171,.15) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20,35,22,.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 2rem;
}

.hero-date {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--taupe-light);
  margin-bottom: 1rem;
}

.hero-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  letter-spacing: .05em;
  line-height: 1.1;
  margin-bottom: .5rem;
}

.hero-names .amp {
  font-style: italic;
  color: var(--taupe-light);
  font-size: .8em;
}

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--taupe-light);
  margin-bottom: 2.5rem;
  letter-spacing: .1em;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 2rem;
  cursor: pointer;
  animation: bounce 2s infinite;
  z-index: 2;
}

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

/* ============================================
   COUNTDOWN
   ============================================ */
#countdown {
  background: var(--taupe);
  padding: 3.5rem 2rem;
  text-align: center;
}

#countdown .section-label {
  color: rgba(255,255,255,.75);
  margin-bottom: 1.5rem;
}

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

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.countdown-item span {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}

.countdown-item label {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: .3rem;
}

.countdown-sep {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: rgba(255,255,255,.4);
  line-height: 1;
  padding-bottom: 1rem;
}

/* ============================================
   SECTIONS BASE
   ============================================ */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.container-narrow { max-width: 760px; }

.section-light  { background: var(--white);  padding: 6rem 2rem; }
.section-dark   { background: var(--dark);   padding: 6rem 2rem; }
.section-beige  { background: var(--beige);  padding: 6rem 2rem; }
.section-accent { background: var(--taupe-dark); padding: 6rem 2rem; }

.section-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--taupe);
  display: block;
  text-align: center;
  margin-bottom: .75rem;
}
.section-label.light { color: rgba(255,255,255,.7); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  text-align: center;
  color: var(--dark);
  margin-bottom: 3.5rem;
  letter-spacing: .02em;
}
.section-title.light { color: var(--white); }

/* Decorative line under title */
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--taupe-light);
  margin: 1rem auto 0;
}
.section-title.light::after { background: rgba(255,255,255,.3); }

/* ============================================
   STORY
   ============================================ */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.story-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  text-align: center;
  border-top: 3px solid var(--gold);
  transition: transform .3s, box-shadow .3s;
}

.story-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(107,143,113,.18);
}

.story-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
}

.story-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: .25rem;
}

.story-year {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--taupe);
  text-transform: uppercase;
  margin-bottom: .75rem;
}

.story-card p:last-child {
  font-size: .85rem;
  color: var(--light-text);
  line-height: 1.7;
}

/* ============================================
   TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,.15);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
}

.timeline-item:nth-child(odd) .timeline-time  { text-align: right; order: 0; }
.timeline-item:nth-child(odd) .timeline-dot   { order: 1; }
.timeline-item:nth-child(odd) .timeline-content { order: 2; }

.timeline-item:nth-child(even) .timeline-content { order: 0; text-align: right; }
.timeline-item:nth-child(even) .timeline-dot   { order: 1; }
.timeline-item:nth-child(even) .timeline-time  { order: 2; text-align: left; }

.timeline-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--taupe-light);
  padding-top: .1rem;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  background: var(--taupe);
  border-radius: 50%;
  margin: .35rem auto 0;
  border: 3px solid var(--taupe-light);
  flex-shrink: 0;
}

.timeline-content h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: .3rem;
}

.timeline-content p {
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

/* ============================================
   VENUE
   ============================================ */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.venue-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 2px;
  transition: transform .3s;
}

.venue-card:hover { transform: translateY(-4px); }

.venue-icon { font-size: 2.2rem; margin-bottom: 1rem; }

.venue-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: .5rem;
}

.venue-card p {
  font-size: .85rem;
  color: var(--light-text);
  line-height: 1.6;
  margin-bottom: .5rem;
}

.venue-note {
  font-size: .7rem !important;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--taupe) !important;
  margin-bottom: 1.5rem !important;
}

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

.gallery-item { overflow: hidden; border-radius: 2px; }
.gi-1 { grid-column: span 2; grid-row: span 2; }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--taupe-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: .5;
  transition: opacity .3s;
}
.gi-1 .gallery-placeholder { min-height: 420px; }
.gallery-item:hover .gallery-placeholder { opacity: .7; }

/* ============================================
   RSVP
   ============================================ */
.rsvp-note {
  text-align: center;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

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

.form-group label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 2px;
  padding: .8rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem;
  color: var(--white);
  transition: border-color .3s, background .3s;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.4); }

.form-group select option { background: var(--mid); color: var(--white); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.18);
}

.form-group textarea { resize: vertical; }

.rsvp-success {
  text-align: center;
  color: var(--white);
  padding: 3rem 2rem;
}

.success-icon {
  font-size: 3rem;
  color: var(--taupe-light);
  margin-bottom: 1rem;
}

.rsvp-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: .5rem;
}

.rsvp-error {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 2px;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  text-align: center;
}
.rsvp-error a { color: var(--taupe-light); text-decoration: underline; }

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-card {
  background: var(--cream);
  padding: 2.5rem 2rem;
  text-align: center;
  border-radius: 2px;
}

.contact-icon { font-size: 2rem; margin-bottom: .75rem; }

.contact-card h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: .75rem;
}

.contact-card p { font-size: .85rem; color: var(--light-text); }

/* ============================================
   FOOTER
   ============================================ */
#footer {
  background: var(--dark);
  padding: 4rem 2rem;
  text-align: center;
  color: rgba(255,255,255,.6);
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--white);
  letter-spacing: .05em;
  margin-bottom: .25rem;
}

.footer-date {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--taupe-light);
  margin-bottom: 1.5rem;
}

.footer-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.5rem;
}

.footer-copy { font-size: .75rem; color: rgba(255,255,255,.25); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    padding: 1.5rem 2rem;
    gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--mid) !important; font-size: .8rem; }
  .nav-toggle { display: block; }

  .timeline::before { left: 20px; }
  .timeline-item {
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
  }
  .timeline-item:nth-child(odd) .timeline-time,
  .timeline-item:nth-child(even) .timeline-time {
    order: 0; text-align: left; grid-column: 2;
  }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    order: -1; grid-row: span 2; margin-top: .35rem;
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    order: 1; text-align: left; grid-column: 2;
  }

  .form-row { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gi-1 { grid-column: span 2; grid-row: span 1; }
  .gi-1 .gallery-placeholder { min-height: 220px; }
}

@media (max-width: 480px) {
  .countdown-sep { display: none; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gi-1 { grid-column: span 1; }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
