/* Variáveis de CSS (Cores baseadas no colégio e tema leve) */
:root {
    --primary-color: #003366; /* Azul escuro do logo */
    --secondary-color: #e6b800; /* Dourado/Amarelo */
    --text-color: #333333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Botões */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: #cca300;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Header & Navbar */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-color);
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    font-weight: 600;
    color: var(--primary-color);
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--secondary-color);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: url('../assets/images/BG_EGOMES.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px; /* offset for header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.7); /* Azul translúcido */
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 20px;
}

/* Ícone do EG acima do título, centralizado; o .hero já centraliza o bloco
   verticalmente no espaço disponível. */
.hero-content h1 .hero-eg {
    display: block;
    height: clamp(96px, 16vw, 150px);
    width: auto;
    margin: 0 auto 18px;
    padding: 8px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Sobre a Dislexia */
.sobre-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.sobre-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.sobre-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--secondary-color);
}

.info-card h3 {
    margin-bottom: 10px;
}

/* Ferramentas */
.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.produto-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.produto-card:hover {
    transform: translateY(-10px);
}

.produto-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    margin-bottom: 15px;
}

.produto-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.produto-card h3 {
    margin-bottom: 0;
    color: #1a1a1a;
}

.produto-card p {
    margin-bottom: 20px;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.badge-green {
    background-color: #d1f2d1;
    color: #2b8a2b;
}

.badge-orange {
    background-color: #fce8d5;
    color: #c97034;
}

.btn-text {
    margin-top: auto;
    padding: 0;
    background: none;
    border: none;
    color: #f2a600;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.3s;
}

.btn-text:hover {
    color: #cc8c00;
}

/* Equipe */
.equipe-info {
    text-align: center;
}

.equipe-info > p {
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.equipe-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.equipe-member {
    text-align: center;
}

.equipe-member .avatar {
    font-size: 4rem;
    background: var(--white);
    width: 120px;
    height: 120px;
    line-height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.equipe-member .avatar img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8px;
    box-sizing: border-box;
    object-fit: contain;
}

.equipe-member p {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 40px 0;
}

.footer-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    text-align: center;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Responsividade */
@media (max-width: 768px) {
    .sobre-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        text-align: center;
    }
}
