:root{
  --bg:#07173e;
  --bg-soft:#0f2257;
  --bg-card:rgba(11,30,81,.78);
  --line:rgba(255,255,255,.12);
  --text:#f6f7fb;
  --muted:#d2daf2;
  --gold:#e5b65d;
  --gold-strong:#f8cf73;
  --gold-soft:rgba(229,182,93,.15);
  --white-soft:rgba(255,255,255,.08);
  --radius:28px;
  --shadow:0 24px 70px rgba(0,0,0,.38);
  --max:1240px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,sans-serif;
  color:var(--text);
  background:radial-gradient(circle at top left,#18357f 0,#0c1c49 35%,#07173e 65%,#050f2b 100%);
  min-height:100vh;
  overflow-x:hidden;
}
body.is-locked{overflow:hidden;height:100vh}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
img{max-width:100%;display:block}
.bg-orb{position:fixed;pointer-events:none;border-radius:50%;filter:blur(60px);opacity:.3;z-index:-2}
.orb-a{width:28rem;height:28rem;background:#294ec4;top:-8rem;left:-10rem}
.orb-b{width:22rem;height:22rem;background:#dba243;bottom:-6rem;right:-6rem}
.bg-grid{position:fixed;inset:0;background-image:linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);background-size:34px 34px;mask-image:radial-gradient(circle at center, black 0, rgba(0,0,0,.85) 40%, transparent 85%);z-index:-3}
.site-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem clamp(1rem,3vw,2rem);backdrop-filter:blur(18px);background:rgba(7,23,62,.55);border-bottom:1px solid rgba(255,255,255,.07)}
.brand{display:flex;align-items:center;gap:.8rem;font-weight:700}
.brand-mark{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,var(--gold-strong),#fff1c7);color:#10275f;box-shadow:0 8px 18px rgba(229,182,93,.35)}
.brand small{display:block;font-size:.72rem;opacity:.7;font-weight:500;margin-top:.1rem}
.top-nav{display:flex;gap:1.2rem;flex-wrap:wrap}
.top-nav a{font-size:.95rem;color:var(--muted)}
.top-nav a:hover,.mini-action:hover{color:#fff}
.top-actions{display:flex;gap:.55rem}
.circle-btn{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:#fff;border-radius:999px;width:42px;height:42px;cursor:pointer}
.opening{position:fixed;inset:0;z-index:50;display:grid;place-items:center;padding:1.25rem;background:radial-gradient(circle at 50% 20%, rgba(255,219,140,.18), transparent 35%), linear-gradient(180deg,rgba(3,9,25,.86),rgba(3,9,25,.94));backdrop-filter:blur(10px);transition:opacity .8s ease, visibility .8s ease}
.opening.done{opacity:0;visibility:hidden}
.opening-inner{width:min(100%,760px);text-align:center;padding:2rem;border:1px solid rgba(255,255,255,.11);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border-radius:36px;box-shadow:var(--shadow)}
.opening-overline,.eyebrow{letter-spacing:.2em;text-transform:uppercase;font-size:.76rem;color:var(--gold-strong);margin:0 0 .7rem}
.opening h1,.section-heading h3,.hero h2{font-family:'Cormorant Garamond',serif;line-height:.95;margin:.3rem 0 1rem}
.opening h1{font-size:clamp(2.6rem,6.5vw,5rem)}
.opening h1 span,.hero h2 em,.section-heading em{color:var(--gold-strong);font-style:normal}
.opening p{max-width:38rem;margin:0 auto 1.2rem;color:var(--muted);font-size:1.06rem}
.opening-actions{display:flex;justify-content:center;gap:.9rem;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;border-radius:999px;padding:.95rem 1.4rem;font-weight:700;border:none;cursor:pointer;transition:transform .2s ease, box-shadow .2s ease, background .2s ease}
.btn:hover{transform:translateY(-1px)}
.btn-gold{background:linear-gradient(135deg,var(--gold-strong),#d49b2c);color:#13275d;box-shadow:0 18px 35px rgba(229,182,93,.28)}
.btn-outline{background:transparent;color:#fff;border:1px solid rgba(255,255,255,.16)}
.btn-glass{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.14)}
.btn.wide{width:100%}
.envelope-scene{position:relative;width:min(72vw,340px);height:220px;margin:0 auto 1.5rem;perspective:1000px}
.envelope-shadow{position:absolute;left:16%;right:16%;bottom:10px;height:20px;border-radius:50%;background:rgba(0,0,0,.45);filter:blur(8px)}
.envelope-back,.envelope-front,.envelope-flap,.envelope-letter{position:absolute;left:50%;transform:translateX(-50%);width:290px;max-width:90%;border-radius:14px}
.envelope-back{bottom:28px;height:138px;background:linear-gradient(180deg,#1d3b90,#10265d)}
.envelope-letter{bottom:66px;height:126px;background:linear-gradient(180deg,#fffaf0,#f0e6ca);color:#0d2052;display:grid;place-items:center;gap:.1rem;font-family:'Cormorant Garamond',serif;font-size:2rem;box-shadow:0 14px 28px rgba(0,0,0,.15);transition:transform .9s ease}
.envelope-letter small{font-size:.9rem;letter-spacing:.2em;text-transform:uppercase;font-family:'Inter',sans-serif}
.envelope-front{bottom:28px;height:138px;background:linear-gradient(180deg,#2448b4,#0d2052);clip-path:polygon(0 0,100% 0,100% 100%,0 100%,0 0,50% 58%,100% 0);}
.envelope-flap{bottom:94px;height:92px;background:linear-gradient(180deg,#2f56cb,#16337f);clip-path:polygon(0 100%,50% 0,100% 100%);transform:translateX(-50%) rotateX(0);transform-origin:50% 100%;transition:transform .9s ease}
.envelope-seal{position:absolute;left:50%;bottom:82px;transform:translateX(-50%);width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,#f9df9a,#d59b2d);color:#17316e;display:grid;place-items:center;font-weight:800;box-shadow:0 8px 18px rgba(229,182,93,.4)}
.opening.opened .envelope-flap{transform:translateX(-50%) rotateX(180deg)}
.opening.opened .envelope-letter{transform:translateX(-50%) translateY(-28px)}
main{width:min(var(--max),calc(100% - 2rem));margin:0 auto;padding-bottom:4rem}
.hero{padding:2.2rem 0 1rem}
.hero-layout{display:grid;grid-template-columns:1.02fr .98fr;gap:1.6rem;align-items:center}
.hero-copy,.photo-card,.detail-card,.message-card,.timeline-list article,.gallery-card,.rsvp-form-card,.admin-card{background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.09);box-shadow:var(--shadow)}
.hero-copy{padding:clamp(1.3rem,3vw,2.4rem);border-radius:34px}
.hero h2{font-size:clamp(2.8rem,6vw,5.2rem)}
.hero-text{font-size:1.08rem;line-height:1.8;color:var(--muted);max-width:40rem}
.hero-chips{display:flex;gap:.7rem;flex-wrap:wrap;margin:1rem 0 1.2rem}
.hero-chips span,.mini-action{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);padding:.8rem 1rem;border-radius:999px;color:#fff;font-size:.93rem}
.hero-buttons{display:flex;gap:.8rem;flex-wrap:wrap;margin-bottom:1.2rem}
.countdown-shell{padding:1rem 1rem .85rem;border-radius:24px;background:rgba(7,16,49,.48);border:1px solid rgba(255,255,255,.09)}
.countdown-label{font-size:.86rem;color:var(--gold-strong);margin-bottom:.65rem}
.countdown{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;text-align:center}
.countdown div{padding:.8rem .45rem;border-radius:18px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08)}
.countdown strong{display:block;font-size:1.9rem;font-weight:800}
.countdown span{display:block;font-size:.82rem;color:var(--muted);margin-top:.25rem}
.hero-photo{min-width:0}
.photo-card{position:relative;border-radius:38px;overflow:hidden;min-height:720px}
.photo-card img{width:100%;height:100%;object-fit:cover;object-position:center top}
.photo-overlay{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,20,56,.02),rgba(8,20,56,.08) 45%,rgba(8,20,56,.42) 100%)}
.photo-badge{position:absolute;top:20px;right:20px;background:rgba(7,23,62,.68);border:1px solid rgba(255,255,255,.1);padding:.75rem 1rem;border-radius:999px;color:#fff}
.section{padding:1rem 0 0}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}
.section-heading h3{font-size:clamp(2rem,4.5vw,3.4rem);margin:0}
.section-heading p:last-child{color:var(--muted)}
.details .detail-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.detail-card{padding:1.25rem;border-radius:26px}
.detail-icon{font-size:1.7rem;margin-bottom:.6rem}
.detail-card .label{display:inline-block;font-size:.8rem;color:var(--gold-strong);text-transform:uppercase;letter-spacing:.18em;margin-bottom:.5rem}
.detail-card h4{margin:.1rem 0 .25rem;font-size:1.25rem}
.detail-card p{margin:0;color:var(--muted);line-height:1.7}
.utility-row{display:flex;gap:.75rem;flex-wrap:wrap;margin-top:1rem}
.message-card{padding:1.6rem;border-radius:30px;text-align:center}
.message-card blockquote{margin:.8rem auto 1rem;max-width:820px;font-size:clamp(1.5rem,3vw,2.3rem);font-family:'Cormorant Garamond',serif;line-height:1.35}
.signature-line{font-size:1.05rem;color:var(--muted)}
.signature-line span{color:var(--gold-strong);font-family:'Cormorant Garamond',serif;font-size:1.8rem}
.timeline-list{display:grid;gap:1rem}
.timeline-list article{display:grid;grid-template-columns:160px 1fr;gap:1rem;padding:1.2rem;border-radius:24px;align-items:start}
.timeline-time{display:inline-flex;align-items:center;justify-content:center;padding:.85rem 1rem;border-radius:18px;background:var(--gold-soft);color:var(--gold-strong);font-weight:800}
.timeline-list h4{margin:.05rem 0 .35rem;font-size:1.15rem}
.timeline-list p{margin:0;color:var(--muted);line-height:1.7}
.gallery-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:1rem}
.gallery-card{border-radius:28px;overflow:hidden}
.gallery-card img{width:100%;height:100%;object-fit:cover}
.gallery-card figcaption{padding:1rem 1.15rem;color:var(--muted);background:rgba(7,23,62,.65)}
.real-photo-card img{height:740px;object-position:center top}
.concept-card img{height:740px;object-fit:cover}
.rsvp-section{display:grid;grid-template-columns:.9fr 1.1fr;gap:1rem;align-items:start}
.rsvp-copy,.rsvp-form-card,.admin-card{padding:1.4rem;border-radius:30px}
.rsvp-copy p{line-height:1.8;color:var(--muted)}
.rsvp-copy h3{font-size:clamp(2rem,4vw,3.1rem);font-family:'Cormorant Garamond',serif;line-height:1;margin:.3rem 0 1rem}
.rsvp-stats{display:grid;gap:.8rem}
.rsvp-stats div{padding:1rem 1.1rem;border-radius:20px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08)}
.rsvp-stats strong{display:block;font-size:1.4rem;color:#fff}
.rsvp-stats span{color:var(--muted);font-size:.92rem}
form{display:grid;gap:.8rem}
label,legend{font-weight:700;font-size:.95rem}
input,select,textarea{width:100%;padding:1rem 1.05rem;border-radius:18px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.06);color:#fff;outline:none}
input::placeholder,textarea::placeholder{color:#b6c0df}
fieldset{padding:1rem;border-radius:18px;border:1px solid rgba(255,255,255,.12)}
.choice{display:flex;align-items:center;gap:.6rem;padding:.35rem 0;font-weight:500}
.choice input{width:auto;margin:0}
.form-actions{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:.4rem}
.form-notice{margin:.3rem 0 0;color:var(--muted);font-size:.92rem;line-height:1.65}
.admin-top{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem}
.admin-top p{margin:0;color:var(--muted);line-height:1.7;max-width:50rem}
.guest-preview-list{display:grid;gap:.8rem}
.guest-preview-item{padding:1rem 1.1rem;border-radius:18px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.guest-preview-item strong{display:block}
.guest-preview-item span{color:var(--muted);font-size:.92rem}
.footer{width:min(var(--max),calc(100% - 2rem));margin:1rem auto 0;padding:1.2rem 1.3rem 2.2rem;display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap;color:var(--muted)}
.footer-actions{display:flex;gap:.75rem;flex-wrap:wrap}
.floating-rsvp{position:fixed;right:18px;bottom:18px;z-index:18;display:flex;align-items:center;gap:.6rem;padding:.95rem 1.15rem;border-radius:999px;background:linear-gradient(135deg,#1fcb7c,#0aa658);color:#fff;box-shadow:0 18px 40px rgba(0,0,0,.35);font-weight:800}
.floating-rsvp span{white-space:nowrap}
.toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);max-width:min(92vw,540px);background:#101f4d;color:#fff;padding:1rem 1.15rem;border-radius:18px;border:1px solid rgba(255,255,255,.12);box-shadow:var(--shadow);z-index:60;text-align:center}
.reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease}
.reveal.show{opacity:1;transform:none}
@media (max-width:1080px){
  .hero-layout,.rsvp-section,.gallery-grid,.details .detail-grid{grid-template-columns:1fr 1fr}
  .photo-card{min-height:620px}
}
@media (max-width:820px){
  .site-header{padding:.9rem 1rem}
  .top-nav{display:none}
  main,.footer{width:min(var(--max),calc(100% - 1rem))}
  .hero-layout,.rsvp-section,.gallery-grid,.details .detail-grid{grid-template-columns:1fr}
  .timeline-list article{grid-template-columns:1fr}
  .timeline-time{justify-self:start}
  .form-actions{grid-template-columns:1fr}
  .countdown{grid-template-columns:repeat(2,1fr)}
  .real-photo-card img,.concept-card img{height:auto}
}
@media (max-width:560px){
  .opening-inner{padding:1.35rem 1rem}
  .opening p{font-size:1rem}
  .hero-copy{padding:1.2rem}
  .hero h2{font-size:2.7rem}
  .photo-card{min-height:auto}
  .hero-buttons{display:grid;grid-template-columns:1fr}
  .floating-rsvp{left:12px;right:12px;bottom:12px;justify-content:center}
  .floating-rsvp span{font-size:.95rem}
}

/* Aperfeiçoamentos visuais e de acessibilidade */
body{padding-bottom:84px}
#confirmacao{scroll-margin-top:92px}
#detalhes,#mensagem{scroll-margin-top:92px}
[hidden]{display:none!important}
.field-help{display:block;font-size:.78rem;color:#b9c7e8;margin-top:-.38rem}
.guest-stepper{display:grid;grid-template-columns:64px 1fr 64px;align-items:center;gap:1rem;padding:.4rem;border-radius:20px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16)}
.guest-stepper button{width:54px;height:54px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:rgba(255,255,255,.09);color:#fff;font-weight:800;font-size:1.65rem;cursor:pointer;touch-action:manipulation}
.guest-stepper button:hover{background:rgba(248,207,115,.19)}
.guest-stepper button:disabled{opacity:.3;cursor:not-allowed}
.guest-stepper button:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #f8cf73;outline-offset:3px}
.guest-amount{display:flex;align-items:baseline;justify-content:center;gap:.6rem}
.guest-amount output{font-weight:800;font-size:2rem;line-height:1;color:#fff}
.guest-amount span{font-weight:600;font-size:.95rem;color:#ccd5f4}
.rsvp-note{margin-top:1.1rem;padding:1rem 1.2rem;border:1px solid rgba(229,182,93,.25);background:rgba(229,182,93,.08);border-radius:20px;color:#e9edf9;line-height:1.65}
.rsvp-result{border:1px solid rgba(229,182,93,.38);background:rgba(229,182,93,.08);padding:1.15rem;border-radius:20px;display:grid;gap:.8rem}
.rsvp-result strong{font-size:1.25rem;color:#f8cf73}
.rsvp-result p{margin:0;color:#e1e7f8;line-height:1.7}
.btn-whatsapp{color:white;background:#0eaa62}
.form-notice.is-error{color:#ffbbbb}
.form-notice.is-success{color:#a4f0c7}
.rsvp-form-card select,.rsvp-form-card option{color:#172452;background-color:#f4f6fb}
.choice{gap:.8rem;cursor:pointer}
.choice input{width:19px;height:19px;accent-color:#e8b859;flex-shrink:0}
.floating-rsvp{min-height:52px}
@media (max-width:560px){
  .guest-stepper{grid-template-columns:56px 1fr 56px;gap:.4rem}
  .guest-stepper button{width:49px;height:49px}
  .rsvp-section{padding-bottom:2rem}
  .rsvp-form-card{padding:1.1rem}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
