/* ==========================================================================
   CONSTRUHOLMS - NEONAV ADVANCED NAVIGATION SYSTEM (LIGHT WHITE UX)
   ========================================================================== */

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.08), rgba(0, 195, 255, 0.08));
    animation: float 8s ease-in-out infinite;
}

.floating-circle:nth-child(1) {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.floating-circle:nth-child(2) {
    width: 180px;
    height: 180px;
    top: 55%;
    right: 8%;
    animation-delay: 2s;
}

.floating-circle:nth-child(3) {
    width: 90px;
    height: 90px;
    bottom: 15%;
    left: 15%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(180deg); }
}

/* ==================== ADVANCED NAVIGATION BAR ==================== */
.navbar-container {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 24px);
    max-width: 1280px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 9999px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 3px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.navbar:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 25px 50px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    z-index: 2;
    position: relative;
}

/* Nav Links */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    z-index: 2;
    position: relative;
}

@media (min-width: 993px) {
    .navbar-nav {
        display: flex !important;
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        flex-direction: row !important;
    }
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover {
    color: #FF6B00;
    background: rgba(255, 107, 0, 0.08);
    transform: translateY(-1px);
}

.nav-link.active {
    background: #FF9900;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.nav-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

/* ==================== DROPDOWN DE SERVIÇOS ROBUSTO (SEM GAPS / DEAD ZONES) ==================== */
.nav-item.group {
    position: relative;
}

/* Ponte invisível inferior no botão Serviços */
.nav-item.group::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 18px;
    background: transparent;
    z-index: 40;
}

/* Reposiciona o menu dropdown encostado com padding para não ter salto */
.nav-item.group > div {
    top: calc(100% + 2px) !important;
    margin-top: 0 !important;
    z-index: 100 !important;
}

/* Ponte invisível superior no container do menu */
.nav-item.group > div::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -15px;
    right: -15px;
    height: 24px;
    background: transparent;
    pointer-events: auto;
    z-index: 50;
}

/* Mantém o menu 100% visível enquanto houver hover no botão ou no menu */
.nav-item.group:hover > div,
.nav-item.group:focus-within > div,
.nav-item.group > div:hover,
.nav-item:hover > .nav-dropdown-bridge,
.nav-item:focus-within > .nav-dropdown-bridge,
.nav-dropdown-bridge:hover {
    display: block !important;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #FF6B00, #FF9900);
    color: white;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.25);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 0, 0.35);
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #0F172A;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
    flex-shrink: 0;
}

.mobile-toggle:hover {
    background: rgba(15, 23, 42, 0.05);
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
    height: 16px;
    justify-content: center;
}

.hamburger span {
    width: 22px;
    height: 2.5px;
    background: #0F172A;
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

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

.mobile-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

/* Mobile Overlay & Drawer Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #FFFFFF;
    z-index: 1600;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.4s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #F1F5F9;
}

.mobile-menu-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.mobile-menu-close {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    color: #0F172A;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

.mobile-menu-nav {
    padding: 24px;
    list-style: none;
}

.mobile-menu-item {
    margin-bottom: 8px;
}

.mobile-menu-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 16px;
    transition: all 0.3s ease;
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(255, 107, 0, 0.08);
    color: #FF6B00;
    border-color: #FFD000;
    transform: translateX(6px);
}

.mobile-menu-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.mobile-cta {
    margin: 20px 24px 32px;
}

.mobile-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: linear-gradient(135deg, #FF6B00, #FF9900);
    color: white;
    text-decoration: none;
    padding: 16px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 25px rgba(255, 107, 0, 0.3);
}

@media (max-width: 992px) {
    .navbar-container {
        top: 10px;
        width: calc(100% - 16px);
    }
    .navbar {
        padding: 6px 12px;
    }
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 6px;
    }
    .navbar-nav {
        display: none !important;
    }
}

/* ==========================================================================
   SCROLL EFFECTS & ADVANCED DYNAMICS
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #FF6B00, #FF9900, #00A859);
    z-index: 99999;
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.8);
    pointer-events: none;
}

/* Back to Top Button */
.btn-back-to-top {
    position: fixed;
    bottom: 96px;
    right: 24px;
    z-index: 49;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0B1528;
    color: #FF6B00;
    border: 1px solid rgba(255, 107, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.btn-back-to-top.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.btn-back-to-top:hover {
    background: #FF6B00;
    color: #FFFFFF;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 15px 30px rgba(255, 107, 0, 0.4);
}

/* Hover Lift Effect for Cards */
.hover-lift {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
}

/* Pulse animation for CTA buttons and Badges */
@keyframes softPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.animate-soft-pulse {
    animation: softPulse 3s ease-in-out infinite;
}
