/* ==========================================================================
   Leo & Tai — 30.01.2027 — Fazenda Bonanza, Aracaju
   Conceito: Chique de Boteco
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Caveat:wght@500;600;700&family=Work+Sans:wght@400;500;600&display=swap');

:root{
  --cream: #FBF1E2;
  --cream-deep: #F1E1C6;
  --paper: #FFFCF6;
  --ink: #2A211A;
  --ink-soft: #55483C;
  --terracotta: #C15A31;
  --terracotta-deep: #9A4423;
  --amber: #D9A441;
  --amber-deep: #B27F26;
  --colonial: #33546E;
  --teal: #2E6B66;

  --serif: 'Fraunces', ui-serif, Georgia, serif;
  --hand: 'Caveat', cursive;
  --sans: 'Work Sans', ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(.32,.72,0,1);
  --ease-soft: cubic-bezier(.16,.8,.24,1);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

a{ color: inherit; }

.wrap{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  padding: 6px 16px 6px 10px;
  border: 1px solid rgba(193,90,49,.3);
  border-radius: 999px;
  background: rgba(217,164,65,.08);
}

.eyebrow .glass{ width: 12px; height: 14px; color: var(--amber-deep); flex: none; }

section{ position: relative; }

/* film grain, fixed, cheap */
.grain{
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Nav / brand mark
   ========================================================================== */
.brandmark{
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  font-family: var(--hand);
  font-size: 22px;
  color: var(--paper);
  background: rgba(42,33,26,.35);
  backdrop-filter: blur(10px);
  padding: 8px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.brandmark.is-dark{
  color: var(--ink);
  background: rgba(255,252,246,.7);
  border-color: rgba(42,33,26,.1);
}

/* ==========================================================================
   HERO — vídeo que expande com o scroll
   ========================================================================== */
.scrollhero{
  position: relative;
  height: 260vh;
  background: var(--ink);
}
.scrollhero-pin{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  color: var(--paper);
}

.scrollhero-cap{
  position: absolute;
  z-index: 4;
  top: 12%;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  text-align: center;
  padding: 0 24px;
  transition: opacity .15s linear;
}
.scrollhero-cap .eyebrow{
  color: var(--cream);
  border-color: rgba(255,252,246,.35);
  background: rgba(255,252,246,.08);
  margin-bottom: 20px;
}
.scrollhero-cap h1{
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--paper);
}
.scrollhero-cap p{
  margin-top: 14px;
  font-family: var(--hand);
  font-size: clamp(16px, 2vw, 20px);
  color: var(--cream);
}

.scrollhero-media{
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
  border-radius: 40px;
  transform: scale(.5);
  transform-origin: center;
  will-change: transform;
}
.scrollhero-media video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
}
.scrollhero-shade{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,.04) 0%, rgba(20,15,10,.1) 45%, rgba(20,15,10,.62) 100%);
}

.scrollhero-overlay{
  position: absolute;
  z-index: 3;
  left: 0; right: 0; bottom: 0;
  padding: 0 clamp(20px, 6vw, 72px) clamp(40px, 8vh, 88px);
  text-align: left;
  opacity: 0;
}
.scrollhero-overlay .eyebrow{
  color: var(--cream);
  border-color: rgba(255,252,246,.35);
  background: rgba(255,252,246,.08);
  margin-bottom: 22px;
}
.scrollhero-overlay h2{
  font-size: clamp(2.6rem, 8vw, 6.2rem);
  line-height: .92;
  letter-spacing: -.01em;
  color: var(--paper);
}
.scrollhero-overlay .amp, .scrollhero-cap .amp{
  font-family: var(--hand);
  color: var(--amber);
  font-size: .62em;
  padding: 0 .1em;
  display: inline-block;
}
.scrollhero-overlay p{
  margin-top: 20px;
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--cream);
}
.scrollhero-overlay p strong{ font-weight: 600; color: var(--amber); }

.scroll-cue{
  position: absolute;
  right: clamp(20px, 6vw, 72px);
  bottom: 28px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp .9s var(--ease-soft) 1.1s forwards;
}
.scroll-cue .line{
  width: 1px; height: 34px;
  background: linear-gradient(var(--amber), transparent);
  animation: scrollLine 2s var(--ease) infinite;
}

@media (max-width: 700px){
  .scrollhero{ height: 220vh; }
  .scrollhero-media{ border-radius: 24px; }
}

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to{ opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes scrollLine{
  0%{ transform: scaleY(0); transform-origin: top; }
  50%{ transform: scaleY(1); transform-origin: top; }
  50.01%{ transform-origin: bottom; }
  100%{ transform: scaleY(0); transform-origin: bottom; }
}

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.countdown{
  position: relative;
  color: var(--cream);
  padding: clamp(64px, 10vw, 120px) 0;
  text-align: center;
  background-image:
    linear-gradient(180deg, rgba(28,17,10,.88), rgba(28,17,10,.92)),
    url('https://images.unsplash.com/photo-1608270586620-248524c67de9?q=80&w=1600&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-color: var(--ink);
}
.countdown .eyebrow{
  color: var(--amber);
  border-color: rgba(217,164,65,.35);
  background: rgba(217,164,65,.08);
}
.countdown h2{
  color: var(--paper);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 22px 0 8px;
  font-style: italic;
  font-weight: 500;
}
.countdown-sub{
  color: rgba(251,241,226,.6);
  font-size: 15px;
  margin-bottom: 48px;
}
.countdown-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(10px, 3vw, 28px);
  max-width: 720px;
  margin: 0 auto;
}
.countdown-cell{
  padding: clamp(18px,3vw,28px) 6px;
  border-radius: 22px;
  background: rgba(251,241,226,.04);
  border: 1px solid rgba(251,241,226,.1);
}
.countdown-num{
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.countdown-label{
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(251,241,226,.55);
}
.countdown-tag{
  margin-top: 40px;
  font-family: var(--hand);
  font-size: 22px;
  color: var(--cream);
}

/* ==========================================================================
   GALLERY PARALLAX
   ========================================================================== */
.gallery{
  padding: clamp(72px, 10vw, 140px) 0 clamp(40px, 8vw, 100px);
  background: var(--cream);
}
.gallery-head{
  text-align: center;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.gallery-head .eyebrow{ margin: 0 auto; }

.gallery-columns{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(10px, 2vw, 22px);
  align-items: start;
}
.gcol{ display: flex; flex-direction: column; gap: clamp(10px, 2vw, 22px); will-change: transform; }
.gcol:nth-child(2){ margin-top: 8%; }
.gcol:nth-child(3){ margin-top: -4%; }
.gcol:nth-child(4){ margin-top: 4%; }

.gph{
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--cream-deep);
  box-shadow: 0 18px 40px -22px rgba(42,33,26,.35);
}
.gph img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.gph:hover img{ transform: scale(1.06); }
.gph.tall{ aspect-ratio: 3/4.4; }
.gph.wide{ aspect-ratio: 4/3; }

@media (max-width: 900px){
  .gallery-columns{ grid-template-columns: repeat(2, 1fr); }
  .gcol:nth-child(3), .gcol:nth-child(4){ margin-top: 0; }
  .gcol:nth-child(2){ margin-top: 14%; }
}

/* ==========================================================================
   A HISTÓRIA
   ========================================================================== */
.story{
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--paper);
}
.story-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.story-media{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.story-media img{ width: 100%; height: 100%; object-fit: cover; }
.story-media .pill{
  position: absolute;
  left: 18px; bottom: 18px;
  background: rgba(255,252,246,.9);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-soft);
}

.story-text .eyebrow{ margin-bottom: 24px; }
.story h2{
  font-size: clamp(2rem, 4.4vw, 3rem);
  margin-bottom: 22px;
  line-height: 1.08;
}
.story p{
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 18px;
  max-width: 46ch;
}
.story .joke{
  font-family: var(--hand);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--terracotta-deep);
  margin: 28px 0 18px;
  line-height: 1.3;
}

.joke-photo{
  width: 220px;
  max-width: 60%;
  margin: 4px 0 26px;
  transform: rotate(-3deg);
}
.joke-photo img{
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 16px 32px -16px rgba(42,33,26,.4);
  background: var(--cream-deep);
}
.joke-photo-cap{
  display: block;
  text-align: center;
  font-family: var(--hand);
  font-size: 15px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.story-strip{
  margin-top: clamp(56px, 8vw, 96px);
}
.story-strip-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.story-strip-head h3{
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-style: italic;
  font-weight: 500;
}
.story-strip-head p{
  margin: 0; color: var(--ink-soft); font-size: 14.5px; max-width: 40ch;
}
.strip-row{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(10px, 2vw, 20px);
}
.strip-row .gph{ aspect-ratio: 4/5; }
.strip-row.two{ grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; align-items: start; }
.strip-row.two .gph{ aspect-ratio: 1/1; }
.strip-row.two .gph.tall{ aspect-ratio: 3/4.4; }
.strip-row .gph.square{ aspect-ratio: 1/1; }

@media (max-width: 860px){
  .story-grid{ grid-template-columns: 1fr; }
  .strip-row{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px){
  .strip-row{ grid-template-columns: 1fr 1fr; }
  .strip-row:not(.two) .gph:last-child{ display: none; }
}

/* ==========================================================================
   DESTINO — full bleed transition (hands)
   ========================================================================== */
.destino{
  height: 82vh;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--paper);
}
.destino-media{ position: absolute; inset: 0; }
.destino-media img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.destino-media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,15,10,.35), rgba(20,15,10,.55));
}
.destino-text{
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px;
}
.destino-text p.kicker{
  font-size: 13px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.destino-text h2{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 3.4rem);
  color: var(--paper);
  max-width: 16ch;
  margin: 0 auto;
  line-height: 1.2;
}

.quotebreak{
  height: 64vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--paper);
}

/* ==========================================================================
   O GRANDE DIA
   ========================================================================== */
.bigday{
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--colonial);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.bigday::before{
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(217,164,65,.18), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(193,90,49,.2), transparent 45%);
  pointer-events: none;
}
.bigday .eyebrow{
  color: var(--amber);
  border-color: rgba(217,164,65,.4);
  background: rgba(217,164,65,.1);
}
.bigday-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.bigday h2{
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  color: var(--paper);
  margin: 22px 0 6px;
  line-height: 1.1;
}
.bigday .place{
  font-family: var(--hand);
  color: var(--amber);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 22px;
  display: block;
}
.bigday-mini{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 380px;
  margin-bottom: 26px;
}
.bigday-mini .gph{
  aspect-ratio: 4/5;
  box-shadow: 0 18px 34px -20px rgba(0,0,0,.6);
}
.bigday p{ color: rgba(251,241,226,.75); max-width: 46ch; margin: 0 0 28px; }

.bigday-facts{
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.bigday-facts li{
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; color: var(--cream);
}
.bigday-facts .glass{ width: 16px; height: 20px; flex: none; margin-top: 2px; color: var(--amber); }

.map-frame{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(251,241,226,.18);
  aspect-ratio: 4/5;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.5);
}
.map-frame iframe{ width: 100%; height: 100%; border: 0; filter: saturate(.9) contrast(1.02); }

@media (max-width: 860px){
  .bigday-grid{ grid-template-columns: 1fr; }
  .map-frame{ aspect-ratio: 4/3; order: -1; }
}

/* ==========================================================================
   FLOAT CTA — fotos flutuantes com paralaxe de mouse
   ========================================================================== */
.floatcta{
  position: relative;
  min-height: 640px;
  height: 78vh;
  max-height: 780px;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floatcta::before{
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(217,164,65,.14), transparent 55%);
  pointer-events: none;
}
.floatcta-copy{
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 24px;
  max-width: 560px;
}
.floatcta-copy .kicker{
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 18px;
}
.floatcta-copy h2{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: var(--paper);
  font-size: clamp(1.8rem, 5vw, 3.1rem);
  line-height: 1.2;
  margin-bottom: 30px;
}
.floatcta-btn{
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  text-decoration: none;
  color: var(--ink);
  background: var(--amber);
  padding: 14px 34px;
  border-radius: 999px;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.floatcta-btn:hover{
  background: var(--cream);
  transform: scale(1.05);
}

.ffloat{
  position: absolute;
  z-index: 2;
  width: var(--fw, 120px);
  aspect-ratio: 1 / 1;
  pointer-events: none;
}
.ffloat-inner{
  width: 100%; height: 100%;
  transition: transform .25s cubic-bezier(.16,.8,.24,1);
  pointer-events: auto;
}
.ffloat-inner img{
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.6);
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.ffloat-inner img:hover{ transform: scale(1.07); }

@media (max-width: 640px){
  .floatcta{ min-height: 520px; }
  .ffloat{ width: calc(var(--fw, 120px) * 0.62); }
  .ffloat[style*="left:4%"], .ffloat[style*="left:81%"]{ display: none; }
}

/* ==========================================================================
   RSVP
   ========================================================================== */
.rsvp{
  padding: clamp(72px, 10vw, 140px) 0;
  background: var(--paper);
  text-align: center;
  overflow: hidden;
}
.rsvp-media{
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .16;
}
.rsvp-media img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.rsvp-media::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--paper) 0%, rgba(255,252,246,.7) 30%, var(--paper) 85%);
}
.rsvp > .wrap{ position: relative; z-index: 1; }
.rsvp .eyebrow{ margin: 0 auto 22px; }
.rsvp h2{
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-style: italic;
}
.rsvp-sub{
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 16px auto 44px;
  font-size: 16px;
}
.rsvp-card{
  max-width: 760px;
  margin: 0 auto;
  border-radius: 24px;
  padding: clamp(6px, 1.4vw, 14px);
  background: linear-gradient(160deg, rgba(217,164,65,.16), rgba(193,90,49,.1));
  border: 1px solid rgba(193,90,49,.18);
}
.rsvp-card-inner{
  background: var(--cream);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.6);
}
.rsvp-card-inner iframe{
  width: 100%;
  height: 1250px;
  border: 0;
  display: block;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer{
  background: var(--ink);
  color: rgba(251,241,226,.55);
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.footer-inner{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.footer-mark{
  font-family: var(--hand);
  font-size: 30px;
  color: var(--cream);
}
.footer-meta{ font-size: 13px; letter-spacing: .06em; }
.footer-fineprint{ font-size: 12px; opacity: .6; margin-top: 18px; }

.cat{
  position: absolute;
  width: 46px;
  height: auto;
  color: rgba(251,241,226,.16);
  transition: color .4s var(--ease);
}
.cat:hover{ color: rgba(217,164,65,.55); }
.cat-left{ left: clamp(6px, 4vw, 60px); bottom: -6px; transform: scaleX(-1); }
.cat-right{ right: clamp(6px, 4vw, 60px); bottom: 10px; }

/* ==========================================================================
   Reveal-on-scroll utility
   ========================================================================== */
[data-reveal]{
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft), filter .9s var(--ease-soft);
}
[data-reveal].is-visible{
  opacity: 1; transform: translateY(0); filter: blur(0);
}
[data-reveal-delay="1"]{ transition-delay: .12s; }
[data-reveal-delay="2"]{ transition-delay: .24s; }
