/* v7: refinamentos após crítica; abertura e paleta preservadas. */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root { --font-heading: 'Inter', Arial, sans-serif; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { overflow-wrap: break-word; }
main, section, article, .bento-grid > *, .party-bento > *, .nav-inner > * { min-width: 0; }
[id] { scroll-margin-top: 112px; }
.legible :is(h2,h3,h4), .legible .sub, .legible .section-title > span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -.025em;
  line-height: 1.2;
  text-wrap: balance;
}
.legible :is(.section-header h2,.section-title h2) { font-size: clamp(29px,4.3vw,44px); }
.legible .section-header .sub { color: #A93400; }
.legible :is(.timeline-info h3,.step-card h3) { font-size: clamp(22px,2.8vw,29px); margin-bottom: 16px; }
.legible :is(.bento-pink h3,.bed-text h4,.party-bed h4) { font-size: clamp(21px,2.6vw,27px); }
/* Exceções pedidas nos dois boxes do guia claro. */
.legible .bento-card > h3 { font-family: var(--font-logo); font-weight: 400; font-size: 36px; letter-spacing: normal; }
.after-portal.legible h2 { font-size: clamp(30px,4.8vw,50px); line-height: 1.16; }
.nav-links a, .nav-back, .arch-btn, .btn-portal, .route-btn { min-height: 44px; align-content: center; }
a:focus-visible, summary:focus-visible { outline: 3px solid #9B3900; outline-offset: 5px; }
.party-page :is(a,summary):focus-visible { outline-color: #FFD500; }
.skip-link { position: fixed; top: -100px; left: 16px; padding: 10px 18px; background: #fff; color: #3B470F; z-index: 300; border-radius: 12px; }
.skip-link:focus { top: 12px; }
.nav-brand img { filter: brightness(.65) saturate(1.1); }
footer > img { max-width: 100%; object-fit: contain; }
.nav-brand span { white-space: nowrap; }
.party-page .nav-brand img { filter: brightness(0) invert(1); }
#progresso { position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: #D7166A; transform: scaleX(0); transform-origin: left; z-index: 200; pointer-events: none; }
.party-page #progresso { background: #FFD500; }
.bed-banner, .party-bed { align-items: flex-start; }
.bed-number, .party-bed .num { font-family: var(--font-heading); font-size: 14px; line-height: 1.2; background: #FFF1D6; color: #553C09; border-radius: 999px; padding: 10px 16px; white-space: nowrap; margin-top: 4px; }
.party-bed .num { background: #1E0B14; color: #FFD500; }
.bed-text p, .party-bed p { margin-top: 10px; }
.bed-text .capacity, .party-bed .capacity { font-size: 14px; opacity: .85; }
.dinner-note { margin-top: 16px; padding: 16px 18px; background: #FAF8F5; border-left: 3px solid #D7166A; border-radius: 0 14px 14px 0; }
.timeline-info .dinner-note p { margin-bottom: 0; font-size: 16px; }
.location-section, .care-section { margin-top: 76px; }
.location-section .section-header, .care-section .section-header { margin-top: 0; }
.map-card { background: #fff; color: #1E1B18; border: 1px solid rgba(59,71,15,.12); border-radius: 28px; overflow: hidden; box-shadow: 0 12px 36px rgba(59,71,15,.07); }
.map-figure { margin: 0; background: #F3EFEA; }
.map-figure > a { display: block; }
.map-figure img { display: block; width: 100%; height: auto; }
.map-figure figcaption { padding: 12px 24px; font-size: 14px; color: #5C544D; }
.map-body { padding: 28px 34px 34px; }
.map-body h3 { color: #3B470F; font-size: clamp(23px,3vw,30px); margin-bottom: 12px; }
.map-body address { font-style: normal; font-size: 18px; }
.route-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.route-btn { display: inline-flex; justify-content: center; align-items: center; padding: 13px 24px; border: 1px solid #3B470F; border-radius: 999px; background: #3B470F; color: white; text-decoration: none; font-size: 15px; transition: transform .22s ease, box-shadow .22s ease; }
.route-btn.secondary { color: #3B470F; background: transparent; }
.route-btn:hover { transform: translateY(-3px); box-shadow: 0 7px 16px #3b470f22; }
.access-note { background: #FFF7E7; color: #553C09; padding: 18px 20px; border-radius: 16px; font-size: 16px; }
.map-body .access-pending { margin-top: 16px; font-size: 15px; color: #5C544D; }
.party-page .section-header :is(h2,.sub) { color: white; }
.party-page .section-header .sub, .party-page .section-title > span {
  display: inline-block; color: #FFD500; background: #1E0B14;
  padding: 8px 16px; border-radius: 999px; margin-bottom: 14px;
}
.party-page .footer-copy a { color: #1E0B14 !important; background: #FFD500; padding: 10px 18px; border-radius: 999px; }
.arch-card, .timeline-card, .bento-card, .step-card, .bento-pink, .map-card { box-shadow: none; }
.after-portal, .party-bed { box-shadow: none; }
.party-page :is(.step-card,.bento-pink,.rule-card,.detail-card) { border: 1px solid rgba(30,11,20,.1); }
.party-page .map-body h3 { color: #B50E56; }
.party-page .route-btn { background: #B50E56; border-color: #B50E56; }
.party-page .route-btn.secondary { background: transparent; color: #B50E56; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rule-card { background: #fff; color: #1E1B18; border: 1px solid #3B470F1A; padding: 30px; border-radius: 26px; }
.rule-card h3 { font-size: 22px; color: #3B470F; margin-bottom: 16px; }
.rule-card ul { list-style: none; }
.rule-card li { position: relative; padding-left: 20px; margin-bottom: 13px; font-size: 16px; }
.rule-card li:last-child { margin-bottom: 0; }
.rule-card li::before { content: '•'; position: absolute; left: 0; color: #B50E56; }
.party-page .rule-card h3 { color: #B50E56; }
.detail-card { margin-top: 18px; background: #fff; color: #1E1B18; border-radius: 22px; padding: 20px 26px; border: 1px solid #3B470F1A; }
.detail-card summary { cursor: pointer; min-height: 44px; align-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: #3B470F; }
.party-page .detail-card summary { color: #B50E56; }
.detail-body { padding-top: 16px; }
.detail-body :is(p,ul) { margin-bottom: 14px; }
.detail-body ul { padding-left: 22px; }
.detail-body li { margin-bottom: 8px; }
.pending-note { margin-top: 20px; border: 1px dashed #3B470F55; border-radius: 18px; padding: 18px 22px; font-size: 15px; color: #5C544D; }
.party-page .pending-note { border-color: #ffffff66; color: #fff; }
/* Conteúdo fica visível sem JavaScript. Reveal só é habilitado pelo observador. */
[data-reveal] { transition: opacity var(--reveal-duration,550ms) ease var(--reveal-delay,0ms), transform var(--reveal-duration,550ms) cubic-bezier(.2,.7,.2,1) var(--reveal-delay,0ms); }
[data-reveal="pending"] { opacity: 0; }
[data-motion="heading"][data-reveal="pending"] { transform: translate3d(0,14px,0); }
[data-motion="sequence"][data-reveal="pending"] { transform: translate3d(14px,0,0); }
[data-motion="photo"][data-reveal="pending"], [data-motion="map"][data-reveal="pending"] { transform: none; }
[data-reveal="visible"] { opacity: 1; transform: none; }
.arch-card .arch-media img { transition: transform .85s cubic-bezier(.2,.7,.2,1); }
.arch-card[data-reveal="pending"] .arch-media img { transform: scale(1.035); }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .arch-card[data-reveal="visible"]:hover { transform: translateY(-5px); }
  .arch-card:hover .arch-media img { transform: scale(1.025); }
}
@media (max-width:768px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .navbar { padding: 0 12px; top: 10px; }
  .nav-inner { padding: 10px 14px; gap: 12px; border-radius: 24px; }
  .nav-brand { gap: 5px; flex-shrink: 0; }
  .nav-brand img { height: 20px; }
  .nav-brand span { font-size: clamp(13px,3.8vw,17px); line-height: 1.5; }
  .nav-links { gap: 0; }
  .nav-links .btn-after-pulse { padding: 8px 12px; font-size: 12px; letter-spacing: 0; text-align: center; }
  .nav-back { font-size: 12px; padding: 8px 12px; text-align: center; }
  .hero { padding: 36px 0 40px; }
  .hero-badge, .hero-tag { font-size: 11px; letter-spacing: .07em; padding: 10px 14px; }
  .hero h1 { font-size: clamp(48px,12vw,70px); line-height: 1.15; }
  .party-page .hero h1 { font-size: clamp(54px,14vw,80px); }
  .hero-arch-grid, .arch-grid { gap: 24px; }
  .arch-card { padding: 18px 18px 28px; }
  .arch-media { height: 300px; }
  .section-header { margin: 62px 0 28px; }
  .timeline-card, .step-card, .bento-card, .bento-pink { padding: 26px 22px; }
  .timeline-date { padding-right: 0; }
  .timeline-info p { font-size: 16px; }
  .badge-time { margin: 4px 4px 4px 0; }
  .bed-banner, .party-bed { padding: 26px 22px; gap: 16px; align-items: center; }
  .after-portal { padding: 38px 22px; border-radius: 28px; }
  .after-portal p { font-size: 18px; }
  .btn-portal { width: 100%; padding: 16px; font-size: 13px; justify-content: center; }
  .rules-grid { grid-template-columns: 1fr; }
  .rule-card { padding: 26px 22px; }
  .map-body { padding: 24px 22px; }
  .map-figure figcaption { padding: 12px 20px; }
  .route-actions { flex-direction: column; }
  .route-btn { width: 100%; }
  .location-section, .care-section { margin-top: 60px; }
  .footer-copy a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal="pending"] { opacity: 1; transform: none; }
  .arch-card:hover, .route-btn:hover, .btn-portal:hover { transform: none; }
}
@media print {
  .navbar, #progresso { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .detail-body { display: block; }
}
