:root {
  --forest-mid: #1e2d1f;
  --gold: #c9a84c;
  --cream: #f7f5f0;
}

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

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

body {
  background: #f7f5f0;
  color: #1e2d1f;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
}

/* ── HERO ── */
.hero {
  background: #1e2d1f;
  box-shadow: 0 8px 48px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
  text-align: center;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}


.hero-inner { position: relative; z-index: 1; }

.ornament {
  color: #c9a84c;
  font-size: 14px;
  letter-spacing: 10px;
  margin-bottom: 1.5rem;
  opacity: 0.8;
  animation: fadeUp .9s cubic-bezier(.22,1,.36,1) .10s both;
}

.names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  color: #f7f5f0;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  animation: fadeUp 1s cubic-bezier(.22,1,.36,1) .25s both;
}

.names em {
  font-style: italic;
  color: #c9a84c;
}

.date-line {
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(247,245,240,0.65);
  margin: 1rem 0;
  animation: fadeUp 1s cubic-bezier(.22,1,.36,1) .40s both;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 2.4rem 0 1.4rem;
  animation: fadeUp 1s cubic-bezier(.22,1,.36,1) .52s both;
}
.divider::before, .divider::after {
  content: '';
  width: 50px;
  height: 0.5px;
  background: #c9a84c;
  opacity: 0.5;
}
.divider span {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(247,245,240,0.45);
}

/* ── COUNTDOWN ── */
.countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  animation: fadeUp 1s cubic-bezier(.22,1,.36,1) .64s both;
}

.ci { text-align: center; }

.cn {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  color: #f7f5f0;
  line-height: 1;
  display: block;
}

.cl {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #9aac9b;
  margin-top: 5px;
  display: block;
}


/* ── SECTIONS ── */
.section {
  padding: 7rem 2rem;
  width: 100%;
  text-align: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  scroll-margin-top: 20px;
}

#info {
  background: #f7f5f0;
}

#lahjalista {
  background: #fff;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.07), 0 6px 20px rgba(0,0,0,0.07);
  position: relative;
  z-index: 1;
}

#rsvp {
  background: #f7f5f0;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.section-title {
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #1e2d1f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 2.5rem;
}

.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: #c9a84c;
  opacity: 0.5;
}

.section-title span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title span::before,
.section-title span::after {
  content: '✦';
  color: #c9a84c;
  font-size: 9px;
  opacity: 0.75;
}

.welcome-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: #1e2d1f;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding: 0 1rem;
}

.welcome-quote::before, .welcome-quote::after {
  content: '';
  display: block;
  width: 30px;
  height: 0.5px;
  background: #c9a84c;
  opacity: 0.5;
  margin: 0.75rem auto;
}

.welcome-sub {
  font-size: 14px;
  line-height: 2;
  color: #6a7e6b;
  margin-top: 0.75rem;
}

/* ── INFO GRID ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 1.5rem;
}

.info-card {
  background: #fff;
  border: none;
  border-radius: 3px;
  padding: 1.6rem 1.4rem;
  text-align: left;
  box-shadow: 0 3px 12px #1e2d1f12;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.22,1,.36,1), transform .6s cubic-bezier(.22,1,.36,1), box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #1e2d1f, #c9a84c);
  opacity: 0;
  transition: opacity .25s;
}
.info-card:hover::before { opacity: 1; }
.section.visible .info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #1e2d1f20;
}
.section.visible .info-card { opacity: 1; transform: translateY(0); }
.section.visible .info-card:nth-child(1) { transition-delay: .05s; }
.section.visible .info-card:nth-child(2) { transition-delay: .12s; }
.section.visible .info-card:nth-child(3) { transition-delay: .19s; }
.section.visible .info-card:nth-child(4) { transition-delay: .26s; }

.info-card-label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 8px;
  font-weight: 500;
}

.info-card-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: #1e2d1f;
}

.info-card-address {
  font-size: 14px;
  color: #1e2d1f;
  margin-top: 4px;
}

/* ── BUTTON ── */
.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 14px 40px;
  border: 0.5px solid #c9a84c;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: #c9a84c;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.25s, box-shadow 0.25s;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn span {
  position: relative;
  z-index: 1;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #b8963e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.22,1,.36,1);
  z-index: 0;
}
.btn:hover::after { transform: scaleX(1); }
.btn:hover {
  border-color: #b8963e;
  box-shadow: 0 6px 16px #c9a84c40;
}
.btn:active { opacity: 0.9; }

/* ── RSVP FORM ── */
.rsvp-card {
  background: #fff;
  border-radius: 3px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.08);
  margin-top: 1.5rem;
}

.rsvp-form {
  margin-top: 1.8rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-label {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1e2d1f;
}

.form-input,
.form-select,
.form-textarea {
  background: #fff;
  border: 0.5px solid #1e2d1f28;
  border-radius: 3px;
  padding: 10px 14px;
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 15px;
  color: #1e2d1f;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #c9a84c88;
  box-shadow: 0 0 0 3px #c9a84c12;
}

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

.form-select {
  appearance: none;
  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='%23c9a84c' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.rsvp-attending {
  display: flex;
  gap: 10px;
}

.attending-option {
  flex: 1;
  position: relative;
}

.attending-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
}

.attending-option label {
  display: block;
  padding: 10px;
  text-align: center;
  border: 0.5px solid #1e2d1f28;
  border-radius: 3px;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #4a6b4c;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.attending-option input[type="radio"]:checked + label {
  background: #1e2d1f;
  color: #f0ebe0;
  border-color: #1e2d1f;
}

.attending-option label:hover {
  border-color: #c9a84c66;
  color: #c9a84c;
}

.rsvp-submit {
  margin-top: 0.5rem;
  width: 100%;
}

.rsvp-success {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
}

.rsvp-success .success-icon {
  width: 56px;
  height: 56px;
  border: 1.5px solid #c9a84c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 26px;
  color: #c9a84c;
}

.rsvp-success p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-style: italic;
  color: #1e2d1f;
  line-height: 1.7;
}

.guests-field { display: none; }
.guests-field.visible { display: flex; }

.rsvp-privacy {
  margin-top: 1.2rem;
  font-size: 13px;
  line-height: 1.8;
  color: #9aac9b;
  text-align: center;
}

/* ── SCRIPT TITLE ── */
.section-title-script {
  font-family: 'Great Vibes', cursive;
  font-size: 4.5rem;
  color: #1e2d1f;
  text-align: center;
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

/* ── PHOTO CARD ── */
.photo-card {
  width: 100%;
  max-width: 480px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(45,74,49,0.13);
  border: 0.5px solid #d6cfc0;
}
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
}
.photo-card-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: #e8e2d6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #9aac9b;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
}
.photo-card-placeholder span {
  font-size: 28px;
  opacity: 0.4;
}

/* ── FOOTER ── */
footer {
  display: flex;
  min-height: 10vh;
  background: #fff;
  font-family: 'Jost', sans-serif;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.12);
  position: relative;
  z-index: 1;
}
.footer-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 3.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}
.footer-photo-wrap {
  flex: 1;
  overflow: hidden;
}
.footer-photo-wrap .photo-card {
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.footer-photo-wrap .photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.footer-photo-wrap .photo-card-placeholder {
  height: 100%;
  min-height: 360px;
  background: #223926;
  border: none;
  border-left: 0.5px solid #c9a84c20;
  color: #c9a84c;
  opacity: 0.4;
  aspect-ratio: unset;
}
.footer-ornament {
  font-size: 12px;
  letter-spacing: 8px;
  color: #c9a84c;
  opacity: 0.7;
  margin-bottom: 1.2rem;
}
.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: #1e2d1f;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 0.4rem;
  margin-top: 0.8rem;
  opacity: 0.5;
}
.footer-date {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c9a84c;
  opacity: 0.75;
  margin-bottom: 2rem;
}
.footer-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.7rem;
  color: #1e2d1f;
  line-height: 1.8;
  margin-bottom: 0;
}
.footer-welcome {
  font-size: 12px;
  letter-spacing: 1.5px;
  color: #92b894;
  line-height: 1.8;
}

/* ── SCROLL HINT ── */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}
.scroll-hint span {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #1e2d1f;
  opacity: .7;
}
.scroll-arrow {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, #c9a84c 0%, transparent 100%);
  opacity: .35;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .hero {
    min-height: 100svh;
    padding: 2.5rem 1.5rem;
  }

  .names {
    font-size: 40px;
  }

  .date-line {
    font-size: 11px;
    letter-spacing: 3px;
  }

  .countdown {
    gap: 0.9rem;
  }

  .cn {
    font-size: 32px;
  }

  .cl {
    font-size: 9px;
    letter-spacing: 1.5px;
  }

  .section {
    padding: 5rem 1.2rem;
  }

  .section-title {
    font-size: 13px;
    letter-spacing: 4px;
  }

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

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

}
