:root {
    /* Paleta Papelaria Ponto X */
    --primary-color: #233378;
    /* Azul Marinho Profundo (Baseado na logo) */
    --primary-dark: #151f4d;
    /* Variação mais escura */

    --secondary-color: #E31E24;
    /* Vermelho Ponto X (Destaque e Botões) */
    --secondary-hover: #b71c1c;
    /* Vermelho escuro para hover */

    --accent-yellow: #FFF200;
    /* Amarelo da logo (Apenas detalhes sutis) */

    --text-dark: #333333;
    --text-light: #ffffff;
    --text-gray: #666666;
    --background-light: #f4f6f9;
    --background-white: #ffffff;

    --font-family: "Montserrat", sans-serif;
    --header-height: 75px;
    --radius-card: 12px;
    --radius-btn: 50px;
}

* {
    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-white);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

/* ================= HEADER ================= */
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);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 55px;
    width: auto;
    padding: 2px 10px;
    border-radius: 4px;
    transition: transform 0.5s ease;


}

.logo-link:hover .logo {
    transform: scale(1.05);
}

/* Navigation Links */
header nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

nav a:not(.whatsapp-link):hover {
    color: var(--secondary-color);
    /* Hover Amarelo */
}

nav a:not(.whatsapp-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav a:not(.whatsapp-link):hover::after {
    width: 100%;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    background-color: var(--secondary-color);
    /* Botão Vermelho */
    padding: 8px 20px;
    border-radius: var(--radius-btn);
    font-weight: 700;
    transition: all 0.3s ease;
}

.whatsapp-link:hover {
    background-color: var(--secondary-hover);
    transform: scale(1.05);
}

.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-dark);
    border-radius: 2px;
    transition: 0.4s;
}

/* ================= HERO SECTION ================= */
section[id] {
    scroll-margin-top: var(--header-height);
}

.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(--primary-color);
    margin-top: var(--header-height);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Gradiente azul para garantir leitura */
    background-image: linear-gradient(to right,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(5, 5, 5, 0.3) 40%,
            rgba(0, 0, 0, 0.1) 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: #ffffff;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    max-width: 700px;
    z-index: 2;
    margin-top: -30px;
}

.hero-content h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 600px;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.3);
}

.btn {
    font-size: 1rem;
    font-weight: 700;
    padding: 15px 40px;
    border-radius: var(--radius-btn);
    border: none;
    color: white;
    background-color: var(--secondary-color);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}

.btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    border: 1px solid white;
}

.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);
    }
}

/* ================= SECTIONS GERAIS ================= */
.services-section,
.about-us-section,
.contact-section,
.purpose-section,
.address-section {
    padding: 60px 5%;
    margin-bottom: 110px;
    text-align: center;
}

.purpose-section p {
    margin-bottom: 40px;
}

.address-section h2,
.address-section p {
    margin-bottom: 5px;
}

h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-subtitle {
    color: var(--text-gray);
    margin-bottom: 50px;
}

/* ================= SERVICES CARDS ================= */
.services-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.service-card {
    background: white;
    border-radius: var(--radius-card);
    width: 100%;
    max-width: 320px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
}

.card-header-color {
    height: 6px;
    background-color: var(--primary-color);
    width: 100%;
}

.service-card.highlight-card .card-header-color {
    background-color: var(--secondary-color);
    height: 10px;
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #eee;
    /* Placeholder caso a imagem demore */
}

.service-card-content {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background-color: rgba(35, 51, 120, 0.05);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.highlight-card .service-icon {
    color: var(--secondary-color);
    background-color: #fff0f0;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 25px;
    flex: 1;
}

.btn-card {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    border-radius: var(--radius-btn);
    transition: 0.3s;
}

.btn-card:hover,
.highlight-card .btn-card {
    background-color: var(--primary-color);
    color: white;
}

.highlight-card .btn-card {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.highlight-card .btn-card:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* ================= ABOUT US ================= */
.about-us-section {
    background-color: var(--background-light);
    display: flex;
    gap: 50px;
    align-items: center;
    text-align: left;
}

.about-us-content {
    flex: 1;
}

.about-us-content h2 {
    margin-bottom: 20px;
}

.about-us-content p {
    margin-bottom: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

.about-us-logo {
    max-width: 300px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
}

.about-us-image-container {
    flex: 1;
}

.about-us-image {
    width: 100%;
    border-radius: var(--radius-card);
    box-shadow: 10px 10px 0px var(--secondary-color);
    /* Sombra Vermelha */
}

/* ================= PURPOSE ================= */
.purpose-cards-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.purpose-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: #fff;
    padding: 40px 25px;
    border-radius: var(--radius-card);
    border-bottom: 4px solid var(--secondary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.purpose-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.purpose-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
}

/* ================= ADDRESS & CONTACT ================= */
.address-unit a {
    font-size: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    display: block;
    margin: 20px 0;
}

.address-unit a:hover {
    color: var(--secondary-color);
}

.map-container {
    max-width: 800px;
    height: 300px;
    margin: 0 auto;
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.map-container iframe {
    width: 100%;
    display: block;
}

.contact-section {
    background-color: #ffffff;
}

.contact-section h2,
.contact-section p {
    color: var(--text-dark);
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-card {
    background: var(--background-light);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-radius: var(--radius-card);
    width: 280px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.contact-card .btn {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
}

.social-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    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;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-bar a:hover {
    transform: scale(1.1);
}

@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);
    }
}

.social-bar a[href*="wa.me"] {
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.social-bar a[href*="wa.me"]:hover {
    background-color: #128C7E;
    animation-play-state: paused;
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: var(--secondary-color) !important;
    text-decoration: underline;
}

#consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 20px;
    z-index: 2000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: opacity 0.5s ease, visibility 0.5s;
}

#consent-banner.hidden {
    opacity: 0;
    visibility: hidden;
}

#accept-consent-btn {
    background-color: #25D366;
    color: white;
    text-transform: none;
    padding: 10px 20px;
    border: none;
}

#accept-consent-btn:hover {
    background-color: #167c3c
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.hours-container {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: var(--radius-card);
    margin: 20px auto 40px auto;
    max-width: 500px;
    border-bottom: 5px solid var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hours-container h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.hours-list .dots {
    flex: 1;
    border-bottom: 2px dotted #ccc;
    margin: 0 10px;
    position: relative;
    top: -4px;
}

.hours-list strong {
    color: var(--primary-color);
}

#back-to-top {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-5px);
}

/* ================= LEGAIS ================= */
.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    color: var(--primary-color);
    font-weight: 700;
}

.legal-content p {
    margin-bottom: 15px;
}

.alert-box {
    background-color: #e3f2fd;
    color: var(--primary-color);
    padding: 20px;
    border: 1px solid #bbdefb;
    border-radius: 5px;
    margin: 20px 0;
}

.legal-content h3 {
    font-size: 1.1rem;
    margin-top: 25px;
    color: var(--primary-color);
    font-weight: 700;
}

.legal-content ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    margin-bottom: 10px;
}

.legal-box {
    background-color: #f8f9fa;
    padding: 20px;
    border-left: 5px solid var(--secondary-color);
    margin: 30px 0;
    border-radius: 5px;
}

/* ================= LISTAS ESCOLARES (NOVA SEÇÃO) ================= */
.school-lists-section {
    background-color: var(--primary-color);
    /* Fundo Azul para destaque */
    color: white;
    padding: 80px 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Um detalhe visual de fundo (opcional) */
.school-lists-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjIiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4wNSkiLz48L3N2Zz4=');
    /* Pontilhados sutis */
    opacity: 0.3;
    pointer-events: none;
}

.list-content {
    background-color: rgba(255, 255, 255, 0.1);
    /* Fundo vidro translúcido */
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-card);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.list-icon-wrapper {
    background-color: var(--secondary-color);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: -80px;
    /* Faz o ícone "sair" um pouco da caixa para cima */
    border: 5px solid var(--primary-color);
}

.list-text h2 {
    color: var(--accent-yellow);
    /* Amarelo para destacar no azul */
    font-size: 2rem;
    margin-bottom: 15px;
}

.list-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: white;
}

.list-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Estilo específico para o botão do Drive */
.btn-drive {
    background-color: white;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-drive:hover {
    background-color: var(--accent-yellow);
    color: var(--primary-color);
    border-color: var(--accent-yellow);
}

/* Estilo específico para o botão do Whats nesta seção */
.btn-whats-list {
    background-color: transparent;
    border: 2px solid white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-whats-list:hover {
    background-color: white;
    color: var(--secondary-color);
    border-color: white;
}

.small-note {
    font-size: 0.8rem !important;
    margin-top: 20px;
    opacity: 0.7;
}

/* ================= MOBILE HEADER ACTION ================= */

/* Por padrão, escondemos o container de ações mobile no Desktop */
.mobile-actions {
    display: none;
}

/* Estilo do Botão de Destaque Mobile */
.btn-mobile-highlight {
    background-color: var(--secondary-color);
    /* Vermelho */
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    margin-right: 15px;
    /* Espaço entre o botão e o ícone do menu */
    transition: transform 0.2s;
    text-transform: uppercase;
}

.btn-mobile-highlight:active {
    transform: scale(0.95);
}

.btn-mobile-highlight i {
    font-size: 0.9rem;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .mobile-actions {
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        display: flex;
        margin-left: 0;
    }

    .logo {
        height: 40px;
    }

    /* Ajuste mobile */

    header nav {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--background-white);
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
        border-top: 4px solid var(--secondary-color);
    }

    header.open nav {
        right: 0;
    }

    header nav ul {
        margin-top: 30px;
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
    }

    header nav a {
        padding: 20px 20px;
        border-bottom: 1px solid #eee;
    }

    nav a {
        color: var(--primary-color);
        font-size: 1.2rem;
    }

    /* Animação Hamburger */
    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 {
        padding: 60px 20px;
        justify-content: left;
        text-align: left;
    }

    .hero-section::before {
        background-image: linear-gradient(to bottom,
                rgba(0, 0, 0, 0.3) 0%,
                rgba(0, 0, 0, 0.3) 50%,
                rgba(0, 0, 0, 0.3) 100%), url('background-hero-mobile.png');
        background-attachment: scroll;
    }

    .hero-content {
        width: 100%;
        margin-top: -100px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .about-us-section {
        flex-direction: column;
        text-align: center;
    }

    .about-us-content p {
        text-align: center;
        line-height: 1.5;
        margin-bottom: 1px;
    }

    .about-us-image {
        width: 100%;
        margin-top: 30px;
        box-shadow: none;
        border-radius: 10px;
    }

    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.6s ease-out;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    #consent-banner {
        flex-direction: column;
        text-align: center;
    }

    .list-content {
        padding: 40px 20px;
    }

    .list-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

}