/* ==================== CONFIGURAÇÕES GLOBAIS E VARIÁVEIS ==================== */
:root {
    --primary-color: #FFC300;
    --secondary-color: #003566;
    --purple-color: #8A2BE2;
    /* Roxo do selo */
    --text-color: #333;
    --body-color: #f7f9fc;
    --container-color: #FFF;
    --header-height: 4.5rem;
    --title-font: 'Poppins', sans-serif;
    --body-font: 'Lato', sans-serif;
    --logo-font: 'Fredoka One', cursive;
    /* Fonte para o logo do concurso */
}

/* ==================== RESET E PADRÕES BÁSICOS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1rem;
    background-color: var(--body-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Previne scroll horizontal */
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-family: var(--title-font);
    font-size: clamp(2rem, 5vw, 2.5rem);
    /* Tipografia fluida */
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 700;
}

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

.section-title.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== PRELOADER APRIMORADO ==================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

#preloader::before {
    /* Overlay com gradiente */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 195, 0, 0.8), rgba(255, 195, 0, 0.95));
    opacity: 0.9;
    z-index: 1;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation: zoomPan 20s infinite alternate;
}

.slideshow img.active {
    opacity: 1;
}

@keyframes zoomPan {
    from {
        transform: translate(-50%, -50%) scale(1.1);
    }

    to {
        transform: translate(-50%, -50%) scale(1.3);
    }
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2;
    color: white;
    padding: 1rem;
}

.logo-loader svg {
    width: 220px;
    height: auto;
    margin-bottom: 1rem;
}

.welcome-message {
    font-family: var(--title-font);
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

#enter-button {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-family: var(--title-font);
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#enter-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* ==================== CABEÇALHO E NAVEGAÇÃO ==================== */
#header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--container-color);
    transition: background-color 0.3s, box-shadow 0.3s;
}

#header.scroll-header {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .logo {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

nav .logo span {
    color: #555;
    font-weight: 500;
}

.menu-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu-list a {
    font-family: var(--title-font);
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    transition: color 0.3s;
}

.menu-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.menu-list a:hover {
    color: var(--secondary-color);
}

.menu-list a:hover::after {
    width: 100%;
}

.nav-contact-btn {
    display: none;
    /* Visível apenas no menu mobile */
}

.mobile-nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 9999;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* ==================== SEÇÃO HERO ==================== */
#home {
    padding-top: calc(var(--header-height) + 2rem);
    background: linear-gradient(120deg, var(--body-color) 60%, var(--primary-color) 40%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-content .text-content h1 {
    font-family: var(--title-font);
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    /* Tipografia fluida */
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.hero-content .text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    /* Permite que os botões quebrem a linha se necessário */
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 5px;
    font-family: var(--title-font);
    font-weight: 700;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: white;
}

.hero-content .image-content {
    position: relative;
}

.hero-content .image-content img {
    border-radius: 10px;
}

/* ==================== SELO EMBAIXADOR ==================== */
.embaixador-sticker {
    position: absolute;
    bottom: 20px;
    right: -30px;
    width: 200px;
    background-color: var(--purple-color);
    color: white;
    border-radius: 15px;
    padding: 1rem;
    text-align: center;
    transform: rotate(10deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
}

.sticker-header .main-title {
    font-family: var(--title-font);
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
}

.sticker-header .subtitle {
    font-family: 'Lato', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    display: block;
    margin-top: -5px;
}

.sticker-name {
    background: white;
    color: var(--purple-color);
    font-family: var(--title-font);
    font-weight: 700;
    padding: 0.3rem;
    margin: 0.8rem 0;
    border-radius: 5px;
}

.sticker-contest .contest-pre {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.sticker-contest .contest-logo {
    font-family: var(--logo-font);
    font-size: 1.4rem;
    line-height: 1.1;
    display: block;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* ==================== OUTRAS SEÇÕES ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    gap: 4rem;
}

.about-image img {
    border-radius: 10px;
    transform: rotate(-3deg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#services {
    background-color: var(--container-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--body-color);
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid transparent;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.4s, box-shadow 0.4s;
}

.portfolio-grid img:hover {
    transform: scale(1.05);
}

#awards {
    background-color: var(--container-color);
}

.awards-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.award-card {
    background: var(--secondary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s;
}

.award-card:hover {
    transform: translateY(-5px);
}

.award-card i {
    color: var(--primary-color);
}

#partners {
    background-color: var(--body-color);
}

.partners-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    filter: grayscale(1);
    opacity: 0.7;
    transition: all 0.4s;
}

.partners-logos:hover {
    filter: grayscale(0);
    opacity: 1;
}

.partners-logos span {
    font-family: var(--title-font);
    font-size: 1.2rem;
    color: #777;
    transition: color 0.3s, transform 0.3s;
}

.partners-logos span:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.testimonial-card {
    background: var(--body-color);
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

#contact .container {
    background: var(--container-color);
    padding: 4rem;
    border-radius: 10px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.8rem;
    color: var(--secondary-color);
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-image img {
    max-width: 80%;
    border-radius: 10px;
    animation: floatImage 4s ease-in-out infinite alternate;
}

@keyframes floatImage {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-20px);
    }
}

#footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* ==================== MEDIA QUERIES (RESPONSIVIDADE) ==================== */

/* Tablet e Telas Menores (até 1024px) */
@media (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .about-content {
        gap: 2rem;
    }

    .embaixador-sticker {
        width: 180px;
        right: 10px;
        bottom: 10px;
        transform: rotate(5deg);
    }

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

    #contact .container {
        padding: 3rem;
    }

    .contact-content {
        gap: 3rem;
    }
}

/* Dispositivos Móveis (até 768px) */
@media (max-width: 768px) {
    body {
        font-size: 0.95rem;
        /* Leve ajuste no tamanho da fonte base */
    }

    #home {
        padding-top: var(--header-height);
        background: var(--body-color);
        /* Remove o fundo dividido */
        text-align: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-content .image-content {
        order: -1;
        /* Imagem vem antes do texto */
        margin: 0 auto;
    }

    .buttons {
        justify-content: center;
    }

    .embaixador-sticker {
        width: 160px;
        padding: 0.8rem;
        transform: rotate(0) translateX(-50%);
        left: 50%;
        bottom: -30px;
    }
     /* Adicione esta nova regra para o título do adesivo */
    .sticker-header .main-title {
        font-size: 1.2rem; /* Fonte menor para caber no contêiner */
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image img {
        transform: rotate(0);
        margin-bottom: 2rem;
    }

    .testimonials-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .contact-image img {
        max-width: 70%;
        margin: 0 auto;
    }

    .contact-info {
        text-align: center;
    }

    .info-item,
    .social-links {
        justify-content: center;
    }

    /* --- Menu Mobile --- */
    .menu {
        position: fixed;
        inset: 0 0 0 30%;
        /* Pega da direita para a esquerda */
        flex-direction: column;
        padding: calc(var(--header-height) + 2rem) 2rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
        transform: translateX(100%);
        transition: transform 350ms ease-out;
        z-index: 1000;
    }

    .menu[data-visible="true"] {
        transform: translateX(0%);
    }

    .menu-list {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }

    .nav-contact-btn {
        display: inline-block;
        margin-top: 1rem;
        padding: 0.75rem 1.5rem;
        background-color: var(--primary-color);
        color: var(--secondary-color);
        border-radius: 5px;
        font-weight: 500;
    }

    .nav-contact-btn:hover {
        color: var(--secondary-color) !important;
    }

    .nav-contact-btn::after {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
        position: absolute;
        top: 1.25rem;
        right: 1.5rem;
        z-index: 9999;
    }

    /* Troca o ícone de hamburguer para 'X' */
    .mobile-nav-toggle[aria-expanded="true"] i::before {
        content: "\f00d";
        /* Código do ícone de 'X' (close) no Font Awesome */
    }
}

/* Dispositivos Móveis Pequenos (até 480px) */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .buttons a {
        width: 100%;
        max-width: 300px;
    }

    #contact .container {
        padding: 2rem 1.5rem;
    }
}

/* ==================== BANNER DE DIVULGAÇÃO DO CONCURSO ==================== */
#contest-banner {
    background: linear-gradient(120deg, var(--secondary-color) 0%, #00407a 100%);
    padding: 3rem 0;
}

.banner-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.banner-text h3 {
    font-family: var(--title-font);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.banner-text p {
    font-size: 1.1rem;
    max-width: 600px;
}

.banner-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 1rem 2rem;
    border-radius: 5px;
    font-family: var(--title-font);
    font-weight: 700;
    transition: all 0.3s ease;
    flex-shrink: 0;
    /* Impede que o botão encolha */
}

.banner-btn:hover {
    transform: scale(1.05);
}

/* Responsividade do Banner */
@media (max-width: 768px) {
    .banner-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .banner-text {
        margin-bottom: 1.5rem;
    }
}