/* NossoSim — Site do casal (módulo convidado)
   Look and feel inspirado nos sites de casal do casar.com:
   fundo claro, azul-ardósia, detalhes dourados, Cinzel + Dancing Script + Lato. */
:root {
  /* Layout no estilo dos sites de casal do casar.com, com a paleta da marca Nosso Sim */
  --bg: #fbf7f0;            /* creme */
  --surface: #ffffff;
  --text: #5e4c47;
  --text-strong: #3a2c29;
  --muted: #9b8781;
  --border: #ecdcd3;
  --focus: #eba095;
  --primary: #b83432;       /* vermelho */
  --primary-dark: #962a28;
  --gold: #c38c42;          /* dourado */
  --gold-dark: #a7732f;
  --rose: #eba095;          /* rosa */
  --star: #eb8d84;          /* coral da estrela */
  --blush: #f0cfc4;
  --danger: #b83432;
  --success: #4f8a6a;
  --soft: #b834321a;
  --shadow: 0 8px 30px rgba(120, 50, 40, .10);
  --font-title: "Cinzel", serif;
  --font-script: "Dancing Script", cursive;
  --font-body: "Lato", sans-serif;
  --font-label: "Quicksand", sans-serif;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); }
.hidden { display: none !important; }
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.97); box-shadow: 0 1px 0 var(--border);
  transition: background .3s, box-shadow .3s;
}
.navbar.transparent { background: transparent; box-shadow: none; }
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.navbar .logo { font-family: var(--font-script); font-weight: 700; font-size: 28px; color: var(--text-strong); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.navbar.transparent .logo, .navbar.transparent .nav-links a, .navbar.transparent .nav-toggle { color: #fff; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 14px; text-decoration: none; color: var(--text);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: color .2s;
}
.nav-links a:hover { color: var(--gold-dark); }
.nav-back {
  flex: none; padding: 8px 0; text-decoration: none; color: var(--text);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.nav-back:hover { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text-strong); cursor: pointer; padding: 8px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px; border: 1px solid transparent; border-radius: 2px;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: all .2s ease-in-out;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover:not(:disabled) { background: var(--gold-dark); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--soft); }
.btn-light { background: transparent; border-color: #fff; color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.15); }
.btn-block { width: 100%; }
/* Botão do Mercado Pago (cor oficial da marca) */
.btn-mp { background: #009ee3; color: #fff; }
.btn-mp:hover:not(:disabled) { background: #007eb5; }
.mp-safe { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; line-height: 1.5; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  color: #fff; background: var(--text-strong) center/cover no-repeat; padding: calc(var(--nav-h) + 24px) 16px 48px;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(45,25,22,.45), rgba(45,25,22,.22) 40%, rgba(45,25,22,.6)); }
.hero > * { position: relative; }
.hero .pre { font-family: var(--font-title); letter-spacing: .35em; text-transform: uppercase; font-size: 13px; opacity: .95; }
.hero h1 { font-family: var(--font-script); font-weight: 700; font-size: clamp(54px, 10vw, 112px); line-height: 1.05; margin: 14px 0 10px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero .date { font-family: var(--font-title); font-size: clamp(16px, 2.4vw, 22px); letter-spacing: .25em; }
.hero .divider { width: 70px; height: 1px; background: var(--gold); margin: 22px auto; }

.countdown { display: flex; justify-content: center; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }
.countdown div {
  min-width: 84px; padding: 14px 8px; border: 1px solid rgba(255,255,255,.55); border-radius: 4px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(3px);
}
.countdown strong { display: block; font-family: var(--font-title); font-size: 32px; line-height: 1.1; font-weight: 500; }
.countdown span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }
.countdown-done { font-family: var(--font-script); font-size: 32px; margin: 26px 0; }

.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; opacity: .8; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- seções ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--surface); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title .script { font-family: var(--font-script); font-weight: 700; font-size: 26px; color: var(--gold-dark); display: block; }
.section-title h2 { font-family: var(--font-title); font-weight: 500; font-size: clamp(26px, 4vw, 36px); letter-spacing: .12em; text-transform: uppercase; color: var(--text-strong); margin: 4px 0 0; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--star); margin-top: 14px; }
.ornament svg { width: 18px; height: 18px; }
.ornament::before, .ornament::after { content: ""; width: 60px; height: 1px; background: var(--rose); }
.lead { max-width: 760px; margin: 0 auto; text-align: center; font-size: 18px; font-weight: 300; white-space: pre-line; }

/* os noivos */
.couple { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; max-width: 760px; margin: 0 auto 48px; }
.couple .photo {
  width: 100%; max-width: 260px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: #f3ebe4 center/cover no-repeat; border: 6px solid #fff; box-shadow: var(--shadow);
}
.couple .amp { font-family: var(--font-script); font-weight: 700; font-size: 64px; color: var(--gold); }

/* cerimônia */
.ceremony { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.ceremony.invertido .photo { order: 2; }
.ceremony .photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow); background: #f3ebe4; }
.info-list { list-style: none; padding: 0; margin: 24px 0; }
.info-list li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid #f3e9e2; }
.info-list li:last-child { border-bottom: 0; }
.info-list svg { flex: none; width: 22px; height: 22px; color: var(--gold-dark); margin-top: 3px; }
.info-list strong { display: block; font-family: var(--font-label); color: var(--text-strong); font-size: 14px; letter-spacing: .04em; }
.map { margin-top: 40px; width: 100%; height: 380px; border: 0; border-radius: 4px; box-shadow: var(--shadow); display: block; background: #f3ebe4; }

/* ---------- lista de presentes ---------- */
.gift-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.gift-toolbar .count { font-family: var(--font-label); font-weight: 700; }
.select, .form-control {
  height: 46px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff;
  color: var(--text-strong); font: inherit; font-size: 15px; transition: border-color .25s, box-shadow .25s;
}
.select:focus, .form-control:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--soft); }

/* Filtro de categorias da lista de presentes */
.cat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -12px 0 28px; }
.cat-chip {
  padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text-strong);
  font-family: var(--font-body); font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.cat-chip:hover { border-color: var(--gold); }
.cat-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.cat-chip.ativo { background: var(--primary); border-color: var(--primary); color: #fff; }
.gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.gift {
  display: flex; flex-direction: column; background: #fff; border: 1px solid #efe3db; border-radius: 6px;
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.gift:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gift .img { aspect-ratio: 1; background: #f3ebe4 center/cover no-repeat; position: relative; }
.gift .chip {
  position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.95); color: var(--text-strong);
  font-family: var(--font-label); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 20px;
}
.gift .body { flex: 1; display: flex; flex-direction: column; padding: 18px; text-align: center; }
.gift h3 { font-family: var(--font-body); font-weight: 400; font-size: 16px; color: var(--text-strong); margin: 0 0 6px; line-height: 1.35; min-height: 2.7em; }
.price-nota { margin: -10px 0 12px; font-size: 12px; color: var(--muted); }
.gift .price { font-family: var(--font-title); font-size: 22px; color: var(--text-strong); margin-bottom: 14px; }
.gift .actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.qty { display: flex; align-items: center; justify-content: center; gap: 0; }
.qty button {
  width: 40px; height: 40px; border: 1px solid var(--border); background: #fff; color: var(--primary);
  font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.qty button:first-child { border-radius: 8px 0 0 8px; }
.qty button:last-child { border-radius: 0 8px 8px 0; }
.qty button:disabled { color: #d9c9c2; cursor: not-allowed; }
.qty input {
  width: 56px; height: 40px; border: 1px solid var(--border); border-left: 0; border-right: 0;
  text-align: center; font: inherit; font-weight: 700; color: var(--text-strong); -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-label { font-size: 12.5px; color: var(--muted); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }

/* ---------- rodapé ---------- */
.footer { background: var(--primary); color: #fbe3df; text-align: center; padding: 48px 16px; }
.footer .script { font-family: var(--font-script); font-weight: 700; font-size: 38px; color: #fff; }
.footer small { display: block; margin-top: 10px; letter-spacing: .15em; text-transform: uppercase; font-size: 11px; opacity: .8; }
.footer small span { color: var(--blush); }
.footer .footer-link { display: block; margin-top: 14px; color: #fbe3df; font-size: 13px; }
.footer .footer-link + .brand-mark { margin-top: 10px; }
.lgpd { margin: 4px 0 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.lgpd a { color: var(--primary); }
/* Página de política de privacidade */
.legal { max-width: 820px; line-height: 1.7; }
.legal h1 { font-family: var(--font-title); font-weight: 500; letter-spacing: .04em; color: var(--text-strong); margin: 0 0 4px; font-size: 30px; }
.legal h2 { font-family: var(--font-title); font-weight: 500; color: var(--text-strong); font-size: 19px; margin: 28px 0 8px; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal .muted { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.footer .brand-mark { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #fff; text-decoration: none; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.footer .brand-mark img { height: 46px; background: var(--bg); border-radius: 8px; padding: 4px 6px; }

/* ---------- página de presentear ---------- */
.page { padding: calc(var(--nav-h) + 48px) 0 80px; min-height: 100vh; }
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.panel { background: #fff; border: 1px solid #efe3db; border-radius: 8px; padding: 32px; box-shadow: var(--shadow); }
.panel h2 { font-family: var(--font-title); font-weight: 500; font-size: 22px; color: var(--text-strong); letter-spacing: .06em; margin: 0 0 6px; }
.panel .sub { margin: 0 0 24px; color: var(--muted); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-family: var(--font-label); font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 15px; }
.form-group .form-control { width: 100%; }
textarea.form-control { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; font-size: 15px; }
.alert-error { background: #fbeceb; color: var(--danger); border: 1px solid var(--blush); }
.notice { display: flex; gap: 10px; padding: 12px 14px; background: var(--bg); border-left: 3px solid var(--rose); border-radius: 0 8px 8px 0; font-size: 14px; margin-bottom: 20px; }

.summary { position: sticky; top: calc(var(--nav-h) + 24px); padding: 0; overflow: hidden; }
.summary .img { aspect-ratio: 16/10; background: #f3ebe4 center/cover no-repeat; }
.summary .body { padding: 24px; }
.summary h3 { margin: 0 0 4px; font-weight: 400; color: var(--text-strong); font-size: 18px; }
.summary .line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f3e9e2; font-size: 15px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.summary .total strong { font-family: var(--font-title); font-size: 26px; color: var(--text-strong); }

.thanks { text-align: center; max-width: 620px; margin: 0 auto; }
.thanks .heart { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; background: #fbe3df; color: var(--primary); display: flex; align-items: center; justify-content: center; }
.pay-status.is-espera .heart { background: #fbf2e3; color: var(--gold-dark); }
.pay-status.is-erro .heart { background: #f6ecea; color: var(--primary); }
.pay-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }
.spinner {
  width: 34px; height: 34px; margin: 6px auto 18px; border-radius: 50%;
  border: 3px solid var(--blush); border-top-color: var(--primary); animation: girar 0.9s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.thanks .script { font-family: var(--font-script); font-weight: 700; font-size: 48px; color: var(--text-strong); line-height: 1.1; }

/* ---------- landing / 404 ---------- */
.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px 16px; }
.center-page .script { font-family: var(--font-script); font-weight: 700; font-size: clamp(48px, 9vw, 80px); color: var(--text-strong); line-height: 1.1; }
.center-page .script span { color: var(--rose); }
.center-page .logo { width: 260px; max-width: 70vw; margin: 0 auto; }
.center-page .sub { font-family: "Jost", var(--font-body); letter-spacing: .4em; text-transform: uppercase; color: var(--text-strong); margin-top: 18px; }
.center-page .rule { width: 70px; height: 2px; background: var(--primary); border: 0; margin: 18px auto; }
.center-page .tagline { font-family: "Jost", var(--font-body); letter-spacing: .3em; text-transform: uppercase; font-size: 13px; line-height: 2.1; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
  .ceremony, .checkout { grid-template-columns: 1fr; }
  .ceremony.invertido .photo { order: 0; }
  .summary { position: static; order: -1; }
}
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; box-shadow: var(--shadow); padding: 8px 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a, .navbar.transparent .nav-links a { color: var(--text); padding: 14px 24px; }
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 32px; }
  .lead { font-size: 16.5px; }
  .couple { gap: 12px; }
  .couple .amp { font-size: 40px; }
  .countdown { gap: 8px; }
  .countdown div { min-width: 68px; padding: 10px 4px; }
  .countdown strong { font-size: 24px; }
  .map { height: 280px; }
  .gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .gift .body { padding: 12px; }
  .gift h3 { font-size: 14.5px; }
  .gift .price { font-size: 18px; }
  .gift .btn { padding: 0 10px; font-size: 12.5px; }
  .panel { padding: 22px 18px; }
  .panel.summary { padding: 0; }
  .summary .body { padding: 20px 18px; }
  .hide-sm { display: none; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .gifts { grid-template-columns: 1fr; }
}
