/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ivory:   #faf7f2;
  --cream:   #f3ede3;
  --blush:   #e8c9b8;
  --rose:    #c9897a;
  --gold:    #b8965a;
  --gold-lt: #d4b07a;
  --dark:    #2c2420;
  --muted:   #7a6e68;
  --white:   #ffffff;
  --shadow:  rgba(44, 36, 32, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  color: var(--dark);
  background: var(--ivory);
  overflow-x: hidden;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('https://images.unsplash.com/photo-1519225421980-715cb0215aed?w=1600&q=80') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(44, 36, 32, 0.45) 0%,
    rgba(44, 36, 32, 0.55) 60%,
    rgba(44, 36, 32, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 2rem;
  max-width: 700px;
  animation: fadeUp 1.2s ease both;
}

.hero-label {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--gold-lt);
  margin-bottom: 1.5rem;
}

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

.ampersand {
  font-style: italic;
  color: var(--gold-lt);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
}

.divider span:not(.diamond) {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold-lt);
  opacity: 0.7;
}

.diamond {
  font-size: 0.5rem;
  color: var(--gold-lt);
}

.hero-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.hero-date strong { font-weight: 600; }

.hero-place {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.5rem;
}

.countdown-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 300;
  line-height: 1;
  color: var(--white);
}

.countdown-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-lt);
  opacity: 0.8;
  margin-top: 0.2rem;
}

.countdown-sep {
  font-size: 1.5rem;
  color: var(--gold-lt);
  opacity: 0.5;
  padding-bottom: 1rem;
}

.btn-scroll {
  display: inline-block;
  border: 1px solid var(--gold-lt);
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 2.4rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}

.btn-scroll:hover {
  background: var(--gold-lt);
  color: var(--dark);
}

/* ── Info ── */
.info {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--dark);
  color: var(--ivory);
  padding: 3.5rem 2rem;
  gap: 0;
}

.info-card {
  text-align: center;
  padding: 1rem 3.5rem;
  flex: 1;
  max-width: 280px;
}

.info-icon {
  font-size: 1.4rem;
  color: var(--gold-lt);
  margin-bottom: 0.75rem;
}

.info-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.info-card p {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.75;
}

.map-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 176, 122, 0.4);
  transition: border-color 0.2s, opacity 0.2s;
}
.map-link:hover { border-color: var(--gold-lt); opacity: 1; }

.info-divider {
  width: 1px;
  background: rgba(255,255,255,0.12);
  margin: 0.5rem 0;
}

/* ── RSVP Section ── */
.rsvp-section {
  background: var(--ivory);
  padding: 6rem 1.5rem;
}

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

.section-label {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  text-align: center;
  color: var(--dark);
  margin-bottom: 0.75rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 3rem;
  letter-spacing: 0.02em;
}

/* ── Form ── */
.rsvp-form {
  background: var(--white);
  border-radius: 2px;
  padding: 3rem 3.5rem;
  box-shadow: 0 4px 40px var(--shadow);
  border-top: 3px solid var(--gold);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.required { color: var(--rose); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  border: 1px solid #e0d8d0;
  background: var(--ivory);
  padding: 0.75rem 1rem;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.92rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.25s;
  border-radius: 1px;
  -webkit-appearance: none;
}

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

textarea { resize: vertical; }

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='%23b8965a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Radio cards */
.radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.radio-card {
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.radio-card input { display: none; }

.radio-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 0.5rem;
  border: 1px solid #e0d8d0;
  background: var(--ivory);
  font-size: 0.82rem;
  color: var(--muted);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
  border-radius: 1px;
  text-align: center;
}

.radio-icon {
  font-size: 1.1rem;
  display: block;
}

.radio-card input:checked + .radio-label {
  border-color: var(--gold);
  background: #fdf8f0;
  color: var(--dark);
}

/* Captcha */
.captcha-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.captcha-question {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  color: var(--dark);
  min-width: 3rem;
}

.captcha-eq {
  color: var(--muted);
  font-size: 0.9rem;
}

.captcha-row input[type="number"] {
  width: 5rem;
  text-align: center;
  -moz-appearance: textfield;
}
.captcha-row input[type="number"]::-webkit-inner-spin-button,
.captcha-row input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }

.captcha-refresh {
  background: none;
  border: 1px solid #e0d8d0;
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 1px;
  transition: border-color 0.2s, color 0.2s;
  line-height: 1;
}
.captcha-refresh:hover { border-color: var(--gold); color: var(--gold); }

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--dark);
  color: var(--ivory);
  border: none;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 0.5rem;
  border-radius: 1px;
}

.btn-submit:hover { background: var(--gold); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Feedback */
.form-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 1px;
}

.form-feedback.success {
  background: #f0faf4;
  color: #3a7a56;
  border: 1px solid #b4dfc6;
}

.form-feedback.error {
  background: #fdf2f2;
  color: #9b3535;
  border: 1px solid #f0c0c0;
}

.hidden { display: none !important; }

/* ── Footer ── */
.footer {
  background: var(--cream);
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid #e8ddd0;
}

.footer-names {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--dark);
  letter-spacing: 0.08em;
}

.footer-heart {
  color: var(--rose);
  font-size: 1rem;
  margin: 0.5rem 0;
}

.footer-date {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Admin link */
.admin-link {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.admin-link:hover { opacity: 0.9; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .radio-group { grid-template-columns: 1fr; }
  .rsvp-form { padding: 2rem 1.5rem; }
  .info { flex-direction: column; align-items: center; }
  .info-divider { width: 60px; height: 1px; margin: 0 auto; }
  .info-card { padding: 1.5rem 1rem; }
}

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