/* ---------- Layout global ---------- */
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background-color: #f8fafc;
    scroll-behavior: smooth;
    font-size: clamp(14px, 1.4vh, 17px);
}

/* ---------- Header ---------- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 0.5vh 1vh rgba(0,0,0,0.05);
    z-index: 100;
}

.navbar {
    max-width: 90vw;
    margin: 0 auto;
    padding: clamp(0.8rem, 2vh, 1.4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
}

.logo {
    height: clamp(36px, 5vh, 56px);
    width: clamp(36px, 5vh, 56px);
    object-fit: contain;
}

.brand {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    color: #2563eb;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(0.8rem, 2vw, 2rem);
}

.nav-links a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: clamp(0.9rem, 1.8vw, 1rem);
}

.nav-links a:hover {
    color: #2563eb;
}

.area-restrita {
    font-weight: 600;
    color: #2563eb;
}

/* ---------- Menu Mobile (Drawer) ---------- */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: clamp(1.5rem, 3vw, 2rem);
        color: #2563eb;
        z-index: 400;
        position: relative;
    }

    /* Drawer (nav-links) sem overlay/blur */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(70vw, 300px);
        background: #ffffff; /* sólido */
        box-shadow: -6px 0 18px rgba(0, 0, 0, 0.12);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: clamp(1rem, 3vh, 2rem);

        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
        will-change: transform;
        z-index: 300;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
        color: #1e293b;
        font-weight: 600;
        text-decoration: none;
        transition: color 0.25s ease;
    }

    .nav-links a:hover {
        color: #2563eb;
    }
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 clamp(16px, 4vw, 48px);
}

.hero-content {
    max-width: min(80vw, 720px);
}

.hero h2 {
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    margin-bottom: clamp(12px, 1.6vh, 20px);
    line-height: 1.25;
}

.hero p {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    line-height: 1.6;
}

/* ---------- Sections ---------- */
.section {
    max-width: min(92vw, 1100px);
    margin: 0 auto;
    padding: clamp(60px, 10vh, 96px) clamp(16px, 4vw, 32px);
}

.section.gray {
    background: #f1f5f9;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: clamp(32px, 6vh, 48px);
    font-weight: 700;
}

/* ---------- Cards ---------- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 40vw, 320px), 1fr));
    gap: clamp(16px, 3vw, 28px);
}

.card {
    background: #fff;
    border-radius: clamp(12px, 1.6vw, 18px);
    box-shadow: 0 0.5vh 1.5vh rgba(0,0,0,0.06);
    padding: clamp(20px, 3vh, 28px);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-0.3vh);
    box-shadow: 0 1vh 2vh rgba(0,0,0,0.08);
}

.card img {
    height: clamp(64px, 10vh, 96px);
    margin-bottom: clamp(10px, 2vh, 16px);
}

/* ---------- Especialistas ---------- */
.specialists {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 3vh, 28px);
    max-width: 600px;
    margin: 0 auto;
}

.specialist-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: clamp(12px, 1.6vw, 16px);
    box-shadow: 0 0.5vh 1vh rgba(0,0,0,0.05);
    padding: clamp(14px, 2vh, 20px);
    gap: clamp(12px, 2vw, 18px);
}

.specialist-card img {
    height: clamp(72px, 9vh, 96px);
    width: clamp(72px, 9vh, 96px);
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- Quem Somos ---------- */
.about-text {
    color: #334155;
    font-size: clamp(1rem, 1.8vh, 1.1rem);
    line-height: 1.7;
    margin-bottom: clamp(14px, 2vh, 18px);
    text-align: justify;
}

.about-list {
    list-style: disc;
    padding-left: clamp(16px, 3vw, 24px);
    color: #334155;
    line-height: 1.7;
}

.about-list li {
    margin-bottom: clamp(8px, 1.4vh, 12px);
}

.about-list strong {
    color: #111827;
    font-weight: 600;
}

/* ---------- Sobre a CEFA ---------- */
.sobre-wrap {
    max-width: min(90vw, 960px);
    margin: 0 auto;
    text-align: center;
}

.sobre-logo {
    height: clamp(72px, 10vh, 96px);
    width: auto;
    display: block;
    margin: 0 auto clamp(12px, 2vh, 20px);
    object-fit: contain;
}

.sobre-title {
    margin-top: clamp(4px, 0.6vh, 8px);
    margin-bottom: clamp(10px, 1.6vh, 14px);
}

.sobre-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: #334155;
    margin-bottom: clamp(12px, 2vh, 20px);
}

.sobre-desc {
    color: #475569;
    line-height: 1.7;
    margin: 0 auto clamp(24px, 4vh, 32px);
    max-width: 880px;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(16px, 3vh, 28px);
    text-align: left;
}

@media (min-width: 768px) {
    .sobre-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.sobre-card {
    background: #ffffff;
    border-radius: clamp(12px, 1.6vw, 18px);
    box-shadow: 0 0.5vh 1.5vh rgba(0,0,0,0.06);
    padding: clamp(20px, 3vh, 28px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sobre-card:hover {
    transform: translateY(-0.4vh);
    box-shadow: 0 1.2vh 2.4vh rgba(0,0,0,0.08);
}

.sobre-card h4 {
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin: 0 0 clamp(6px, 1vh, 10px) 0;
    color: #111827;
}

.sobre-card p {
    color: #475569;
    line-height: 1.65;
    font-size: clamp(0.95rem, 1.7vw, 1.05rem);
}

/* ---------- Footer ---------- */
.footer {
    background: #2563eb;
    color: #fff;
    text-align: center;
    padding: clamp(16px, 2.5vh, 24px) 0;
    font-size: clamp(0.9rem, 1.6vw, 1rem);
}

/* ---------- Responsividade geral ---------- */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: clamp(1.5rem, 3vw, 2rem);
        color: #2563eb;
    }

    .nav-links {
        display: flex;
    }
}
