/* ===========================
   Paleta de Cores e Variáveis
   =========================== */
:root {
    --primary-blue: #1565C0;
    --dark-blue: #0D47A1;
    --accent-amber: #FFC107;
    --gold: #FFB84D;
    --text-light: #FFFFFF;
    --text-dark: #212121;
    --text-darkest-blue: #021431;
    --bg-light: #FDFDFD;
    --gradient-primary: linear-gradient(135deg, #0D47A1 0%, #1565C0 50%, #1E88E5 100%);
    --gradient-accent: linear-gradient(135deg, #FFC107 0%, #FFB84D 100%);

    /* Layout Variables */
    --z-navbar: 1000;
    --z-dropdown: 999;
    --z-modal: 9999;
    --border-radius-card: 20px;
    --transition-speed: 0.4s;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 10px 30px rgba(21, 101, 192, 0.3);
}

/* ===========================
   Reset e Configurações Base
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('../images/backgrounds/bg-principal.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navbar
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.15) 0%, rgba(21, 101, 192, 0.15) 50%, rgba(30, 136, 229, 0.15) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-navbar);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
    padding: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 2rem;
}

/* ===========================
   Logo
   =========================== */
.nav-logo {
    display: flex;
    align-items: center;
}
.nav-logo img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.nav-logo img:hover {
    transform: scale(1.05);
}

/* ===========================
   Menu Principal
   =========================== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

/* ===========================
   Links
   =========================== */
.nav-link {
    color: var(--text-darkest-blue);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-amber);
}

.nav-link:hover::after {
    width: 80%;
}

/* ===========================
   Submenu (Dropdown)
   =========================== */
.has-submenu>.submenu {
    position: absolute;
    top: 120%;
    left: 0;
    min-width: 240px;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    list-style: none;
    padding: 0.5rem 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-speed) ease;
    z-index: var(--z-dropdown);
}

.has-submenu:hover>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: var(--text-darkest-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.submenu li a:hover {
    background: rgba(255, 193, 7, 0.15);
    color: var(--accent-amber);
}

/* ===========================
   Ícone indicativo de submenu
   =========================== */
.has-submenu>.nav-link::before {
    content: "▾";
    margin-left: 6px;
    font-size: 0.8rem;
}

/* ===========================
   Hamburger (Mobile)
   =========================== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all var(--transition-speed) ease;
}

/* ===========================
   Hero Section / Carrossel
   =========================== */
.hero {
    margin-top: 80px;
    height: 600px;
    position: relative;
    overflow: hidden;
}

.carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.75) 0%, rgba(21, 101, 192, 0.6) 100%);
    z-index: 1;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    color: var(--text-light);
    width: 90%;
    max-width: 800px;
}

.slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.2s ease;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: var(--text-light);
    padding: 1rem 1.3rem;
    cursor: pointer;
    z-index: 3;
    font-size: 1.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    background: rgba(255, 193, 7, 0.4);
    border-color: var(--accent-amber);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 2rem;
}

.carousel-btn.next {
    right: 2rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 3;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: var(--accent-amber);
    transform: scale(1.3);
    border-color: white;
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* ===========================
   Sobre Section
   =========================== */
.sobre {
    background: transparent;
}

.sobre-content {
    max-width: 900px;
    margin: 0 auto;
}

.sobre-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-dark);
    line-height: 1.8;
}

.sobre-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(46, 92, 138, 0.3);
}

.stat-item i {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-dark);
    font-size: 1rem;
}

/* ===========================
   Calendário
   =========================== */
.eventos {
    background: transparent;
    color: var(--text-light);
}

.calendario .section-title {
    color: var(--text-light);
}

.calendario .section-title::after {
    background: var(--accent-amber);
}

.calendario-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    background: rgba(255, 184, 77, 0.2);
    padding: 2rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 184, 77, 0.3);
}

.card-header i {
    font-size: 3rem;
    color: var(--accent-amber);
    margin-bottom: 1rem;
}

.card-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-darkest-blue);
}

.card-body {
    padding: 2.5rem;
}

.calendario-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--text-darkest-blue);
}

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.evento-item {
    display: flex;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-amber);
    transition: all 0.3s ease;
}

.evento-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.evento-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--accent-amber);
    color: var(--dark-blue);
    padding: 1rem;
    border-radius: 10px;
    min-width: 70px;
    font-weight: bold;
}

.date-day {
    font-size: 2rem;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.evento-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-darkest-blue);
}

.evento-info p {
    color: var(--text-darkest-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.btn-primary {
    display: block;
    width: fit-content;
    margin: 2rem auto 0;
    padding: 1rem 2.5rem;
    background: var(--accent-amber);
    color: var(--dark-blue);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 193, 7, 0.5);
    background: #FFCA28;
}

/* ===========================
   Destaques
   =========================== */
.destaques {
    background: transparent;
}

.destaques-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.destaque-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-blue);
}

.destaque-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(46, 92, 138, 0.2);
    border-top-color: var(--gold);
}

.destaque-card i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.destaque-card:hover i {
    color: var(--accent-amber);
    transform: scale(1.1);
}

.destaque-card h3 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.destaque-card p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logoCards {
    height: 100px;
}


/* =========================================================
   FOOTER (CONSOLIDADO)
   ========================================================= */
.footer {
    background: linear-gradient(180deg, #0f2a44, #163a5f);
    color: #fff;
    padding: 5px 5px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-info {
    text-align: center;
    font-size: 14px;
}

.footer-info p {
    margin: 0;
    line-height: 1.2;
}

.footer-social {
    display: flex;
    gap: 18px;
}

.footer-social a {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);

    color: #fff;
    font-size: 18px;

    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #ffd700;
    color: #0f2a44;
    transform: translateY(-3px);
}

/* ===== MODAL ===== */
/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
    padding: 16px;
}

/* ===== MODAL GLASS ===== */
.modal-content.glass {
    width: 100%;
    max-width: 380px;
    padding: 28px 22px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);

    text-align: center;
    animation: modalUp 0.45s ease;
}

/* ===== LOGOS ===== */
.modal-logo {
    display: block;
    margin: 0 auto;
}

/* FEQUAJUTO maior */
.fequajuto-logo {
    max-width: 200px;
    margin-bottom: 12px;
}

/* JuninoPro menor */
.junino-logo {
    max-width: 110px;
    margin-top: 18px;
    opacity: 0.9;
}

/* ===== TEXTO ===== */
.modal-content h2 {
    color: #fff;
    font-size: 20px;
    margin: 15px 0 22px;
    font-weight: 600;
}

/* ===== BOTÕES ===== */
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal-buttons a {
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: all 0.25s ease;
}

/* Presidente */
.btn-presidente {
    background: linear-gradient(135deg, #0D47A1, #1E88E5);
    box-shadow: 0 8px 18px rgba(13, 71, 161, 0.4);
}

/* Avaliador */
.btn-avaliador {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    box-shadow: 0 8px 18px rgba(46, 125, 50, 0.4);
}

/* Brincante */
.btn-brincante {
    background: linear-gradient(135deg, #1565c0, #1e88e5);
    box-shadow: 0 8px 18px rgba(21, 101, 192, 0.4);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    background: #128c7e;
    color: #fff;
}

/* Glassmorphism Classes */
.glass {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

@keyframes modalUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-buttons a:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.1);
}

/* ===== ANIMAÇÃO ===== */
@keyframes modalUp {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
    .modal-content.glass {
        padding: 24px 18px;
    }

    .fequajuto-logo {
        max-width: 180px;
    }

    .junino-logo {
        max-width: 100px;
    }
}

/* ===== BOTÃO FECHAR (DISCRETO) ===== */
.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 22px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: all 0.25s ease;
}

.modal-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* ===========================
   Responsive Queries Consolidadas
   =========================== */
@media (max-height: 800px) {
    .hero {
        height: 500px;
    }

    .slide-title {
        font-size: 3rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: row;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        /* Adjust according to navbar height */
        flex-direction: column;
        background: var(--gradient-primary);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
        z-index: var(--z-navbar);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        width: 100%;
        display: block;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .slide-title {
        font-size: 2.5rem;
    }

    .slide-subtitle {
        font-size: 1.2rem;
    }

    .carousel-btn {
        padding: 0.7rem 1rem;
        font-size: 1.2rem;
    }

    .carousel-btn.prev {
        left: 1rem;
    }

    .carousel-btn.next {
        right: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero {
        height: 450px;
    }

    .eventos-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    /* PAINEL JUNINO destaque */
    .nav-highlight .nav-link {
        background: linear-gradient(135deg, #0D47A1, #1E88E5);
        margin: 12px auto;
        border-radius: 10px;
        font-weight: bold;
        width: 80%;
    }
}

@media (max-width: 480px) {
    .nav-logo img {
        height: 50px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .sobre-stats {
        grid-template-columns: 1fr;
    }

    .destaques-grid {
        grid-template-columns: 1fr;
    }

    .modal-content.glass {
        padding: 24px 18px;
    }

    .fequajuto-logo {
        max-width: 180px;
    }

    .junino-logo {
        max-width: 100px;
    }
}