/* Juliette Font */
@font-face {
  font-family: 'Juliette';
  src: url('public/fonts/Juliette-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Juliette';
  src: url('public/fonts/Juliette-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Juliette';
  src: url('public/fonts/Juliette-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  width: 100%;
  background: #000;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #000;
}

/* Video Background */
.video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.6) brightness(0.9);
  transition: opacity 2.5s ease-in-out;
}

/* Content */
.content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100vh;
  text-align: center;
  color: #fff;
  padding: 6vh 2rem 6vh;
}

/* Names — pinned to top */
.names {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 1.6vw, 1.3rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: revealUp 1.4s ease-out 0.3s forwards;
}

.names-and {
  font-style: italic;
  text-transform: lowercase;
  letter-spacing: 0.15em;
  font-size: 1.05em;
}

/* Center group */
.center-group {
  display: contents;
}

/* Save the Date — Main Title */
.save-the-date {
  font-family: 'Juliette', cursive;
  font-weight: 400;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 1.15;
  margin-top: 5rem;
  font-style: normal;
  opacity: 0;
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
  animation: revealTitle 1.8s ease-out 0.9s forwards;
}

/* Details */
.details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
}

.date {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
  opacity: 0;
  animation: revealUp 1.4s ease-out 1.8s forwards;
}

.venue {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 500;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
  opacity: 0;
  animation: revealUp 1.4s ease-out 2.1s forwards;
}

/* Hero Countdown — bottom area */
.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 3vw, 2.5rem);
  opacity: 0;
  animation: revealUp 1.4s ease-out 2.5s forwards;
}

.hero-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.hero-cd-num {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-size: clamp(3rem, 4.5vw, 3.8rem);
  letter-spacing: 0.08em;
  line-height: 1;
  color: #fff;
}

.hero-cd-label {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero-cd-dot {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: rgba(255, 255, 255, 0.3);
  padding-bottom: 1em;
}

/* ─── RSVP Section ─── */
.rsvp-section {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8rem 2rem;
  background: #3A2028;
}

.rsvp-title {
  font-family: 'Juliette', cursive;
  font-weight: 400;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: #F2EDE8;
  margin-bottom: 3rem;
  text-align: center;
}

.rsvp-card {
  width: 100%;
  max-width: 560px;
  padding: 3.5rem 3rem;
  background: #fff;
  border: 1px solid rgba(58, 32, 40, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.15);
}

.rsvp-card--compact {
  padding: 2rem 3rem;
}

.rsvp-card--compact .rsvp-success {
  padding: 0;
}

.rsvp-card--compact .rsvp-success-title {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.rsvp-card--compact .rsvp-success-msg {
  margin-bottom: 0;
}

.rsvp-card-intro {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: #3A2028;
  text-align: center;
  margin-bottom: 2.5rem;
  opacity: 0.7;
}

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

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

.form-label {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #3A2028;
}

.form-input {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(58, 32, 40, 0.15);
  border-radius: 6px;
  background: transparent;
  color: #3A2028;
  outline: none;
  transition: border-color 0.3s ease;
  letter-spacing: 0.02em;
}

.form-input::placeholder {
  color: rgba(58, 32, 40, 0.3);
  font-style: italic;
}

.form-input:focus {
  border-color: #7B2D5F;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%233A2028' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.form-required {
  color: #7B2D5F;
  font-style: normal;
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.3rem;
}

.radio-group--vertical {
  flex-direction: column;
  gap: 0.9rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  display: none;
}

.radio-custom {
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(58, 32, 40, 0.25);
  border-radius: 50%;
  position: relative;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
  border-color: #7B2D5F;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7B2D5F;
}

.radio-text {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: #3A2028;
}

.form-submit {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 1.1rem 2rem;
  margin-top: 0.8rem;
  background: #3A2028;
  color: #F2EDE8;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.form-submit:hover {
  background: #580A3C;
}

.form-submit:active {
  transform: scale(0.98);
}

.rsvp-contact {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 0.9rem;
  color: rgba(58, 32, 40, 0.5);
  text-align: center;
  margin-top: 2rem;
  line-height: 1.6;
}

.rsvp-contact-detail {
  color: #7B2D5F;
  font-style: normal;
  font-weight: 500;
}

.rsvp-contact-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(123, 45, 95, 0.4);
  transition: text-decoration-color 0.2s ease;
}

.rsvp-contact-link:hover {
  text-decoration-color: #7B2D5F;
}

/* ─── RSVP Success State ─── */
.rsvp-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.rsvp-success-title {
  font-family: 'Juliette', cursive;
  font-weight: 400;
  font-size: 3rem;
  color: #3A2028;
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

.rsvp-success-msg {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 1.7;
  color: rgba(58, 32, 40, 0.7);
  margin-bottom: 2rem;
}

.cal-hint {
  font-family: 'Ibarra Real Nova', serif;
  font-size: 0.8rem;
  color: rgba(58, 32, 40, 0.4);
  margin-top: 1.5rem;
}

.cal-hint-link {
  color: rgba(58, 32, 40, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(58, 32, 40, 0.25);
  transition: color 0.2s ease;
}

.cal-hint-link:hover {
  color: #3A2028;
}

/* ─── Footer ─── */
.rsvp-footer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 2.5rem 1rem 1.2rem;
  background: #3E3D1E;
  border-top: 1px solid rgba(242, 237, 232, 0.08);
  color: #F2EDE8;
  text-align: center;
}

.footer-script {
  font-family: 'Juliette', cursive;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1;
}

.footer-date {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: rgba(242, 237, 232, 0.4);
}

.footer-rights {
  font-family: 'Ibarra Real Nova', serif;
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(242, 237, 232, 0.25);
}

/* Animations */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 0.9;
    transform: translateY(0);
  }
}

@keyframes revealTitle {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 0.95;
    transform: translateY(0);
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  }
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .content {
    padding: 4vh 1.2rem 3vh;
  }

  .names {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
  }

  .save-the-date {
    font-size: 9vw;
    white-space: nowrap;
    margin-bottom: 0.8rem;
  }

  .date {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
  }

  .venue {
    font-size: 1rem;
    letter-spacing: 0.15em;
    line-height: 1.5;
  }

  .hero-countdown {
    gap: 0.8rem;
  }

  .hero-cd-num {
    font-size: 2.2rem;
  }

  .hero-cd-label {
    font-size: 0.55rem;
  }

  .hero-cd-dot {
    font-size: 1rem;
  }

  .rsvp-section {
    padding: 6rem 1rem;
  }

  .rsvp-card {
    padding: 2.5rem 1.8rem;
  }

  .radio-group {
    flex-direction: column;
    gap: 1rem;
  }

  .form-submit {
    width: 100%;
  }
}
