/* Página inicial da Nina Memories. Usa as cores e botões de style.css. */
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body.site { overflow-x: hidden; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.site :focus-visible { outline: 3px solid var(--olive); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--brown); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.skip:focus { top: 12px; }
.ico, .btn .ico { width: 20px; height: 20px; flex: none; }
.ico.big { width: 36px; height: 36px; }
.ico.heart { width: 18px; height: 18px; color: var(--brown); vertical-align: -2px; }
.center { text-align: center; }
.btn.light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.light:hover { background: #fff; }

/* ramos de oliveira decorativos */
.leaf { position: absolute; width: 80px; height: 200px; color: var(--olive); opacity: .22; pointer-events: none; }

/* ---------- topo ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244, 236, 225, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown-d); flex: none; }
.site-brand img { width: 44px; height: 44px; border-radius: 50%; }
.site-brand span { font-family: var(--serif); font-size: 23px; letter-spacing: .04em; }
.site-brand i { font-family: var(--script); font-style: normal; color: var(--brown); font-size: 21px; }
.site-nav { display: none; gap: 4px; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--brown-l); color: var(--brown-d); }
.head-cta { min-height: 40px; }
@media (min-width: 960px) { .site-nav { display: flex; } }
@media (max-width: 380px) { .site-brand span { font-size: 20px; } .site-brand i { font-size: 18px; } .head-cta { padding: 0 12px; font-size: 13px; } }

/* ---------- abertura ---------- */
.hero { position: relative; padding: 28px 0 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-script { font-size: 26px; color: var(--olive); }
.hero h1 { font-size: clamp(36px, 9.5vw, 60px); line-height: 1.04; margin: 6px 0 14px; letter-spacing: -.01em; }
.lead { font-size: 18px; color: var(--ink-soft); line-height: 1.6; max-width: 34em; }
.lead em { font-style: italic; color: var(--brown-d); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.big-cta { min-height: 54px; padding: 0 26px; font-size: 17px; flex: 1 1 200px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-soft); font-weight: 600; font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ico { color: var(--olive); }
.leaf-hero-l { left: -22px; top: 40px; transform: rotate(-18deg); }
.leaf-hero-r { right: -18px; bottom: -10px; transform: rotate(160deg); }

/* porta da geladeira com os ímãs */
.fridge {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 26px 22px 64px;
  border-radius: 26px; background: linear-gradient(100deg, #E9E4DC 0%, #F7F5F1 42%, #ECE8E1 70%, #E2DCD3 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), inset 0 -10px 30px rgba(62, 42, 30, .06), 0 24px 50px -24px rgba(62, 42, 30, .35);
}
.fridge::before { content: ''; position: absolute; left: 10px; top: 22%; width: 6px; height: 56%; border-radius: 6px; background: linear-gradient(90deg, #d6cfc4, #f4f1ec); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.fridge-note { position: absolute; right: 24px; bottom: 14px; margin: 0; font-size: 24px; color: var(--brown); }

/* ímã: a foto ocupa o quadrado todo (sem borda branca), com brilho e sombra de objeto */
.magnet {
  position: relative; border-radius: 5px; overflow: hidden; aspect-ratio: 1; background: var(--brown-l);
  transform: translateY(var(--y, 0)) rotate(var(--r, 0deg));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 2px 1px rgba(0, 0, 0, .1), 0 14px 22px -8px rgba(62, 42, 30, .45);
  transition: transform .25s ease;
}
.magnet img { width: 100%; height: 100%; object-fit: cover; }
.magnet::after { content: ''; position: absolute; inset: 0; background: linear-gradient(140deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 38%); pointer-events: none; }
@media (hover: hover) { .magnet:hover { transform: translateY(calc(var(--y, 0px) - 4px)) rotate(0deg) scale(1.04); } }

@media (min-width: 880px) {
  .hero { padding: 56px 0 80px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-points { grid-template-columns: 1fr; }
  .big-cta { flex: 0 1 auto; }
  .fridge { gap: 22px; padding: 36px 34px 64px; }
}

/* ---------- seções ---------- */
.band { position: relative; padding: 64px 0; }
.band.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 32px; }
.sec-head .script, .events-text .script, .contact .script { font-size: 28px; line-height: 1.3; color: var(--olive); }
.site h2 { font-size: clamp(30px, 6.5vw, 44px); line-height: 1.1; margin: 4px 0 10px; }
.sec-sub { color: var(--ink-soft); font-size: 17px; margin: 0 auto; max-width: 36em; }
@media (min-width: 880px) { .band { padding: 88px 0; } .sec-head { margin-bottom: 44px; } }

/* como funciona */
.how-steps { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.how-step {
  position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px 20px 92px;
  box-shadow: var(--shadow); min-height: 120px;
}
.how-n { position: absolute; left: 20px; top: 20px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brown-l); color: var(--brown); font: 700 26px var(--serif); }
.how-ico { display: none; }
.how-step h3 { font-size: 22px; margin: 0 0 4px; }
.how-step p { margin: 0; color: var(--ink-soft); font-size: 15px; }
@media (min-width: 720px) { .how-steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .how-steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .how-step { padding: 26px 22px; text-align: center; }
  .how-n { left: auto; top: auto; width: 34px; height: 34px; font-size: 18px; margin: 0 auto -6px; background: var(--brown); color: #fff; position: relative; z-index: 1; }
  .how-ico { display: block; width: 92px; height: 92px; margin: 0 auto 14px; padding: 16px; border-radius: 50%; background: var(--brown-l); fill: none; stroke: var(--brown); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
  .how-ico .fill { fill: var(--brown); stroke: none; }
}

/* exemplos */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
.gallery figure { margin: 0; text-align: center; }
.gallery .magnet { margin-bottom: 14px; }
.gallery figcaption { font-family: var(--script); font-size: 22px; color: var(--brown); line-height: 1.2; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 40px 36px; } .gallery figcaption { font-size: 26px; } }

/* eventos: faixa escura para dar destaque */
.events { position: relative; overflow: hidden; padding: 64px 0; background: #3A271B; color: #F3E9DC; }
.events::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 60% at 85% 10%, rgba(212, 162, 118, .18), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgba(174, 179, 141, .14), transparent 60%); pointer-events: none; }
.events h2 { color: #F6E7D2; }
.events .script { color: #C9CDA9 !important; }
.events .lead { color: #E3D3C1; }
.events-grid { position: relative; display: grid; gap: 36px; align-items: center; }
.events-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.events-photos img { width: 100%; object-fit: cover; border-radius: 16px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.ev-main { grid-row: 1 / 3; height: 100%; }
.ev-a, .ev-b { aspect-ratio: 4 / 3; height: auto; }
.ev-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.ev-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ev-list .ico { color: #C9CDA9; margin-top: 2px; }
.leaf-ev { right: -14px; top: -20px; color: #C9CDA9; opacity: .18; transform: rotate(200deg); }
@media (min-width: 880px) { .events { padding: 96px 0; } .events-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* valores */
.prices { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
.price-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 30px 22px 22px; box-shadow: var(--shadow);
}
.price-card h3 { font-size: 28px; margin: 0; }
.price-card p { margin: 0; }
.price-qty { color: var(--ink-soft); }
.price-qty b { font-size: 20px; color: var(--ink); }
.price-value { font: 700 46px/1.1 var(--serif); color: var(--brown); margin: 8px 0 0 !important; }
.price-unit { color: var(--muted); font-size: 14px; }
.price-save.soft { color: var(--muted); background: transparent; }
.price-save { margin: 12px 0 18px !important; font-weight: 700; font-size: 14px; color: var(--olive); background: var(--olive-l); padding: 4px 14px; border-radius: 999px; }
.price-card .btn { margin-top: auto; }
.price-card.best { border: 2px solid var(--brown); background: #fff; }
.price-badge { position: absolute; top: -13px; background: var(--brown); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 4px 14px; border-radius: 999px; }
@media (min-width: 760px) { .prices { grid-template-columns: repeat(3, 1fr); align-items: stretch; } .price-card.best { transform: translateY(-8px); } }
.pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin: 28px auto 0; color: var(--ink-soft); font-size: 14px; text-align: center; }

/* dúvidas */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 600 26px var(--serif); color: var(--brown); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* contato */
.contact { overflow: hidden; }
.leaf-ct-l { left: -16px; bottom: 10px; transform: rotate(-12deg); }
.leaf-ct-r { right: -16px; top: 20px; transform: rotate(168deg); }
.contact-cards { display: grid; gap: 16px; margin-top: 28px; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px 20px 22px; box-shadow: var(--shadow);
  transition: transform .15s;
}
.contact-card:hover { transform: translateY(-3px); }
.contact-card .ico.big { color: var(--brown); margin-bottom: 4px; }
.wa-card .ico.big { color: #25D366; }
.cc-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.contact-card b { font: 700 26px var(--serif); color: var(--brown-d); margin-bottom: 12px; }
@media (min-width: 640px) { .contact-cards { grid-template-columns: 1fr 1fr; } }

/* rodapé */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 28px; background: var(--paper); }
.foot-row { display: grid; gap: 16px; justify-items: center; text-align: center; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.foot-nav a { color: var(--ink-soft); font-weight: 600; font-size: 15px; text-decoration: none; padding: 6px 0; }
.foot-nav a:hover { color: var(--brown); text-decoration: underline; }
.foot-note { margin: 0; font-size: 13px; color: var(--muted); }
@media (min-width: 880px) { .foot-row { grid-template-columns: auto 1fr auto; text-align: left; } .foot-nav { justify-content: center; } }

/* atalhos fixos */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1.25fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 247, 241, .96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .25s ease;
}
.mobile-cta.on { transform: none; }
.mobile-cta .btn { min-height: 50px; padding: 0 12px; font-size: 15px; }
.float-wa { display: none; }
@media (max-width: 879px) { body.site { padding-bottom: 76px; } }
@media (min-width: 880px) {
  .mobile-cta { display: none; }
  .float-wa {
    position: fixed; right: 24px; bottom: 24px; z-index: 30; display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff; text-decoration: none; font-weight: 700; padding: 14px 20px; border-radius: 999px;
    box-shadow: 0 12px 30px -10px rgba(62, 42, 30, .55); transition: transform .15s, background .15s;
  }
  .float-wa:hover { background: #1EBE5A; transform: translateY(-2px); }
  .float-wa .ico { width: 22px; height: 22px; }
}

/* cadeado do menu e janela da área da produção */
.head-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lock-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; color: var(--brown); cursor: pointer; transition: background .15s, border-color .15s; }
.lock-btn:hover { background: var(--brown-l); border-color: var(--brown); }
.admin-dlg { border: 0; border-radius: 22px; padding: 26px 24px 22px; width: min(92vw, 380px); background: var(--paper); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.admin-dlg::backdrop { background: rgba(42, 28, 18, .55); }
.admin-dlg form { display: grid; gap: 10px; text-align: center; }
.admin-dlg .ico.big { margin: 0 auto; color: var(--brown); }
.admin-dlg h2 { font-size: 28px; margin: 0; }
.admin-dlg p { margin: 0; }
.admin-dlg .field { text-align: left; }
.dlg-err { color: var(--danger); font-weight: 700; font-size: 14px; }
.dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
@media (max-width: 380px) { .lock-btn { width: 36px; height: 36px; } }
/* celular: o "Criar meus ímãs" já está grande na abertura e na barra fixa de baixo; no topo ficam logo e cadeado */
@media (max-width: 480px) { .head-cta { display: none; } }
