/* =========================================
   LAYOUT
   Header, footer, grid de página, containers
   ========================================= */

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0; height: 67px;
    display: flex; align-items: center; justify-content: center;
}
.nav-inner {
    width: 100%; max-width: 1140px;
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
    font-size: 1.4rem; font-weight: 800;
    color: var(--text); letter-spacing: -0.5px;
    display: flex; align-items: center;
}
.nav-logo span { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 32px; }
.nav-links {
    display: flex; align-items: center; gap: 32px;
    font-size: 0.88rem; font-weight: 500; color: var(--text-soft);
}
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ── HAMBURGER ── */
.hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: all 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
    display: none; position: fixed; inset: 67px 0 0 0;
    background: #fff; z-index: 99; flex-direction: column;
    padding: 32px 24px; gap: 8px;
    border-top: 1px solid var(--border);
    animation: fadeSlide 0.2s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-size: 1.1rem; font-weight: 600; color: var(--text);
    padding: 14px 0; border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu a:hover { color: var(--blue); }
.mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.mobile-menu-actions button { width: 100%; padding: 13px; font-size: 0.92rem; }

/* ── ESTRUTURA GERAL DE SEÇÃO ────────────────────────────── */
section { padding: 96px 0; }
.section-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.section-head { margin-bottom: 56px; }

/* ── PÁGINA INTERNA (sobre, serviços, contato, etc.) ─────── */
.page-header {
    background: linear-gradient(160deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    padding: 72px 40px 56px;
    text-align: center;
    color: #fff;
}
.page-header h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.page-header p { font-size: 1rem; color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }
.page-content { max-width: 900px; margin: 0 auto; padding: 72px 40px; }
.page-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 40px 0 14px; letter-spacing: -0.3px; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { font-size: 0.95rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 16px; }
.page-content ul { margin: 0 0 16px 20px; color: var(--text-mid); font-size: 0.95rem; line-height: 1.8; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
    background: #0f172a; color: rgba(255,255,255,0.5);
    padding: 48px 0 32px;
    display: flex; justify-content: center;
}
.footer-inner { width: 100%; max-width: 1140px; padding: 0 40px; text-align: center; }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; display: flex; justify-content: center; }
.footer-logo span { color: #60a5fa; }
.footer-desc { font-size: 0.8rem; margin-bottom: 28px; max-width: 360px; margin-left: auto; margin-right: auto; }
.footer-links { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; font-size: 0.8rem; margin-bottom: 12px; }
.footer-links a:hover { color: #fff; }
.footer-legal { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 0.72rem; margin-bottom: 28px; }
.footer-legal a:hover { color: #fff; }
.footer-copy { font-size: 0.72rem; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; }
.footer-copy a { color: rgba(255,255,255,0.5); border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 1px; transition: color 0.2s; }
.footer-copy a:hover { color: #fff; }
