/* Paiol — site styles. Colors, spacing, radii, shadows and font families come from tokens.css (Paiol design system). */
:root {
  --tracking-tight: -.03em;
  --tracking-display: -.04em;
  --eyebrow-size: 11px;
  --eyebrow-tracking: .28em;
  --ease-standard: cubic-bezier(.2, .7, .2, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --nav-h: 64px;
  --gutter: 20px;
  --max: 1184px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--surface-page); color: var(--text-body); font-family: var(--font-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 10px 16px; background: var(--surface-inverse); color: var(--text-inverse); border-radius: var(--radius-md); font-weight: 600; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: calc(var(--nav-h) + 8px); }

/* ---------- Type (Heading, Eyebrow) ---------- */
.rule { width: 40px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 20px; }
.dot { color: var(--accent); }
.h-hero { font: 800 72px/76px var(--font-display); letter-spacing: var(--tracking-display); color: var(--text-strong); text-wrap: balance; }
.h-section { font: 800 48px/52px var(--font-display); letter-spacing: var(--tracking-display); color: var(--text-strong); text-wrap: balance; }
.h-card { font: 700 32px/40px var(--font-display); letter-spacing: var(--tracking-display); color: var(--text-strong); text-wrap: balance; }
.h-item { font: 700 24px/32px var(--font-display); letter-spacing: var(--tracking-tight); color: var(--text-strong); }
.num { display: block; font: 800 14px/1 var(--font-display); color: var(--accent); margin-bottom: 8px; }
.inverse .h-hero, .inverse .h-section, .inverse .h-card, .inverse .h-item { color: var(--text-inverse); }
.eyebrow { font: 500 var(--eyebrow-size)/1.4 var(--font-body); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--text-muted); }
.eyebrow .n { margin-right: 1em; }
.inverse .eyebrow { color: rgba(248, 249, 251, .7); }
.lead { font-size: 18px; line-height: 28px; color: var(--text-muted); }
.inverse .lead { color: rgba(248, 249, 251, .74); }
.body { font-size: 16px; line-height: 24px; color: var(--text-body); }
.inverse .body { color: rgba(248, 249, 251, .78); }

/* ---------- Button ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: var(--radius-md); border: 1px solid transparent; font: 600 14px/1 var(--font-display); cursor: pointer; white-space: nowrap; transition: background var(--duration-fast) var(--ease-standard), transform var(--duration-fast); }
.btn:active { transform: scale(.98); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-inverse { background: var(--paiol-branco-gelo); color: var(--text-strong); }
.btn-inverse:hover { background: #fff; }
.btn-outline { background: transparent; color: var(--text-strong); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-sunken); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Navigation (Tabs pattern) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface-page); }
.nav-bar { display: flex; align-items: stretch; gap: 40px; min-height: var(--nav-h); border-bottom: 1px solid var(--border-strong); }
.nav-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 26px; width: auto; }
.nav-tabs { display: flex; gap: 28px; margin: 0 0 -1px auto; padding: 0; list-style: none; align-items: flex-end; }
.nav-tabs a { display: block; padding: 12px 0; border-bottom: 2px solid transparent; font: 500 14px/1 var(--font-display); color: var(--text-muted); transition: color var(--duration-fast); }
.nav-tabs a:hover { color: var(--text-strong); }
.nav-tabs a[aria-current="location"] { font-weight: 600; color: var(--text-strong); border-bottom-color: var(--accent); }
.nav-cta { display: flex; align-items: center; }
.nav-toggle { display: none; margin-left: auto; align-self: center; width: 44px; height: 44px; align-items: center; justify-content: center; padding: 0; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--surface-card); color: var(--text-strong); cursor: pointer; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-panel { display: none; }
.nav-panel ul { list-style: none; margin: 0; padding: 4px 0 0; }
.nav-panel li a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--border-default); font: 600 17px/1.2 var(--font-display); color: var(--text-strong); }
.nav-panel li a[aria-current="location"]::after { content: "."; color: var(--accent); font-weight: 800; }
.nav-panel .btn { margin: 20px 0 24px; }

/* ---------- Hero ---------- */
.inverse { background: var(--surface-inverse); color: var(--text-inverse); }
.hero { overflow: hidden; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 24px 40px; padding-top: 72px; }
.hero-copy { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; padding-bottom: 96px; }
.hero-copy .lead { max-width: 580px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-art { flex: 1 1 320px; min-width: 0; display: flex; justify-content: flex-end; align-items: flex-end; margin-right: calc(-1 * var(--gutter)); }
.hero-art svg { width: 100%; max-width: 520px; height: auto; }

/* ---------- Principles (ListItem) ---------- */
.principles { display: flex; flex-wrap: wrap; gap: 10px 16px; padding-block: 40px; }
.principles > li { flex: 1 1 280px; min-width: 0; }
.list-clean { list-style: none; margin: 0; padding: 0; }
.li-num { display: flex; gap: 12px; align-items: stretch; }
.li-num .idx { min-width: 44px; display: grid; place-items: center; font: 500 11px/1 var(--font-body); color: var(--text-muted); background: var(--surface-sunken); border-radius: var(--radius-sm); }
.li-num .txt { flex: 1; padding: 10px 20px; background: var(--surface-sunken); border-radius: var(--radius-sm); font: 500 14px/1.4 var(--font-body); color: var(--text-strong); }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.bordered-top { border-top: 1px solid var(--border-strong); }
.bordered-bottom { border-bottom: 1px solid var(--border-strong); }
.bg-card { background: var(--surface-card); }
.bg-sunken { background: var(--surface-sunken); }
.stack { display: flex; flex-direction: column; }
.gap-48 { gap: 48px; }
.split-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 64px; }
.split-head > * { flex: 1 1 400px; min-width: 0; }

/* Card */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }
.card { flex: 1 1 440px; min-width: 0; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.card.inverse { background: var(--surface-inverse); color: var(--text-inverse); border-color: transparent; }
.card .li-num + .li-num { margin-top: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface-card); color: var(--text-strong); font: 500 13px/1 var(--font-body); }
.card-foot { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; border-top: 1px solid var(--border-inverse); }
.card-foot strong { font: 700 18px/24px var(--font-display); color: var(--text-inverse); }
.card-foot p { font-size: 15px; line-height: 22px; color: rgba(248, 249, 251, .78); }

/* Foundations */
.pillars { display: flex; flex-wrap: wrap; gap: 28px 24px; }
.pillar { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 14px; padding-top: 24px; border-top: 1px solid var(--border-strong); }
.pillar svg { width: 28px; height: 28px; stroke: var(--text-strong); }

/* How + Who */
.media-row { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 64px; }
.media-row.reverse { flex-wrap: wrap-reverse; }
.art-panel { flex: 1 1 400px; min-width: 0; width: 100%; max-width: 520px; aspect-ratio: 4 / 3; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-sunken); border: 1px solid var(--border-default); }
.art-panel svg { width: 100%; height: 100%; }
.media-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.steps { display: flex; flex-direction: column; gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-xs); background: var(--surface-muted); color: var(--text-strong); font: 600 11px/1 var(--font-body); letter-spacing: .04em; margin-bottom: 4px; }
.photo { flex: 1 1 340px; min-width: 0; width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 55%; border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.who-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.who-copy .lead { color: var(--text-body); max-width: 560px; }

/* ---------- Contact ---------- */
.contact-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 48px 64px; padding-block: 112px; }
.contact-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact-copy .lead { max-width: 480px; }
.contact-copy .alt { font-size: 15px; line-height: 22px; color: rgba(248, 249, 251, .74); }
.contact-copy .alt a { color: var(--text-inverse); text-decoration: underline; text-underline-offset: 3px; }
.contact-art { width: 100%; max-width: 420px; height: auto; margin-top: 24px; }
.form-card { flex: 1 1 480px; min-width: 0; background: var(--surface-card); color: var(--text-body); border-radius: var(--radius-lg); padding: 32px; }
.form { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.row > .field { flex: 1 1 200px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font: 500 13px/1.3 var(--font-body); color: var(--text-strong); }
.input, .textarea { width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--border-strong); background: var(--surface-card); font: 400 14px/1 var(--font-body); color: var(--text-strong); transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.textarea { height: auto; min-height: 112px; padding: 12px 14px; line-height: 20px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.input:focus, .textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.field.has-error .input { border-color: var(--danger-500); }
.hint, .error { font: 400 12px/1.4 var(--font-body); color: var(--text-muted); }
.error { color: var(--danger-500); }
.error:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.radios { display: flex; flex-direction: column; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font: 400 14px/1.3 var(--font-body); color: var(--text-strong); }
.choice input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0; display: grid; place-items: center; border: 1.5px solid var(--border-strong); background: var(--surface-card); cursor: pointer; transition: background var(--duration-fast), border-color var(--duration-fast); }
.choice input[type="radio"] { border-radius: 50%; }
.choice input[type="radio"]::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--duration-fast); }
.choice input[type="radio"]:checked { border-color: var(--accent); }
.choice input[type="radio"]:checked::after { transform: scale(1); }
.choice input[type="checkbox"] { border-radius: var(--radius-xs); }
.choice input[type="checkbox"]::after { content: ""; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg) scale(0); }
.choice input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.choice input[type="checkbox"]:checked::after { transform: translateY(-1px) rotate(45deg) scale(1); }
.choice input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { align-items: flex-start; }
.consent input { margin-top: 1px; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.alert { padding: 12px 16px; border-radius: var(--radius-md); background: var(--danger-50); color: var(--text-strong); font-size: 14px; line-height: 20px; }
.alert a { text-decoration: underline; }
.fine { font-size: 12px; line-height: 18px; color: var(--text-muted); }
.sent { display: flex; flex-direction: column; gap: 16px; padding-block: 8px; }
.form-card .h-card { color: var(--text-strong); }
.form-card .body { color: var(--text-body); }
[hidden] { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-inverse); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 20px; font-size: 13px; color: rgba(248, 249, 251, .7); }
.footer-row img { height: 22px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--text-inverse); }

/* ---------- Privacy page ---------- */
.doc { max-width: 760px; padding-block: 72px 96px; display: flex; flex-direction: column; gap: 20px; }
.doc h2 { font: 700 24px/32px var(--font-display); letter-spacing: var(--tracking-tight); color: var(--text-strong); margin-top: 20px; }
.doc p, .doc li { font-size: 16px; line-height: 26px; color: var(--text-body); }
.doc ul { margin: 0; padding-left: 20px; }
.doc a { color: var(--text-strong); text-decoration: underline; }
.todo { background: var(--coral-50); color: var(--text-strong); padding: 0 4px; border-radius: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 899px) {
  .nav-tabs, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-bar { gap: 16px; }
  .nav-panel.is-open { display: block; }
}
@media (max-width: 759px) {
  .nav-logo img { height: 22px; }
  .h-hero { font-size: 48px; line-height: 52px; }
  .h-section { font-size: 32px; line-height: 40px; }
  .h-card { font-size: 24px; line-height: 32px; }
  .lead { font-size: 16px; line-height: 25px; }
  .hero-grid { padding-top: 40px; }
  .hero-copy { gap: 20px; padding-bottom: 8px; }
  .hero-art svg { max-height: 56vw; }
  .principles { padding-block: 28px; }
  .section { padding-block: 56px; }
  .card { padding: 24px; }
  .contact-grid { padding-block: 64px; }
  .contact-art { display: none; }
  .form-card { padding: 20px; }
  .doc { padding-block: 48px 72px; }
}
