/* Proxico V3 — shared header & global UI chrome */

/* Proxico Design System — the single source of truth for the site's visual
   language (typography, spacing, colour, buttons, forms, cards). Loaded on every
   page that links site.css. Must stay at the top: @import rules are only valid
   before other style rules. (Supersedes the old typography.css token layer.) */
@import url("proxico-design.css?v=10");

:root {
    --proxico-header-height: calc(6rem - 6mm);
}

.proxico-header-bar {
    height: var(--proxico-header-height);
}

.proxico-header-spacer {
    height: var(--proxico-header-height);
    flex-shrink: 0;
}

.main-nav-link {
    transition: color var(--motion-base) ease-in-out;
}

.main-nav-link:hover {
    color: var(--nav-hover);
}

.main-nav-link.active {
    color: var(--nav-active);
}

.mega-menu {
    visibility: hidden;
    opacity: 0;
    transform: translateY(10px) translateX(-50%);
    transition: all var(--motion-slow) ease-in-out;
    left: 50%;
    position: absolute;
    z-index: 100;
}

.dropdown-container:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-item:hover h3 {
    color: var(--color-primary);
}

.nav-contact-sales.active {
    border-color: var(--color-primary-hover) !important;
    color: var(--color-primary-hover) !important;
}

.nav-contact-sales-mobile.active {
    border-color: var(--color-primary-hover) !important;
    color: var(--color-primary-hover) !important;
}

#mobile-solutions-button.active {
    color: var(--color-heading);
}

#portal-modal.flex {
    display: flex;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: var(--whatsapp);
    color: #fff;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    z-index: var(--z-float);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--motion-slow) ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

#consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--color-ink);
    color: #fff;
    padding: 1rem;
    z-index: var(--z-banner);
    display: none;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--color-heading-soft);
}

#consent-banner.flex {
    display: flex;
}

#mobile-menu {
    max-height: calc(100vh - var(--proxico-header-height));
    transition: opacity var(--motion-slow) ease-in-out, transform var(--motion-slow) ease-in-out;
}

#mobile-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.hidden {
    opacity: 0;
    transform: translateY(-10px);
}
