/* ============================================
   PAGES.CSS — Estilo compartilhado das páginas
   Baseado no visual da calculadora principal
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #f1f5f9;
    background-image: radial-gradient(rgba(22, 163, 74, 0.28) 1px, transparent 1px);
    background-size: 28px 28px;
    color: #1e293b;
    line-height: 1.7;
    transition: background-color 0.4s ease, color 0.4s ease;
    padding-top: 70px;
}

body.dark {
    background-color: #070d1a;
    background-image: radial-gradient(rgba(74, 222, 128, 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
    color: #f1f5f9;
}

/* --- MENU --- */
.menu {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    z-index: 1000;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}
.menu.scroll {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
body.dark .menu {
    background: #0f172a;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.dark .menu.scroll {
    background: rgba(15,23,42,0.92);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.menu-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    color: #1e293b;
    margin: 0;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.4px;
    text-decoration: none;
}
body.dark .logo { color: white; }
body.dark .logo {
    background: linear-gradient(90deg, #fff 40%, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-links {
    display: flex;
    align-items: center;
    gap: 20px;
}
.menu-links a {
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s;
}
.menu-links a:hover { color: #16a34a; }
body.dark .menu-links a { color: #cbd5e1; }
body.dark .menu-links a:hover { color: #4ade80; }

.botaoTema {
    background: rgba(22,163,74,0.1);
    color: #1e293b;
    border: 1px solid rgba(22,163,74,0.25);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s, background 0.2s;
}
.botaoTema:hover { background: rgba(22,163,74,0.2); }
.botaoTema:active { transform: scale(0.9); }
body.dark .botaoTema {
    background: rgba(74,222,128,0.15);
    color: white;
    border: 1px solid rgba(74,222,128,0.25);
}
body.dark .botaoTema:hover { background: rgba(74,222,128,0.25); }

/* --- CONTAINER --- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* --- HERO DA PÁGINA --- */
.page-hero {
    margin-bottom: 40px;
}
.page-hero h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
    color: #1e293b;
}
body.dark .page-hero h1 { color: #f1f5f9; }

.page-hero p {
    font-size: 16px;
    color: #64748b;
    margin: 0;
}
body.dark .page-hero p { color: #94a3b8; }

/* --- CARDS / BOX --- */
.box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px;
    margin-top: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s, transform 0.2s;
}
.box:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    transform: translateY(-2px);
}
body.dark .box {
    background: #141e33;
    border: 1px solid rgba(255,255,255,0.09);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
body.dark .box:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}

.box h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #16a34a;
    display: flex;
    align-items: center;
    gap: 8px;
}
body.dark .box h2 { color: #4ade80; }

.box p {
    color: #475569;
    margin: 0 0 10px;
    font-size: 15px;
}
body.dark .box p { color: #94a3b8; }

.box p:last-child { margin-bottom: 0; }

.box ul {
    margin: 8px 0 0;
    padding-left: 20px;
    color: #475569;
}
body.dark .box ul { color: #94a3b8; }
.box ul li { margin-bottom: 6px; font-size: 15px; }

/* --- DATA TAG --- */
.data-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 3px 10px;
    margin-bottom: 32px;
}
body.dark .data-tag {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
    color: #64748b;
}

/* --- AVISO DESTAQUE --- */
.aviso {
    background: rgba(22,163,74,0.07);
    border-left: 3px solid #16a34a;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin-top: 16px;
    color: #475569;
    font-size: 14px;
    line-height: 1.6;
}
body.dark .aviso {
    background: rgba(74,222,128,0.07);
    border-left-color: #4ade80;
    color: #94a3b8;
}

/* --- FORMULÁRIO --- */
.form-grupo { margin-top: 18px; }
.form-grupo label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
    color: #374151;
    letter-spacing: 0.01em;
}
body.dark .form-grupo label { color: #e2e8f0; }

.form-grupo input,
.form-grupo select,
.form-grupo textarea {
    width: 100%;
    padding: 12px 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #1e293b;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}
body.dark .form-grupo input,
body.dark .form-grupo select,
body.dark .form-grupo textarea {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}
.form-grupo input:focus,
.form-grupo select:focus,
.form-grupo textarea:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
body.dark .form-grupo input:focus,
body.dark .form-grupo select:focus,
body.dark .form-grupo textarea:focus {
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74,222,128,0.12);
}
.form-grupo textarea { height: 130px; resize: vertical; }

.btn-enviar {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-enviar:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(22,163,74,0.3);
}
body.dark .btn-enviar {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #022c22;
}

.msg-sucesso {
    display: none;
    margin-top: 15px;
    padding: 14px;
    background: rgba(22,163,74,0.08);
    border: 1px solid #16a34a;
    border-radius: 10px;
    color: #16a34a;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}
body.dark .msg-sucesso {
    background: rgba(74,222,128,0.1);
    border-color: #4ade80;
    color: #4ade80;
}

.email-destaque {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 10px;
    color: #16a34a;
    font-weight: 600;
    margin-top: 12px;
    text-decoration: none;
    font-size: 14px;
    transition: border-color 0.2s, background 0.2s;
}
.email-destaque:hover {
    border-color: #16a34a;
    background: rgba(22,163,74,0.05);
}
body.dark .email-destaque {
    background: #0f172a;
    border-color: #334155;
    color: #4ade80;
}
body.dark .email-destaque:hover { border-color: #4ade80; }

/* --- GRID DE VALORES (sobre) --- */
.grid-valores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 20px;
}
.valor-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.valor-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.06); }
body.dark .valor-item {
    background: #0f172a;
    border-color: #334155;
}
.valor-item .icone { font-size: 28px; margin-bottom: 10px; }
.valor-item h3 { font-size: 15px; color: #16a34a; margin: 0 0 6px; font-weight: 700; }
body.dark .valor-item h3 { color: #4ade80; }
.valor-item p { font-size: 13px; color: #64748b; margin: 0; }
body.dark .valor-item p { color: #94a3b8; }

/* --- FOOTER --- */
.footer {
    background: transparent;
    color: #1e293b;
    padding: 60px 20px 0;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    position: relative;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #4ade80, #22d3ee, transparent);
}
body.dark .footer {
    color: #f1f5f9;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 48px;
}
@media (max-width: 700px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-col h3.logo-footer {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
    background: linear-gradient(90deg, #16a34a 40%, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.dark .footer-col h3.logo-footer {
    background: linear-gradient(90deg, #fff 40%, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-col p {
    font-size: 13.5px;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}
body.dark .footer-col p { color: #94a3b8; }

.footer-titulo {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 16px;
}
body.dark .footer-titulo { color: #64748b; }

.footer-nav {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a {
    font-size: 13.5px;
    color: #475569;
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover { color: #16a34a; }
body.dark .footer-nav a { color: #94a3b8; }
body.dark .footer-nav a:hover { color: #4ade80; }

.footer-aviso {
    font-size: 12.5px !important;
    line-height: 1.6 !important;
    color: #94a3b8 !important;
}
body.dark .footer-aviso { color: #64748b !important; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0 24px;
    border-top: 1px solid #e2e8f0;
}
body.dark .footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); }

.footer-bottom p { font-size: 12px; color: #94a3b8; margin: 0; }
body.dark .footer-bottom p { color: #64748b; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.footer-links a:hover {
    background: rgba(22,163,74,0.1);
    color: #16a34a;
}
body.dark .footer-links a { color: #94a3b8; }
body.dark .footer-links a:hover {
    background: rgba(74,222,128,0.1);
    color: #4ade80;
}

/* --- RESPONSIVO --- */
@media (max-width: 640px) {
    .page-hero h1 { font-size: 26px; }
    .menu-links { gap: 12px; }
    .menu-links a { font-size: 12px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
