/* ============================================
   VARIÁVEIS E TEMA
============================================ */
:root {
    /* Cores Primárias */
    --color-primary: #004a99;
    --color-primary-light: #0066cc;
    --color-primary-dark: #003366;
    
    /* Cores Secundárias */
    --color-accent: #00c9a7;
    --color-accent-light: #33e5d1;
    
    /* Neutros */
    --color-white: #ffffff;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f1f3f5;
    --color-gray-200: #e9ecef;
    --color-gray-400: #adb5bd;
    --color-gray-600: #495057;
    --color-gray-800: #212529;
    --color-gray-900: #0a0a0a;
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Espaçamento */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* ============================================
   RESET E ESTILOS GLOBAIS
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Times New Roman';
    background-color: var(--color-white);
    color: var(--color-gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

header {
    background-color: #004a99;
    color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.nome-escola {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

.logo-central {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.logo-central img {
    width: 125px;
    height: 125px;
    object-fit: contain;
}

#menu-lateral {
  position: fixed;
  top: 0;
  left: -250px;
  width: 250px;
  height: 100%;
  background-color: #004a998f;
  transition: left 0.3s ease-in-out;
  padding-top: 5rem;
  z-index: 1001;
}

#menu-lateral.show {
  left: 0;
}

#menu-lateral ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem 2rem;
}

#menu-lateral a {
  text-decoration: none;
  color: var(--color-gray-200);
  font-weight: bold;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#overlay.show {
    opacity: 1;
    visibility: visible;
}

.menu-topo {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.menu-topo ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.menu-topo a {
    text-decoration: none;
    color: #f8f9fa;
    font-weight: bold;
    transition: color 0.2s ease-in-out;
}

.menu-topo a:hover {
    color: #ffdd57;
}

.hamburguer {
    width: 40px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px;
    /* aumentando z-index para 1003 para ficar acima do menu */
    z-index: 1003;
    position: relative;
}

.hamburguer span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #f8f9fa;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburguer.ativo span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburguer.ativo span:nth-child(2) {
    opacity: 0;
}

.hamburguer.ativo span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-base);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    gap: var(--spacing-xs);
}

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

.btn--primary:hover {
    background: var(--color-accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   MAIN CONTENT
============================================ */
main {
    margin-top: 110px; /* Compensar altura do header fixo */
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: var(--spacing-2xl) var(--spacing-lg);
    text-align: center;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__content h2 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
    font-weight: 700;
}

.hero__content p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto var(--spacing-lg);
    line-height: 1.8;
}

.hero__cta {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

/* ============================================
   SECTIONS
============================================ */
.section {
    padding: var(--spacing-2xl) var(--spacing-lg);
}

.section--light {
    background: var(--color-gray-50);
}

.section--accent {
    background: var(--color-gray-50);
    color: #000000;
}


.section__header {
    text-align: left;
    margin-bottom: var(--spacing-2xl);
}

.section__header--center {
    text-align: center;
}

.section__header h2 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 2.2rem;
}

.section--accent .section__header h2 {
    color: var(--color-gray-900);
}

.section__header p {
    color: var(--color-gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    line-height: 1.7;
}

.section--accent .section__header p {
    color: rgba(255, 255, 255, 0.85);
}

.highlight {
    color: var(--color-accent);
    font-weight: 700;
}

.section--accent .highlight {
    color: var(--color-accent-light);
}

/* ============================================
   GALLERY / CARDS
============================================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
}

.card__image {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.card:hover .card__image img {
    transform: scale(1.08);
}

.card__badge {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.card__content {
    padding: var(--spacing-lg);
    text-align: center;
}

.card__content h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.card__content p {
    color: var(--color-gray-600);
    font-size: 0.95rem;
}

/* Card Horizontal */
.card--horizontal {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.card--horizontal .card__image {
    width: 40%;
    height: auto;
    min-height: 280px;
}

.card--horizontal .card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--spacing-lg);
}

/* ============================================
   GRATITUDE SECTION
============================================ */
.gratitude {
    max-width: 900px;
    margin: 0 auto;
}

.gratitude__text {
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: var(--spacing-xl);
    text-align: center;
    font-weight: 500;
}

.gratitude__card {
    margin: var(--spacing-xl) 0;
}

.gratitude__message {
    color: rgba(0, 0, 0, 0.9) !important;
    font-style: italic;
    margin-top: var(--spacing-md);
    font-size: 1rem;
}

.gratitude__quote {
    background: rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--color-accent-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-xl);
    font-size: 1.15rem;
    font-style: italic;
    text-align: center;
    line-height: 1.9;
    backdrop-filter: blur(10px);
}

.gratitude__quote footer {
    margin-top: var(--spacing-md);
    font-size: 0.95rem;
    opacity: 0.85;
    font-style: normal;
}

/* ============================================
   FOOTER
============================================ */
footer {
    background: #004a99;
    color: #f8f9fa;
    padding: 2.5rem 1rem;
    text-align: center;
}

.footer-conteudo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.footer-logo {
    width: 70px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.footer-nome {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: #f8f9fa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    transform: scale(1.1);
    color: #ffdd57;
}

.direitos {
    margin-top: 20px;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   BOTÃO VOLTAR AO TOPO
============================================ */
#btn-topo {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #001f3f;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 8px #004a99;
    transition: opacity 0.4s ease, transform 0.3s ease, visibility 0.4s;
    z-index: 1000;
}

#btn-topo.show {
    opacity: 1;
    visibility: visible;
}

#btn-topo:hover {
    background: #000000;
    transform: scale(1.1);
}

/* ============================================
   MODAL DE GALERIA
============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none !important;
}

.modal.show {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

.modal-content {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 12px;
    margin: 0 !important;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 45px;
    font-weight: bold;
    cursor: pointer;
    color: white;
    padding: 15px;
    z-index: 10000;
}

.prev { left: 15px; }
.next { right: 15px; }

.prev:hover, .next:hover {
    transform: translateY(-50%) scale(1.2);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    /* Ajustes responsivos do header */
    header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.8rem 1rem 2.5rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background-color: #004a99;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

    .hamburguer {
        width: 35px;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        margin: 0;
        order: 0;
    }

    .hamburguer span {
        height: 5px;
        border-radius: 3px;
    }

    .nome-escola {
        font-size: 1rem;
        position: absolute;
        top: 58px;
        left: 50%;
        transform: translateX(-50%);
        margin: 2;
        text-align: center;
        font-weight: bold;
        white-space: nowrap;
    }

    .logo-central {
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        order: 1;
    }

    .logo-central img {
        width: 100px;
        height: 100px;
    }

    .menu-topo {
        display: block;
        width: 100%;
        margin-top: 70px;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        background-color: #004a99;
        padding: 0.1rem 0;
        line-height: 1;
    }

    .menu-topo::-webkit-scrollbar {
        display: none;
    }

    .menu-topo {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .menu-topo ul {
        display: inline-flex;
        gap: 0.8rem;
        padding: 0 0.5rem;
        list-style: none;
    }

    .menu-topo a {
        display: inline-block;
        color: #f8f9fa;
        text-decoration: none;
        font-weight: 600;
        font-size: 0.85rem;
        padding: 0.2rem 0.4rem;
    }

    .menu-topo a:hover {
        color: #ffdd57;
    }

    #menu-lateral {
        width: 200px;
    }

    .hero {
        min-height: 350px;
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .hero__content h2 {
        font-size: 2rem;
    }

    .hero__content p {
        font-size: 1rem;
    }

    .section {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .section__header h2 {
        font-size: 1.7rem;
    }

    .gallery {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .card--horizontal {
        flex-direction: column;
    }

    .card--horizontal .card__image {
        width: 100%;
        height: 200px;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .hero {
        padding: var(--spacing-xl) var(--spacing-md);
        min-height: 300px;
    }

    .hero__content h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: var(--spacing-lg) var(--spacing-sm);
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
}
