/* ==========================================================
   Site de Casamento — Premium Light (sem build)
   Paleta: Cream + Taupe + Olive
   ========================================================== */

:root{
  --bg: #FAF7F0;
  --paper: #FFFFFF;
  --soft: #F1ECE2;
  --ink: #1F2937;
  --muted: #6B7280;

  --taupe: #B7A99A;
  --olive: #6F7B5B;

  --line: rgba(31,41,55,.12);
  --shadow: 0 18px 55px rgba(31,41,55,.12);
  --shadow2: 0 10px 26px rgba(31,41,55,.10);

  --r: 18px;
  --r2: 14px;
  --container: 1160px;
  --nav-h: 70px;

  --ring: 0 0 0 4px rgba(111,123,91,.18);
  --ring2: 0 0 0 4px rgba(183,169,154,.22);

  --hero-overlay: linear-gradient(180deg, rgba(250,247,240,.45), rgba(250,247,240,.95) 72%, rgba(250,247,240,1));
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  color:var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 760px at 18% 8%, rgba(111,123,91,.10), transparent 60%),
    radial-gradient(900px 650px at 85% 10%, rgba(183,169,154,.22), transparent 62%),
    linear-gradient(180deg, rgba(31,41,55,.03), transparent 35%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{ max-width:var(--container); margin:0 auto; padding:0 18px; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.85);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  user-select:none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{ filter: brightness(1.02); background: rgba(255,255,255,.92); }
.btn:active{ transform: translateY(1px); }
.btn:focus{ outline:none; }
.btn:focus-visible{ box-shadow: var(--ring); border-color: rgba(111,123,91,.35); }

.btn.primary{
  background: linear-gradient(135deg, rgba(111,123,91,.96), rgba(111,123,91,.78));
  color:#fff;
  border-color: rgba(111,123,91,.28);
}
.btn.primary:focus-visible{ box-shadow: var(--ring); }

.btn.taupe{
  background: linear-gradient(135deg, rgba(183,169,154,.95), rgba(183,169,154,.78));
  color: rgba(31,41,55,.88);
  border-color: rgba(183,169,154,.35);
}
.btn.taupe:focus-visible{ box-shadow: var(--ring2); border-color: rgba(183,169,154,.55); }

.pill{
  display:inline-flex; align-items:center; gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,.10);
  background: rgba(241,236,226,.70);
  color: rgba(31,41,55,.72);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.card{
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 18px;
}

.grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
}

.kv{
  display:grid;
  grid-template-columns: 140px 1fr;
  gap: 10px 14px;
  margin: 8px 0 0;
}
@media (max-width: 560px){
  .kv{ grid-template-columns: 1fr; }
}
.k{ color: rgba(31,41,55,.64); font-size: 13px; font-weight: 650; }
.v{ color: rgba(31,41,55,.88); font-size: 14px; line-height: 1.6; }

.divider{ height:1px; background: var(--line); margin: 16px 0; }

.section{ padding: 24px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.section-head h2{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .01em;
}
.section-head p{
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 70ch;
}

.chips{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.chip{
  border: 1px solid rgba(31,41,55,.10);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(241,236,226,.65);
  color: rgba(31,41,55,.70);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.hint{ margin: 10px 0 0; font-size: 12px; color: rgba(31,41,55,.62); }

/* Nav */
.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: blur(12px);
  background: rgba(250,247,240,.76);
  border-bottom: 1px solid rgba(31,41,55,.08);
}
.nav-inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 14px;
}
.brand{
  display:flex; align-items:center; gap: 10px;
}
.brand-mark{
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,.14);
  background: rgba(241,236,226,.72);
  display:grid;
  place-items:center;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: rgba(31,41,55,.78);
  font-size: 14px;
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{ font-size: 13px; }
.brand-text span{ font-size: 12px; color: var(--muted); }

.nav-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
  align-items:center;
}
.nav-links a{
  font-size: 13px;
  color: rgba(31,41,55,.78);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration:none;
  transition: background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.nav-links a:hover{
  background: rgba(241,236,226,.75);
  border-color: rgba(31,41,55,.10);
  text-decoration:none;
}
.nav-links a.active{
  background: rgba(255,255,255,.75);
  border-color: rgba(31,41,55,.10);
}
.nav-cta{ display:flex; gap: 10px; align-items:center; }
@media (max-width: 980px){
  .nav-links{ display:none; }
}

/* Hero */
.hero{
  position: relative;
  padding: 46px 0 18px;
  overflow:hidden;
}
.hero-bg{
  position:absolute; inset:0;
  pointer-events:none;
}
.hero-bg .photo{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  opacity:.22;
  filter: saturate(1.02) contrast(1.02);
}
.hero-bg .overlay{
  position:absolute; inset:0;
  background: var(--hero-overlay);
}
.hero-bg .grain{
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(31,41,55,.06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: .06;
  mix-blend-mode: multiply;
}
.hero-bg .floral{
  position:absolute;
  right: -120px;
  top: -80px;
  width: 460px;
  opacity: .25;
  transform: rotate(8deg);
}

.hero-grid{
  position: relative;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
}

.hero-main{
  background: rgba(255,255,255,.80);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero-main::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(560px 240px at 10% 0%, rgba(111,123,91,.14), transparent 62%),
    radial-gradient(560px 240px at 95% 0%, rgba(183,169,154,.20), transparent 62%);
  pointer-events:none;
  opacity:.95;
}
.hero-main > *{ position: relative; z-index:1; }

.kicker{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,.10);
  background: rgba(241,236,226,.70);
  color: rgba(31,41,55,.72);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}

.hero-title{
  margin: 14px 0 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 60px);
  line-height: 1.02;
  letter-spacing: .01em;
}
.hero-sub{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  max-width: 62ch;
}

.hero-row{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  align-items:center;
}

.stat{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: rgba(255,255,255,.80);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow2);
  padding: 16px;
}
.stat-item{
  padding: 12px;
  border-radius: 14px;
  background: rgba(241,236,226,.55);
  border: 1px solid rgba(31,41,55,.08);
  min-height: 92px;
}
.stat-item .label{
  color: rgba(31,41,55,.66);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .02em;
}
.stat-item .value{
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(31,41,55,.88);
  font-weight: 650;
}
.stat-item .value small{ display:block; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* Intro overlay */
.intro{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background:
    radial-gradient(900px 650px at 20% 12%, rgba(111,123,91,.12), transparent 58%),
    radial-gradient(820px 640px at 85% 10%, rgba(183,169,154,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.75), rgba(250,247,240,.95)),
    var(--bg);
  display: none;
  place-items: center;
  padding: 24px;
}
.intro.hidden{ display:none; }
.intro-card{
  width: min(900px, 100%);
  background: rgba(255,255,255,.84);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow:hidden;
  position: relative;
}
.intro-card::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(520px 220px at 10% 0%, rgba(111,123,91,.14), transparent 62%),
    radial-gradient(520px 220px at 95% 0%, rgba(183,169,154,.24), transparent 62%);
  pointer-events:none;
}
.intro-inner{
  position: relative;
  padding: 36px 22px 28px;
  text-align:center;
}
.monogram{
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  border-radius: 999px;
  border: 1px solid rgba(31,41,55,.16);
  background: rgba(241,236,226,.72);
  display:grid;
  place-items:center;
  box-shadow: 0 10px 22px rgba(31,41,55,.10);
  transform: translateY(8px) scale(.98);
  opacity: 0;
  animation: introIn .95s ease forwards .05s;
}
.monogram span{
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: rgba(31,41,55,.80);
  font-size: 22px;
  letter-spacing: .06em;
}
.intro-title{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: .01em;
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(10px);
  animation: introIn .95s ease forwards .18s;
}
.intro-sub{
  margin: 14px auto 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  opacity: 0;
  transform: translateY(10px);
  animation: introIn .95s ease forwards .32s;
}
.intro-meta{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(10px);
  animation: introIn .95s ease forwards .42s;
}
.intro-actions{
  display:flex;
  justify-content:center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
  opacity: 0;
  transform: translateY(10px);
  animation: introIn .95s ease forwards .54s;
  padding-bottom: 8px;
}
.intro-foot{
  margin: 10px 0 0;
  color: rgba(31,41,55,.55);
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  animation: introIn .95s ease forwards .62s;
}
@keyframes introIn{
  from{ opacity:0; transform: translateY(14px); }
  to{ opacity:1; transform: translateY(0); }
}
.intro-exit{ animation: introExit .55s ease forwards; }
@keyframes introExit{
  from{ opacity:1; transform: translateY(0); }
  to{ opacity:0; transform: translateY(-10px); }
}

/* Optional gate (convite) */
.gate{
  position: fixed;
  inset: 0;
  z-index: 9998;
  background:
    radial-gradient(900px 650px at 20% 12%, rgba(111,123,91,.12), transparent 58%),
    radial-gradient(820px 640px at 85% 10%, rgba(183,169,154,.22), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(250,247,240,.98)),
    var(--bg);
  display: none;
  place-items: center;
  padding: 24px;
}
.gate.hidden{ display:none; }
.gate .box{
  width: min(560px, 100%);
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.gate h2{
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: 24px;
}
.gate p{ margin: 10px 0 0; color: var(--muted); line-height: 1.7; font-size: 13px; }
.gate .row{ display:flex; gap: 10px; margin-top: 14px; flex-wrap:wrap; align-items:center; }
.gate input{
  flex:1;
  min-width: 180px;
  border-radius: 12px;
  border: 1px solid rgba(31,41,55,.14);
  padding: 12px 12px;
  font-size: 14px;
  background: rgba(241,236,226,.55);
  outline: none;
}
.gate input:focus{ box-shadow: var(--ring2); border-color: rgba(183,169,154,.55); }
.gate .err{ margin-top: 10px; color: #7f1d1d; background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.22); padding: 10px 12px; border-radius: 12px; display:none; }

/* Scroll reveal */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .70s ease, transform .70s ease;
  will-change: opacity, transform;
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}

/* Timeline */
.timeline{ display:grid; gap: 12px; }
.step{
  display:grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items:flex-start;
}
.dot{
  width: 12px; height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  background: rgba(111,123,91,.80);
  box-shadow: 0 0 0 4px rgba(111,123,91,.12);
  position: relative;
}
.step:not(:last-child) .dot::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% + 14px);
  background: rgba(31,41,55,.10);
  border-radius: 999px;
}
.step h3{ margin:0; font-size: 14px; font-weight: 750; color: rgba(31,41,55,.88); }
.step p{ margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Map */
.map-frame{
  width:100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(31,41,55,.12);
  border-radius: var(--r2);
  overflow:hidden;
  background: rgba(241,236,226,.55);
}
.map-frame iframe{ width:100%; height:100%; border:0; }

/* Gallery */
.gallery{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
@media (max-width: 980px){
  .gallery{ gap: 10px; }
}
.g-item{
  grid-column: span 4;
  border-radius: var(--r2);
  overflow:hidden;
  border: 1px solid rgba(31,41,55,.10);
  background: rgba(255,255,255,.75);
  box-shadow: 0 10px 22px rgba(31,41,55,.08);
  position: relative;
  min-height: 160px;
}
@media (max-width: 980px){
  .g-item{ grid-column: span 6; min-height: 140px; }
}
@media (max-width: 520px){
  .g-item{ grid-column: span 12; min-height: 180px; }
}
.g-item img{
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform .45s ease;
  display:block;
}
.g-item:hover img{ transform: scale(1.06); }
.g-item .cap{
  position:absolute;
  inset:auto 10px 10px 10px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(31,41,55,.10);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  color: rgba(31,41,55,.72);
}

/* FAQ */
details{
  border: 1px solid rgba(31,41,55,.10);
  border-radius: var(--r2);
  padding: 12px 12px;
  background: rgba(241,236,226,.45);
  transition: background .15s ease, border-color .15s ease;
}
details[open]{
  background: rgba(241,236,226,.78);
  border-color: rgba(31,41,55,.14);
}
details + details{ margin-top: 10px; }
summary{
  cursor:pointer;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 750;
  color: rgba(31,41,55,.88);
  font-size: 14px;
}
summary::-webkit-details-marker{ display:none; }
summary .muted{ font-weight: 650; color: rgba(31,41,55,.62); font-size: 13px; }
details p{ margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Footer */
footer{
  padding: 28px 0 56px;
  color: rgba(31,41,55,.62);
  font-size: 12px;
  text-align:center;
}

/* Floating CTA (mobile) */
.float-cta{
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  display:none;
}
@media (max-width: 980px){
  .float-cta{ display:block; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .reveal{ transition:none; opacity:1; transform:none; }
  .monogram, .intro-title, .intro-sub, .intro-meta, .intro-actions, .intro-foot{
    animation:none !important;
    opacity:1 !important;
    transform:none !important;
  }
}


/* Gate: só mostra quando JS adiciona .show */
.gate.show{ display: grid; }


/* Intro toggle (CSS-first): funciona mesmo se JS falhar */
.intro-toggle{ position: fixed; width:1px; height:1px; opacity:0; pointer-events:none; }
#introToggle:checked + .intro{ display: grid; }
.intro-replay{ cursor:pointer; text-decoration:none; }
.intro-replay:hover{ text-decoration: underline; }


/* Lottie intro (alianças) */
.intro-lottie{ width:120px; height:120px; margin: 10px auto 6px; opacity:.95; }
@media (max-width:420px){ .intro-lottie{ width:104px; height:104px; } }
@media (prefers-reduced-motion: reduce){ .intro-lottie{ display:none; } }


/* Guia do convidado */
.guide-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.guide-item{
  grid-column: span 4;
  border-radius: var(--r2);
  overflow:hidden;
  border: 1px solid rgba(31,41,55,.10);
  background: rgba(255,255,255,.78);
  box-shadow: 0 10px 22px rgba(31,41,55,.08);
  padding: 14px 14px 12px;
}
@media (max-width: 980px){
  .guide-item{ grid-column: span 6; }
}
@media (max-width: 520px){
  .guide-item{ grid-column: span 12; }
}
.guide-item .top{
  display:flex; align-items:flex-start; justify-content:space-between; gap: 10px;
}
.guide-item .name{ font-weight: 800; color: rgba(31,41,55,.88); }
.guide-item .kind{ font-size: 12px; color: rgba(31,41,55,.62); margin-top: 2px; }
.guide-item .tip{ margin-top: 10px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.guide-item .actions{ margin-top: 12px; display:flex; flex-wrap:wrap; gap: 10px; }
.guide-item .actions a{ text-decoration:none; }



/* Stack grid (remove quadro lateral) */
.grid.stack{ grid-template-columns: 1fr !important; }
.preline{ white-space: pre-line; }


/* Mini maps (Locais) */
.map-mini{ padding: 14px; }
.map-mini-head{ display:flex; justify-content:flex-start; gap:10px; margin-bottom:10px; }
.map-wrap{
  height: 280px;
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.55);
}
.map-wrap iframe{ width:100%; height:100%; border:0; }
@media (max-width: 980px){
  .map-wrap{ height: 240px; }
}


/* Guest personalization banner */
.guest-banner{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}
