/* style.css */
/* 
  Personalização rápida: ajuste as variáveis abaixo.
  Cores inspiradas em areia, linho, mar e verde água.
*/
:root {
  /* Cores primárias (areia) */
  --sand-100: #f5e8d1;
  --sand-200: #e7d2b7;
  --sand-300: #d2b48c;

  /* Secundárias (off-white/linho) */
  --linen-50: #fffbf0;
  --linen-100: #faf7f2;

  /* Acentos sutis (mar e palmeiras) */
  --blue: #a7c8e6;
  --aqua: #b4d3c7;

  /* Texto */
  --text-900: #2f2a25;
  --text-700: #4a433c;
  --text-500: #6f655c;

  /* Fundo geral */
  --bg: #fffdf8;

  /* Botões e estados */
  --primary: var(--sand-300);
  --primary-contrast: #2b261f;
  --accent: var(--aqua);
  --accent-contrast: #1f2a28;

  /* Sombras e bordas */
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-lg: 24px; /* Bordas generosas */
  --radius-xl: 36px; /* Para cards e imagens */
  --radius-xxl: 48px; /* Efeito mais orgânico */

  /* Tipografia */
  --font-heading: "Playfair Display", "Cormorant Garamond", serif;
  --font-body:
    "Raleway", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell,
    Arial, sans-serif;

  /* Larguras */
  --container: 1100px;
}

/* Reset e base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text-900);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Container */
.container {
  width: min(92%, var(--container));
  margin: 0 auto;
}

/* Header fixo com sombra suave ao rolar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  transition:
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.92);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  text-decoration: none;
  color: var(--text-900);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-line1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
}

.brand-line2 {
  font-size: 0.85rem;
  color: var(--text-500);
}

/* Navegação */
.nav {
  display: flex;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.nav-list a {
  text-decoration: none;
  color: var(--text-900);
  padding: 10px 14px;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.2s ease;
}

.nav-list a:hover {
  background: var(--linen-100);
  transform: translateY(-1px);
}

/* Botão hambúrguer (mobile) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--linen-100);
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 8px;
  height: 8px;
  background: var(--text-900);
  border-radius: 50%;
  display: block;
}

.nav-toggle:hover .bar {
  background: var(--sand-300);
  transform: scale(1.1);
  transition: 0.2s ease;
}

/* Botões */
.btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: color-mix(in oklab, var(--primary), black 8%);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: var(--shadow);
}

.btn-accent:hover {
  background: color-mix(in oklab, var(--accent), black 7%);
}

.btn-outline {
  background: transparent;
  color: var(--text-900);
  border: 2px solid var(--sand-300);
}

.btn-outline:hover {
  background: var(--linen-100);
}

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* joga o conteúdo para o topo */
  align-items: center; /* mantém centralizado horizontalmente */
  /*padding-top: 2rem; /* espaço do topo para respirar */
  border-bottom-left-radius: var(--radius-xxl);
  border-bottom-right-radius: var(--radius-xxl);
  overflow: hidden;
  background: var(--sand-100);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.02);
  transform: scale(1.03); /* leve zoom para compensar */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Gradiente areia -> transparente para legibilidade */
  background: linear-gradient(
    180deg,
    rgba(245, 232, 209, 0.75) 0%,
    rgba(245, 232, 209, 0.45) 22%,
    rgba(245, 232, 209, 0.15) 48%,
    rgba(245, 232, 209, 0) 70%
  );
}

.hero-content {
  position: relative;
  text-align: center;
  padding: 80px 0 80px;
  z-index: 1;
}

.font-alexbrush {
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.05;
  color: var(--sand-900);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  font-variant-ligatures: common-ligatures; /* para melhorar a aparência */
}

.hero-subtitle {
  margin: 0 0 6px;
  color: var(--text-700);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.hero-date {
  margin: 0 0 20px;
  color: var(--text-900);
  font-weight: 600;
}

/* Seções */
.section {
  position: relative;
  padding: 80px 0;
}

.section-sand {
  background: var(--sand-100);
}
.section-linen {
  background: var(--linen-50);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 26px;
}

.section-lead {
  text-align: center;
  color: var(--text-700);
  margin: 0 auto 28px;
  max-width: 58ch;
}

.mySwiper {
  width: 100%;
  padding: 40px 0;
  overflow: visible;
}

.swiper-wrapper {
  display: flex;
}

.swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
}

.swiper-slide img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.swiper-slide-active img {
  transform: scale(1.05);
}

.gift-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.gift-modal-content {
  background: var(--linen-100);
  padding: 30px;
  border-radius: var(--radius-xl);
  width: min(90%, 420px);
  box-shadow: var(--shadow);
  text-align: center;
}

.close {
  float: right;
  font-size: 26px;
  cursor: pointer;
}

.pix-box {
  background: var(--sand-100);
  padding: 16px;
  border-radius: var(--radius-lg);
  margin: 20px 0;
}

.pix-qr {
  width: 160px;
  margin-top: 10px;
}

.gift-form input,
.gift-form textarea {
  width: 100%;
  margin-bottom: 12px;
}

/* Grid utilitário */
.grid.two-col {
  display: grid;
  align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.media img {
  width: 100%;
  height: auto;
  display: block;
}

.couple-photo {
  box-shadow: var(--shadow);
  clip-path: ellipse(50% 30% at 50% 50%);
}

/* Cards de detalhes */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--linen-100);
  border-radius: var(--radius-xl);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}

.icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  background: var(--sand-200);
  border-radius: 18px;
  color: var(--text-900);
}

.icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.card-title {
  margin: 6px 0 6px;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.card-text {
  margin: 0;
  color: var(--text-700);
}

.card-text a {
  color: var(--text-900);
  text-underline-offset: 3px;
}

/* Galeria */

.gallery-item {
  overflow: hidden;
  border-radius: 40px;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
  border-radius: inherit;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.02) contrast(1.02);
}

/* CTA grupo */
.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Formulário RSVP */
.rsvp-form {
  background: var(--linen-100);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
}

.narrow {
  max-width: 720px;
}

.divider {
  margin: 3rem auto;
  width: 80px;
  height: 2px;
  background: var(--sand-300);
  border: none;
  opacity: 0.6;
}

.subsection-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  text-align: center;
  color: var(--sand-900);
}

.wedding-schedule {
  list-style: none;
  padding: 0;
  margin: 0 auto 3rem;
  max-width: 480px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--sand-800);
}

.wedding-schedule li {
  margin-bottom: 1rem;
}

.form-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.form-container {
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
  background-color: #f5e8d1;
}

label {
  font-weight: 600;
  color: var(--text-700);
}

input,
textarea {
  border: 2px solid var(--sand-200);
  border-radius: 18px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: var(--text-900);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--aqua);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--aqua), transparent 80%);
}

/* Rodapé */
.site-footer {
  border-top-left-radius: var(--radius-xxl);
  border-top-right-radius: var(--radius-xxl);
  padding-top: 48px;
  padding-bottom: 48px;
}

.footer-inner {
  text-align: center;
}

.footer-quote {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--text-700);
}

.footer-names {
  margin: 0 0 18px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.social {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.social-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  color: var(--text-900);
  text-decoration: none;
  transition:
    transform 0.15s ease,
    background 0.2s ease;
}

.social-link:hover {
  transform: translateY(-1px);
  background: var(--linen-100);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Separadores ondulados */
.wave-separator {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.wave-separator.bottom {
  bottom: -1px;
}

.wave-separator svg {
  display: block;
  width: 100%;
  height: 70px;
}

.wave-separator path {
  fill: var(--linen-50);
}

/* Alternar cor do separador conforme seção seguinte */
.section-sand + .wave-separator path {
  fill: var(--linen-50);
}
.section-linen + .wave-separator path {
  fill: var(--sand-100);
}

/* Responsividade */
@media (max-width: 980px) {
  .grid.two-col {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: block;
    position: absolute;
    top: 68px;
    right: 4%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }
  .nav-list {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    min-height: 78vh;
  }
}
