/* ===== Empatheia – Site institucional (HTML + CSS) ===== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Marca */
    --green-50: #E8F6F0;
    --green-100: #C9E9D9;
    --green-400: #3EBB82;
    --green-500: #13804C;
    --green-600: #0F6A3F;
    --green-700: #0B5532;
    --green-800: #083F25;

    --navy-500: #4A4F77;
    --navy-600: #31315B;
    --navy-700: #252A47;
    --navy-800: #1A1D32;
    --navy-900: #121524;

    --gray-50: #F9FAFA;
    --gray-100: #F1F2F3;
    --gray-200: #E2E4E5;
    --gray-500: #818586;
    --gray-600: #5A5E60;
    --gray-800: #252727;
    --gray-900: #171717;
    --white: #FFFFFF;

    --text: var(--gray-900);
    --text-muted: var(--gray-600);
    --bg: var(--gray-50);
    --surface: var(--white);
    --brand: var(--green-600);
    --brand-hover: var(--green-700);
    --accent: var(--navy-800);

    --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ----- Header ----- */
.site-header {
    background: var(--surface);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding-top: var(--space-sm);
    padding-bottom: var(--space-sm);
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Logo: adicione <img src="assets/logo.png" alt=""> dentro de .logo se quiser usar imagem */
.logo img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--gray-800);
    transition: transform 0.2s;
}

.nav-toggle::before { top: 16px; }
.nav-toggle::after { top: 22px; box-shadow: 0 6px 0 var(--gray-800); }

.nav-checkbox:checked + .nav-toggle::before {
    transform: rotate(45deg);
    top: 21px;
}
.nav-checkbox:checked + .nav-toggle::after {
    box-shadow: none;
    transform: rotate(-45deg);
    top: 21px;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: var(--space-xs) 0;
    transition: color 0.2s;
}

.nav-list a:hover {
    color: var(--brand);
}

.nav-cta {
    color: var(--brand) !important;
    font-weight: 600;
}

/* ----- Hero ----- */
.hero {
    background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 50%, var(--green-800) 100%);
    color: var(--white);
    padding: var(--space-2xl) 0;
    text-align: center;
}

.hero-inner {
    max-width: 720px;
}

.hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    justify-content: center;
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--brand);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--brand-hover);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

/* Secondary em fundo claro */
.section--light .btn-secondary,
.section .btn-secondary {
    color: var(--brand);
    border-color: var(--brand);
}

.section--light .btn-secondary:hover,
.section .btn-secondary:hover {
    background: var(--green-50);
    color: var(--brand-hover);
}

/* ----- Sections ----- */
.section {
    padding: var(--space-2xl) 0;
}

.section--light {
    background: var(--surface);
    box-shadow: 0 1px 0 var(--gray-200);
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.section-lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: var(--space-md);
    line-height: 1.6;
}

.section-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
}

.link-arrow {
    display: inline-block;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    margin-top: var(--space-sm);
}

.link-arrow:hover {
    text-decoration: underline;
}

.link-arrow::after {
    content: ' →';
}

/* ----- Theia pillars ----- */
.pillars {
    list-style: none;
    margin: var(--space-lg) 0;
}

.pillar {
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    color: var(--text-muted);
    line-height: 1.5;
}

.pillar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 8px;
    height: 8px;
    background: var(--brand);
    border-radius: 50%;
}

.pillar strong {
    color: var(--text);
}

/* ----- Cards ----- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.card {
    background: var(--surface);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.card p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* ----- Teasers ----- */
.teasers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.teaser {
    background: var(--gray-100);
    border-radius: var(--radius);
    padding: var(--space-lg);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ----- CTA section ----- */
.section--cta {
    background: linear-gradient(135deg, var(--green-700) 0%, var(--green-800) 100%);
    color: var(--white);
    text-align: center;
}

.section--cta .section-title,
.section--cta .section-lead {
    color: var(--white);
}

.section--cta .section-lead {
    opacity: 0.95;
}

.section--cta .btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.section--cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
}

/* ----- Footer ----- */
.site-footer {
    background: var(--navy-900);
    color: var(--gray-500);
    padding: var(--space-lg) 0;
    font-size: 0.875rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.footer-copy {
    margin: 0;
}

.footer-nav {
    display: flex;
    gap: var(--space-md);
}

.footer-nav a {
    color: var(--gray-500);
    text-decoration: none;
}

.footer-nav a:hover {
    color: var(--white);
}

/* ----- Responsivo: menu mobile ----- */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        box-shadow: var(--shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-checkbox:checked ~ .nav {
        max-height: 320px;
    }

    .nav-list {
        flex-direction: column;
        padding: var(--space-md);
        gap: 0;
        align-items: stretch;
    }

    .nav-list li {
        border-bottom: 1px solid var(--gray-200);
    }

    .nav-list a {
        display: block;
        padding: var(--space-sm);
    }

    .teasers {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
        text-align: center;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
