/* ===== VARIÁVEIS GLOBAIS ===== */
:root {
    --bg-dark: #06021a;
    --blue-900: #010033;
    --blue-700: #0b2bff;
    --accent: #070a3f;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #000000;
    --card-bg: #ffffff;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    --dropdown-bg: #ffffff;
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --ff: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --h1: 48px;
    --h2: 36px;
    --h3: 20px;
    --regular: 16px;
    --topstrip-height: 44px;
    --header-height: 80px;
}

/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--ff);
    background: #ffffff;
    color: var(--gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
}

/* ===== CLASSES DE ESTADO PARA JAVASCRIPT ===== */
body.menu-open {
    overflow: hidden;
}

.nav--open {
    display: block !important;
}

/* Desktop dropdown hover states */
.nav__item.open .dropdown,
.nav__item.open .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== CONTAINER PRINCIPAL ===== */
.container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

/* ===== FAIXA SUPERIOR FIXA ===== */
.topstrip {
    background: linear-gradient(90deg, var(--accent), #0b2bff);
    color: var(--white);
    text-align: center;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1001;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topstrip-height);
}

/* ===== CABEÇALHO PRINCIPAL ===== */
.header {
    padding: 0;
    position: fixed;
    top: var(--topstrip-height);
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    transition: all 0.4s ease;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    height: var(--header-height);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ===== LOGO ===== */
.header__left {
    display: flex;
    align-items: center;
}

.header__logo {
    height: 70px;
    transition: all 0.3s ease;
}

/* ===== NAVEGAÇÃO ===== */
.nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
    height: 100%;
}

.nav__item {
    position: relative;
    height: 100%;
}

.nav__link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav__link:hover,
.nav__link:focus {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav__arrow {
    transition: transform 0.2s ease;
}

.has-mega:hover .nav__arrow,
.has-dropdown:hover .nav__arrow {
    transform: rotate(180deg);
}

/* ===== CTA DO HEADER ===== */
.header__cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* ===== BOTÕES ===== */
.btn {
    font-family: var(--ff);
    cursor: pointer;
    border-radius: 8px;
    padding: 12px 24px;
    border: 0;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
}

.btn--primary:hover {
    background: #0b2bff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 43, 255, 0.3);
}

.btn-saiba {
    display: block;
    padding: 14px 32px;
    background: #0019d4;
    margin: 30px auto 0;
    color: white;
    font-size: 22px;
    font-weight: 500;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.25);
    transition: 0.2s;
    max-width: calc(100% - 40px);
    text-align: center;
}

.btn-saiba:hover {
    filter: brightness(1.1);
}

/* ===== HAMBÚRGUER ===== */
.hamburger {
    display: none;
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}

/* ===== MEGA MENU ===== */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 1000px;
    max-height: 500px;
    background: var(--dropdown-bg);
    box-shadow: var(--shadow);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    transform: translateY(-10px);
    border: 1px solid var(--gray-200);
    border-top: none;
    padding: 0;
    display: flex;
    overflow-y: auto;
}

.nav__item.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu__content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mega-menu__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    flex: 1;
}

.mega-menu__col {
    display: flex;
    flex-direction: column;
}

.mega-menu__section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-200);
}

.mega-menu__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mega-menu__link {
    color: var(--gray-800);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    display: block;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 12px;
}

.mega-menu__link:hover {
    color: var(--accent);
    border-left-color: var(--accent);
    padding-left: 16px;
}

.mega-menu__sublist {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mega-menu__link--child {
    font-weight: 400;
    color: var(--gray-600);
    font-size: 13px;
    padding-left: 20px;
}

.mega-menu__link--child:hover {
    color: var(--accent);
    padding-left: 24px;
}

/* ===== DROPDOWN SIMPLES ===== */
.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    min-width: 220px;
    background: var(--dropdown-bg);
    box-shadow: var(--shadow);
    border-radius: 0 0 12px 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border: 1px solid var(--gray-200);
    border-top: none;
}

.nav__item.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown__list {
    list-style: none;
    padding: 16px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dropdown__link {
    color: var(--gray-800);
    text-decoration: none;
    display: block;
    font-size: 14px;
    padding: 8px 20px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown__link:hover {
    color: var(--accent);
    background: var(--gray-100);
    padding-left: 24px;
}

/* ===== SEÇÃO PRINCIPAL ===== */
.main-content {
    padding: 180px 0 80px;
    background: linear-gradient(135deg, #0200B2, var(--blue-900), #000000);
    color: var(--white);
    margin-top: calc(var(--topstrip-height) + var(--header-height));
}

.section-title {
    font-size: 48px;
    margin: 0 0 50px 0;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    text-align: center;
}

.section-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-content p {
    margin-bottom: 30px;
    font-size: 18px;
    line-height: 1.7;
}

/* ===== SEÇÃO DE SOLUÇÕES ===== */
.solutions {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.solutions p {
    font-size: 20px;
    color: var(--gray-600);
}

/* ===== RODAPÉ ===== */
.footer {
    background-color: #000000;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.footer__inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.footer__brand {
    flex: 1;
    min-width: 300px;
}

.footer__cols {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.footer__col h4 {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: var(--white);
    font-weight: 600;
}

.footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__col li {
    margin-bottom: 12px;
}

.footer__col li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 14px;
}

.footer__col li a:hover {
    color: var(--white);
}

.footer__bottom {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ===== FORMULÁRIO DE CONTATO ===== */
.contact-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.contact-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #222;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.form-group input {
    padding: 12px 14px;
    border: 1.5px solid #dcdcdc;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-footer {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.btn-submit {
    padding: 12px 20px;
    background: #007bff;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #005fcc;
    transform: translateY(-2px);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    z-index: 2147483647 !important;
    text-decoration: none;
    cursor: pointer;
    transition: transform .16s ease;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
    transform: scale(1.06);
    outline: none;
}

.whatsapp-icon {
    width: 34px;
    height: 34px;
    display: block;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .mega-menu {
        width: 900px;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 36px;
    }
    
    .section-content p {
        font-size: 16px;
    }
    
    .mega-menu {
        width: 700px;
    }
    
    .mega-menu__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    /* ===== HAMBÚRGUER MOBILE ===== */
    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-left: auto;
    }

    .hamburger span {
        width: 22px;
        height: 2px;
        background: var(--accent);
        border-radius: 2px;
        position: relative;
        display: block;
        transition: transform .32s ease, opacity .2s ease;
    }
    
    .hamburger span::before,
    .hamburger span::after {
        content: '';
        position: absolute;
        left: 0;
        width: 22px;
        height: 2px;
        background: var(--accent);
        border-radius: 2px;
        transition: transform .32s ease, top .18s ease;
    }
    
    .hamburger span::before {
        top: -7px;
    }
    
    .hamburger span::after {
        top: 7px;
    }
    
    .hamburger.active span {
        background: transparent;
    }
    
    .hamburger.active span::before {
        transform: rotate(45deg);
        top: 0;
    }
    
    .hamburger.active span::after {
        transform: rotate(-45deg);
        top: 0;
    }

    /* ===== NAVEGAÇÃO MOBILE ===== */
    .nav {
        display: none;
        position: fixed;
        top: var(--topstrip-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        z-index: 999;
        overflow-y: auto;
    }

    .nav.nav--open {
        display: block;
    }

    .nav__list {
        position: static;
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 0;
        transform: none !important;
        display: flex; /* Always show when nav is open */
    }

    .nav__item {
        width: 100%;
        height: auto;
        border-bottom: 1px solid var(--gray-100);
    }

    .nav__link {
        padding: 16px 20px;
        width: 100%;
        justify-content: space-between;
        border-bottom: none !important;
    }

    /* ===== DROPDOWNS MOBILE ===== */
    .dropdown,
    .mega-menu {
        position: static !important;
        width: 100% !important;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: transparent;
        border-radius: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
        display: block !important; /* Ensure they're block elements */
    }

    .nav__item.open > .dropdown,
    .nav__item.open > .mega-menu {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
        padding: 0 20px 20px;
        background: var(--gray-100);
        border-top: 1px solid var(--gray-200);
    }

    /* Support for menu-open class from JS */
    .dropdown.menu-open,
    .mega-menu.menu-open {
        max-height: 1000px;
        opacity: 1;
        visibility: visible;
        padding: 0 20px 20px;
        background: var(--gray-100);
        border-top: 1px solid var(--gray-200);
    }

    .mega-menu__grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .nav__arrow {
        transition: transform 0.22s ease;
    }
    
    .nav__item.open .nav__arrow {
        transform: rotate(180deg);
    }

    /* ===== HEADER CTA MOBILE ===== */
    .header__cta {
        display: none !important;
    }

    .main-content {
        padding: 140px 0 60px;
    }

    .section-title {
        font-size: 32px;
    }

    .footer__inner {
        flex-direction: column;
        gap: 30px;
    }

    .footer__brand {
        min-width: 100%;
    }

    .footer__cols {
        width: 100%;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .mega-menu {
        width: calc(100vw - 40px);
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
    }
    
    .header__logo {
        height: 50px;
    }
    
    .btn-saiba {
        font-size: 18px;
        padding: 12px 24px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 28px;
    }
    
    .section-content p {
        font-size: 16px;
    }
    
    .footer__cols {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer__col {
        width: 100%;
    }
}

/* Desktop-safe overrides */
@media (min-width: 901px) {
    .hamburger {
        display: none !important;
    }
    
    .nav {
        display: flex !important;
    }
    
    .nav__list {
        display: flex !important;
    }
    
    /* Hide mobile-only classes on desktop */
    .dropdown.menu-open,
    .mega-menu.menu-open {
        display: none !important;
    }
    
    /* Ensure hover states work on desktop */
    .nav__item.has-mega:hover .mega-menu,
    .nav__item.has-dropdown:hover .dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) translateX(-50%);
    }
}