/* ============================================================
   Bianca & Pedro — folha de estilo
   Direção definitiva: JARDIM (romântico clássico)
   Acento: oliva #7f8566 · Papel: marfim
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;1,400&family=Jost:wght@300;400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* paleta quente — marfim */
  --ivory:  #faf7f1;
  --cream:  #f3ece0;
  --sand:   #e9ddc9;
  --taupe:  #cbb89a;
  --stone:  #8c8170;
  --ink:    #4a4238;
  --deep:   #36302a;
  --olive:  #7f8566;
  --olive-d:#6a7053;

  /* tokens da direção Jardim (papel marfim, acento oliva) */
  --bg: var(--ivory);
  --bg-alt: #f4eee3;
  --surface: #fbf9f4;
  --line: rgba(74,66,56,0.16);
  --text: var(--ink);
  --text-soft: var(--stone);
  --text-mute: #a59c8c;
  --accent: var(--olive);
  --accent-ink: var(--olive-d);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-label: 'EB Garamond', Georgia, serif;
  --display-style: italic;
  --display-weight: 500;
  --label-tracking: 0.42em;
  --label-transform: uppercase;
  --label-size: 12px;
  --radius: 0px;
  --align: center;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------------- ELEMENTOS COMUNS ---------------- */

.site { width: 100%; background: var(--bg); color: var(--text); min-height: 100vh; }

.wrap { width: min(1120px, 90vw); margin: 0 auto; }
.wrap-narrow { width: min(720px, 88vw); margin: 0 auto; }

.eyebrow {
  font-family: var(--font-label);
  font-size: var(--label-size);
  letter-spacing: var(--label-tracking);
  text-transform: var(--label-transform);
  color: var(--accent-ink);
  margin: 0;
  font-weight: 400;
}

.display {
  font-family: var(--font-display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  color: var(--text);
  line-height: 1.02;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-title {
  font-family: var(--font-display);
  font-style: var(--display-style);
  font-weight: var(--display-weight);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-soft);
  line-height: 1.85;
  text-wrap: pretty;
}

/* divisor com ornamento */
.ornament {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; color: var(--accent); margin: 0 auto;
}
.ornament .rule { height: 1px; width: 64px; background: var(--accent); opacity: 0.5; }
.ornament .glyph { font-family: var(--font-display); font-size: 20px; line-height: 1; }

/* botão */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-label);
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 16px 30px; border-radius: var(--radius);
  background: var(--accent); color: #fbf9f4; border: 1px solid var(--accent);
  text-decoration: none; cursor: pointer; transition: all .35s ease;
  font-weight: 500; white-space: nowrap;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-2px); }

/* seção genérica */
.section { padding: clamp(72px, 11vh, 140px) 0; position: relative; }
.section--alt { background: var(--bg-alt); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 28px;
  padding: 18px 28px; transition: all .4s ease;
  background: transparent;
}
.nav.scrolled { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__monogram { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--text); position: absolute; left: 28px; text-decoration: none; }
.nav__links { display: flex; gap: 26px; }
.nav__links a {
  font-family: var(--font-label); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-soft); text-decoration: none; transition: color .3s; padding: 4px 0; position: relative;
}
.nav__links a::after { content:''; position:absolute; left:0; right:100%; bottom:-2px; height:1px; background: var(--accent); transition: right .35s ease; }
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { right: 0; }
@media (max-width: 880px) { .nav__links { display: none; } .nav { justify-content: flex-start; } }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 120px 0 80px; overflow: hidden; flex-direction: column; text-align: center; gap: clamp(16px, 3vh, 28px); }
.hero__names { font-family: var(--font-display); font-style: var(--display-style); font-weight: var(--display-weight); line-height: 0.92; color: var(--text); margin: 0; text-wrap: balance; }
.hero__amp { display: inline-block; font-style: italic; }
.hero__date { font-family: var(--font-label); letter-spacing: 0.5em; text-transform: uppercase; }

/* hero jardim — centrado, foto em arco */
.hero-jardim__eyebrow { letter-spacing: 0.5em; }
.hero-jardim__names { font-size: clamp(46px, 9vw, 112px); line-height: 1.0; margin: 0.12em 0 0.16em; }
.hero-jardim__arch {
  width: min(360px, 70vw); aspect-ratio: 3/4; border-radius: 50% 50% 6px 6px / 32% 32% 6px 6px;
  overflow: hidden; box-shadow: 0 30px 70px -30px rgba(54,48,42,.45); border: 1px solid var(--line);
}
.hero-jardim__arch img { width: 100%; height: 100%; object-fit: cover; }

.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-mute); }
.scroll-cue .line { width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100%{transform:scaleY(.5);transform-origin:top;opacity:.4} 50%{transform:scaleY(1);opacity:1} }

/* ===================== COUNTDOWN ===================== */
.countdown { display: flex; gap: clamp(20px, 5vw, 64px); justify-content: var(--align); flex-wrap: wrap; }
.cd { text-align: center; min-width: 64px; }
.cd__n { font-family: var(--font-display); font-style: var(--display-style); font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--text); }
.cd__l { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--text-mute); margin-top: 10px; }

/* ===================== STORY ===================== */
.story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.story-photo { aspect-ratio: 4/5; overflow: hidden; box-shadow: 0 28px 64px -34px rgba(54,48,42,.42); border-radius: 50% 50% 4px 4px / 26% 26% 4px 4px; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-text p { margin: 0 0 1.25em; }
.story-text p:last-child { margin-bottom: 0; }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; } .story-photo { max-width: 360px; margin: 0 auto; } }

/* ===================== GALLERY ===================== */
.gallery { columns: 3; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; display: block; transition: transform 1.4s cubic-bezier(.2,.7,.2,1), filter .6s; filter: saturate(.96); }
.gallery figure:hover img { transform: scale(1.05); filter: saturate(1.05); }
/* desktop: 3 colunas de 6 — a linha de cima são os itens DOM 1, 7, 13 */
.gallery figure:nth-child(6n-5) { border-radius: 120px 120px 6px 6px; }
@media (max-width: 760px) {
  .gallery { columns: 2; }
  /* mobile: 2 colunas de 9 — a linha de cima são os itens DOM 1 e 10.
     Cancela a regra do desktop e arredonda só as duas fotos do topo. */
  .gallery figure:nth-child(6n-5) { border-radius: 0; }
  .gallery figure:nth-child(1),
  .gallery figure:nth-child(10) { border-radius: 120px 120px 6px 6px; }
}

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(40,35,30,.92); display: flex; align-items: center; justify-content: center; padding: 5vw; opacity: 0; pointer-events: none; transition: opacity .4s; backdrop-filter: blur(4px); }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.lightbox__close, .lightbox__nav { position: absolute; color: #f3ece0; font-family: var(--font-display); cursor: pointer; user-select: none; background: none; border: none; }
.lightbox__close { top: 22px; right: 30px; font-size: 34px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 52px; padding: 20px; opacity: .8; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav.prev { left: 2vw; } .lightbox__nav.next { right: 2vw; }

/* ===================== RECEPTION ===================== */
.recep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.recep-photo { overflow: hidden; min-height: 340px; }
.recep-photo img { width: 100%; height: 100%; object-fit: cover; }
.recep-info { display: flex; flex-direction: column; justify-content: center; }
.map-card {
  position: relative; display: block; width: 100%; aspect-ratio: 16/10; margin-top: 26px;
  overflow: hidden; border: 1px solid var(--line); background: var(--bg-alt);
  text-decoration: none; color: var(--text); transition: transform .45s ease, box-shadow .45s ease;
}
.map-card:hover { transform: translateY(-3px); box-shadow: 0 26px 54px -30px rgba(54,48,42,.42); }
.map-card__grid {
  position: absolute; inset: 0; opacity: .65;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 39px, color-mix(in srgb, var(--accent) 16%, transparent) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, color-mix(in srgb, var(--accent) 16%, transparent) 39px 40px);
  -webkit-mask-image: radial-gradient(circle at 50% 44%, #000 24%, transparent 80%);
  mask-image: radial-gradient(circle at 50% 44%, #000 24%, transparent 80%);
}
.map-card__road {
  position: absolute; inset: 0;
  background-image: linear-gradient(118deg, transparent 46%, color-mix(in srgb, var(--accent) 30%, transparent) 46% 47.4%, transparent 47.4%),
                    linear-gradient(28deg, transparent 62%, color-mix(in srgb, var(--accent) 22%, transparent) 62% 63%, transparent 63%);
}
.map-card__pin {
  position: absolute; top: 44%; left: 50%; width: 26px; height: 26px; margin: -26px 0 0 -13px;
  border-radius: 50% 50% 50% 0; background: var(--accent); rotate: -45deg;
  box-shadow: 0 10px 18px -6px rgba(54,48,42,.55);
}
.map-card__pin i { position: absolute; top: 50%; left: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--bg-alt); }
.map-card__label { position: absolute; left: 0; right: 0; top: 56%; text-align: center; display: flex; flex-direction: column; gap: 3px; padding: 0 20px; }
.map-card__label strong { font-family: var(--font-display); font-style: var(--display-style); font-weight: 500; font-size: clamp(20px, 2.4vw, 26px); color: var(--text); }
.map-card__label em { font-style: normal; font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-soft); }
.map-card__cta { position: absolute; bottom: 14px; right: 16px; white-space: nowrap; font-family: 'Jost', sans-serif; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }
@media (max-width: 820px) { .recep-grid { grid-template-columns: 1fr; } }

/* ===================== HOTELS ===================== */
.hotels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.hotel { background: var(--bg); padding: 28px 30px; }
/* quantidade ímpar (ex.: 7 hotéis): o último card ocupa a linha inteira,
   evitando a célula vazia no desktop */
.hotel:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hotel__name { font-family: var(--font-display); font-style: var(--display-style); font-size: 24px; color: var(--text); margin: 0 0 6px; }
.hotel__addr { font-size: 16px; color: var(--text-soft); margin: 0; line-height: 1.55; }
.hotel__note { display:inline-block; margin-top:10px; font-family: var(--font-label); font-size: 10px; letter-spacing:.18em; text-transform:uppercase; color: var(--accent-ink); }
@media (max-width: 720px) { .hotels { grid-template-columns: 1fr; } }

/* ===================== GIFTS ===================== */
.gift-card { background: var(--surface); border: 1px solid var(--line); padding: clamp(34px, 5vw, 56px); text-align: center; max-width: 560px; margin: 0 auto; }
.pix-qr { width: 196px; height: 196px; margin: 30px auto 12px; padding: 15px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 44px -26px rgba(54,48,42,.45); }
.pix-qr img { width: 100%; height: 100%; display: block; image-rendering: crisp-edges; }
.pix-qr-cap { font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mute); margin: 0 0 22px; }
.pix-key { display:flex; align-items:center; justify-content:space-between; gap: 14px; background: var(--bg-alt); border: 1px dashed var(--line); padding: 16px 20px; margin: 24px 0 8px; font-family: 'Jost', monospace; font-size: 14px; color: var(--text); }
.pix-key span { text-align: left; word-break: break-all; line-height: 1.4; }
.copy-btn { flex: none; font-family:'Jost',sans-serif; font-size: 11px; letter-spacing:.14em; text-transform:uppercase; padding: 9px 16px; border-radius: var(--radius); background: var(--accent); color:#fbf9f4; border:none; cursor:pointer; transition: background .3s; }
.copy-btn:hover { background: var(--accent-ink); }

/* ===================== RSVP ===================== */
.rsvp { text-align: var(--align); }
.rsvp-form { display: flex; flex-direction: column; gap: 16px; max-width: 460px; margin: 30px auto 0; }
.field { display: flex; flex-direction: column; gap: 7px; text-align: left; }
.field label { font-family: var(--font-label); font-size: 11px; letter-spacing:.18em; text-transform: uppercase; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 17px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); padding: 13px 16px; border-radius: var(--radius); outline: none; transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.seg { display: flex; gap: 10px; }
.seg button { flex: 1; font-family: var(--font-body); font-size: 16px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; color: var(--text-soft); transition: all .25s; }
.seg button.active { background: var(--accent); color: #fbf9f4; border-color: var(--accent); }

/* ===================== FOOTER ===================== */
.footer { text-align: center; padding: clamp(60px,9vh,110px) 0 60px; background: var(--bg-alt); }
.footer__mono { font-family: var(--font-display); font-style: italic; font-size: clamp(44px, 8vw, 92px); color: var(--text); line-height: 1; }
.footer__meta { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--text-mute); margin-top: 18px; }

/* ===================== UTIL ===================== */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.section-head { display:flex; flex-direction: column; gap: clamp(20px, 2.4vw, 30px); align-items: var(--align); text-align: var(--align); margin-bottom: clamp(40px, 6vw, 72px); }
