/* ==========================================================================
   Site de Casamento — Folha de estilos partilhada
   Estilo: Elegante Clássico
   --------------------------------------------------------------------------
   Podes editar as cores aqui em baixo (secção :root) para mudar o tom
   de todo o site de uma só vez.
   ========================================================================== */

:root {
  /* Paleta Verde Oliveira */
  --creme:        #f3f4ed;   /* fundo principal */
  --creme-escuro: #e6eadf;   /* fundo das secções */
  --dourado:      #8d9b6d;   /* verde oliveira */
  --dourado-esc:  #5f6f4a;   /* verde oliveira escuro */
  --carvao:       #364032;   /* texto principal */
  --cinza-suave:  #6f7868;   /* texto secundário */
  --branco:       #ffffff;
  --linha:        #cfd7c5;   /* linhas subtis */

  /* Tipografia */
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:  "Jost", "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--carvao);
  background-color: var(--creme);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--carvao);
  line-height: 1.2;
  margin: 0 0 .4em;
}

h1 { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1.1em; }

a { color: var(--dourado-esc); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--carvao); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.texto-centro { text-align: center; }

/* Pequeno rótulo decorativo em maiúsculas com espaçamento */
.sobretitulo {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: .78rem;
  color: var(--dourado);
  margin-bottom: 1rem;
  display: inline-block;
}

/* Separador decorativo (losango entre dois traços) */
.separador {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 1.4rem auto;
  color: var(--dourado);
}
.separador::before,
.separador::after {
  content: "";
  height: 1px;
  width: 60px;
  background: var(--dourado);
  opacity: .6;
}
.separador span { font-size: .8rem; }

/* --------------------------------------------------------------------------
   Cabeçalho / Navegação
   -------------------------------------------------------------------------- */
.cabecalho {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--linha);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1160px;
  margin: 0 auto;
}
.nav__marca {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: .05em;
  color: var(--carvao);
  white-space: nowrap;
}
.nav__marca:hover { color: var(--dourado-esc); }

.nav__links {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  color: var(--carvao);
  padding: 6px 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--dourado);
  transition: width .25s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a[aria-current="page"] { color: var(--dourado-esc); }

/* Botão do menu (telemóvel) */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--carvao);
}
.nav__toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--creme);
    border-bottom: 1px solid var(--linha);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .nav__links.aberto { max-height: 420px; }
  .nav__links li { border-top: 1px solid var(--linha); }
  .nav__links a { display: block; padding: 16px 24px; }
}

/* --------------------------------------------------------------------------
   Herói (topo de cada página)
   -------------------------------------------------------------------------- */
.heroi {
  text-align: center;
  padding: clamp(70px, 12vw, 130px) 24px;
  background: var(--creme-escuro);
  border-bottom: 1px solid var(--linha);
}
.heroi--inicio {
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(247,243,236,.55), rgba(247,243,236,.75));
}
.heroi h1 { margin-bottom: .2em; }
.heroi .data-grande {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .3em;
  font-size: 1rem;
  color: var(--cinza-suave);
  margin-top: .5rem;
}

/* Contagem decrescente */
.contagem {
  display: flex;
  gap: 26px;
  justify-content: center;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.contagem__item {
  min-width: 76px;
}
.contagem__num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--dourado-esc);
  line-height: 1;
}
.contagem__rot {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .7rem;
  color: var(--cinza-suave);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Secções
   -------------------------------------------------------------------------- */
.seccao { padding: clamp(56px, 9vw, 96px) 0; }
.seccao--alt { background: var(--creme-escuro); }
.seccao__intro { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.seccao__intro p { color: var(--cinza-suave); }

/* Grelha de cartões */
.cartoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.cartao {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 4px;
  padding: 34px 30px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.cartao:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(58, 54, 49, .08);
}
.cartao__icone {
  font-size: 1.8rem;
  color: var(--dourado);
  margin-bottom: .6rem;
}
.cartao h3 { margin-bottom: .3em; }
.cartao p { color: var(--cinza-suave); margin-bottom: .6em; }

/* Bloco de informação com hora + local (cerimónia/festa) */
.evento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 34px;
  align-items: stretch;
}
.evento__cartao {
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.evento__topo {
  background: var(--creme-escuro);
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid var(--linha);
}
.evento__hora {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--dourado-esc);
}
.evento__corpo { padding: 30px; flex: 1; }
.evento__corpo p { margin-bottom: .5em; }
.evento__morada { color: var(--cinza-suave); }

/* Mapa incorporado */
.mapa {
  width: 100%;
  height: 320px;
  border: 0;
  border-top: 1px solid var(--linha);
  filter: grayscale(.2);
}

/* --------------------------------------------------------------------------
   Galeria (espaços vazios para colocar fotos depois)
   -------------------------------------------------------------------------- */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.galeria__item {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--creme-escuro);
  border: 1px dashed var(--dourado);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.galeria__item.larga { grid-column: span 2; aspect-ratio: 3 / 2; }
.galeria__item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Texto de ajuda visível apenas quando não há imagem */
.galeria__marca {
  color: var(--dourado-esc);
  padding: 16px;
  font-size: .85rem;
  line-height: 1.5;
}
.galeria__marca strong { display: block; font-family: var(--serif); font-size: 1.1rem; margin-bottom: 4px; }
.galeria__item img + .galeria__marca { display: none; }

/* --------------------------------------------------------------------------
   Fotos espalhadas pelo site (espaços vazios para preencher)
   --------------------------------------------------------------------------
   .foto-faixa  → faixa larga (banda) para uma foto de destaque
   .foto-lado   → foto ao lado de texto (secção "a nossa história")
   Todos mostram um marcador tracejado enquanto não tiverem <img>.
   -------------------------------------------------------------------------- */

/* Faixa de foto ao longo de toda a largura */
.foto-faixa {
  position: relative;
  width: 100%;
  height: clamp(260px, 42vw, 460px);
  background: var(--creme-escuro);
  border-top: 1px dashed var(--dourado);
  border-bottom: 1px dashed var(--dourado);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.foto-faixa img { width: 100%; height: 100%; object-fit: cover; }
.foto-faixa img + .foto-marca { display: none; }

/* Marcador de foto reutilizável */
.foto-marca {
  text-align: center;
  color: var(--dourado-esc);
  padding: 20px;
  font-size: .9rem;
  line-height: 1.5;
}
.foto-marca strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 4px;
}

/* Secção com texto + foto lado a lado */
.foto-lado {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.foto-lado--inverso .foto-lado__texto { order: 2; }
.foto-lado__moldura {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--creme-escuro);
  border: 1px dashed var(--dourado);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.foto-lado__moldura img { width: 100%; height: 100%; object-fit: cover; }
.foto-lado__moldura img + .foto-marca { display: none; }
@media (max-width: 760px) {
  .foto-lado { grid-template-columns: 1fr; gap: 30px; }
  .foto-lado--inverso .foto-lado__texto { order: 0; }
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .82rem;
  padding: 15px 38px;
  border: 1px solid var(--dourado);
  color: var(--dourado-esc);
  background: transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all .25s ease;
}
.btn:hover { background: var(--dourado); color: #fff; }
.btn--cheio { background: var(--dourado); color: #fff; }
.btn--cheio:hover { background: var(--dourado-esc); border-color: var(--dourado-esc); color: #fff; }
.btn--grande { padding: 17px 46px; font-size: .9rem; }

/* --------------------------------------------------------------------------
   Formulário (RSVP)
   -------------------------------------------------------------------------- */
.formulario {
  max-width: 620px;
  margin: 0 auto;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 4px;
  padding: clamp(28px, 5vw, 48px);
}
.campo { margin-bottom: 22px; }
.campo label {
  display: block;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--cinza-suave);
  margin-bottom: 8px;
}
.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"],
.campo input[type="number"],
.campo select,
.campo textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--linha);
  border-radius: 3px;
  background: var(--creme);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--carvao);
  transition: border-color .2s ease;
}
.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  outline: none;
  border-color: var(--dourado);
}
.campo textarea { resize: vertical; min-height: 110px; }

/* Opções sim/não em botões */
.opcoes {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.opcoes label {
  flex: 1;
  min-width: 140px;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.opcoes input { position: absolute; opacity: 0; }
.opcoes label span {
  display: block;
  text-align: center;
  padding: 14px;
  border: 1px solid var(--linha);
  border-radius: 3px;
  background: var(--creme);
  font-size: 1rem;
  color: var(--carvao);
  transition: all .2s ease;
}
.opcoes input:checked + span {
  border-color: var(--dourado);
  background: var(--dourado);
  color: #fff;
}

/* Secção condicional (aparece se confirmar presença) */
.condicional { display: none; }
.condicional.visivel { display: block; }

.form-nota {
  font-size: .85rem;
  color: var(--cinza-suave);
  text-align: center;
  margin-top: 18px;
}

/* Mensagem de sucesso */
.sucesso {
  display: none;
  text-align: center;
  padding: 20px;
  border: 1px solid var(--dourado);
  border-radius: 4px;
  background: var(--creme-escuro);
  color: var(--carvao);
  margin-top: 20px;
}
.sucesso.visivel { display: block; }

/* --------------------------------------------------------------------------
   Presentes
   -------------------------------------------------------------------------- */
.iban-caixa {
  max-width: 560px;
  margin: 0 auto;
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 4px;
  padding: 34px;
  text-align: center;
}
.iban {
  font-family: var(--sans);
  font-size: 1.25rem;
  letter-spacing: .08em;
  color: var(--carvao);
  background: var(--creme);
  border: 1px dashed var(--dourado);
  border-radius: 3px;
  padding: 14px;
  margin: 14px 0 6px;
  word-break: break-all;
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.rodape {
  background: var(--carvao);
  color: #d8d2c8;
  text-align: center;
  padding: 56px 24px;
}
.rodape h3 { color: #fff; font-size: 2rem; margin-bottom: .3em; }
.rodape a { color: var(--dourado); }
.rodape__nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 1.6rem 0;
}
.rodape__nav a {
  color: #d8d2c8;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}
.rodape__nav a:hover { color: #fff; }
.rodape__fim {
  font-size: .78rem;
  color: #8f887c;
  margin-top: 1.4rem;
}

/* Animação subtil de entrada */
.revelar {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.revelar.mostrar { opacity: 1; transform: none; }
