:root {
  --bg: #f7f2eb;
  --bg-2: #efe7dc;
  --ink: #26332f;
  --ink-soft: #5b6662;
  --sea: #3f6b6a;
  --sea-dark: #2c4f4e;
  --sand: #c49a74;
  --line: #d9cdbd;
  --white: #fffdf9;
  --serif: "Cinzel", Georgia, serif;
  --sans: "Lato", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--sea); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); line-height: 1.25; letter-spacing: .02em; margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; letter-spacing: .02em; margin-bottom: .5rem; }
p + p { margin-top: 1rem; }

.eyebrow { font-size: .75rem; letter-spacing: .28em; text-transform: uppercase; color: var(--sand); font-weight: 500; margin-bottom: .75rem; }
.center { text-align: center; }
.narrow { max-width: 620px; margin-left: auto; margin-right: auto; }
.script { font-style: italic; font-size: 1.2rem; color: var(--sea); margin-top: 1.5rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow-wrap { max-width: 620px; }
.section { padding: 110px 0; }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 18px 32px; transition: background .3s, box-shadow .3s; }
.nav.scrolled { background: rgba(247, 242, 235, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--line); }
.nav-logo { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--white); text-decoration: none; letter-spacing: .08em; }
.nav-logo span { font-weight: 400; }
.nav.scrolled .nav-logo { color: var(--ink); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--white); text-decoration: none; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.nav.scrolled .nav-links a { color: var(--ink); }
.nav-links .nav-cta { border: 1px solid currentColor; padding: 8px 16px; }
.nav-toggle { display: none; background: none; border: 0; width: 32px; height: 24px; position: relative; cursor: pointer; }
.nav-toggle span { position: absolute; left: 4px; right: 4px; height: 1.5px; background: var(--white); transition: .3s; }
.nav-toggle span:first-child { top: 8px; }
.nav-toggle span:last-child { top: 15px; }
.nav.scrolled .nav-toggle span { background: var(--ink); }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: end center; text-align: center; color: var(--white); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: url("img/hero-desktop.jpg") center 35% / cover no-repeat; transform: scale(1.04); animation: drift 18s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 35, 35, .35) 0%, rgba(20, 35, 35, 0) 35%, rgba(20, 35, 35, .7) 100%); }
@keyframes drift { to { transform: scale(1); } }
.hero-content { position: relative; padding: 120px 24px 56px; }
.hero .eyebrow { color: var(--white); opacity: .9; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 5.5rem); font-weight: 700; line-height: 1.05; letter-spacing: .03em; }
.amp { font-weight: 400; color: #f1d9c2; }
.hero-date { font-family: var(--serif); font-size: clamp(1.05rem, 2.4vw, 1.4rem); letter-spacing: .08em; margin-top: 1rem; }
.hero-lead { margin-top: .5rem; opacity: .9; }
.countdown { display: flex; gap: 12px; justify-content: center; margin-top: 2.5rem; }
.countdown div { min-width: 74px; padding: 12px 8px; border: 1px solid rgba(255, 253, 249, .45); background: rgba(255, 253, 249, .08); backdrop-filter: blur(4px); }
.countdown strong { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; }

.intro { text-align: center; padding: 90px 24px 0; max-width: 680px; margin: 0 auto; font-size: 1.1rem; }

/* two col */
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.two-col.reverse .col-media { order: -1; }
.col-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.gallery { margin-top: 90px; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px 12px; scrollbar-width: thin; }
.gallery img { height: 380px; width: auto; flex: none; scroll-snap-align: center; object-fit: cover; }

.cerimonia { background: var(--bg-2); }
.map { display: block; width: 100%; height: 420px; border: 0; margin-top: 64px; filter: saturate(.85); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.place { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.place strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; }
.place span { color: var(--ink-soft); }

.btn-line { display: inline-block; margin-top: 1rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--sea); border-bottom: 1px solid var(--sea); padding-bottom: 3px; align-self: flex-start; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.card { background: var(--white); display: flex; flex-direction: column; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.card-plain { background: transparent; border: 1px solid var(--line); }
.card-tag { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: .4rem; }
.card-body p:not(.card-tag) { font-size: .95rem; }
.coupon { margin-top: 1rem; font-size: .95rem; }
.coupon strong { font-family: var(--sans); font-weight: 500; letter-spacing: .15em; background: var(--bg-2); padding: 4px 10px; }

/* trajes */
.trajes { background: var(--white); }
.two-text { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 48px; }
.tip { margin: 48px auto 0; max-width: 720px; text-align: center; font-style: italic; font-size: 1.1rem; color: var(--sea); line-height: 1.6; }
.looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.looks img { aspect-ratio: 1; object-fit: cover; width: 100%; }

/* timeline */
.timeline { list-style: none; margin-top: 2rem; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 28px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--sand); }
.t-day { font-family: var(--serif); font-size: 1.05rem; font-weight: 500; letter-spacing: .02em; color: var(--ink); }
.timeline p { margin-top: .25rem; }

/* presentes */
.presentes { background: var(--bg-2); }
.sort { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 40px 0 20px; font-size: .85rem; }
.sort select { font: inherit; background: var(--white); border: 1px solid var(--line); padding: 6px 10px; color: var(--ink); }
.gifts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gift { background: var(--white); display: flex; flex-direction: column; }
.gift img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.gift-body { padding: 18px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.gift h3 { font-family: var(--sans); font-size: 1rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; flex: 1; }
.gift .price { font-weight: 500; color: var(--sea-dark); }
.gift button { margin-top: 6px; }

.btn { font: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; background: var(--sea); color: var(--white); border: 0; min-height: 48px; padding: 14px 22px; cursor: pointer; transition: background .2s, transform 200ms ease-out; width: 100%; }
.btn:hover { background: var(--sea-dark); }
.btn, .btn-line, .nav-cta { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active { transform: scale(.97); transition: transform 100ms ease-out; }
.btn-line:active, .nav-links a:active { opacity: .6; }

/* form */
.form { margin-top: 40px; display: flex; flex-direction: column; gap: 18px; }
.form label, .modal label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--ink-soft); }
.form input, .form select, .form textarea, .modal input, .modal textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); padding: 12px 14px; border-radius: 0; }
.form input:focus, .form select:focus, .form textarea:focus, .modal input:focus, .modal textarea:focus { outline: 1px solid var(--sea); border-color: var(--sea); }
.form-msg { text-align: center; color: var(--sea); font-size: 1.05rem; }

.footer { background: var(--sea-dark); color: var(--white); text-align: center; padding: 64px 24px; font-size: .85rem; letter-spacing: .12em; }
.footer-names { font-family: var(--serif); font-weight: 700; font-size: 1.9rem; letter-spacing: .03em; margin-bottom: .25rem; }


/* modal */
.modal { border: 0; padding: 0; margin: auto; width: min(440px, calc(100% - 32px)); max-height: calc(100% - 32px); background: var(--white); color: var(--ink); }
.modal { opacity: 0; transform: translateY(24px) scale(.98); transition: opacity 280ms cubic-bezier(.2, .8, .2, 1), transform 380ms cubic-bezier(.2, .8, .2, 1), overlay 380ms allow-discrete, display 380ms allow-discrete; }
.modal[open] { opacity: 1; transform: none; }
@starting-style { .modal[open] { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal::backdrop { background: rgba(20, 35, 35, 0); transition: background 280ms ease, overlay 380ms allow-discrete, display 380ms allow-discrete; }
.modal[open]::backdrop { background: rgba(20, 35, 35, .55); }
@starting-style { .modal[open]::backdrop { background: rgba(20, 35, 35, 0); } }
.modal-close { position: absolute; top: 8px; right: 10px; }
.modal-close { z-index: 1; }
.modal-close button { background: rgba(255, 253, 249, .9); border: 0; border-radius: 50%; font-size: 1.6rem; width: 44px; height: 44px; cursor: pointer; color: var(--ink); }
.modal-body { padding: 0 0 28px; display: flex; flex-direction: column; gap: 14px; }
.modal-body > *:not(img) { margin-left: 28px; margin-right: 28px; }
.modal-body img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.modal-body h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 400; letter-spacing: 0; line-height: 1.4; margin-bottom: 0; }
.m-price { font-weight: 500; color: var(--sea-dark); font-size: 1.1rem; margin-top: -8px; }
.qr { align-self: center; padding: 12px; background: #fff; border: 1px solid var(--line); }
.qr[hidden] { display: none; }
.qr img, .qr canvas { width: 200px; height: 200px; }
.small { font-size: .85rem; color: var(--ink-soft); text-align: center; }
.code { font: .75rem/1.4 ui-monospace, monospace; word-break: break-all; resize: none; }

/* responsive */
@media (max-width: 960px) {
  .gifts { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; }
  .card-plain { grid-column: 1 / -1; }
  .looks { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 820px) {
  .nav { padding: 14px 16px; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 28px; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-links a, .nav.scrolled .nav-links a { color: var(--ink); font-size: .95rem; }
  .menu-open .nav-links { opacity: 1; pointer-events: auto; }
  .menu-open .nav-logo { color: var(--ink); position: relative; z-index: 2; }
  .menu-open .nav-toggle { z-index: 2; }
  .menu-open .nav-toggle span { background: var(--ink); }
  .menu-open .nav-toggle span:first-child { top: 11px; transform: rotate(45deg); }
  .menu-open .nav-toggle span:last-child { top: 11px; transform: rotate(-45deg); }
  .section { padding: 80px 0; }
  .wrap { padding: 0 16px; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col.reverse .col-media { order: 0; }
  .col-media img { aspect-ratio: 4 / 3; }
  .two-text { grid-template-columns: 1fr; gap: 28px; }
  .cards { grid-template-columns: 1fr; }
  .gifts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gift-body { padding: 12px; }
  .gift h3 { font-size: 1.05rem; }
  .gift .btn { padding: 12px 8px; font-size: .7rem; letter-spacing: .1em; }
  .gallery { padding: 0 16px 12px; }
  .gallery img { height: 280px; }
  .map { height: 320px; margin-top: 40px; }
  .countdown div { min-width: 64px; }
  .countdown strong { font-size: 1.6rem; }
  .hero-bg { background-image: url("img/hero-mobile.jpg"); background-position: center 30%; }
  .modal { width: 100%; max-width: none; margin: auto 0 0; max-height: 92svh; border-radius: 16px 16px 0 0; transform: translateY(100%); }
  .modal[open] { transform: none; }
  @starting-style { .modal[open] { transform: translateY(100%); } }
  .modal-body img { border-radius: 16px 16px 0 0; }
  .modal-body { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg { animation: none; transform: none; }
  .modal, .modal[open] { transform: none; transition: opacity 200ms ease, overlay 200ms allow-discrete, display 200ms allow-discrete; }
  @starting-style { .modal[open] { transform: none; } }
  .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled { background: var(--bg); backdrop-filter: none; }
  .countdown div { background: rgba(20, 35, 35, .55); backdrop-filter: none; }
}

/* carrinho */
.gift .btn.is-in { background: var(--white); color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); }
.cart-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15; display: flex; align-items: center; gap: 10px; font: inherit; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; background: var(--sea-dark); color: var(--white); border: 0; border-radius: 999px; min-height: 48px; padding: 0 8px 0 20px; cursor: pointer; box-shadow: 0 8px 24px rgba(20, 35, 35, .25); -webkit-tap-highlight-color: transparent; transition: transform 200ms ease-out; }
.cart-fab[hidden] { display: none; }
.cart-fab:active { transform: scale(.96); transition-duration: 100ms; }
.cart-fab strong { background: var(--white); color: var(--sea-dark); border-radius: 999px; min-width: 32px; height: 32px; display: grid; place-items: center; letter-spacing: 0; }
.sheet { padding-top: 28px; }
.sheet-title { font-family: var(--serif); font-size: 1.3rem; letter-spacing: .02em; padding-right: 48px; }
#c-step1, #c-step2 { display: flex; flex-direction: column; gap: 16px; }
#c-step1[hidden], #c-step2[hidden] { display: none; }
.cart-list { list-style: none; display: flex; flex-direction: column; gap: 10px; max-height: 38svh; overflow-y: auto; }
.cart-list li { display: grid; grid-template-columns: 52px 1fr auto 44px; gap: 12px; align-items: center; font-size: .92rem; line-height: 1.35; }
.cart-list img { width: 52px; height: 52px; object-fit: cover; }
.cart-list strong { font-weight: 700; color: var(--sea-dark); white-space: nowrap; }
.rm { width: 44px; height: 44px; border: 0; background: none; font-size: 1.4rem; color: var(--ink-soft); cursor: pointer; }
.cart-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; font-size: 1rem; }
.cart-total strong { font-size: 1.2rem; color: var(--sea-dark); }
.btn-ghost { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--sea); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; min-height: 44px; }
.pay-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { position: relative; flex-direction: row !important; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--line); cursor: pointer; color: var(--ink) !important; font-size: .95rem !important; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt:has(input:checked) { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); color: var(--sea-dark) !important; font-weight: 700; }
.pay-opt.is-off { opacity: .5; cursor: default; }
.pay-opt small { font-weight: 400; color: var(--ink-soft); }
.thanks { text-align: center; font-family: var(--serif); color: var(--sea); }
.btn:disabled { opacity: .6; cursor: progress; }
.card-note { text-align: left; }
.toast { position: fixed; left: 50%; top: 84px; transform: translateX(-50%); z-index: 30; width: min(440px, calc(100% - 32px)); background: var(--sea-dark); color: var(--white); padding: 16px 20px; box-shadow: 0 8px 24px rgba(20, 35, 35, .25); text-align: center; }
.toast[hidden] { display: none; }
