/* ============================================
   CSS Base - Unitrier
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --primary-dark: #032645;
    --primary-blue: #01A1FF;
    --primary-green: #00B86D;
    --bg-light: #EDEFF4;
    --bg-dark: #090C17;
    --text-white: #FFFFFF;
    --text-dark: #000000;
    --text-gray: #666666;
    --border-color: #E2E2E2;

    /* Typography */
    --font-primary: 'Manrope', sans-serif;
    /* Manrope em todo o site: 700 (Bold) para headlines, 400 (Regular) para subheadlines */
    --font-secondary: 'Manrope', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    max-width: 100%;
    padding: 14px 32px;
    border-radius: 100px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--text-white);
}

.btn-primary:hover {
    background-color: #009a5c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-dark);
    color: var(--text-white);
}

.btn-secondary:hover {
    background-color: #021a30;
}

/* ============================================
   Header
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--text-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.header-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 40px;
    filter: brightness(0);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav .nav-link {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    position: relative;
    white-space: nowrap;
}

.main-nav .nav-link:hover {
    color: var(--primary-blue);
}

/* hover underline only for plain links (dropdown toggles keep their arrow) */
.main-nav .nav-link:not(.dropdown-toggle)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-blue);
    transition: var(--transition-fast);
}

.main-nav .nav-link:not(.dropdown-toggle):hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

/* ============================================
   Dropdown Menus
   ============================================ */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: ' ▾';
    font-size: 10px;
    margin-left: 2px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 300px;
    background-color: var(--text-white);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 8px;
    background: linear-gradient(135deg, transparent 50%, var(--text-white) 50%);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--bg-light);
    color: var(--primary-blue);
}

/* Mobile Dropdown */
.mobile-dropdown {
    border-bottom: 1px solid var(--border-color);
}

.mobile-dropdown summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-dropdown summary::-webkit-details-marker {
    display: none;
}

.mobile-dropdown summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    transition: transform 0.2s ease;
}

.mobile-dropdown[open] summary::after {
    content: '−';
}

.mobile-dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 16px;
}

.mobile-dropdown-menu a {
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border-color);
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a:hover {
    color: var(--primary-blue);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-fast);
}

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

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--text-white);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav .nav-link {
    font-weight: 600;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav .btn {
    margin-top: 16px;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background-color: #05101E;
    color: var(--text-white);
    padding: 60px 0 30px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.8;
    margin-bottom: 24px;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    color: var(--text-white);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

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

.footer-links h4,
.footer-contact h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-blue);
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    font-size: 14px;
    opacity: 0.7;
}

.footer-bottom a:hover {
    opacity: 1;
}

/* ============================================
   WhatsApp flutuante
   ============================================ */
.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background-color: #25D366;
    color: var(--text-white);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.wa-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.wa-float svg {
    width: 30px;
    height: 30px;
}

/* ============================================
   Popup de captação de leads
   ============================================ */
.lead-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* display:flex sobrescreve o [hidden] padrão do navegador */
.lead-modal[hidden] {
    display: none;
}

.lead-modal__backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(3, 38, 69, 0.65);
}

.lead-modal__box {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 32px;
    border-radius: 16px;
    background-color: var(--text-white);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.lead-modal__close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    color: var(--text-gray);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lead-modal__close:hover {
    color: var(--primary-dark);
}

.lead-modal__title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.25;
}

.lead-modal__subtitle {
    margin-top: 8px;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text-gray);
}

.lead-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.lead-field label {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

.lead-field input {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--text-dark);
    transition: var(--transition-fast);
}

.lead-field input::placeholder {
    color: #A0A6B1;
}

.lead-field input:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.lead-modal__error {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #D33A3A;
}

.lead-modal__submit {
    width: 100%;
    margin-top: 8px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
    .main-nav,
    .secondary-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .header-actions .btn {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

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

    .wa-float {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
    }

    .wa-float svg {
        width: 27px;
        height: 27px;
    }

    .lead-modal__box {
        padding: 32px 22px 26px;
    }

    .lead-modal__title {
        font-size: 22px;
    }
}
