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

:root {
  --white:      #ffffff;
  --off-white:  #faf9f7;
  --light-gray: #ede9e4;
  --olive:      #5a7a5f;
  --olive-dark: #3d5142;
  --gold:       #c9a961;
  --text:       #3a3a38;
  --text-light: #6a6a68;
  --shadow:     rgba(58,58,56,0.06);
  --shadow-md:  rgba(58,58,56,0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lora', serif;
  font-weight: 400;
  color: var(--text);
  background-color: var(--off-white);
  overflow-x: hidden;
  line-height: 1.7;
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  color: var(--text);
  font-weight: 600;
  line-height: 1.2;
}

p, label, input, button, a {
  font-family: 'Lora', serif;
}

/* ============================================================
   NAVEGAÇÃO
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(90, 122, 95, 0.15);
  padding: 1.2rem 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--olive);
  letter-spacing: 0.15em;
}

.logo-text {
  display: inline-block;
  border: 1px solid var(--olive);
  padding: 0.4rem 0.8rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.2rem;
}

.nav-link:hover {
  color: var(--olive);
  border-bottom-color: var(--olive);
}

.nav-cta {
  border: 1px solid var(--olive);
  color: var(--olive);
  padding: 0.6rem 1.4rem;
  border-radius: 0;
}

.nav-cta:hover {
  background: var(--olive);
  color: var(--white);
  border-bottom: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-top: 60px;
}

.hero-carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.55) 0%,
    rgba(250,249,247,0.45) 50%,
    rgba(90,122,95,0.20) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 900px;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--olive);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-title {
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 1.1;
  color: var(--text);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-family: 'Lora', serif;
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-light);
  margin-top: 1.5rem;
  font-style: italic;
  font-weight: 400;
}

/* ========== Indicadores de Carrossel ========== */
.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 1.2rem;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--olive);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s ease;
}

.indicator.active {
  background: var(--olive);
  transform: scale(1.5);
}

/* ============================================================
   BOTÃO DE MÚSICA
   ============================================================ */
#music-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--olive);
  background: rgba(255,255,255,0.9);
  color: var(--olive);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

#music-btn:hover {
  background: var(--olive);
  color: var(--white);
  box-shadow: 0 8px 24px var(--shadow-md);
}

#music-btn.playing {
  background: var(--olive);
  color: var(--white);
}

/* ============================================================
   SEÇÕES GERAIS
   ============================================================ */
.section {
  padding: 8rem 2rem;
  background-color: var(--white);
}

.section:nth-child(even) {
  background-color: var(--off-white);
}

.section-content {
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--text);
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.divider {
  width: 40px;
  height: 1px;
  background: var(--olive);
  margin: 1.5rem auto 3rem;
}

/* ============================================================
   NOSSA HISTÓRIA
   ============================================================ */
.story-section {
  text-align: center;
}

.story-text {
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text-light);
  margin: 2rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.story-signature {
  margin-top: 3rem;
}

.story-signature p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--olive);
  font-weight: 600;
}

/* ============================================================
   CONTAGEM REGRESSIVA
   ============================================================ */
.countdown-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
  text-align: center;
}

.countdown-container {
  max-width: 1000px;
  margin: 0 auto;
}

.countdown-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 2rem;
  font-weight: 600;
}

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

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.countdown-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 8vw, 4rem);
  color: var(--olive);
  font-weight: 600;
  line-height: 1;
}

.countdown-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

.countdown-separator {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  color: var(--olive);
  margin: 0 0.5rem;
}

/* ============================================================
   GALERIA DE FOTOS
   ============================================================ */
.gallery-section {
  padding: 8rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.4s ease;
}

.gallery-item:hover {
  box-shadow: 0 12px 32px var(--shadow-md);
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================================
   DETALHES DO EVENTO
   ============================================================ */
.details-section {
  padding: 8rem 2rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.detail-item {
  text-align: center;
}

.detail-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.detail-value {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.detail-link {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  text-decoration: none;
  border-bottom: 1px solid var(--olive);
  padding-bottom: 0.3rem;
  transition: all 0.3s ease;
}

.detail-link:hover {
  color: var(--olive-dark);
  border-bottom-color: var(--olive-dark);
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp-section {
  padding: 8rem 2rem;
}

.rsvp-form {
  max-width: 500px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 500;
}

.form-group input {
  padding: 1rem 1.2rem;
  border: 1px solid rgba(90,122,95,0.3);
  border-radius: 0;
  background: var(--off-white);
  font-family: 'Lora', serif;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: var(--olive);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(90,122,95,0.08);
}

.btn-submit {
  padding: 1rem 2.5rem;
  background: var(--olive);
  border: 1px solid var(--olive);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0;
  font-weight: 500;
  margin-top: 1rem;
}

.btn-submit:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  box-shadow: 0 8px 24px var(--shadow-md);
}

/* Mensagem de sucesso */
.rsvp-success {
  margin-top: 3rem;
  text-align: center;
  animation: popIn 0.5s ease forwards;
}

.rsvp-success i {
  font-size: 2.5rem;
  color: var(--olive);
  display: block;
  margin-bottom: 1rem;
}

.rsvp-success p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.rsvp-success span {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
}

.hidden {
  display: none;
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1); }
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
  background: var(--olive-dark);
  color: var(--off-white);
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 768px) {
  .nav-menu {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.7rem;
  }

  .section {
    padding: 5rem 1.5rem;
  }

  .countdown-section {
    padding: 4rem 1.5rem;
  }

  .details-grid {
    gap: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .rsvp-form {
    gap: 1.5rem;
  }

  #music-btn {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
    bottom: 1.5rem;
    right: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    gap: 1rem;
    font-size: 0.65rem;
  }

  .hero {
    margin-top: 50px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .countdown-number {
    font-size: 2rem;
  }

  .countdown-separator {
    font-size: 1.5rem;
  }

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

  .section {
    padding: 3rem 1rem;
  }

  .details-grid {
    gap: 1.5rem;
  }
}
