:root {
    /* --- PALETA DE CORES: EVOLUA EDUCAÇÃO --- */
    /* Baseado no logo: Triângulo Turquesa/Teal e Texto Cinza Escuro */

    --primary-color: #009B8F;
    /* Turquesa Profissional */
    --primary-dark: #007a70;
    /* Turquesa Escuro (Hover) */

    --secondary-color: #333333;
    /* Cinza Escuro (Texto/Logo) */
    --secondary-hover: #1a1a1a;

    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-gray: #666666;

    --background-light: #f4fcfc;
    /* Leve tom de ciano muito claro */
    --background-white: #ffffff;

    --font-family: "Montserrat", sans-serif;
    --header-height: 80px;

    /* --- FORMAS --- */
    --radius-card: 8px;
    --radius-btn: 1px;
    /* Retangular conforme solicitado */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--background-light);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

/* =========================================
   HEADER & NAVEGAÇÃO
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    height: var(--header-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    z-index: 1000;
    background-color: var(--background-white);
    /* Fundo branco para destacar o logo colorido */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-link:hover .logo {
    transform: scale(1.05);
}



@media (min-width: 768px) {
    .logo {
        width: auto;
        height: 55px;
    }
}

header nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
    animation: slideInFromFarRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

nav a {
    color: var(--text-dark);
    /* Texto escuro no menu pois o fundo é branco */
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

nav a:not(.whatsapp-link):hover {
    color: var(--primary-color);
}

nav a:not(.whatsapp-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav a:not(.whatsapp-link):hover::after {
    width: 100%;
}

/* BOTÃO WHATSAPP NO HEADER */
.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light) !important;
    background-color: #25D366;
    padding: 10px 22px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.whatsapp-link i {
    font-size: 1.3rem;
}

.whatsapp-link:hover {
    background-color: #1ebc57;
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    height: 3px;
    width: 28px;
    background-color: var(--primary-color);
    /* Menu hambúrguer na cor da marca */
    border-radius: 2px;
    transition: 0.4s;
}

section[id] {
    scroll-margin-top: var(--header-height);
}

/* =========================================
   HERO SECTION (TOPO)
   ========================================= */
.hero-section {
    min-height: 90vh;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 5%;
    color: var(--text-light);
    position: relative;
    background-color: var(--secondary-color);
    margin-top: var(--header-height);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Gradiente com a cor da marca (Teal) */
    background-image: linear-gradient(to right,
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.3) 100%),
        url('background-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-background-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-light);
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    margin-top: -50px;
}

.hero-content h1 {
    font-size: clamp(1.8rem, 2.5vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: clamp(1rem, 1vw, 1.1rem);
    margin-bottom: 35px;
    opacity: 0.95;
    font-weight: 400;
    max-width: 600px;
}

/* --- BOTÕES PADRÃO --- */
.btn {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 14px 35px;
    border-radius: var(--radius-btn);
    border: none;
    color: white;
    background-color: var(--primary-color);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Animação de entrada */
.hero-content>* {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h1 {
    animation-delay: 0.2s;
}

.hero-content p {
    animation-delay: 0.4s;
}

.hero-content .btn {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   ESTILOS GERAIS DE SEÇÃO
   ========================================= */
.services-section,
.about-us-section,
.contact-section,
.purpose-section {
    padding: 80px 5%;
    margin-bottom: 0;
    text-align: center;
}

.address-section {
    padding: 80px 5%;
    margin-bottom: 0;
    text-align: center;
    background-color: var(--background-white);
}

h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 60px;
    font-size: 1.1rem;
    font-weight: 300;
}

/* =========================================
   CARDS DE SERVIÇOS
   ========================================= */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px 0;
}

.service-card {
    background: white;
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
}

.card-header-color {
    height: 4px;
    background-color: var(--primary-color);
    width: 100%;
}

.service-card-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    flex: 1;
    line-height: 1.7;
}

.btn-card {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 10px 30px;
    border-radius: var(--radius-btn);
    transition: 0.3s;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-block;
}

.btn-card:hover {
    background-color: var(--primary-color);
    color: white;
}

.highlight-card {
    border-bottom: 3px solid var(--primary-color);
}

/* =========================================
   SOBRE NÓS
   ========================================= */
.about-us-section {
    background-color: white;
    display: flex;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.about-us-content {
    flex: 1;
}

.subtitle-about {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: block;
    text-transform: uppercase;
}

.about-us-image-container {
    flex: 1;
    position: relative;
}

.about-us-image {
    width: 90%;
    height: auto;
    border-radius: var(--radius-card);
    box-shadow: 2px 2px 0px var(--primary-color);
}

/* =========================================
   PROPÓSITO (Missão/Visão/Valores)
   ========================================= */
.purpose-section {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.purpose-section p {
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-dark);
}

.purpose-cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.purpose-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: var(--background-white);
    padding: 50px 30px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.purpose-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.purpose-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.purpose-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.purpose-description {
    color: var(--text-gray) !important;
}

/* =========================================
   ENDEREÇO E MAPA
   ========================================= */
.address-unit a {
    font-size: 1.1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    margin: 20px 0;
    transition: color 0.3s;
}

.address-unit a:hover {
    color: var(--primary-color);
}

.address-unit a i {
    color: var(--primary-color);
    margin-right: 10px;
}

.map-container {
    max-width: 900px;
    height: 400px;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    display: block;
}

.hours-container {
    background-color: #fff;
    padding: 25px;
    border-radius: var(--radius-card);
    margin: 30px auto 10px auto;
    max-width: 500px;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.hours-container h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.hours-list {
    list-style: none;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
    font-size: 1rem;
    color: var(--text-dark);
}

/* =========================================
   CONTATO
   ========================================= */
.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--radius-card);
    width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-card i {
    color: var(--text-dark);
    margin-right: 10px;
    font-size: 1.5rem;
}

.contact-card .btn {
    width: 100%;
    padding: 12px 0;
    border-radius: 1px !important;
}

/* =========================================
   SOCIAL FLUTUANTE (WhatsApp) & FOOTER
   ========================================= */
.social-bar {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.social-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    color: var(--text-light);
    font-size: 35px;
    text-decoration: none !important;
    border: none !important;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.social-bar a:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    animation-play-state: paused;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 20px 100px 20px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 300;
}

.footer-links {
    margin-bottom: 25px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* =========================================
   ELEMENTOS DE INTERFACE
   ========================================= */
#consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: #fff;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-card);
    padding: 15px 30px;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid #eee;
}

#consent-banner.hidden {
    display: none;
}

.consent-text {
    flex: 1;
    font-size: 1rem;
    color: #000000;
    line-height: 1.4;
    text-align: left;
}

.consent-text a {
    color: var(--text-dark);
    text-decoration: underline;
    font-weight: 700;
}

.consent-text a:hover {
    color: var(--text-gray);
}

#accept-consent-btn {
    background-color: #ffffff;
    color: var(--primary-color);
    border: solid 1px var(--primary-color);
    padding: 8px 20px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

#accept-consent-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

#back-to-top {
    position: fixed;
    bottom: 120px;
    right: 33px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- Páginas Jurídicas --- */
.legal-content {
    max-width: 900px;
    margin: 160px auto 100px auto;
    padding: 0 5%;
}

.legal-content h1 {
    font-size: 2rem;
    color: var(--primary-color);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    text-align: left;
}

.legal-content p,
.legal-content li {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
}

.alert-box {
    background-color: #fff3cd;
    color: #856404;
    padding: 20px;
    border-left: 5px solid #ffeeba;
    margin: 30px 0;
    border-radius: 5px;
}

.legal-box {
    background-color: #e2e3e5;
    padding: 20px;
    border-left: 5px solid #d6d8db;
    margin: 30px 0;
    border-radius: 5px;
}

/* =========================================
   ANIMAÇÕES
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideInFromFarRight {
    from {
        opacity: 0;
        transform: translateX(100vw);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   DEPOIMENTOS (TESTIMONIALS)
   ========================================= */
.testimonials-section {
    background-color: var(--background-white);
    /* Contraste com a seção anterior */
    padding: 80px 5%;
    text-align: center;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: var(--background-light);
    padding: 40px 30px;
    border-radius: var(--radius-card);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    /* Preparação para hover */
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--primary-color);
}

.student-photo-container {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
}

.student-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 3px;
    /* Espaço entre foto e borda */
    background-color: white;
}

.quote-icon {
    position: absolute;
    bottom: 0;
    right: -5px;
    background-color: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    border: 2px solid white;
}

.testimonial-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.stars {
    color: #FFD700;
    /* Dourado */
    font-size: 0.9rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    font-style: italic;
}

/* =========================================
   RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .logo {
        height: 50px;
    }

    header nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        border-top: 3px solid var(--primary-color);
    }

    header.open nav {
        right: 0;
    }

    header nav ul {
        margin-top: 30px;
        flex-direction: column;
        gap: 35px;
        padding: 20px 15px;
    }

    header nav a {
        padding: 20px 20px;
        border-bottom: 1px solid #eee;
        color: var(--text-dark);
    }

    header.open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    header.open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-section {
        justify-content: center;
        text-align: center;
    }

    .hero-section::before {
        background-attachment: scroll;
    }

    .hero-content {
        margin-top: -200px;
    }

    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .about-us-section {
        flex-direction: column-reverse;
    }

    .about-us-image {
        width: 100%;
        height: auto;
        box-shadow: 5px 5px 0px var(--primary-color);
    }

    #consent-banner {
        flex-direction: column;
    }

    .consent-text {
        text-align: center;
    }
}