@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   VARIÁVEIS DE TEMA (DESIGN SYSTEM)
   ========================================================================== */
:root {
    /* Cores em HSL/OKLCH e HEX */
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f5f7fa;
    --color-bg-dark: #050816;
    --color-bg-dark-translucent: rgba(5, 8, 22, 0.95);

    --color-accent: #050816;
    /* Cor de Destaque Estrutural */
    --color-accent-blue: #1d4ed8;
    /* Azul Destaque/Link */
    --color-accent-blue-hover: #2563eb;
    /* Azul de Apoio */

    --color-text-dark: #050816;
    --color-text-muted-dark: #4b5563;
    --color-text-light: #ffffff;
    --color-text-muted-light: #9ca3af;

    --color-border-light: rgba(5, 8, 22, 0.08);
    --color-border-dark: rgba(255, 255, 255, 0.08);

    /* Tipografia */
    --font-primary: 'Montserrat', sans-serif;

    /* Espaçamentos e Bordas */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Efeitos */
    --shadow-sm: 0 2px 8px rgba(5, 8, 22, 0.04);
    --shadow-md: 0 4px 20px rgba(5, 8, 22, 0.04);
    --shadow-lg: 0 12px 30px rgba(5, 8, 22, 0.08);
    --shadow-dark: 0 15px 50px rgba(0, 0, 0, 0.3);

    --transition-fast: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-normal: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    --max-width: 1400px;

    /* z-index scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
}

/* ==========================================================================
   RESET GLOBAL
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-primary);
}

/* Ativação de transições de página nativas modernas (View Transitions API) */
@view-transition {
    navigation: auto;
}

::view-transition {
    background-color: var(--color-bg-primary);
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-primary);
    color: var(--color-text-muted-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-accent-blue-hover);
}

ul,
ol {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.25;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* ==========================================================================
   HEADER / NAVIGATION (DARK BACKGROUND #050816 FOR HIGH CONTRAST)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: var(--z-sticky);
    transition: var(--transition-normal);
}

header.header-scrolled,
header.header-static {
    background-color: var(--color-bg-dark-translucent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--color-border-dark);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition-normal);
}

header.header-scrolled .navbar {
    padding: 14px 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Logo branca no header escuro */
}

/* Menu de Navegação */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-blue-hover);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* MEGA MENU MARCAS */
.nav-item-dropdown {
    position: relative;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.97);
    width: 680px;
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: var(--z-dropdown);
}

.nav-item-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(5px) scale(1);
}

.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.mega-menu-item:hover {
    background-color: var(--color-bg-secondary);
}

.mega-menu-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: var(--radius-sm);
    padding: 4px;
    border: 1px solid var(--color-border-light);
}

.mega-menu-info h5 {
    color: var(--color-text-dark);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.mega-menu-info p {
    color: var(--color-text-muted-dark);
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.3;
}

/* Elementos de Menu Mobile ocultos no Desktop por padrão */
.nav-menu-mobile-extra {
    display: none !important;
}

/* Hamburguer para Mobile */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ==========================================================================
   FOOTER (DARK BACKGROUND #050816 FOR HIGH CONTRAST)
   ========================================================================== */
footer {
    background-color: var(--color-bg-dark);
    color: var(--color-text-muted-light);
    padding: 80px 0 30px;
    border-top: 1px solid var(--color-border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo-img {
    margin-bottom: 24px;
}

.footer-brand p {
    font-size: 0.937rem;
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid var(--color-border-dark);
    transition: background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.social-btn i {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.social-btn:hover {
    background-color: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
}

.social-btn:hover i {
    transform: rotate(12deg) scale(1.1);
}

.footer-title {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--color-text-muted-light);
    font-size: 0.937rem;
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-link:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    font-size: 0.937rem;
    line-height: 1.6;
}

.footer-contact-icon {
    color: var(--color-accent-blue-hover);
    flex-shrink: 0;
    margin-top: 4px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.footer-contact-item:hover .footer-contact-icon {
    transform: scale(1.15) translateY(-1px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--color-border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.812rem;
}

.footer-copy {
    color: var(--color-text-muted-light);
}

.footer-legal-links {
    display: flex;
    gap: 24px;
}

.footer-legal-link {
    color: var(--color-text-muted-light);
}

.footer-legal-link:hover {
    color: #ffffff;
}

/* ==========================================================================
   MICRO-INTERACTIONS & REVEAL SYSTEM
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggers */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Animação Inicial de Carga da Hero (CSS Keyframes) */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

.hero-animate {
    opacity: 0;
    animation: heroFadeIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-animate.hero-delay-1 {
    animation-delay: 0.12s;
}

.hero-animate.hero-delay-2 {
    animation-delay: 0.24s;
}

.hero-animate.hero-delay-3 {
    animation-delay: 0.36s;
}

/* ==========================================================================
   LGPD BANNER
   ========================================================================== */
.lgpd-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 40px));
    width: 90%;
    max-width: 600px;
    background-color: var(--color-bg-dark-translucent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-dark);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: var(--z-toast);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
}

.lgpd-banner.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.lgpd-text {
    color: var(--color-text-muted-light);
    font-size: 0.812rem;
    line-height: 1.6;
}

.lgpd-text a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.lgpd-btn {
    padding: 10px 20px;
    background-color: #ffffff;
    color: var(--color-bg-dark);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.812rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.lgpd-btn:hover {
    background-color: var(--color-accent-blue);
    color: #ffffff;
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES GERAIS)
   ========================================================================== */
@media (max-width: 1024px) {
    .mega-menu {
        width: 500px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (max-width: 768px) {

    /* Forçar o header a ficar acima do overlay para evitar desfoque na logo e hamburger */
    header {
        z-index: 1000 !important;
    }

    /* Esconder o CTA original no header */
    #header-cta-btn,
    .navbar>.btn {
        display: none !important;
    }

    /* Navbar preenchimento confortável */
    .navbar {
        padding: 16px 0;
        position: relative;
    }

    /* Garantir que a logo fique acima do painel lateral */
    .logo-link {
        position: relative;
        z-index: 10;
    }

    /* Hamburger posicionado com z-index de controle acima de tudo dentro da navbar */
    .hamburger {
        display: flex;
        position: relative;
        z-index: 10;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Overlay de desfoque e escurecimento do fundo do site (abaixo do header) */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: rgba(5, 8, 22, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        z-index: 998;
    }

    .mobile-menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Painel do Menu Mobile Premium - Aproveitando o header existente por baixo */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        background: rgba(5, 8, 22, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 100px 24px 40px;
        /* Padding superior para começar os links abaixo da barra do header */
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        transform: translateX(100%);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.5);
        z-index: 5;
        /* Fica abaixo do logo e hamburger (z-index 10) dentro do header */
        overflow-y: auto;
        gap: 0;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    /* Efeito de surgimento sequencial para os itens do menu */
    .nav-menu>* {
        opacity: 0;
        transform: translateY(15px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-menu.active>* {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-menu.active>*:nth-child(1) {
        transition-delay: 0.05s;
    }

    .nav-menu.active>*:nth-child(2) {
        transition-delay: 0.1s;
    }

    .nav-menu.active>*:nth-child(3) {
        transition-delay: 0.15s;
    }

    .nav-menu.active>*:nth-child(4) {
        transition-delay: 0.2s;
    }

    .nav-menu.active>*:nth-child(5) {
        transition-delay: 0.25s;
    }

    .nav-menu.active>*:nth-child(6) {
        transition-delay: 0.3s;
    }

    .nav-menu.active>*:nth-child(7) {
        transition-delay: 0.35s;
    }

    /* Links principais no mobile */
    .nav-menu .nav-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 14px 0;
        font-size: 1.0625rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: var(--transition-fast);
        text-align: left;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        color: var(--color-accent-blue-hover) !important;
        background: transparent;
    }

    .nav-menu .nav-link::after {
        display: none !important;
    }

    /* Accordion de Marcas */
    .nav-menu .nav-item-dropdown {
        width: 100%;
    }

    .nav-menu .nav-item-dropdown .mega-menu {
        position: static;
        transform: none;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.02);
        border: none;
        border-radius: var(--radius-md);
        box-shadow: none;
        padding: 0 16px;
        display: flex !important;
        /* Exibir em lista usando Flexbox vertical */
        flex-direction: column !important;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.3s ease, margin 0.3s ease;
    }

    .nav-menu .nav-item-dropdown.open .mega-menu {
        max-height: 520px;
        opacity: 1;
        visibility: visible;
        padding: 8px 16px;
        margin: 8px 0;
        border: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-menu .nav-item-dropdown .nav-link i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }

    .nav-menu .nav-item-dropdown.open .nav-link i {
        transform: rotate(180deg);
    }

    /* Sublinks do Accordion */
    .nav-menu .mega-menu-item {
        display: flex !important;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.03);
        background: transparent !important;
        text-align: left;
        width: 100%;
        justify-content: flex-start !important;
    }

    .nav-menu .mega-menu-item:last-child {
        border-bottom: none;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.8125rem !important;
        justify-content: center !important;
        text-align: center;
        width: 100%;
        color: var(--color-accent-blue-hover) !important;
    }

    .nav-menu .mega-menu-logo {
        width: 38px;
        height: 38px;
        border-radius: var(--radius-sm);
        padding: 2px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background-color: #ffffff;
    }

    .nav-menu .mega-menu-info h5 {
        color: #ffffff;
        font-size: 0.8125rem;
        margin-bottom: 1px;
    }

    .nav-menu .mega-menu-info p {
        color: var(--color-text-muted-light);
        font-size: 0.6875rem;
    }

    /* Seção de rodapé extra no menu lateral */
    .nav-menu-mobile-extra {
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-menu-cta {
        width: 100%;
    }

    .mobile-menu-cta .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9375rem;
        font-weight: 700;
        border-radius: var(--radius-md);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background-color: var(--color-accent-blue);
        color: #ffffff;
        border: none;
        transition: var(--transition-fast);
        box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
    }

    .mobile-menu-cta .btn:hover {
        background-color: var(--color-accent-blue-hover);
        transform: translateY(-1px);
    }

    .mobile-menu-contact {
        display: flex;
        flex-direction: column;
        gap: 2px;
        font-size: 0.75rem;
    }

    .mobile-menu-contact span {
        color: var(--color-text-muted-light);
        font-weight: 500;
    }

    .mobile-menu-contact a {
        color: #ffffff;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-menu-socials {
        display: flex;
        gap: 10px;
    }

    .mobile-menu-socials .social-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.04);
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        transition: var(--transition-fast);
    }

    .mobile-menu-socials .social-btn:hover {
        background-color: var(--color-accent-blue);
        transform: translateY(-2px);
    }

    /* Rodapé da Página */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .footer-legal-links {
        justify-content: center;
    }

    .lgpd-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        left: 16px;
        right: 16px;
        bottom: 16px;
        width: auto;
        max-width: none;
        transform: translateY(calc(100% + 40px));
        gap: 16px;
    }

    .lgpd-banner.active {
        transform: translateY(0);
    }

    .lgpd-btn {
        width: 100%;
    }
}

/* Suporte à redução de movimento */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-delay: 0s !important;
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   NORMALIZAÇÃO DE FONT-WEIGHT DO PHOSPHOR ICONS
   ========================================================================== */
.ph,
[class^="ph-"],
[class*=" ph-"] {
    font-family: 'Phosphor' !important;
    font-weight: normal !important;
    font-style: normal !important;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
}