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

/* ---------------- VARIÁVEIS DE CORES ---------------- */
:root {
  --color-bg: #f4f1ed;         /* fundo principal */
  --color-text: #2e2e2e;       /* texto normal */
  --color-primary: #800020;    /* vermelho antigo */
  --color-accent: #bfa256;     /* dourado antigo */
  --color-box: #f9f6f2;        /* boxes internas */
}

/* ---------------- BODY ---------------- */
body {
  font-family: 'Cormorant Garamond', serif;
  color: var(--color-text);
  scroll-behavior: smooth;
  background: linear-gradient(to bottom, #f9f6f2, #fff8e7);
  background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  background-blend-mode: overlay;
}

html {
  scroll-behavior: smooth;
}

/* ---------------- HEADER & NAV ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);             /* fundo da página */
  border-bottom: 2px solid var(--color-primary); /* delineada a vermelho */
  padding: 10px 20px;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Logo (iniciais) */
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8em;
  font-weight: bold;
  text-decoration: none; /* tira o underline */
  color: var(--color-primary);
  cursor: pointer;
}

/* Navbar links */
.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin: 0 20px;
}

.nav-list li a {
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 700;
  font-family: 'Cormorant Garamond', serif;
  padding: 12px 0;
  font-size: 1.1em;      /* maior que o normal */
  display: block;
  transition: 0.3s;
}

.nav-list li a:hover {
  color: var(--color-accent);
  letter-spacing: 1.5px;
}

/* Hamburger (mobile) */
.menu-toggle {
  display: none;
  font-size: 2em;
  color: var(--color-primary);
  cursor: pointer;
  user-select: none;
}

/* ---------------- HERO ---------------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  padding-top: 60px;
  text-align: center;
  background: var(--color-bg);
}

#festa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(191,162,86,0.4);
  border-radius: 50%;
  animation: float 6s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); opacity: 0.2; }
  50% { transform: translateY(-80px) translateX(20px); opacity: 0.5; }
  100% { transform: translateY(0) translateX(-20px); opacity: 0.2; }
}

.countdown {
  position: relative;
  font-size: 0.95em;
  font-weight: 300;
  color: var(--color-accent); /* dourado */
  background: var(--color-bg);
  padding: 5px 12px;
  border-radius: 6px;
  font-family: 'Roboto Mono', monospace;
  box-shadow: 0 0 10px rgba(191,162,86,0.5);
  animation: glow 2s ease-in-out infinite alternate;
  letter-spacing: 1px;
  z-index: 2;
  margin-top: 30px;
}

.countdown {
  /* efeito dourado "glow" */
  box-shadow: 0 0 15px rgba(191, 162, 86, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  0% { box-shadow: 0 0 10px rgba(191, 162, 86, 0.5); }
  100% { box-shadow: 0 0 20px rgba(191, 162, 86, 0.8); }
}

#catarina-hugo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 60px 20px;
  background: var(--color-bg);
  text-align: center;
}

/* Texto acima da imagem */
.hero-text {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 20px; /* espaço entre o texto e a imagem */
}

.hero-text h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2em;
  color: #800020; /* vermelho antigo */
  font-weight: 600;
  letter-spacing: 2px; /* elegante */
}

.hero-text p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2em;
  color: #a8874f; /* dourado bem subtil */
  font-weight: 500;
  border-top: 1px solid rgba(191,162,86,0.4); /* linha fina acima da data */
  padding-top: 8px;
}


/* Hero Image */
.hero-img {
  width: 80%;
  max-width: 800px;
  height: 530px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin: 0 auto;
  display: block;
}

.hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background: radial-gradient(circle, rgba(191,162,86,0.15) 0%, rgba(0,0,0,0.05) 80%);
  pointer-events: none;
}

/* ---------------- SECTIONS ---------------- */
section {
  position: relative;
  z-index: 1;
  scroll-margin-top: 80px;
  background: var(--color-box);
  padding: 80px 20px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.04);
}

.fade-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}

.fade-section.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax leve para seções específicas */
.section-parallax {
  background-attachment: fixed;  /* efeito parallax */
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  padding: 80px 20px;
  color: var(--color-text);
}

/* ---------------- NOSSO DIA - TIMELINE ---------------- */

/* Seção precisa ser relative para qualquer ajuste futuro */
#nosso-dia {
  position: relative;
}

/* Título "O Nosso Dia" */
#nosso-dia h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2em;
  color: var(--color-primary);
  text-align: center;      
  letter-spacing: 1px;
  margin-bottom: 40px;     
  display: block;          
  position: relative;       /* necessário para ::after */
  padding-bottom: 0;        /* sem padding extra */
}


/* Timeline vertical */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding: 30px 40px;       /* mais espaçamento interno */
  border: 1px solid rgba(191,162,86,0.4); /* borda dourada subtil */
  border-radius: 12px;      /* cantos arredondados elegantes */
  background: #fff;         /* clean */
  box-shadow: 0 6px 15px rgba(0,0,0,0.04); /* subtile shadow */
  overflow: hidden;
  z-index: 1;
}

/* partículas douradas subtis */
.timeline::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(191,162,86,0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 20px;   /* deixa espaço do topo */
  bottom: 20px; /* deixa espaço do fim */
  width: 2px;
  background-color: rgba(191,162,86,0.3); /* dourado subtil */
  border-radius: 1px;
}

.timeline::before {
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.5s ease;
}

/* ativa quando timeline aparece */
.timeline.animate::before {
  transform: scaleY(1);
}


/* Cada evento */
.event {
  position: relative;
  padding-left: 20px;
}

.event::before {
  content: '✦';
  position: absolute;
  left: -8px;      /* centraliza em relação à linha vertical */
  top: 0;
  font-size: 1.2em; /* um pouco maior e elegante */
  color: var(--color-accent);
  text-shadow: 0 0 2px rgba(191,162,86,0.3); /* glow muito subtil */
}

/* Título do evento */
.event-title {
  font-family: 'Cormorant Garamond', serif; /* mesma família do resto do site */
  font-size: 1.3em;  /* um pouco mais compacto */
  font-weight: 600; 
  color: var(--color-primary);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

/* Descrição do evento */
.event-desc {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1em;
  color: var(--color-text);
  line-height: 1.5em;
}

/* -------- Início ornamental -------- */
.event.start {
  text-align: center;
  font-size: 1.1em;
  color: var(--color-accent);
  letter-spacing: 1px;
}

/* remove o marcador ✦ automático */
.event.start::before {
  content: '';
}

/* -------- Fim editorial -------- */
.event.end {
  font-style: italic;
  font-size: 1.05em;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

/* remove o marcador ✦ automático */
.event.end::before {
  content: '';
}

/* ---------------- IGREJA & QUINTA ---------------- */

/* Wrapper branco envolvendo os dois locais */

/* Wrapper das duas localizações */
.igreja-quinta-wrapper {
  display: flex;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Cada box individual */
#igreja-quinta .local-box {
  background: #fff;
  padding: 35px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  flex: 1;
  min-width: 320px;
  transition: 0.3s;
}

#igreja-quinta .local-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Títulos Igreja & Quinta */
#igreja-quinta .local-box h3 {
  font-size: 1.6em;
  color: var(--color-primary);
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

/* Ornamento central */
.ornamento {
  font-size: 2.5em;
  color: var(--color-accent);
  opacity: 0.7;
  align-self: center;
  display: flex;
  justify-content: center;

}

/* Horas estilo relógio */
#igreja-quinta .hora {
  font-family: 'Playfair Display', serif; /* mesma do h3 */
  font-size: 2em;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Morada com mais espaço do mapa */
#igreja-quinta .morada {
  margin-bottom: 30px; /* aumenta a distância até o iframe */
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.6em;
  font-size: 1.15em;
}

/* Google Maps maior e sem delineado */
#igreja-quinta iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 10px;
}


/* ---------------- TÍTULOS ---------------- */
h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5em;
  color: var(--color-primary);
  margin-bottom: 30px;
  letter-spacing: 1px;
}


/* ---------------- MÚSICA ---------------- */
#musica p.frase-musica {
  font-style: italic;
  color: var(--color-accent);
  margin-bottom: 15px;
  font-size: 1.2em;
}

#musicasForm input::placeholder,
#musicasForm textarea::placeholder {
  color: rgba(191,162,86,0.5);
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.5px;
}


#musicasForm button:hover {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ---------------- FORMULÁRIO MUSICAL FANCY ---------------- */

#musicasForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 35px;
  border-radius: 12px;
  border: 1px solid rgba(191,162,86,0.3);
  box-shadow: 0 6px 15px rgba(0,0,0,0.04);
  font-family: 'Cormorant Garamond', serif;
}

#musicasForm label {
  font-size: 1em;
  color: var(--color-primary);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
}

#musicasForm input,
#musicasForm textarea {
  padding: 12px 15px;
  font-size: 1em;
  border-radius: 8px;
  border: 1px solid rgba(191,162,86,0.4);
  outline: none;
  transition: 0.3s;
  font-family: 'Cormorant Garamond', serif;
}

#musicasForm input:focus,
#musicasForm textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 6px rgba(191,162,86,0.3);
}

#musicasForm textarea {
  resize: vertical;
  min-height: 80px;
}

#musicasForm button {
  padding: 8px 18px;
  font-size: 1em;
  font-weight: 500;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

#musicasForm button:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 0 12px rgba(191,162,86,0.5);
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* ---------------- CONTACTOS ---------------- */
.frase-impactante {
  font-family: 'Cormorant Garamond', cursive;
  font-size: 2em;
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: 20px;
}

/* Remove formulário de contactos */
#contactForm {
  display: none;
}

/* ---------------- FOOTER ---------------- */
footer {
  background: linear-gradient(135deg, #f9f6f2, #fdf7e4);
  color: var(--color-primary);
  padding: 20px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
}

/* ---------------- RESPONSIVO ---------------- */
@media (max-width: 600px) {
    /* Ajustes do Hero para mobile */
  .hero-text h1 {
    font-size: 2em;           /* menor para caber na tela */
    letter-spacing: 1px;
  }

  .hero-text p {
    font-size: 1.5em;         /* menor para mobile */
    padding-top: 5px;         /* espaço confortável acima da data */
  }
  
  .countdown {
    font-size: 1.4em;
    margin-top: 25px;         /* afasta do texto da data */
  }

  .hero-img {
    width: 90%;               /* ocupa quase toda a largura */
    height: 400px;            /* altura proporcional ao mobile */
  }

  .menu-toggle {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    background: var(--color-bg);
    border-top: 2px solid var(--color-primary);
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    display: none;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list li {
    margin: 10px 0;
    text-align: center;
  }

  .nav-list li a {
    font-size: 1.2em;
    padding: 12px 0;
  }

  .igreja-quinta-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 30px 20px;
  }

  .local-box iframe {
    height: 200px;
  }
  
  /* Ajustes dos contactos no mobile */
  .contact-wrapper {
    display: flex;
    flex-direction: column;   /* empilha verticalmente no mobile */
    align-items: center;      /* centraliza horizontalmente */
    justify-content: center;
    gap: 20px;                /* espaçamento entre os cartões */
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
  }

  .contact-card {
    width: 90%;              /* ocupa quase toda a tela */
    max-width: 300px;        /* evita ficar gigante */
    padding: 20px 15px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid rgba(191,162,86,0.3);
    background: #ffffff;
    text-align: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
  }

  /* Linha dourada horizontal */
  .linha-dourada {
    width: 60%;
    height: 2px;
    background: var(--color-accent);
    opacity: 0.4;
    border-radius: 1px;
    margin: 0 auto;           /* centraliza horizontalmente */
  }
}

/* ---------- animação base ---------- */

.timeline .event {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* quando visível */
.timeline .event.show {
  opacity: 1;
  transform: translateY(0);
}

.event.start.show,
.event.end.show {
  transform: translateY(0) scale(1.03);
}

/* brilho subtil dos ✦ */

@keyframes starGlow {
  0% { opacity: 0.7; text-shadow: 0 0 2px rgba(191,162,86,0.2); }
  100% { opacity: 1; text-shadow: 0 0 6px rgba(191,162,86,0.6); }
}

.event::before {
  animation: starGlow 2.5s ease-in-out infinite alternate;
}

/* ---------- hover elegante ---------- */

.timeline .event {
  transition: transform 0.3s ease, color 0.3s ease;
}

.timeline .event:hover {
  transform: translateY(-3px) scale(1.01);
  color: var(--color-primary);
}

.timeline .event:hover::before {
  text-shadow: 0 0 8px rgba(191,162,86,0.8);
}

/* ---------- entrada dramática timeline ---------- */

.timeline {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.timeline.animate {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- contactos ---------- */

.contact-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.contact-card {
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  border: 1px solid rgba(191,162,86,0.35);
  min-width: 260px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.04);
  transition: 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.contact-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8em;
  color: var(--color-primary);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.contact-card p {
  font-family: 'Playfair Display', serif; /* fonte elegante */
  font-size: 1.1em;                       /* tamanho confortável */
  font-weight: 500;                        /* não muito pesado */
  color: var(--color-primary);            /* vermelho antigo */
  letter-spacing: 1px;                     /* ligeiro espaçamento */
  margin-bottom: 8px;                      /* espaço para o resto do conteúdo */
}

/* --- FRASE IMPACTANTE --- */
.frase-impactante {
  font-family: 'Cormorant Garamond', serif; /* mesma do título */
  font-size: 1.2em; /* menor */
  color: var(--color-accent);
  font-style: italic;
  margin-bottom: 25px;
  text-shadow: 0 0 5px rgba(191,162,86,0.5); /* leve brilho */
  text-align: center;
}

/* --- WRAPPER DOS CARTÕES --- */
.contact-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
  position: relative;
}

/* --- CARTÃO INDIVIDUAL --- */
.contact-card {
  background: #ffffff;
  padding: 20px 25px;  /* um pouco menores */
  border-radius: 12px;
  border: 1px solid rgba(191,162,86,0.3); /* dourado subtil */
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  font-family: 'Cormorant Garamond', serif; /* mesmo tipo de letra do título */
  opacity: 0; /* animação fade */
  transform: translateY(20px);
  transition: all 1.2s ease;
}

/* --- ANIMAÇÃO FADE LENTO --- */
.contact-card.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- MONOGRAMA C&H SUBTIL --- */
.monograma {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  color: rgba(191,162,86,0.15);
  pointer-events: none;
}

/* --- NOME --- */
.contact-card h3 {
  font-size: 1.2em;
  color: var(--color-primary);
  margin-bottom: 6px;
  letter-spacing: 0.8px;
}

/* --- DETALHES --- */
.contact-card p {
  font-size: 0.95em;
  line-height: 1.4em;
  opacity: 0.85;
  margin-bottom: 6px;
}

/* --- LINHA DOURADA ENTRE OS CARTÕES --- */
.linha-dourada {
  width: 2px;
  background: var(--color-accent);
  opacity: 0.4;
  align-self: stretch;
  border-radius: 1px;
  margin: 0 15px;
}

/* --- TEXTURA PAPEL (opcional leve) --- */
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* --- TELEFONE & EMAIL MAIS BONITOS --- */

/* telefone */
.contact-card p:first-of-type {
  font-family: 'Roboto Mono', monospace;
  font-size: 1em;
  letter-spacing: 1px;
  color: var(--color-primary);
  font-weight: 500;
  white-space: nowrap;  /* esta linha impede quebra */
}
