/* =========================
   ORIGINAL CSS (Keep untouched)
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Host Grotesk", sans-serif;
}

/* =========================
   NAVBAR
========================= */
.floating-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1420px;
    height: 64px;
    background: #fff;
    padding: 0 30px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    z-index: 1000;
}

.logo img {
    height: 25px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    margin-left: 40px;
}

.center-buttons {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* NAV LINKS */
.center-buttons a {
    position: relative;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 4px;
}

/* =========================
   DROPDOWN
========================= */
.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}
/* ===============================
   MEGA MENU — FINAL, SCREEN SAFE
=============================== */

/* Parent item */
.nav-item.has-dropdown {
    position: relative;
}

/* Solutions link */
.nav-item.has-dropdown > a {
    display: inline-flex;
    align-items: center;
    height: 64px;
    padding: 0;
}

/* Remove arrow icon completely */
.nav-item.has-dropdown > a::after {
    content: none !important;
}

/* ===============================
   MEGA MENU — FINAL (FADE IN + OUT, SCROLL SAFE)
=============================== */

/* Mega menu container */
.mega-menu {
    position: absolute;
    top: calc(100% + 0px); /* flush under navbar */
    left: -275%;
    transform: none;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.15);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 28px;
    width: min(1100px, calc(100vw - 40px));
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        visibility 0s linear 0.18s;
    z-index: 999;
}

/* Show menu (fade in) */
.nav-item.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
        opacity 0.18s ease,
        visibility 0s;
}

/* Invisible hover bridge (NO flicker) */
.mega-menu::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 100%;
    height: 14px;
}

/* Columns */
.mega-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Column titles */
.mega-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
    white-space: nowrap;
}

/* Make heading clickable if wrapped in <a> */
.mega-column h4 a {
    color: inherit;
    text-decoration: none;
}

/* Links */
.mega-column a {
    font-size: 14px;
    font-weight: 400;
    color: #555;
    text-decoration: none;
    line-height: 1.5;
    transition: color 0.2s ease;
}

/* Hover */
.mega-column a:hover {
    color: #1f77db;
}

/* Kill underline animation inside dropdown */
.mega-menu a::after {
    display: none !important;
}

/* Subtle column spacing */
.mega-column:not(:last-child) {
    padding-right: 12px;
}

/* ===============================
   COMPANY MEGA MENU OVERRIDE
=============================== */

.company-mega {
    grid-template-columns: minmax(220px, 1fr);
    width: 320px;
    left: -40px; /* aligns neatly under COMPANY */
}

/* Tablet fallback */
@media (max-width: 1200px) {
    .mega-menu {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        min-width: 600px;
    }
}

/* Mobile handled separately */
@media (max-width: 900px) {
    .mega-menu {
        display: none;
    }
}

/* =========================
   NAV BUTTONS
========================= */
.research {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #eeeeee;
    color: #000;
    border: 1.5px solid #eeeeee;
    margin: 5px;
    transition:
        background-color 0.2s cubic-bezier(.4,0,.2,1),
        border-color 0.2s cubic-bezier(.4,0,.2,1),
        color 0.2s cubic-bezier(.4,0,.2,1);
}

.research:hover {
    background: #f5f7fa;
    color: #1f77db;
    border-color: #f5f7fa;
}

.get-quote {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    background: #1f77db;
    color: #fff;
    border: 1.5px solid #1f77db;
    transition:
        background-color 0.2s cubic-bezier(.4,0,.2,1),
        border-color 0.2s cubic-bezier(.4,0,.2,1),
        color 0.2s cubic-bezier(.4,0,.2,1);
}

.get-quote:hover {
    background: #195dac;
    border-color: #195dac;
}

/* =========================
   HAMBURGER
========================= */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #000;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================
   BODY BG
========================= */
body {
    background-color: #ffffff;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(
        rgba(0, 0, 0, 0.18) 1px,
        transparent 1px
    );
    background-size: 20px 20px;
}

/* =========================
   HERO
========================= */
.hero {
    max-width: 1200px;
    margin: max(
        95px,
        min(
            115px,
            calc(95px + (1200px - 100vw) * 0.10)
        )
    ) auto 0;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.hero-text {
    flex: 1;
    min-width: 0;
}

.hero-text h1 {
    font-size: clamp(38px, 4.5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text span {
    color: #1f77db;
}

.hero-text p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-stats {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.stat h3 {
    font-size: 32px;
}

.stat p {
    font-size: 14px;
    color: #666;
}

.divider {
    width: 1px;
    height: 50px;
    background: #e0e0e0;
    margin: 0 30px;
}

.hero-cta {
    display: inline-block;
    margin-top: 5px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    max-width: 520px;
    display: block;
}

/* =========================
   TRUSTED SECTION
========================= */
.trusted {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 40px;
}

.trusted-label {
    font-size: 14px;
    font-weight: 500;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 13px;
}

/* slider */
.logo-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.logo-marquee {
    display: flex;
    width: max-content;
    will-change: transform;
}

.logo-marquee.animating {
    animation: scroll-logos 30s linear infinite;
}

.logo-marquee.stopping {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-row {
    display: flex;
    align-items: center;
}

.logo-row img {
    height: 35px;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-row img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scroll-logos {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}



/* RESPONSIVE NAV */
@media (max-width: 1110px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .nav-links.active {
        position: fixed;
        top: calc(100% + 12px);
        left: 0;
        width: 95vw;
        height: 80vh;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 24px;
        background: #fff;
        padding: 0px 24px;
        border-radius: 10px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
        z-index: 9999;
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links.active a {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    .center-buttons,
    .nav-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 1px;
        margin-top: 2px;
    }
    .center-buttons a,
    .nav-buttons a {
        width: 100%;
        text-align: center;
        display: block;
        margin: 0;
        line-height: normal;
        padding: 4px 16px;
    }
}

/* =========================
   NEW CSS FOR OFFERS, CONTACT, FOOTER
========================= */
.offers {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 40px;
}

.offers h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
}

.offers p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.offers ul {
    list-style: disc;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.offers ul li {
    font-size: 15px;
    color: #333;
}

/* CONTACT */
.contact {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 40px;
}

.contact h2 {
    font-size: clamp(28px, 4vw, 36px);
    font-weight: 600;
    margin-bottom: 20px;
    color: #111;
}

.contact p {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
}

.contact ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 15px;
}

.contact ul li {
    font-size: 15px;
    color: #333;
    margin-bottom: 5px;
}

.contact ul li a {
    color: #1f77db;
    text-decoration: none;
}

.contact ul li a:hover {
    text-decoration: underline;
}

/* FOOTER */
footer {
    max-width: 1200px;
    margin: 60px auto 40px;
    padding: 20px 40px;
    text-align: center;
    background-color: #f8f8f8;
    border-radius: 12px;
    font-size: 14px;
    color: #555;
}

footer a {
    color: #1f77db;
    text-decoration: none;
    margin: 0 6px;
}

footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE OFFERS, CONTACT, FOOTER */
@media (max-width: 900px) {
    .offers,
    .contact,
    footer {
        padding: 0 20px;
    }

    .offers ul {
        gap: 8px;
    }
}
