/* Site institucional — componentes construídos sobre tokens.css (ver docs/_projeto/04-design-system.md) */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: var(--lh-heading);
    margin: 0 0 var(--space-sm);
    color: var(--color-olive-dark);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { margin: 0 0 var(--space-sm); }

a { color: var(--color-olive-dark); }

img { max-width: 100%; display: block; }

.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;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--color-olive-dark);
    color: #fff; padding: var(--space-xs) var(--space-sm); z-index: 1000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--color-focus);
    outline-offset: 2px;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ---------- Header ---------- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.site-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-olive-dark);
    text-decoration: none;
    white-space: nowrap;
}
.site-logo span { display: block; font-size: 0.6rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-coral); }

.menu-toggle {
    display: inline-flex;
    background: none; border: 2px solid var(--color-olive-dark); border-radius: var(--radius-sm);
    font-size: 1.25rem; padding: 4px 10px; cursor: pointer; color: var(--color-olive-dark);
}

.site-nav {
    display: none;
    align-items: center;
    gap: var(--space-md);
    font-weight: 600;
}
.site-nav a { text-decoration: none; color: var(--color-text); }
.site-nav a[aria-current="page"] { color: var(--color-olive-dark); border-bottom: 2px solid var(--color-coral); }
.site-nav__login { color: var(--color-olive-dark) !important; font-size: var(--fs-small); }
.site-nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-sm);
    position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface);
    padding: var(--space-md); border-bottom: 1px solid var(--color-border);
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }
    .site-nav { display: flex; position: static; padding: 0; border: 0; flex-direction: row; }
}

/* ---------- Botões ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    font-size: var(--fs-body);
    box-shadow: var(--shadow-sticker);
}
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); }
.btn-secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-text); }
.btn-outline { background: transparent; color: var(--color-olive-dark); border: 2px solid var(--color-olive-dark); box-shadow: none; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: var(--fs-small); }
.btn:hover { filter: brightness(0.95); }

/* ---------- Seções ---------- */
.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--color-surface-alt); }
.section-olive { background: var(--color-olive-light); }
.section-header { max-width: 640px; margin: 0 auto var(--space-lg); text-align: center; }
.section-header p { color: var(--color-text-muted); }

/* ---------- Hero ---------- */
.hero { padding: var(--space-2xl) 0 var(--space-xl); }
.hero__inner { display: grid; gap: var(--space-lg); align-items: center; }
.hero__eyebrow { font-family: var(--font-hand); font-size: 1.5rem; color: var(--color-coral); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
@media (min-width: 768px) {
    .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: var(--space-md); grid-template-columns: 1fr; }
@media (min-width: 480px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}
.card--tilt-1 { transform: rotate(var(--tilt-1)); }
.card--tilt-2 { transform: rotate(var(--tilt-2)); }
.card--tilt-3 { transform: rotate(var(--tilt-3)); }
.card--tilt-4 { transform: rotate(var(--tilt-4)); }

/* ---------- Moldura de foto (colagem) ---------- */
.photo-frame {
    background: var(--color-surface);
    padding: 10px 10px 28px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
    border: 3px solid var(--color-coral);
}
.photo-frame img { border-radius: 4px; }
.photo-frame--tilt { transform: rotate(var(--tilt-1)); }

.photo-placeholder {
    aspect-ratio: 4 / 5;
    display: flex; align-items: center; justify-content: center; text-align: center;
    background: var(--color-surface-alt);
    border: 2px dashed var(--color-coral);
    border-radius: 4px;
    color: var(--color-olive-dark);
    font-weight: 700;
    padding: var(--space-md);
}

/* ---------- Selo oval de assinatura ---------- */
.stamp {
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid var(--color-olive-dark); border-radius: var(--radius-pill);
    padding: var(--space-xs) var(--space-md);
    font-family: var(--font-hand); font-size: 1.25rem; color: var(--color-olive-dark);
    transform: rotate(-4deg);
}

/* ---------- Badge ---------- */
.badge {
    display: inline-block; padding: 2px 12px; border-radius: var(--radius-pill);
    background: var(--color-olive-light); color: var(--color-olive-dark);
    font-size: var(--fs-small); font-weight: 700;
}

/* ---------- Acordeão (FAQ) ---------- */
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-item summary {
    cursor: pointer; padding: var(--space-sm) 0; font-family: var(--font-heading); font-weight: 700;
    font-size: 1.1rem; color: var(--color-olive-dark); list-style: none; display: flex; justify-content: space-between; gap: var(--space-sm);
}
.accordion-item summary::-webkit-details-marker { display: none; }
.accordion-item summary::after { content: '+'; font-size: 1.4rem; }
.accordion-item[open] summary::after { content: '−'; }
.accordion-item p { padding-bottom: var(--space-sm); color: var(--color-text-muted); }

/* ---------- Formulários ---------- */
.form-field { margin-bottom: var(--space-md); }
.form-field label { display: block; font-weight: 700; margin-bottom: 4px; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--color-border);
    border-radius: var(--radius-md); font: inherit; background: var(--color-surface);
}
.form-field small { color: var(--color-text-muted); font-size: var(--fs-small); }
.form-consent { display: flex; gap: 8px; align-items: flex-start; font-size: var(--fs-small); }
.honeypot-field { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Alertas ---------- */
.alert { padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); margin: var(--space-md) 0; }
.alert-success { background: #E6F4E1; color: #33502B; border: 1px solid var(--color-olive-light); }
.alert-error { background: #FBE4E1; color: #8C2F27; border: 1px solid var(--color-coral); }

/* ---------- Torn paper divider ---------- */
.torn-divider {
    height: 26px;
    background: var(--color-surface);
    clip-path: polygon(0% 0%, 4% 100%, 9% 0%, 14% 100%, 19% 0%, 24% 100%, 29% 0%, 34% 100%, 39% 0%, 44% 100%, 49% 0%, 54% 100%, 59% 0%, 64% 100%, 69% 0%, 74% 100%, 79% 0%, 84% 100%, 89% 0%, 94% 100%, 100% 0%, 100% 100%, 0% 100%);
}

/* ---------- Footer ---------- */
.site-footer { background: var(--color-olive-dark); color: #F1F0E4; padding: var(--space-xl) 0 var(--space-md); }
.site-footer a { color: #F1F0E4; }
.site-footer__inner {
    max-width: 1180px; margin: 0 auto; padding: 0 var(--space-md);
    display: grid; gap: var(--space-lg); grid-template-columns: 1fr;
}
.site-footer .site-logo { color: #fff; }
.site-footer .site-logo span { color: var(--color-olive-light); }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__copy { text-align: center; margin-top: var(--space-lg); font-size: var(--fs-small); opacity: 0.8; }
@media (min-width: 768px) {
    .site-footer__inner { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ---------- Blog ---------- */
.post-meta { color: var(--color-text-muted); font-size: var(--fs-small); }
.breadcrumb { font-size: var(--fs-small); color: var(--color-text-muted); margin-bottom: var(--space-md); }
.breadcrumb a { color: var(--color-text-muted); }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body p { margin-bottom: var(--space-md); }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.hand-note { font-family: var(--font-hand); font-size: 1.4rem; color: var(--color-coral); }
