/* ==========================================================================
   GLOBAL.CSS — Site-wide structure, present on every page.
   Navbar, hero/product-hero banners, section spacing, footer,
   social icons, subscribe box. Chat-widget and tracking-related visual
   overrides also belong here when added later.
   ========================================================================== */

/* Top bar / nav */
.top-bar {
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    padding: 8px 0;
}

.top-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
}

.top-link:hover {
    color: #38bdf8;
}

.navbar .nav-link {
    font-weight: 500;
    color: #334155;
}

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

/* Hero sections */
.hero-section {
    padding: 90px 0;
    background: linear-gradient(120deg, #e0f2fe 0%, #c7effc 45%, #dbeafe 100%);
}

.content-section {
    padding: 50px 0 10px;
}

.product-hero {
    padding: 90px 0 60px;
    background: linear-gradient(120deg, #f8fafc 0%, #e0f2fe 55%, #ffffff 100%);
}

.banner-badges .badge {
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
}

.banner-note {
    font-size: 14px;
}

/* Product sticky sub-nav */
.product-sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1020;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    transform: translateY(-100%);
    transition: transform 0.25s ease;
}

.product-sticky-nav.is-visible {
    transform: translateY(0);
}

.product-sticky-logo {
    width: 200px;
    height: auto;
}

.product-sticky-links .nav-link {
    color: #334155;
    font-weight: 500;
    padding: 8px 10px;
}

.product-sticky-links .nav-link:hover {
    color: var(--primary);
}

.product-sticky-nav .container {
    min-height: 64px;
}

.product-sticky-visible .navbar.sticky-top {
    top: 64px;
}

@media (max-width: 991.98px) {
    .product-sticky-nav {
        display: none;
    }
}

/* Section spacing */
.section-padding {
    padding: 80px 0;
}

.section-heading {
    margin-bottom: 48px;
}

.stat-strip {
    padding: 30px 0 0;
    margin-top: -20px;
}

/* CTA banner */
.cta-section {
    padding: 60px 0 90px;
}

.cta-card {
    background: linear-gradient(120deg, #2563eb 0%, #38bdf8 100%);
    border-radius: 24px;
    padding: 40px;
    color: #ffffff;
    box-shadow: 0 25px 45px rgba(37, 99, 235, 0.25);
}

.cta-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Footer */
.footer-section {
    padding: 60px 0 40px;
    background: #0f172a;
    color: #e2e8f0;
}

.footer-section .text-muted {
    color: #cbd5f5 !important;
}

.footer-cta-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.35);
}

.footer-grid {
    position: relative;
}

.footer-box {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 8px 0;
    height: 100%;
}

.footer-title {
    color: #38bdf8;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-box ul {
    margin-bottom: 0;
}

.footer-links .footer-link {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
}

.footer-bullet {
    color: rgba(56, 189, 248, 0.9);
    font-size: 12px;
    line-height: 1;
}

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.14);
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.footer-social:hover {
    transform: translateY(-2px);
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.35);
    color: #ffffff;
}

.footer-link {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #38bdf8;
}

/* Cookie consent banner — compact bottom-left card */
.cookie-consent-bar {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1080;
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.3);
}

.cookie-consent-bar a {
    color: #38bdf8;
}

.cookie-consent-bar[hidden] {
    display: none;
}

@media (max-width: 420px) {
    .cookie-consent-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
}

/* Responsive layout tweaks */
@media (max-width: 991px) {
    .hero-section {
        padding: 70px 0;
    }

    .section-padding {
        padding: 60px 0;
    }

    .navbar-collapse .dropdown-menu {
        display: block;
    }
}

@media (min-width: 992px) {
    .navbar .dropdown:hover .dropdown-menu {
        display: block;
    }
}
