/* ===== VARIABLES ===== */

:root {
  --cream: #faf4f0;
  --cream-dark: #ede3db;
  --charcoal: #251e1a;
  --charcoal-soft: #362b26;
  --gold: #b8836e;
  --gold-light: #cfa898;
  --text: #251e1a;
  --text-muted: #6b5248;
  --white: #fdf8f5;
  --ff-display: 'Cormorant Garamond', serif;
  --ff-body: 'Jost', sans-serif;
}

/* ===== RESET ===== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 3px;
  color: var(--charcoal);
}

#navLinks {
  list-style: none;
  display: flex;
  gap: 40px;
}

#navLinks a {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: color 0.3s;
}

#navLinks a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

#navLinks a:hover {
  color: var(--gold);
}

#navLinks a:hover::after {
  width: 100%;
}

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--charcoal);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  transform: translateY(-6px) rotate(-45deg);
}


/* ===== HERO ===== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 110%, rgba(184,131,110,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% -10%, rgba(184,131,110,0.08) 0%, transparent 55%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  max-width: 700px;
  width: 100%;
}

.eyebrow {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

h1 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: clamp(4rem, 12vw, 8.5rem);
  line-height: 1.0;
  color: var(--charcoal);
  letter-spacing: -1px;
  margin: 20px 0;
}

h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  font-size: 0.85em;
}

.couple-image {
  margin: 32px 0;
}

.couple-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--cream-dark);
  box-shadow:
    0 0 0 8px var(--cream),
    0 0 0 9px rgba(184,131,110,0.22),
    0 20px 60px rgba(37,30,26,0.15);
  transition: transform 0.5s ease;
}

.couple-image img:hover {
  transform: scale(1.03);
}

.hero-date {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 16px;
}

.hero-date > span {
  font-family: var(--ff-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
}

.date-sep {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  border-left: 1px solid var(--gold);
  padding-left: 18px;
}

.date-month {
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal-soft);
  letter-spacing: 2px;
}

.date-year {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.location-tag {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ===== DIVIDER ===== */

.divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.divider-line.centered {
  margin: 24px auto 48px;
}


/* ===== SECTIONS ===== */

.section {
  padding: 120px 20px;
}

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

.section-inner.narrow {
  max-width: 560px;
}

.section-light {
  background: #ffffff;
}

.section-dark {
  background: #f0e6df;
}

.rsvp-section {
  background: var(--charcoal);
}

.rsvp-section .section-label,
.rsvp-section h2,
.rsvp-section .body-text {
  color: var(--cream);
}

.rsvp-section .divider-line {
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

.section-label {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.1;
}

.body-text {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}


/* ===== TIMELINE ===== */

.timeline {
  list-style: none;
  position: relative;
  max-width: 580px;
  margin: 0 auto 40px;
  text-align: left;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  column-gap: 60px;
  align-items: start;
  margin-bottom: 36px;
  position: relative;
}

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

.timeline-time {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gold);
  text-align: right;
  padding-top: 1px;
  letter-spacing: 1px;
}

.timeline-dot {
  position: absolute;
  left: 114px;
  top: 8px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: #f0e6df;
}

.timeline-text {
  padding-left: 0;
  min-width: 0;
  overflow-wrap: break-word;
}

.timeline-text strong {
  display: block;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--charcoal);
  letter-spacing: 0.5px;
}

.timeline-text span {
  display: block;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.6;
}

.footnote {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-top: 24px;
  font-style: italic;
}


/* ===== INFO GRID ===== */

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 0;
  text-align: center;
}

.info-card {
  padding: 48px 22px;
  border: 1px solid var(--cream-dark);
}

.info-card:first-child {
  border-right: none;
}

.info-card:last-child {
  border-left: none;
}

.info-icon {
  font-size: 0.6rem;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 18px;
}

.info-card h3 {
  font-family: var(--ff-display);
  font-size: 1.65rem;
  font-weight: 400;
  font-style: italic;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.info-card p {
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.text-link {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,154,106,0.3);
  transition: border-color 0.2s;
}

.text-link:hover {
  border-color: var(--gold);
}

.toast-email {
  display: inline-block;
  margin-top: 24px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,131,110,0.35);
  padding-bottom: 3px;
  transition: border-color 0.2s;
}

.toast-email:hover {
  border-color: var(--gold);
}


/* ===== RSVP FORM ===== */

#rsvpForm {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(248,245,240,0.2);
  border-radius: 0;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 1rem;
  color: var(--cream);
  letter-spacing: 0.5px;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(248,245,240,0.45);
  font-weight: 400;
}

select {
  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='%23b8836e' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
  color: rgba(248,245,240,0.85);
}

select option {
  background: var(--charcoal-soft);
  color: var(--cream);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
}

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

/* Checkbox */

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 1rem;
  color: rgba(248,244,240,0.85);
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 1px solid rgba(248,244,240,0.3);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

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

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: 1.5px solid var(--charcoal);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translateY(-1px);
}

#plusOneName {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#plusOneName.visible {
  display: block !important;
}

/* ===== */

.btn-submit {
  margin-top: 8px;
  padding: 18px 48px;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.35s ease, color 0.35s ease;
  width: 100%;
}

.btn-submit:hover {
  background: var(--gold);
  color: var(--charcoal);
}

#status {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--gold-light);
  margin-top: 16px;
  min-height: 24px;
}


/* ===== FOOTER ===== */

.site-footer {
  background: var(--charcoal);
  border-top: 1px solid rgba(248,245,240,0.07);
  text-align: center;
  padding: 48px 20px;
}

.footer-names {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--cream);
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer-date {
  font-family: var(--ff-body);
  font-weight: 200;
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold);
}


/* ===== ANIMATIONS ===== */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ===== MOBILE ===== */

@media (max-width: 768px) {

  /* Nav */
  .nav-inner {
    padding: 18px 20px;
  }

  .menu-toggle {
    display: flex;
  }

  #navLinks {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(250,244,240,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 1px solid var(--cream-dark);
  }

  #navLinks.open {
    display: flex;
  }

  #navLinks li {
    border-bottom: 1px solid var(--cream-dark);
  }

  #navLinks a {
    display: block;
    padding: 16px 24px;
    font-size: 0.75rem;
  }

  /* Hero */
  h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }

  .couple-image img {
    width: 210px;
    height: 210px;
  }

  .hero-date {
    gap: 12px;
  }

  .hero-date > span {
    font-size: 3rem;
  }

  .date-month {
    font-size: 1.1rem;
  }

  /* Sections */
  .section {
    padding: 80px 20px;
  }

  .section-inner {
    padding: 0 4px;
  }

  /* Timeline */
  .timeline {
    max-width: 100%;
    padding: 0 8px;
  }

  .timeline::before {
    left: 64px;
  }

  .timeline-item {
    grid-template-columns: 64px 1fr;
    column-gap: 36px;
    margin-bottom: 28px;
  }

  .timeline-dot {
    left: 58px;
    width: 11px;
    height: 11px;
    top: 6px;
  }

  .timeline-text {
    padding-left: 16px;
  }

  .timeline-time {
    font-size: 1.05rem;
  }

  .timeline-text strong {
    font-size: 0.95rem;
  }

  .timeline-text span {
    font-size: 0.88rem;
  }

  /* Info grid */
  .info-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .info-card {
    border: none;
    border-bottom: 1px solid var(--cream-dark);
    padding: 32px 16px;
  }

  .info-card:last-child {
    border-bottom: none;
  }

  .info-card:first-child,
  .info-card:last-child {
    border-right: none;
    border-left: none;
  }

  /* RSVP */
  .section-inner.narrow {
    max-width: 100%;
  }
}
