:root {
  --olive: #6b705c;
  --olive-dark: #4d5142;
  --terracotta: #c56f52;
  --terracotta-dark: #9f5139;
  --cream: #f7f1e8;
  --sand: #e7d7c7;
  --white: #ffffff;
  --ink: #2d3028;
  --muted: #6b6d65;
  --line: rgba(45, 48, 40, 0.15);
  --shadow: 0 18px 45px rgba(45, 48, 40, 0.12);
  --radius: 24px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: sans-serif;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
.venue-name,
.footer-monogram,
.brand {
  font-family: "Bickham Script Pro";
}

h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(3.4rem, 10vw, 8.8rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-family: "Edu VIC WA NT Hand", serif;
  color: var(--terracotta);
}

h1 span {
  color: var(--terracotta);
  font-family:  o;
  font-style: italic;
  font-size: clamp(3.4rem, 10vw, 3.8rem);
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2.15rem, 5vw, 3.8rem);
  font-weight: 400;
  font-family: sans-serif;
  line-height: 1.1;
  letter-spacing: -0.05em;
  color: var(--olive-dark)
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
  line-height: 1.3;
  color: var(--terracotta)
}

p {
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.narrow {
  max-width: 780px;
}

.centered {
  text-align: center;
}

.section {
  padding: 96px 0;
}

.section-soft {
  background: var(--cream);
}

.section-kicker,
.eyebrow {
  margin-bottom: 12px;
  color: var(--olive-dark);
  font-size: 1.30rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.small-text {
  color: var(--muted);
  font-size: 0.92rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--terracotta);
  background:
    linear-gradient(135deg, rgba(77, 81, 66, 0.70), rgba(45, 48, 40, 0.50)),
    url("../assets/images/capa.jpg") center/cover no-repeat;
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -120px;
  width: 420px;
  height: 420px;
  background: var(--ink);
  border-radius: 50%;
  content: "";
  filter: blur(2px);
  opacity: 0.13;
}

.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  color: var(--white);
  font-size: 1.6rem;
  text-decoration: none;
}

.nav-links {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  color: var(--white);
  font-size: 0.9rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--sand);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: calc(92vh - 92px);
  padding-top: 70px;
  padding-bottom: 100px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.hero-text {
  max-width: 650px;
  margin-bottom: 14px;
  color: var(--white);
  font-family: Verdana, Tahoma, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.6rem);
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 0 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1.10rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--terracotta);
  background: var(--white);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--white);
  background: var(--terracotta-dark);
}

.button-secondary {
  color: var(--olive-dark);
  background: transparent;
  border-color: var(--olive);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--white);
  background: var(--olive);
}

.countdown-section {
  background: var(--white);
}

.countdown {
  display: grid;
  max-width: 780px;
  margin: 46px auto 0;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.countdown-card {
  padding: 26px 12px;
  background: var(--cream);
  border-radius: 20px;
}

.countdown-card strong {
  display: block;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 3.7rem);
  font-weight: 400;
  line-height: 1;
}

.countdown-card span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.split-layout {
  display: grid;
  align-items: center;
  gap: 72px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.reverse > :first-child {
  order: 2;
}

.image-card,
.map-placeholder {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(107, 112, 92, 0.85), rgba(197, 111, 82, 0.78));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-card img,
.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-card {
  aspect-ratio: 4 / 5;
}

.map-placeholder {
  display: grid;
  min-height: 470px;
  place-items: center;
}

.map-placeholder img {
  position: absolute;
  inset: 0;
}

.placeholder-text,
.map-placeholder span {
  position: absolute;
  z-index: 1;
  padding: 24px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.image-card:not(.image-placeholder) .placeholder-text {
  display: none;
}

.cards-grid {
  display: grid;
  margin-top: 48px;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.simple-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-card {
  background: var(--white);
  box-shadow: 0 12px 35px rgba(45, 48, 40, 0.07);
}

.card-number {
  display: inline-block;
  margin-bottom: 52px;
  color: var(--terracotta);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.card-time {
  color: var(--olive-dark);
  font-weight: 700;
}

.simple-card {
  background: rgba(255, 255, 255, 0.62);
}

.venue-name {
  margin-bottom: 18px;
  color: var(--terracotta);
  font-size: 1.8rem;
  font-weight: 400;
}

.rsvp-section {
  color: var(--olive);
  background:
    linear-gradient(rgba(77, 81, 66, 0.50), rgba(77, 81, 66, 0.35)),
    url("../assets/images/fundo-rsvp.jpg") center/cover no-repeat;
}

.rsvp-section .section-kicker {
  color: var(--olive-dark);
}

.form-wrapper {
  margin-top: 40px;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
}

.faq-list {
  display: grid;
  margin-top: 42px;
  gap: 14px;
}

details {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 14px 0 0;
  color: var(--muted);
}

.footer {
  padding: 62px 0;
  color: var(--white);
  background: var(--ink);
}

.footer-monogram {
  margin-bottom: 8px;
  color: var(--sand);
  font-size: 2.2rem;
}

.footer p {
  margin-bottom: 6px;
}

@media (max-width: 860px) {
  .section {
    padding: 76px 0;
  }

  .menu-button {
    position: relative;
    z-index: 20;
    display: block;
  }

  .nav-links {
    position: absolute;
    z-index: 15;
    top: 76px;
    right: 0;
    display: none;
    width: min(320px, calc(100vw - 40px));
    padding: 22px;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    background: rgba(45, 48, 40, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 10px 4px;
  }

  .split-layout,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .split-layout {
    gap: 42px;
  }

  .reverse > :first-child {
    order: initial;
  }

  .image-card,
  .map-placeholder {
    min-height: 420px;
  }

  .cards-grid {
    margin-top: 36px;
  }

  .card-number {
    margin-bottom: 24px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    min-height: calc(88vh - 92px);
    padding-bottom: 70px;
  }

  .countdown {
    gap: 8px;
  }

  .countdown-card {
    padding: 20px 5px;
    border-radius: 14px;
  }

  .countdown-card span {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .info-card,
  .simple-card {
    padding: 26px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
