html, body { scroll-behavior: smooth; }
[id] { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { html, body { scroll-behavior: auto; } }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #FFFBF2; font-family: 'DM Sans', system-ui, sans-serif; color: #0B3B3B; }
a { color: #045E5E; }
a:hover { color: #0B3B3B; }
input, textarea, button { font-family: inherit; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #FF8243; outline-offset: 1px; }

/* Navegação */
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding: 20px clamp(20px, 5vw, 72px); background: #FFFBF2; }
.nav__brand { font-family: 'Fraunces', serif; font-size: 24px; font-weight: 600; color: #045E5E; }
.nav__links { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; font-weight: 500; }
.nav__links a { text-decoration: none; padding: 10px 0; }

/* Formulário */
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { font-weight: 700; font-size: 16px; }
.field input[type=text], .field input[type=number], .field textarea { min-height: 52px; padding: 0 16px; border: 2px solid #0B3B3B; border-radius: 14px; font-size: 17px; background: #FFFFFF; color: #0B3B3B; width: 100%; }
.field textarea { padding: 14px 16px; resize: vertical; }
.field input.invalid, .field textarea.invalid { border-color: #B00020; }
.choice { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border: 2px solid #0B3B3B; border-radius: 14px; background: #FFFFFF; font-size: 17px; cursor: pointer; }
.choice input { width: 22px; height: 22px; accent-color: #045E5E; margin: 0; }
.field select { min-height: 52px; padding: 0 16px; border: 2px solid #0B3B3B; border-radius: 14px; font-size: 17px; background: #FFFFFF; color: #0B3B3B; width: 100%; }
.family-panel { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.family-panel legend { font-weight: 700; font-size: 16px; padding: 0; margin-bottom: 14px; }
.member { display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; border: 2px solid #0B3B3B; border-radius: 14px; padding: 14px 16px; }
.member__name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 20px; }
.member__choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice--sm { flex: 1 1 120px; min-height: 48px; font-size: 16px; }
.member__diet { min-height: 48px; padding: 0 14px; border: 2px solid #0B3B3B; border-radius: 12px; font-size: 16px; width: 100%; background: #FFFBF2; color: #0B3B3B; }
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; text-align: center; font-weight: 500; min-height: 1.6em; }
.form-status.error { color: #B00020; }
button[disabled] { opacity: .6; cursor: wait; }

/* Animação inicial */
.intro { position: fixed; inset: 0; z-index: 100; background: #069494; display: flex; align-items: center; justify-content: center; transition: opacity .7s ease; }
.intro[hidden] { display: none; }
.intro.is-leaving { opacity: 0; pointer-events: none; }
.intro video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #069494; }
.intro__fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; color: #FFFFFF; padding: 24px; }
.intro__eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.intro__names { font-family: 'Fraunces', serif; font-weight: 600; font-size: clamp(44px, 9vw, 96px); line-height: 1; }
.intro__date { font-family: 'Fraunces', serif; font-style: italic; font-size: clamp(20px, 3vw, 30px); }
.intro__skip { position: absolute; right: 20px; bottom: 20px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: #FFFBF2; color: #0B3B3B; font-weight: 700; font-size: 16px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .intro { transition: none; } }
