/* ==========================================================================
   Paleta: tons de marsala (baseada no convite Canva do casal).
   Tipografia: manuscrito em Italianno, títulos em Cormorant Garamond
   (semibold 600), texto corrido em Montserrat.
   ========================================================================== */
:root {
  --color-cream: #FBF5EA;
  --color-cream-alt: #F3E7D6;
  --color-marsala: #7A2733;
  --color-marsala-light: #9B4450;
  --color-marsala-dark: #2B0D11;
  --color-gold: #C9A34E;
  --color-text: #3A2A28;
  --color-text-soft: #7A6A63;
  --color-border: #E3D2BC;

  --font-script: "Italianno", cursive;
  --font-title: "Cormorant Garamond", serif;
  --font-body: "Montserrat", sans-serif;

  --max-width: 720px;

  --paper-texture: url("../assets/images/fundo-creme-textura.png");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3 {
  margin: 0;
}

p {
  margin: 0;
}

.section {
  width: 100%;
  padding: 72px max(24px, calc((100% - var(--max-width)) / 2));
  text-align: center;
}

.section__title {
  font-family: var(--font-title);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 32px;
  color: var(--color-marsala);
  margin-bottom: 32px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

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

.btn--primary:hover {
  background: var(--color-marsala-dark);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-marsala);
  color: var(--color-marsala);
}

.btn--outline:hover {
  background: var(--color-marsala);
  color: #fff;
}

.btn--maps {
  background: var(--color-marsala-dark);
  border-color: var(--color-marsala-dark);
  color: var(--color-cream);
}

.btn--maps:hover {
  background: var(--color-marsala);
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.75rem;
  background: var(--color-marsala);
  color: #fff;
}

/* ---------- Animação de entrada (envelope) ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-marsala-dark);
  opacity: 1;
  transition: opacity 0.6s ease;
  overflow: hidden;
}

.envelope {
  position: absolute;
  inset: 0;
  transition: transform 0.9s ease-in-out, opacity 0.9s ease-in-out;
}

.envelope__video-wrap {
  width: 100%;
  height: 100%;
}

.envelope__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intro--opening .envelope {
  transform: scale(1.08);
  opacity: 0;
}

.intro--fading {
  opacity: 0;
  pointer-events: none;
}

.intro--hidden {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--color-cream);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 -80px;
  background-image: var(--paper-texture);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero__floral {
  flex: 0 0 auto;
  height: clamp(260px, 42vh, 430px);
  background-image: url("../assets/images/hero-site-casamento-transparent.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
}

.hero__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  margin-top: clamp(-160px, -20vh, -110px);
}

.hero__monogram {
  width: clamp(90px, 14vw, 130px);
  height: auto;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .hero__floral {
    height: clamp(200px, 30vh, 300px);
  }

  .hero__content {
    margin-top: clamp(-190px, -26vh, -150px);
  }
}

.hero__eyebrow {
  max-width: 380px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.hero__names {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.4rem, 12vw, 6rem);
  color: var(--color-marsala);
  line-height: 1.1;
}

.hero__amp {
  color: var(--color-marsala-light);
}

.hero__date {
  display: flex;
  align-items: center;
  gap: 14px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.hero__date span + span {
  position: relative;
  padding-left: 14px;
}

.hero__date span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--color-gold);
}

.hero__date-day {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-marsala);
}

/* ---------- Seções claras/escuras alternadas ---------- */
.section--light {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--color-cream);
}

.section--light::before {
  content: "";
  position: absolute;
  inset: 0 -80px;
  background-image: var(--paper-texture);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.section--dark {
  background: var(--color-marsala-dark);
  color: var(--color-cream);
}

/* ---------- Selo divisor entre seções ---------- */
.seal-divider {
  position: relative;
  height: 0;
  z-index: 2;
}

.seal-divider__img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 2px 8px rgba(43, 13, 17, 0.35));
}

@media (min-width: 1024px) {
  .seal-divider__img {
    width: 96px;
    height: 96px;
  }
}

.section--dark .section__title {
  color: var(--color-gold);
}

.section--dark .countdown__number {
  color: var(--color-gold);
}

.section--dark .countdown__label {
  color: rgba(251, 245, 234, 0.7);
}

.section--dark .dresscode__style {
  color: var(--color-cream);
}

.section--dark .dresscode__note {
  color: rgba(251, 245, 234, 0.75);
}

.section--dark .rsvp__deadline {
  color: rgba(251, 245, 234, 0.8);
}

.section--dark .rsvp__label {
  color: var(--color-cream);
}

.section--dark .timeline__time {
  color: var(--color-cream);
}

.section--dark .timeline__label {
  color: rgba(251, 245, 234, 0.75);
}

.section--dark .about__text {
  color: rgba(251, 245, 234, 0.85);
}

.section--dark .gift__text {
  color: rgba(251, 245, 234, 0.85);
}

.section--dark .gift__key-label {
  color: rgba(251, 245, 234, 0.7);
}

.section--dark .gift__key-name {
  color: rgba(251, 245, 234, 0.8);
}

.section--dark .notice__text {
  color: rgba(251, 245, 234, 0.85);
}

.footer.section--dark {
  color: rgba(251, 245, 234, 0.85);
}

.footer.section--dark .footer__script {
  color: var(--color-gold);
}

/* ---------- Sobre o site ---------- */
.about__greeting {
  font-family: var(--font-script);
  font-size: 3.6rem;
  color: var(--color-marsala);
  margin-bottom: 20px;
}

.about__text {
  max-width: 560px;
  margin: 0 auto;
  color: var(--color-text-soft);
}

.about__text + .about__text {
  margin-top: 16px;
}

.about__signature {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--color-marsala);
  margin-top: 28px;
}

.section--dark .about__greeting,
.section--dark .about__signature {
  color: var(--color-gold);
}

/* ---------- Contagem regressiva ---------- */
.countdown__grid {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 3vw, 20px);
  flex-wrap: nowrap;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  flex: 1 1 0;
}

.countdown__number {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  color: var(--color-marsala);
  white-space: nowrap;
}

.countdown__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .countdown__label {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }
}

/* ---------- Locais ---------- */
.locations__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}

.location-card {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 24px 32px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  height: 100%;
}

.location-card__icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 8px;
}

.location-card__title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2.8rem;
  color: var(--color-marsala);
}

.location-card__time {
  color: var(--color-text-soft);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.location-card__divider {
  width: 50%;
  height: 1px;
  background: var(--color-border);
  position: relative;
  margin: 10px 0 4px;
}

.location-card__divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 6px;
  background: var(--color-gold);
}

.location-card__venue {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-marsala);
}

.location-card__address {
  color: var(--color-text-soft);
  margin-bottom: 12px;
}

.location-card .btn--maps {
  margin-top: auto;
}

/* ---------- Dress code ---------- */
.dresscode__style {
  font-family: var(--font-script);
  font-size: 2.4rem;
  color: var(--color-marsala);
  margin-bottom: 20px;
}

.dresscode__icons {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.dresscode__icon {
  width: clamp(160px, 40vw, 220px);
  height: auto;
}

.dresscode__note {
  color: var(--color-text-soft);
}

/* ---------- Presente / PIX ---------- */
.gift__text {
  max-width: 560px;
  margin: 0 auto 12px;
  color: var(--color-text-soft);
}

.gift__text:last-of-type {
  margin-bottom: 32px;
}

.gift__pix {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: center;
}

.gift__key {
  text-align: center;
}

.gift__key-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--color-text-soft);
  margin-bottom: 8px;
}

.gift__key-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
}

.gift__key-row code {
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.gift__key-name {
  margin-top: 8px;
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

/* ---------- O Grande Dia / Cronograma ---------- */
.timeline__track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px;
}

.timeline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 130px;
}

.timeline__icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--color-cream);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.timeline__icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.timeline__time {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--color-marsala);
}

.timeline__label {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: var(--color-text-soft);
}

/* ---------- Aviso / Recomendação ---------- */
.notice__text {
  font-style: italic;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto;
}

.notice__divider {
  width: 80px;
  height: 1px;
  background: var(--color-border);
  position: relative;
  margin: 28px auto;
}

.notice__divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 6px;
  background: var(--color-gold);
}

.notice__contact {
  margin-bottom: 20px;
}

/* ---------- RSVP ---------- */
.rsvp__deadline {
  margin-bottom: 32px;
  color: var(--color-text-soft);
}

.rsvp__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.rsvp__label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  padding: 0;
  border: none;
}

.rsvp__input {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 1rem;
}

.rsvp__fieldset {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}

.rsvp__radio {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.rsvp__submit {
  width: 100%;
}

.rsvp__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.rsvp__feedback {
  text-align: center;
  min-height: 1.2em;
  font-weight: 600;
}

.rsvp__feedback.is-success {
  color: var(--color-gold);
}

.rsvp__feedback.is-error {
  color: #b0473c;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-soft);
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.footer__script {
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: var(--color-marsala);
}

/* ---------- Desktop: seções e tipografia maiores ---------- */
@media (min-width: 1024px) {
  html {
    font-size: 18px;
  }

  :root {
    --max-width: 880px;
  }

  .section {
    padding-top: 110px;
    padding-bottom: 110px;
  }

  .hero__monogram {
    width: clamp(110px, 9vw, 150px);
  }

  .hero__floral {
    height: clamp(300px, 46vh, 480px);
  }

  .location-card {
    padding: 52px 32px 40px;
  }

  .location-card__icon {
    width: 76px;
    height: 76px;
  }

  .timeline__icon-badge {
    width: 108px;
    height: 108px;
  }

  .timeline__icon {
    width: 68px;
    height: 68px;
  }

  .timeline__item {
    width: 160px;
  }

  .rsvp__form {
    max-width: 480px;
  }
}
