:root {
  --color-bg: #faf5ee;
  --color-bg-muted: #f2e8db;
  --color-text: #3a3226;
  --color-text-soft: #6f6455;
  --color-accent: #8a9070;
  --color-accent-soft: #b7bd9f;
  --color-gold: #d9a52e;
  --color-border: #e7dac2;
  --color-error: #b3492f;
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Jost", sans-serif;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(95, 111, 82, 0.3);
}

.link-arrow {
  display: inline-block;
  margin-top: 0.75rem;
  text-decoration: none;
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.link-arrow:hover {
  border-color: var(--color-accent);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 246, 241, 0.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: flex;
  align-items: center;
}

.navbar__monogram {
  height: 42px;
  width: auto;
}

.navbar__menu {
  display: flex;
  gap: 2rem;
}

.navbar__menu a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--color-text-soft);
  transition: color 0.2s ease;
}

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

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 1.5rem 3rem;
  background:
    radial-gradient(circle at 50% 0%, var(--color-bg-muted), var(--color-bg) 70%);
}

.hero__monogram {
  width: 130px;
  margin: 0 auto 1.5rem;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
}

.hero__names {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__date {
  font-size: 1.1rem;
  color: var(--color-text-soft);
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero__scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-decoration: none;
  color: var(--color-text-soft);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* Countdown */
.countdown {
  padding: 3rem 1.5rem;
  background: var(--color-accent);
  color: #fff;
}

.countdown__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1rem;
}

.countdown__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
}

.countdown__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.85;
}

/* Sections */
.section {
  padding: clamp(4.5rem, 8vw, 5.5rem) 1.5rem;
}

.section--muted {
  background: var(--color-bg-muted);
}

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

.reveal--center {
  text-align: center;
  max-width: 640px;
}

.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.section-icon {
  width: 34px;
  height: auto;
  margin: 0 auto 1.25rem;
  color: var(--color-accent);
}

.section-icon rect,
.section-icon path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.section__text {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  max-width: 640px;
}

.section--split .section__text {
  max-width: none;
}

.section--split .section__text + .section__text {
  margin-top: 1rem;
}

/* Nossa história */
.historia {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(2rem, 6vw, 4rem);
}

.historia__media {
  margin: 0;
}

.historia__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(58, 50, 38, 0.16);
}

@media (max-width: 860px) {
  .historia {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .historia__media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 2;
  }
}

/* Venues */
.evento__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: 2.5rem;
}

.evento__layout .venue-grid {
  margin-top: 0;
}

.evento__photo {
  margin: 0;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(58, 50, 38, 0.16);
}

.evento__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.evento__photo--left img {
  aspect-ratio: 3 / 4;
}

.evento__photo--right img {
  aspect-ratio: 4 / 5;
}

@media (max-width: 900px) {
  .evento__layout {
    grid-template-columns: 1fr;
  }

  .evento__photo {
    display: none;
  }
}

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

.venue-grid--single {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.venue-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 2.75rem);
}

.venue-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--color-accent);
}

.venue-card__note {
  margin: 0;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--color-text-soft);
}

.venue-card__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.75rem 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.venue-card__detail dt {
  margin: 0 0 0.3rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold);
}

.venue-card__detail dd {
  margin: 0;
  font-size: 1.1rem;
  color: var(--color-text);
}

.venue-card__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Traje — continuação da seção "O evento", separada por um divisor sutil
   em vez de virar uma seção/card à parte */
.evento__dresscode {
  max-width: 460px;
  margin: clamp(3rem, 6vw, 4rem) auto 0;
  padding-top: clamp(2.5rem, 5vw, 3rem);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.evento__dresscode-eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--color-gold);
}

.evento__dresscode-title {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  color: var(--color-text);
}

.evento__dresscode .section__text {
  font-size: 0.95rem;
  margin: 0 auto;
}

.dresscode__figures {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
}

.dresscode__figure {
  width: 180px;
  max-width: 100%;
  margin: 0;
  text-align: center;
}

.dresscode__art {
  width: clamp(100px, 12vw, 130px);
  height: auto;
  margin: 0 auto;
  /* deixa o fundo branco do croqui "sumir" sobre o card bege */
  mix-blend-mode: multiply;
}

.dresscode__label {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-accent);
}

.dresscode__tip {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.dresscode__note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--color-gold);
}

/* RSVP */
.rsvp-form {
  margin: 2.5rem auto 0;
  max-width: 460px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.rsvp-form__guest-names {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rsvp-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-align: left;
}

.rsvp-form label,
.rsvp-form__label {
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--color-text-soft);
}

.rsvp-form input[type="text"],
.rsvp-form input[type="number"] {
  font: inherit;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0.5rem 0.1rem;
  transition: border-color 0.2s ease;
}

.rsvp-form input[type="text"]:focus,
.rsvp-form input[type="number"]:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

.rsvp-form__toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.rsvp-form__option {
  position: relative;
  cursor: pointer;
}

.rsvp-form__option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.rsvp-form__option span {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.rsvp-form__option input:checked + span {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.rsvp-form__option input:focus-visible + span {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.rsvp-form__submit {
  align-self: center;
  border: none;
  cursor: pointer;
}

.rsvp-form__submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.rsvp-form__status {
  margin: 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.rsvp-form__status--success {
  color: var(--color-accent);
}

.rsvp-form__status--error {
  color: var(--color-error);
}

.rsvp-form[data-submitted="true"] .rsvp-form__row,
.rsvp-form[data-submitted="true"] .rsvp-form__submit {
  display: none;
}

.form-embed__fallback {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.form-embed__fallback a {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Footer */
.footer {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--color-text);
  color: var(--color-bg);
}

.footer__names {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer__heart {
  width: 20px;
  height: auto;
  margin: 0.9rem auto 0;
  display: block;
}

.footer__heart path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
}

.footer__signoff {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 720px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1.25rem;
    display: none;
  }

  .navbar__menu.is-open {
    display: flex;
  }

  .navbar__toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar__toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .navbar__toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .countdown__grid {
    gap: 0.5rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .dresscode__figures {
    gap: 2.5rem 2rem;
  }
}
