/* Reset básico para garantir consistência entre navegadores */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Acessibilidade: Visualmente Oculto, Disponível para Leitores de Tela e SEO */
.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;
}

html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #333333;
}

.header-banner-wrapper {
    width: 100%;
    height: auto;
    line-height: 0;
    background-color: transparent !important;
}

.header-banner-wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block;
}

/* =========================================================================
   CARROSSEL NO TOPO (HERO SECTION) - REVEAL COREOGRAPHY & BLURRED MIRROR
   ========================================================================= */

#carousel {
    width: 100%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    background-color: transparent !important;
    margin: 0;
    padding: 0;
}

.carousel-intro {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 2.2s cubic-bezier(0.19, 1, 0.22, 1), opacity 2.5s ease-in-out;
}

.carousel-intro.carousel-active {
    height: auto !important;
    aspect-ratio: 1920 / 500;
    max-height: 500px;
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}

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

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.carousel-item.active {
    opacity: 1;
    z-index: 2;
}

/* Camada da Frente (Imagem Full-Width Imersiva p/ 1920x500) */
.carousel-item img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    z-index: 2;
}

/* =========================================================================
   CONTAINER PRINCIPAL (LOGO + BOTÕES)
   ========================================================================= */

.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: padding-top 1.4s cubic-bezier(0.19, 1, 0.22, 1), opacity 1.2s ease;
    position: relative;
    z-index: 10;
    width: 100%;
}

.main-content-wrapper.main-active {
    opacity: 1;
}

/* =========================================================================
   LOGO SVG E ANIMAÇÕES (+10% mass/gravity - FIXADO DIMENSÕES P/ JANKING)
   ========================================================================= */

.logo {
    width: 567px;
    max-width: 100%;
    height: auto;

    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform-origin: center center;

    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.logo-intro {
    opacity: 0;
    transform: scale(4.5) translateZ(0);
    filter: blur(10px) drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-intro.logo-active {
    opacity: 1;
    transform: scale(1) translateZ(0);
    filter: blur(0px) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.05));
}

.logo-intro.logo-active:hover {
    transform: translateY(-4px) scale(1.02) translateZ(0);
    filter: blur(0px) drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

/* =========================================================================
   BADGE 30 ANOS E LINHA DE MARCAS
   ========================================================================= */

.logo-badge-wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    max-width: 567px;
    margin-top: -40px;
    margin-bottom: 6px;
    padding-right: 40px;
}

.badge-30anos-img {
    width: 220px;
    height: auto;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.badge-30anos-img.badge-active {
    opacity: 1;
    transform: translateY(0);
}

.brands-line-wrapper {
    width: 480px;
    max-width: 480px;
    margin-top: 16px;
    margin-bottom: 10px;
    align-self: center;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.brands-line-wrapper.brands-active {
    opacity: 1;
    transform: translateY(0);
}

.brands-line-img {
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================================================
   LINKS DE CONVERSÃO - GLASSMORPHISM (ROW) (+5% expand)
   ========================================================================= */

.links-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    margin-top: 20px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Volta para center para alinhar perfeitamente perante o logo */
    white-space: nowrap;
    /* Força 100% de ocupação na mesma linha, proibindo quebras */

    padding: 18px 35px;
    min-width: 320px;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 1.1rem;

    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: background, transform, box-shadow;

    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

/* Container de Alinhamento Absoluto Interno */
.btn-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    gap: 15px;
}

/* Ícones de Extensão Visual Oficial e Texto */
.btn-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
    flex-shrink: 0;
    margin-right: 15px;
    object-fit: contain;
}

.btn-text {
    text-align: left;
}

.btn-intro {
    opacity: 0;
    transform: translateY(20px) translateZ(0);
    pointer-events: none;
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-intro.btn-active {
    opacity: 1;
    transform: translateY(0) translateZ(0);
    pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
    .btn-intro.btn-active:hover {
        transform: scale(1.05) translateZ(0);
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
}

/* =========================================================================
   RODAPÉ ESTRUTURADO BIPARTIDO (FOOTER)
   ========================================================================= */

.footer {
    width: 100%;
    padding: 20px 5%;
    flex-shrink: 0;
    margin-top: auto;

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

    background: #f0f2f5;
    position: relative;
    z-index: 10;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 50%, transparent 100%);
}

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

.footer p {
    color: #777777;
    font-size: 20.8px;
    /* Aumentado em 20% para maior legibilidade institucional */
    font-weight: 400;
    line-height: 1.6;
}

.footer a {
    color: #777777;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer a:hover {
    color: #444444;
    text-decoration: underline;
}

.footer-intro {
    opacity: 0;
    transform: translateY(10px) translateZ(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.footer-intro.footer-active {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* =========================================================================
   MEDIA QUERIES - RESPONSIVIDADE ESTRITA PARA DISPOSITIVOS TIPO CELULAR E TABLET
   ========================================================================= */

@media (max-width: 768px) {
    .links-container {
        gap: 20px;
    }

    .footer {
        flex-direction: column;
        justify-content: center;
        padding: 30px 20px;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    html,
    body {
        height: auto;
    }

    body {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }

    #carousel {
        margin-top: 0 !important;
        width: 100% !important;
        border: none;
        background-color: transparent !important;
    }

    .carousel-intro.carousel-active {
        height: calc(100vw * (500 / 1920)) !important;
    }

    .carousel-item img {
        height: auto !important;
        position: relative !important;
    }

    .header-banner-wrapper {
        height: auto !important;
        background: transparent !important;
    }

    .header-banner-wrapper img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block;
    }

    .logo {
        width: 85%;
    }

    .container {
        padding: 10px 20px;
    }

    .main-content-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 0;
    }

    .links-container {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 15px;
        margin-top: 20px;
        margin-bottom: 0;
        align-items: center;
    }

    .btn {
        width: 90%;
        padding: 18px 0;
        font-size: 1.1rem;
        justify-content: center;
    }

    .btn-content-wrapper {
        width: 220px;
        justify-content: flex-start;
    }

    .footer {
        margin-top: auto;
        padding: 15px 20px;
    }

    .footer p {
        font-size: 15px;
        line-height: 1.5;
    }

    .logo-badge-wrapper {
        max-width: 85%;
        padding-right: 8%;
        margin-top: -16px;
    }

    .badge-30anos-img {
        width: 130px;
    }

    .brands-line-wrapper {
        width: 78%;
        max-width: 78%;
        align-self: flex-start;
        margin-left: 11%;
        margin-bottom: 0;
    }
}