/* ============================================
   Casamento — estilos principais (mobile-first)
   Edita variáveis abaixo para cores e tipos de letra
   ============================================ */
:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-text: #2c2a26;
  --color-muted: #6b6560;
  --color-accent: #8b7355;
  --color-accent-dark: #6d5a44;
  --color-border: #e8e4de;
  --font-sans: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(44, 42, 38, 0.08);
  --max-width: 42rem;
  --header-h: 3.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: var(--color-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-accent);
}

/* ----- Cabeçalho fixo ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: var(--header-h);
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.site-logo:hover {
  color: var(--color-accent-dark);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
  top: 0;
  transform: rotate(-45deg);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-accent);
}

@media (max-width: 47.99rem) {
  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .site-nav.is-open {
    max-height: 20rem;
  }

  .site-nav ul {
    padding: var(--space-sm) var(--space-md) var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }
}

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
  }
}

/* ----- Secções comuns ----- */
.section {
  padding: var(--space-xl) var(--space-md);
}

.section--alt {
  background: var(--color-surface);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 var(--space-md);
}

.section__lead {
  margin: 0 0 var(--space-md);
  color: var(--color-muted);
  font-size: 1.0625rem;
}

/* ----- Hero (foto a ecrã inteiro) -----
   Troca o ficheiro em images/ se mudares o nome — tem de bater certo com o url() abaixo. */
.hero {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background-color: #3d3834;
  background-image: linear-gradient(
      rgba(35, 32, 30, 0.5),
      rgba(35, 32, 30, 0.65)
    ),
    url("../images/foto-casal.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 36rem;
  position: relative;
  z-index: 1;
}

.hero__names {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 8vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.hero__date {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 var(--space-lg);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}

.hero__cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--color-accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
}

.hero__cta:hover {
  background: var(--color-accent-dark);
  color: #fff !important;
}

/* ----- Listas / cartões ----- */
.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-list li {
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.info-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin-bottom: var(--space-xs);
}

.schedule {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-md);
}

.schedule li {
  margin-bottom: var(--space-md);
}

.schedule li:last-child {
  margin-bottom: 0;
}

.schedule time {
  display: block;
  font-weight: 700;
  color: var(--color-accent-dark);
  font-size: 0.9375rem;
}

/* ----- Mapa ----- */
.map-wrap {
  margin-top: var(--space-md);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.address-block {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.address-block p {
  margin: 0;
}

/* ----- Formulário RSVP (Netlify) ----- */
.form-note {
  font-size: 0.875rem;
  color: var(--color-muted);
  margin: 0 0 var(--space-md);
}

/* RSVP: após "Não vens", tudo o que se segue fica visível mas inativo (cinzento) */
#rsvp-after-presenca {
  transition: opacity 0.22s ease, filter 0.22s ease;
}

#rsvp-after-presenca.rsvp-after-presenca--inactive {
  opacity: 0.38;
  filter: grayscale(0.45);
  pointer-events: none;
  user-select: none;
}

.form-field-hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.rsvp-extras-intro {
  margin-bottom: var(--space-md);
}

.form-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.extra-guest__box {
  margin: 0 0 var(--space-md);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.extra-guest__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  padding: 0;
  margin-bottom: var(--space-sm);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.form-field input[type="text"],
.form-field input[type="number"],
.form-field input[type="email"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.form-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 400;
  cursor: pointer;
}

.radio-group input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-accent);
}

.btn-submit {
  margin-top: var(--space-sm);
  padding: 0.85rem 1.75rem;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
}

@media (min-width: 30rem) {
  .btn-submit {
    width: auto;
  }
}

.btn-submit:hover {
  background: var(--color-accent-dark);
}

/* Honeypot Netlify (escondido — não apagues) */
.netlify-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

/* ----- Rodapé ----- */
.site-footer {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.site-footer p {
  margin: 0;
}
