:root {
    --primary-blue: #002776;
    --primary-blue-dark: #001a50;
    --primary-blue-soft: #eaf1ff;
    --accent-gold: #c5a059;
    --bg-white: #ffffff;
    --bg-off-white: #f7f9fc;
    --text-main: #111827;
    --text-muted: #64748b;
    --border-color: #e9eef5;
    --shadow-sm: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 18px 45px rgba(0, 39, 118, 0.10);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --whatsapp-green: #25d366;
    --whatsapp-green-dark: #1ebe5d;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}

section {
    position: relative;
}

/* NAVBAR */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    padding: 0.95rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.07);
    border-bottom-color: #eef2f7;
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.navbar-brand img {
    height: 58px;
    width: auto;
    display: block;
}

.navbar-toggler {
    border: 1px solid #dde5f0;
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.nav-link {
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.96rem;
    transition: color 0.25s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* BOTÕES */
.btn-sponsor,
.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-sponsor {
    background: linear-gradient(135deg, var(--primary-blue), #0037a6);
    color: #fff !important;
    padding: 14px 28px;
    letter-spacing: 0.4px;
    box-shadow: 0 12px 25px rgba(0, 39, 118, 0.20);
}

.btn-sponsor:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--primary-blue-dark), var(--primary-blue));
    box-shadow: 0 16px 30px rgba(0, 39, 118, 0.24);
}

.btn-hero {
    padding: 15px 32px;
    background: var(--primary-blue);
    color: #fff;
    box-shadow: 0 12px 24px rgba(0, 39, 118, 0.16);
}

.btn-hero:hover {
    background: var(--primary-blue-dark);
    color: #fff;
    transform: translateY(-2px);
}

/* HERO */
.hero-section {
    padding: 165px 0 110px;
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 39, 118, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 100% 20%, rgba(197, 160, 89, 0.08) 0%, transparent 28%),
        #ffffff;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--primary-blue-soft);
    color: var(--primary-blue);
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    border: 1px solid rgba(0, 39, 118, 0.08);
}

.hero-content h1 {
    font-size: clamp(2.7rem, 5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: #0f172a;
    margin-bottom: 22px;
}

.hero-content h1 span {
    color: var(--primary-blue);
}

.lead-text {
    font-size: 1.08rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 34px;
    max-width: 700px;
}

.hero-stats {
    margin-bottom: 36px;
}

.stat-card {
    position: relative;
    height: 100%;
    padding: 24px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 39, 118, 0.18);
}

.stat-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-blue-soft), #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.stat-icon {
    font-size: 1.35rem;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-card h4 {
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: #0f172a;
}

.stat-card span {
    display: block;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--text-muted);
}

/* HERO LOGO */
.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 28px;
}

.hero-logo {
    width: 100%;
    max-width: 580px;
    height: auto;
    display: block;
    filter: drop-shadow(0 28px 55px rgba(0,0,0,0.10));
    transform: none !important;
    animation: none !important;
}

.logo-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.8s ease;
    pointer-events: none;
}

.logo-wrapper:hover .logo-overlay {
    left: 130%;
}

/* SECTION */
.section-title {
    font-weight: 900;
    letter-spacing: -0.04em;
    margin-bottom: 3.2rem;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    color: #0f172a;
}

.section-title span {
    color: var(--primary-blue);
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 680px;
    margin: -1.7rem auto 3rem;
    text-align: center;
    line-height: 1.8;
}

/* HISTÓRIA */
.history-box {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border: 1px solid #edf2f7;
    border-radius: 32px;
    padding: 52px;
    box-shadow: var(--shadow-sm);
}

.history-box img {
    border-radius: 24px !important;
    object-fit: cover;
}

.history-highlight {
    margin-top: 1.8rem;
    padding: 1.2rem 1.3rem;
    background: linear-gradient(135deg, #ffffff, #f7faff);
    border-left: 5px solid var(--primary-blue);
    border-radius: 0 18px 18px 0;
    box-shadow: var(--shadow-sm);
}

/* CURRÍCULO */
.bg-off-white {
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 39, 118, 0.04), transparent 30%),
        var(--bg-off-white);
}

.curriculum-card {
    position: relative;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid #ebf0f6;
    border-radius: 26px;
    padding: 34px 28px;
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    overflow: hidden;
}

.curriculum-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
}

.curriculum-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 39, 118, 0.14);
}

.year-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: var(--primary-blue-soft);
    color: var(--primary-blue);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.8rem;
    margin-bottom: 18px;
    border: 1px solid rgba(0, 39, 118, 0.07);
}

.card-title-custom {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
    color: #0f172a;
}

.medal-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.96rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.medal-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff8ea;
    color: var(--accent-gold);
    margin-top: 1px;
}

.curriculum-feature {
    background: linear-gradient(135deg, #ffffff, #f4f8ff);
}

/* MEDALHAS */
.medalhas-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
    border: 1px solid #ebf0f6;
    border-radius: 28px;
    padding: 22px;
    box-shadow: 0 18px 45px rgba(0, 39, 118, 0.08);
    position: relative;
    overflow: hidden;
}

.medalhas-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
}

.medalhas-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
}

.medalhas-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 22px 45px rgba(0, 0, 0, 0.10));
    transform: none !important;
    animation: none !important;
}

.medalhas-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.55) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-20deg);
    transition: left 0.8s ease;
    pointer-events: none;
}

.medalhas-wrapper:hover .medalhas-overlay {
    left: 130%;
}

/* GALERIA */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.26), rgba(0,0,0,0.02));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card:hover::after {
    opacity: 1;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(4, 10, 24, 0.88);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
    cursor: pointer;
}

.lightbox img {
    max-width: 92vw;
    max-height: 92vh;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
}

/* FOOTER */
footer {
    background: #ffffff;
}

.footer-brand {
    color: var(--primary-blue);
    font-weight: 900;
}

.footer-social a {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary-blue);
    color: #fff !important;
    transform: translateY(-3px);
    border-color: var(--primary-blue);
}

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-blue), var(--whatsapp-green));
    color: #fff;
    font-size: 1.95rem;
    box-shadow: 0 18px 38px rgba(0, 39, 118, 0.22);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.04);
    color: #fff;
    box-shadow: 0 22px 45px rgba(0, 39, 118, 0.28);
}

.whatsapp-float::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.22);
    animation: whatsappPulse 2s infinite;
    z-index: -1;
}

.whatsapp-tooltip {
    position: absolute;
    right: 82px;
    white-space: nowrap;
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: all 0.25s ease;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.18);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(0);
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }
    70% {
        transform: scale(1.55);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

/* RESPONSIVO */
@media (max-width: 991px) {
    .hero-section {
        padding: 140px 0 80px;
    }

    .hero-logo {
        max-width: 470px;
    }

    .navbar-brand img {
        height: 50px;
    }

    .history-box {
        padding: 36px 28px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .lead-text {
        font-size: 1rem;
    }

    .hero-logo {
        max-width: 420px;
    }

    .navbar-brand img {
        height: 44px;
    }

    .section-title {
        margin-bottom: 2.5rem;
    }

    .history-box {
        padding: 28px 20px;
        border-radius: 24px;
    }

    .curriculum-card {
        padding: 28px 22px;
    }

    .gallery-card img {
        min-height: 220px;
    }

    .whatsapp-float {
        width: 60px;
        height: 60px;
        right: 16px;
        bottom: 16px;
        font-size: 1.7rem;
    }

    .whatsapp-tooltip {
        display: none;
    }
}