/* ==========================================================================
   MESHTEK REFRESH  v2.0
   Design-system layer loaded after style.css and home.css.
   - Colour tokens live in style.css :root; this file applies them.
   - Type: Sora (headings) + Instrument Sans (body), fluid scale.
   - Replaces neon cyan glows with crisp borders and navy-tinted shadows.
   - Responsive fixes for fixed heights, hero, navbar and cards.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base & typography
   -------------------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 96px;
}

body {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    line-height: 1.65;
    color: var(--text-dark);
    overflow-x: clip !important;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    text-wrap: balance;
}

h1, .h1 { font-size: clamp(2.25rem, 1.55rem + 2.8vw, 3.75rem); }
h2, .h2 { font-size: clamp(1.75rem, 1.35rem + 1.7vw, 2.75rem); }
h3, .h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.25; }
h4, .h4 { font-size: clamp(1.2rem, 1.1rem + 0.45vw, 1.5rem); line-height: 1.3; letter-spacing: -0.01em; }
h5, .h5 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.005em; font-weight: 600; }
h6, .h6 { font-size: 1rem; line-height: 1.4; letter-spacing: 0; font-weight: 600; }

/* Bootstrap display & fs utilities: make them fluid so they never overflow on phones */
.display-1 { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5rem) !important; }
.display-2 { font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) !important; }
.display-3 { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem) !important; }
.display-4 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.5rem) !important; }
.display-5 { font-size: clamp(1.875rem, 1.35rem + 2vw, 3rem) !important; }
.display-6 { font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.5rem) !important; }
.display-7 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem) !important; }
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6, .display-7 {
    font-family: var(--font-heading);
    letter-spacing: -0.025em;
    line-height: 1.1;
}
.fs-1 { font-size: clamp(1.875rem, 1.45rem + 1.7vw, 2.5rem) !important; }
.fs-2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem) !important; }
.fs-3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.75rem) !important; }
.fs-4 { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem) !important; }
.fs-5 { font-size: clamp(1.05rem, 1rem + 0.2vw, 1.2rem) !important; }

p { margin-bottom: 1.1em; }
p, li { text-wrap: pretty; }

/* Comfortable reading measure inside centred intros */
.text-center > p,
.text-center p.lead,
.text-center .fs-5,
.text-center .fs-4 {
    max-width: 68ch;
    margin-left: auto;
    margin-right: auto;
}

.text-muted { color: var(--text-muted) !important; }
.text-white-50 { color: var(--text-on-dark-muted) !important; }

a { color: var(--secondary-color); }
a:hover { color: var(--primary-color); }

::selection { background: rgba(33, 96, 232, 0.18); color: var(--ink); }

/* Accent text: darker teal on light surfaces for legibility */
.text-colour-accent,
.text-accent { color: var(--accent-color) !important; }

/* Gradient text: navy into signal blue (no washed-out cyan) */
.gradient {
    background: linear-gradient(120deg, var(--primary-color) 0%, var(--secondary-color) 55%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------------------------
   2. Dark surfaces re-map the accent to the bright teal
   -------------------------------------------------------------------------- */
.navbar,
.footer-main,
.cta-box,
.bg-black,
.bg-dark,
.bg-colour-primary,
.hero-home-slider,
.custom-hero-breadcrumb,
.why-bluehopper-hero-vision,
.parallax-section,
.full-full-hero-slide,
.application-card,
.capability-card,
.solution-card,
.product-info,
.gallery-overlay,
.dualMestekSwiper .feature-card,
.product-hero,
.lightbox-modal {
    --accent-color: var(--accent-bright);
    --accent-ink: var(--accent-bright);
    --focus: var(--cta-hover);
}

.bg-black { background-color: var(--ink) !important; }
.bg-colour-primary { background-color: var(--primary-color) !important; }
.bg-colour-secondary { background-color: var(--bg-secondary) !important; }

/* --------------------------------------------------------------------------
   3. Section rhythm
   -------------------------------------------------------------------------- */
main > section,
main > .container > section { position: relative; }

@media (max-width: 767.98px) {
    .py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .container.py-5,
    .container > .py-5 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .mb-5 { margin-bottom: 2rem !important; }
    .container, .container-fluid { padding-left: 1.125rem; padding-right: 1.125rem; }
}

/* Section label badge: sentence case pill with a small signal dot */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(33, 96, 232, 0.08) !important;
    color: var(--primary-color) !important;
    border: 1px solid rgba(33, 96, 232, 0.18);
    padding: 0.4rem 0.85rem !important;
    border-radius: 999px;
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    line-height: 1.3;
    margin-bottom: 1.25rem;
}
.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    flex: none;
}
.bg-black .badge,
.bg-dark .badge,
.parallax-section .badge,
.cta-box .badge,
.hero-home-slider .badge,
.custom-hero-breadcrumb .badge {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--white) !important;
}

.section-tagline {
    color: var(--accent-ink);
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.95rem;
}
.section-tagline::before { background-color: var(--accent-color); }

/* --------------------------------------------------------------------------
   4. Buttons
   Primary CTA (.fourth-btn) = solid brand cyan with navy text.
   -------------------------------------------------------------------------- */
.first-btn,
.second-btn,
.fourth-btn,
.fifth-btn,
.third-btn {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0;
    line-height: 1.25;
    border-radius: 999px !important;
    padding: 0.85rem 1.6rem !important;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    text-transform: none;
    transition: background-color var(--transition-fast), color var(--transition-fast),
        border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

/* Primary: cyan fill, navy text */
.fourth-btn {
    background-color: var(--cta);
    color: var(--ink) !important;
    border: 2px solid var(--cta);
    box-shadow: 0 6px 18px -6px rgba(63, 211, 223, 0.45);
}
.fourth-btn::before { display: none; }
.fourth-btn:hover,
.fourth-btn:focus-visible {
    background-color: var(--cta-hover);
    border-color: var(--cta-hover);
    color: var(--ink) !important;
    box-shadow: 0 10px 24px -8px rgba(63, 211, 223, 0.6);
    transform: translateY(-1px);
}

/* Secondary on dark: quiet outline */
.second-btn {
    background-color: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    color: var(--white) !important;
    backdrop-filter: none;
}
.second-btn::before { display: none; }
.second-btn:hover,
.second-btn:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
    box-shadow: none;
}

/* Solid navy button on light backgrounds (keeps the original corner-bracket hover) */
.third-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    border-radius: 999px !important;
    min-width: 0;
    line-height: 1.25;
    font-size: 1rem;
}
.third-btn::before,
.third-btn::after { display: none; }
.third-btn:hover,
.third-btn:focus-visible {
    background: var(--secondary-color);
    color: var(--white) !important;
    box-shadow: 0 10px 22px -10px rgba(33, 96, 232, 0.7);
}

/* Dark pill with moving border: slowed down, softer */
.first-btn {
    background-color: var(--ink);
    box-shadow: none;
}
.first-btn::after { background: var(--ink); }
.first-btn::before { animation-duration: 4s; }
.first-btn:hover { box-shadow: 0 10px 22px -10px rgba(10, 24, 48, 0.6); transform: none; }

/* Form submit */
.fifth-btn {
    background: var(--primary-color) !important;
    font-size: 1rem;
    box-shadow: 0 8px 20px -10px rgba(18, 48, 110, 0.7) !important;
}
.fifth-btn:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -10px rgba(33, 96, 232, 0.75) !important;
}

.btn-primary {
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-bg: var(--secondary-color);
    --bs-btn-hover-border-color: var(--secondary-color);
    --bs-btn-active-bg: var(--ink);
}

@media (max-width: 575.98px) {
    .hero-btn-anim > a,
    .cta-box .d-flex > a { width: 100%; }
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   5. Header / navigation
   Sticky header: no layout jump when the bar pins on scroll.
   -------------------------------------------------------------------------- */
body > header {
    position: sticky;
    top: 0;
    z-index: 1030;
}
.admin-bar body > header,
body.admin-bar > header { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar > header { top: 0; }
}

#main-navbar,
#main-navbar.fixed-top {
    position: relative;
    background-color: rgba(10, 24, 48, 0.96);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.75rem 0;
    transition: padding var(--transition-normal), box-shadow var(--transition-normal);
}
body.scrolled #main-navbar {
    padding: 0.4rem 0;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

.site_logo { max-height: 32px; }

.navbar-nav .nav-link {
    color: var(--text-on-dark) !important;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.975rem;
    padding: 0.75rem 0.85rem !important;
    border-radius: var(--radius-sm);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-item.show > .nav-link,
.nav-item.current-menu-item > a,
.current-menu-ancestor > .nav-link,
.current-menu-parent > .nav-link,
.navbar-nav .menu-item-has-children.current-menu-ancestor > .nav-link {
    color: var(--white) !important;
    background-color: transparent !important;
}
@media (min-width: 992px) {
    .navbar-nav > .nav-item > .nav-link { position: relative; }
    .navbar-nav > .nav-item > .nav-link::before {
        content: "";
        position: absolute;
        left: 0.85rem;
        right: 0.85rem;
        bottom: 0.35rem;
        height: 2px;
        border-radius: 2px;
        background: var(--accent-bright);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform var(--transition-fast);
    }
    .navbar-nav > .nav-item > .nav-link:hover::before,
    .navbar-nav > .nav-item.show > .nav-link::before,
    .navbar-nav > .current-menu-item > .nav-link::before,
    .navbar-nav > .current-menu-ancestor > .nav-link::before,
    .navbar-nav > .current-menu-parent > .nav-link::before { transform: scaleX(1); }
}

/* Dropdowns */
.navbar .dropdown-menu {
    border-radius: var(--radius) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--box-shadow-lg) !important;
    padding: 0.5rem;
    min-width: 230px;
}
.dropdown-menu .dropdown-item {
    color: var(--text-dark) !important;
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    white-space: normal;
}
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .current-menu-item > a,
.dropdown-menu .menu-item-has-children.current-menu-ancestor > .dropdown-item {
    background-color: var(--bg-secondary) !important;
    color: var(--primary-color) !important;
}
.dropdown-menu .menu-item-has-children.current-menu-ancestor > .dropdown-toggle::after {
    border-top-color: currentColor;
    border-left-color: currentColor;
}

/* Mega menu */
.mega-menu-content {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg) !important;
    padding: 1.25rem 0;
}
.mega-card-link { color: var(--text-dark); display: block; border-radius: var(--radius); padding: 0.5rem; }
.mega-card-link:hover { background: var(--bg-secondary); color: var(--primary-color); }
.mega-img-wrapper img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: var(--radius-sm) !important; }
.mega-col-title { font-family: var(--font-heading); font-size: 0.975rem; font-weight: 600; color: var(--primary-color); }
.mega-sub-list a { color: var(--text-muted); font-size: 0.925rem; }
.mega-sub-list a:hover { color: var(--secondary-color); }

.quote-btn-wrapper { margin-left: 1rem; }
.quote-btn-link {
    margin-bottom: 0 !important;
    padding: 0.6rem 1.15rem !important;
    min-height: 42px;
    font-size: 0.95rem;
}

.navbar-toggler {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler:focus-visible { outline: 3px solid var(--focus); }

/* Mobile drawer */
@media (max-width: 991.98px) {
    #navbarContent {
        margin-top: 0.75rem;
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0.5rem 0 1rem;
    }
    .navbar-nav .nav-link {
        padding: 0.85rem 0.25rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        font-size: 1.05rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .navbar .dropdown-menu {
        background: rgba(255, 255, 255, 0.04);
        border: 0 !important;
        box-shadow: none !important;
        margin: 0.25rem 0 0.5rem;
    }
    .navbar .dropdown-menu .dropdown-item,
    .navbar .mega-card-link,
    .navbar .mega-col-title { color: var(--text-on-dark) !important; }
    .navbar .dropdown-menu .dropdown-item:hover,
    .navbar .mega-card-link:hover { background: rgba(255, 255, 255, 0.08) !important; color: var(--white) !important; }
    .navbar .mega-sub-list a { color: var(--text-on-dark-muted); }
    .mega-menu-content { padding: 0.25rem 0; }
    .mega-menu-content .container { padding: 0; }
    .quote-btn-wrapper { margin: 1rem 0 0; }
    .quote-btn-wrapper .quote-btn-link { width: 100%; }
}

/* --------------------------------------------------------------------------
   6. Cards: one shadow language, borders instead of neon glow
   -------------------------------------------------------------------------- */
.premium-stat-card,
.why-card,
.meshtek-features .item,
.modern-benefit-card,
.iot-application-feature-card,
.case-study-feature-card,
.product-standout-card,
.faq-section .faq-card,
.service-card,
.logo-card,
.patent-item {
    border: 1px solid var(--line) !important;
    box-shadow: var(--box-shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-normal), transform var(--transition-normal);
}

.premium-stat-card:hover,
.why-card:hover,
.meshtek-features .item:hover,
.modern-benefit-card:hover,
.iot-application-feature-card:hover,
.case-study-feature-card:hover,
.product-standout-card:hover,
.service-card:hover,
.logo-card:hover,
.patent-item:hover {
    border-color: rgba(33, 96, 232, 0.35) !important;
    box-shadow: var(--box-shadow-lg);
}

/* Image-led cards: lift with a deep shadow, never a cyan halo */
.application-card:hover,
.capability-card:hover,
.product-card:hover,
.gallery-card:hover,
.dualMestekSwiper .swiper-slide-active .feature-card,
.dualMestekSwiper .feature-card:hover {
    box-shadow: 0 24px 48px -18px rgba(10, 24, 48, 0.55) !important;
}
.capability-card,
.product-card { box-shadow: var(--box-shadow); }
.dualMestekSwiper .feature-card { border-color: rgba(255, 255, 255, 0.12); }
.dualMestekSwiper .swiper-slide-active .feature-card,
.dualMestekSwiper .feature-card:hover { border-color: var(--accent-bright); }

/* Stat cards */
.premium-stat-card { background: var(--white); border-radius: var(--radius-lg) !important; }
.premium-stat-card::before,
.premium-stat-card::after { display: none; }
.stat-icon-wrapper {
    background: rgba(33, 96, 232, 0.08);
    color: var(--secondary-color);
    border-radius: var(--radius);
}
.premium-stat-card:hover .stat-icon-wrapper {
    background: var(--primary-color);
    color: var(--white);
    transform: none;
}
.stat-number { letter-spacing: -0.03em; }
@media (max-width: 767.98px) {
    .premium-stat-card.p-5 { padding: 2rem 1.5rem !important; }
}

/* Why cards */
.why-card { background: var(--white); border-radius: var(--radius-lg); }
.card-dot { border-color: var(--accent-color); background-color: var(--white); box-shadow: none; }
.why-card:hover .card-dot { background-color: var(--accent-color); box-shadow: 0 0 0 4px rgba(10, 140, 153, 0.15); }
.card-icon { background: var(--primary-color); border-radius: var(--radius); }
.card-icon i { color: var(--white); }
.why-card:hover .card-icon { background: var(--secondary-color); }
.card-category {
    color: var(--accent-ink);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: -0.01em;
}
.card-point { color: var(--text-dark); font-weight: 500; font-size: 1.05rem; }

/* Feature items */
.meshtek-features .item { border-radius: var(--radius-lg); }
.meshtek-features .item p { color: var(--text-muted); }
.meshtek-features .item:hover h4 { color: var(--secondary-color) !important; }
.meshtek-features .icon { color: var(--secondary-color); }
.meshtek-features .item:hover .icon { color: var(--primary-color); }
.meshtek-features img { border: 0; border-radius: var(--radius); }
.meshtek-features .item:hover img { box-shadow: none; animation: none; }

/* Benefit cards */
.modern-benefit-card { background: var(--white); }
.modern-benefit-card::before { background: var(--secondary-color); }
.icon-shape {
    background: linear-gradient(140deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius);
    transform: none;
}
.modern-benefit-card:hover .icon-shape { transform: none; }
.benefit-p { color: var(--text-muted); }

/* Product standout */
.product-standout-card::before { background: var(--secondary-color); }
.product-standout-card:hover { background: inherit; }
.icon-box { background: rgba(33, 96, 232, 0.08); color: var(--secondary-color); border-radius: var(--radius); }
.product-standout-card:hover .icon-box { background: var(--primary-color); transform: none; }

/* Use-case chips */
.case-study-feature-icon { background: rgba(33, 96, 232, 0.08); color: var(--secondary-color); }
.case-study-feature-card:hover { border-color: rgba(33, 96, 232, 0.35) !important; }

/* FAQ */
.faq-section .faq-card { border-radius: var(--radius) !important; }
.faq-section .faq-card::before { width: 3px; background: linear-gradient(180deg, var(--secondary-color), var(--accent-color)); }
.faq-section .faq-header { color: var(--primary-color); font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; }
.faq-section .faq-header i {
    background: rgba(33, 96, 232, 0.08);
    color: var(--secondary-color);
    border: 0;
    flex: none;
    margin-left: 1rem;
}
.faq-section .accordion-button:not(.collapsed) { background: var(--bg-secondary); }
.faq-section .accordion-button:not(.collapsed) i { background: var(--primary-color); color: var(--white); }
.faq-section .faq-body { color: var(--text-muted); font-size: 1rem; }

.accordion-button:focus { box-shadow: none; }
.accordion-button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }

/* IoT use-case cards */
.iot-usecase-card { background: var(--ink); border-radius: var(--radius-lg); }
.iot-usecase-card-overlay-content { border-radius: var(--radius); }
@media (hover: none) {
    .iot-usecase-card .iot-usecase-card-overlay-content p { max-height: none; opacity: 1; transform: none; margin-top: 8px; }
    .application-desc { opacity: 1; }
}

/* Product cards */
.product-info { background: linear-gradient(to top, rgba(10, 24, 48, 0.96) 0%, rgba(10, 24, 48, 0.55) 100%); }
.product-title { color: var(--white); font-family: var(--font-heading); }
.product-card:hover .product-title { color: var(--accent-bright); }

/* Gallery */
.gallery-filter-btn { color: var(--primary-color); border: 1.5px solid var(--line); font-weight: 600; }
.gallery-filter-btn:hover { border-color: var(--primary-color); background: var(--white); color: var(--primary-color); }
.gallery-filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); box-shadow: none; }
.gallery-overlay { background: linear-gradient(to top, rgba(10, 24, 48, 0.92) 0%, rgba(10, 24, 48, 0.35) 60%, transparent 100%); }

/* --------------------------------------------------------------------------
   7. Fixed-height text blocks: let them grow on small screens
   -------------------------------------------------------------------------- */
.iot-application-feature-card h5,
.iot-application-feature-card p,
.iot-application-feature-content p { height: auto !important; }
@media (min-width: 992px) {
    .iot-application-feature-card h5 { min-height: 2.7em; }
    .iot-application-feature-card p,
    .iot-application-feature-content p { min-height: 4.95em; }
}
.iot-application-feature-img img { object-fit: cover; aspect-ratio: 16 / 9; height: auto; }

/* --------------------------------------------------------------------------
   8. Home hero
   -------------------------------------------------------------------------- */
.hero-home-slider .swiper-slide { position: relative; }
.hero-home-slider .swiper-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(120% 90% at 85% 40%, rgba(33, 96, 232, 0.22) 0%, transparent 60%),
        linear-gradient(90deg, rgba(10, 24, 48, 0.9) 0%, rgba(10, 24, 48, 0.6) 55%, rgba(10, 24, 48, 0.2) 100%);
    pointer-events: none;
}
.hero-home-slider h1 { letter-spacing: -0.03em; line-height: 1.05; }
.hero-home-slider .hero-text-anim {
    color: var(--text-on-dark) !important;
    font-weight: 400 !important;
    max-width: 34ch;
}
@media (max-width: 1199.98px) {
    .hero-home-slider .hero-text-anim { margin-left: auto; margin-right: auto; }
}

/* Prev / next: compact squares bottom-right instead of 7%-wide bars */
.hero-home-slider .swiper-button-next,
.hero-home-slider .swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    top: auto !important;
    bottom: 2rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: none;
}
.hero-home-slider .swiper-button-prev { left: auto; right: calc(2rem + 58px); }
.hero-home-slider .swiper-button-next { right: 2rem; }
.hero-home-slider .swiper-button-next::after,
.hero-home-slider .swiper-button-prev::after { color: var(--white) !important; font-size: 15px !important; }
.hero-home-slider .swiper-button-next:hover,
.hero-home-slider .swiper-button-prev:hover { background-color: var(--white) !important; }
.hero-home-slider .swiper-button-next:hover::after,
.hero-home-slider .swiper-button-prev:hover::after { color: var(--ink) !important; }
.hero-home-slider .swiper-pagination-bullet { border-radius: 2px; }

@media (max-width: 1199.98px) {
    .hero-home-slider .swiper-slide { min-height: 0; padding: 4rem 0 5.5rem; }
    .hero-home-slider .hero-content { height: auto !important; }
    .hero-home-slider .hero-image img { width: min(80%, 560px); }
}
@media (max-width: 767.98px) {
    .hero-home-slider .swiper-slide { padding: 3rem 0 5rem; }
    .hero-home-slider .hero-image { margin-top: 1.5rem; }
    .hero-home-slider .hero-image img { width: 100%; }
    .hero-home-slider .swiper-button-next,
    .hero-home-slider .swiper-button-prev { display: none !important; }
    .hero-home-slider .hero-text-anim.mb-5 { margin-bottom: 2rem !important; }
}

/* Inner page hero */
.custom-hero-overlay {
    background: linear-gradient(to top, rgba(10, 24, 48, 0.95) 0%, rgba(10, 24, 48, 0.7) 35%, rgba(10, 24, 48, 0.25) 75%, rgba(10, 24, 48, 0.1) 100%);
}
.custom-breadcrumb-title {
    color: var(--white);
    font-size: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
    letter-spacing: -0.03em;
    text-shadow: none;
}
.custom-breadcrumb .breadcrumb-item.active { color: var(--accent-bright); font-weight: 600; }
@media (max-width: 767.98px) {
    .custom-hero-breadcrumb { height: auto; min-height: 320px; padding-top: 6rem; }
}

.parallax-section::before { background: linear-gradient(180deg, rgba(10, 24, 48, 0.78), rgba(10, 24, 48, 0.88)); }
.parallax-content p { color: var(--text-on-dark); }
.full-full-hero-slide::before {
    background: linear-gradient(90deg, rgba(10, 24, 48, 0.85) 0%, rgba(10, 24, 48, 0.55) 45%, rgba(10, 24, 48, 0.2) 100%);
}

/* --------------------------------------------------------------------------
   9. About / image compositions
   -------------------------------------------------------------------------- */
.about-split-section .about-title { letter-spacing: -0.03em; }
.about-split-section .about-desc { color: var(--text-muted); opacity: 1; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.175rem); }
.about-features li { color: var(--text-dark); font-weight: 500; text-align: left; }
.about-features li i { color: var(--accent-ink); background: rgba(10, 140, 153, 0.12); flex: none; }
.about-image-wrapper img { border-radius: var(--radius-lg); }
.about-image-wrapper::before { border: 2px solid var(--accent-color); border-radius: var(--radius-lg); }
.about-split-section::before { opacity: 0.1; }
@media (max-width: 991.98px) {
    .about-image-wrapper img { min-height: 0; aspect-ratio: 4 / 3; }
    .about-image-wrapper::before { display: none; }
}

.about-image-stack::before { background-color: var(--primary-color); border-radius: var(--radius); }
.main-img-wrapper img { border-radius: var(--radius); }
.meshtek-section .img-overlay { border-color: var(--white); box-shadow: var(--box-shadow-lg); }
.meshtek-section .dot-pattern { background-image: radial-gradient(var(--secondary-color) 1.5px, transparent 1.5px); opacity: 0.5; }
.circle-outer-border { border-color: rgba(10, 140, 153, 0.5); }
.floating-badge, .floating-dot { background-color: var(--secondary-color); }

@media (max-width: 575.98px) {
    .image-box img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
    .solution .parent { width: 100% !important; max-width: 370px; height: 440px !important; }
}

/* --------------------------------------------------------------------------
   10. Swiper controls
   -------------------------------------------------------------------------- */
.swiper-button-next,
.swiper-button-prev {
    width: 44px !important;
    height: 44px !important;
    z-index: 10 !important;
    border: 1px solid var(--line);
    box-shadow: var(--box-shadow);
}
.swiper-button-next::after,
.swiper-button-prev::after { color: var(--primary-color) !important; font-size: 14px !important; }
.swiper-pagination-bullet { background: var(--primary-color); opacity: 0.25; }
.swiper-pagination-bullet-active { background: var(--secondary-color); opacity: 1; }

.dual-meshtek .nav-btn,
.capability-section .nav-btn {
    width: 44px;
    height: 44px;
    border: 1.5px solid currentColor;
    color: var(--primary-color);
    font-size: 18px;
    padding: 0;
}
.bg-black .nav-btn,
.bg-dark .nav-btn { color: var(--white); }
.dual-meshtek .nav-btn:hover,
.capability-section .nav-btn:hover { background-color: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

.custom-divider { border-top-color: var(--line); }

/* --------------------------------------------------------------------------
   11. Forms (contact, quote, career)
   -------------------------------------------------------------------------- */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="url"],
textarea,
select {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-dark);
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    min-height: 48px;
    padding: 0.7rem 0.95rem;
    background-color: var(--white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
textarea, textarea.form-control { min-height: 140px; }
.form-control::placeholder, textarea::placeholder, input::placeholder { color: #8A94A6; }
.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--secondary-color);
    box-shadow: var(--box-shadow-glow);
    outline: none;
}
.form-label, label { font-weight: 600; color: var(--text-dark); font-size: 0.95rem; }
.form-check-input:checked { background-color: var(--secondary-color); border-color: var(--secondary-color); }

/* Base footer/CTA layout (moved from footer.php inline <style>) */
/* Styling for the new footer */
 .cta-container {
    padding: 80px 20px;
    background-color: #ffffff;
}
.cta-box {
    background-color: #000;
    border-radius: 20px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0px 20px rgba(0, 0, 0, 0.703);
}
.cta-box::before, .cta-box::after {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid var(--accent-color, #57d0ec);
    border-radius: 50%;
    z-index: 0;
}
.cta-box::before { top: -100px; left: -100px; box-shadow: 40px 40px 0 rgba(87, 208, 236, 0.9); }
.cta-box::after { bottom: -100px; right: -100px; box-shadow: -40px -40px 0 rgba(87, 208, 236, 0.9); }
.cta-box h2 { font-size: 2rem; font-weight: 700; margin-bottom: 15px; position: relative; z-index: 1; }
.cta-box p { font-size: 1rem; color: #a1a1a1; margin-bottom: 30px; position: relative; z-index: 1; }

/* FOOTER SECTION */
.footer-main { color: #fff; }
.brand-logo-img { max-width: 250px; margin-bottom: 25px; }
.footer-contact { font-size: 0.9rem; font-weight: 600; list-style: none; padding:0; }
.footer-contact li { margin-bottom: 15px; }
.footer-contact a { color: #fff !important; text-decoration: none; transition: 0.3s; }
.footer-contact a:hover { color: var(--accent-color, #57d0ec) !important; }
.footer-heading { font-size: 1.15rem; font-weight: 700; margin-bottom: 25px; color: var(--accent-color, #57d0ec); }
.footer-links { list-style: none; padding: 0; margin-left: 5px; }
.footer-links li { margin-bottom: 12px; position: relative; padding-left: 20px; }
.footer-links li::before { content: ""; width: 4px; height: 4px; background: var(--accent-color, #57d0ec); border-radius: 50%; position: absolute; left: 0; top: 9px; }
.footer-links a { color: #e0e0e0; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-color, #57d0ec); }

/* FOOTER TOGGLE */
.footer-toggle { background: none; border: none; color: var(--accent-color, #57d0ec); font-size: 14px; margin-top: 10px; cursor: pointer; }
.icon-flip { transition: transform 0.3s ease; display: inline-block; }
.footer-toggle.open .icon-flip { transform: rotate(180deg); }

/* SCROLL TOP BUTTON */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--accent-color, #57d0ec);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: 0.3s;
}

@media (max-width:1024px) {
    .cta-box::before, .cta-box::after { width: 130px; height: 130px; }
}

@media (max-width:767px) {
    .cta-box::before, .cta-box::after { width: 110px; height: 110px; }
    .cta-box h2 { font-size: 1.5rem; }
    .cta-container { padding: 60px 10px; }
}

/* --------------------------------------------------------------------------
   12. CTA band & footer
   -------------------------------------------------------------------------- */
.cta-container { padding: clamp(3rem, 2rem + 4vw, 5rem) 0; background: var(--white); }
.cta-box {
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(33, 96, 232, 0.35) 0%, transparent 60%),
        var(--ink);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 1.5rem + 4vw, 4rem) clamp(1.25rem, 0.5rem + 4vw, 3rem);
    box-shadow: var(--box-shadow-lg);
}
.cta-box::before,
.cta-box::after {
    border: 1px solid rgba(63, 211, 223, 0.35);
    box-shadow: none !important;
}
.cta-box::after { border-color: rgba(255, 255, 255, 0.12); }
.cta-box h2 { color: var(--white) !important; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); max-width: 26ch; margin-left: auto; margin-right: auto; }
.cta-box p { color: var(--text-on-dark-muted); max-width: 56ch; margin-left: auto; margin-right: auto; }
.cta-box .d-flex > a + a {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white) !important;
    box-shadow: none;
}
.cta-box .d-flex > a + a:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); }

.footer-main.bg-black { background-color: var(--ink) !important; }
.footer-main { color: var(--text-on-dark); font-size: 0.95rem; }
.brand-logo-img { max-width: 200px; }
.footer-heading {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 1.1rem;
}
.footer-links { margin-left: 0; }
.footer-links li { padding-left: 0; margin-bottom: 0.6rem; }
.footer-links li::before { display: none; }
.footer-links a,
.footer-contact a {
    color: var(--text-on-dark-muted) !important;
    font-weight: 500;
    font-size: 0.95rem;
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--white) !important; }
.footer-toggle { color: var(--accent-bright); padding: 0.25rem 0; font-weight: 600; }
.footer-bottom { border-color: rgba(255, 255, 255, 0.08) !important; }
.footer-bottom p { color: var(--text-on-dark-muted) !important; opacity: 1 !important; font-size: 0.9rem !important; }
@media (max-width: 767.98px) {
    .footer-main .col-md-6 { margin-bottom: 2rem !important; }
    .footer-main .container-fluid { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
}

#scrollTopBtn {
    width: 46px;
    height: 46px;
    padding: 0;
    right: 1.25rem;
    bottom: 1.25rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: var(--box-shadow-lg);
}
#scrollTopBtn:hover { background-color: var(--secondary-color); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   13. Blog / long-form content (single, privacy, terms, warranty)
   -------------------------------------------------------------------------- */
.entry-content,
.post-content,
.blog-content {
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
    line-height: 1.75;
}
.entry-content > p,
.post-content > p,
.blog-content > p,
.entry-content > ul,
.entry-content > ol { max-width: 72ch; }
.entry-content h2, .post-content h2, .blog-content h2 { margin-top: 2.25rem; }
.entry-content h3, .post-content h3, .blog-content h3 { margin-top: 1.75rem; }
.entry-content img, .post-content img, .blog-content img { border-radius: var(--radius); }
.entry-content a, .post-content a, .blog-content a { text-decoration: underline !important; text-underline-offset: 3px; }
.toc-item-3 a.active { color: var(--secondary-color); }
@media (max-width: 991.98px) {
    .toc-sticky { position: static; }
}

/* Tables never break the page width */
table { max-width: 100%; }
.entry-content table, .post-content table { display: block; overflow-x: auto; }

/* --------------------------------------------------------------------------
   14. Motion: respect reduced-motion preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .animate-left, .animate-right, .animate-top, .animate-bottom,
    .animate-zoomin, .animate-zoomout {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    .parallax-section { background-attachment: scroll; }
}

/* Shorter travel on reveal animations: calmer, less jumpy on mobile */
.animate-left { transform: translateX(-32px); }
.animate-right { transform: translateX(32px); }
.animate-top { transform: translateY(-24px); }
.animate-zoomin { transform: scale(0.94); }
.animate-zoomout { transform: scale(1.06); }
@keyframes slideUp {
    from { opacity: 0; transform: translate3d(0, 28px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* --------------------------------------------------------------------------
   15. Review fixes
   -------------------------------------------------------------------------- */
/* Centred intro paragraphs stay centred even with Bootstrap mx-* utilities */
.text-center > p.fs-5,
.text-center > p.fs-4,
.text-center > p.lead {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Stat numbers: Sora is wide, keep values on one line in the 4-up grid */
.premium-stat-card .stat-number {
    font-size: clamp(1.75rem, 1.25rem + 1.1vw, 2.25rem) !important;
    white-space: nowrap;
}

/* Text logo fallback when no ACF logo is set */
.navbar-brand,
.navbar-brand:hover { color: var(--white); font-family: var(--font-heading); }

/* Dark feature cards use the ink surface, not flat #111 */
.dualMestekSwiper .feature-card { background-color: var(--ink-2); }
.dualMestekSwiper .card-overlay { background: linear-gradient(to top, rgba(10, 24, 48, 0.92) 0%, transparent 65%); }
.capability-card::after,
.solution-card::after,
.application-card::after { background: linear-gradient(to top, rgba(10, 24, 48, 0.92) 0%, rgba(10, 24, 48, 0.35) 50%, transparent 100%); }
.solution-card { border-color: rgba(255, 255, 255, 0.12); }

@media (max-width: 575.98px) {
    .premium-stat-card.p-5 { padding: 1.5rem 0.75rem !important; }
    .premium-stat-card .stat-icon-wrapper { width: 52px; height: 52px; margin-bottom: 1rem !important; }
    .premium-stat-card .stat-icon-wrapper i { font-size: 1.35rem !important; }
    .premium-stat-card .stat-number { font-size: clamp(1.25rem, 0.9rem + 1.6vw, 1.6rem) !important; }
    .premium-stat-card p { font-size: 0.875rem !important; }
    .footer-main .col-6 { margin-bottom: 1.75rem !important; }
}

/* Wide Bootstrap gutters overflow the narrower phone container */
@media (max-width: 575.98px) {
    .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
    .row.g-5 { --bs-gutter-y: 2rem; }
}

/* Product tabs: swipe sideways on phones instead of pushing the page wide */
.nav-tabs.flex-nowrap {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.nav-tabs.flex-nowrap::-webkit-scrollbar { display: none; }
.nav-tabs.flex-nowrap > .nav-item { flex: none; }
.nav-tabs .nav-link { white-space: nowrap; font-family: var(--font-primary); letter-spacing: 0; }
.nav-tabs .nav-link.active { color: var(--primary-color); border-bottom-color: var(--secondary-color); }

/* Menu fits on one line on laptop widths (992px to 1279px) */
.navbar-nav .nav-link,
.quote-btn-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1279.98px) {
    #main-navbar .container { max-width: 100%; padding-left: 1.25rem; padding-right: 1.25rem; }
    .navbar-nav .nav-link { padding: 0.7rem 0.5rem !important; font-size: 0.9rem; }
    .navbar-nav > .nav-item > .nav-link::before { left: 0.5rem; right: 0.5rem; }
    .navbar-nav .dropdown-toggle::after { margin-left: 0.2em; }
    .quote-btn-wrapper { margin-left: 0.5rem; }
    .quote-btn-link { padding: 0.5rem 0.9rem !important; font-size: 0.875rem; min-height: 38px; }
    .site_logo { max-height: 26px; }
}


/* ==========================================================================
   16. "GLOWING MESH" CREATIVE LAYER
   Animated mesh canvas (js/mesh-network.js), gradient buttons with a shine
   sweep, glass cards with gradient borders, gradient keywords, patterned
   section backgrounds.
   ========================================================================== */
:root {
    --grad-cta: linear-gradient(110deg, #3FD3DF 0%, #6FB4FF 100%);
    --grad-cta-hover: linear-gradient(110deg, #7FE4EC 0%, #8FC5FF 100%);
    --grad-brand: linear-gradient(120deg, #2160E8 0%, #0A8C99 100%);
    --grad-border: linear-gradient(135deg, rgba(33, 96, 232, 0.55), rgba(63, 211, 223, 0.55));
    --glow-cyan: 0 0 0 1px rgba(63, 211, 223, 0.35), 0 10px 30px -8px rgba(63, 211, 223, 0.55);
}

/* ---- Mesh canvas ---- */
.mesh-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    display: block;
}
.hero-home-slider .swiper-slide { overflow: hidden; }
.hero-home-slider .hero-content { z-index: 4; }
.hero-home-slider .hero-image { z-index: 3; }
.custom-breadcrumb-content,
.why-bluehopper-hero-content { z-index: 4 !important; }
.cta-box > *:not(.mesh-canvas) { position: relative; z-index: 3; }

/* Soft colour light behind the hero so the mesh glows */
.hero-home-slider .swiper-slide::before {
    background:
        radial-gradient(55% 70% at 78% 45%, rgba(33, 96, 232, 0.35) 0%, transparent 65%),
        radial-gradient(40% 50% at 10% 90%, rgba(63, 211, 223, 0.18) 0%, transparent 70%),
        linear-gradient(90deg, rgba(10, 24, 48, 0.92) 0%, rgba(10, 24, 48, 0.62) 55%, rgba(10, 24, 48, 0.28) 100%);
}

/* ---- Navbar: cyan light line along the bottom ---- */
#main-navbar { border-bottom: 0; }
#main-navbar::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(63, 211, 223, 0.7) 30%, rgba(111, 180, 255, 0.7) 70%, transparent);
    opacity: 0.6;
}

/* ---- Primary button: gradient pill, glow, shine sweep ---- */
.fourth-btn {
    background: var(--grad-cta) !important;
    border: 0 !important;
    color: var(--ink) !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--glow-cyan);
}
.fourth-btn::before {
    display: block !important;
    content: "" !important;
    position: absolute !important;
    top: 0 !important; left: -75% !important;
    width: 50% !important; height: 100% !important;
    border-radius: 0 !important;
    transform: skewX(-22deg) !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent) !important;
    transition: left 0.65s ease !important;
    z-index: -1;
}
.fourth-btn:hover,
.fourth-btn:focus-visible {
    background: var(--grad-cta-hover) !important;
    box-shadow: 0 0 0 1px rgba(127, 228, 236, 0.5), 0 14px 36px -8px rgba(63, 211, 223, 0.75);
    transform: translateY(-2px);
}
.fourth-btn:hover::before { left: 130% !important; }

/* Solid navy button on light sections: brand gradient + same shine */
.third-btn {
    background: var(--grad-brand) !important;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.third-btn::before {
    display: block !important;
    content: "";
    position: absolute;
    top: 0; left: -75%;
    width: 50%; height: 100%;
    border: 0 !important;
    transform: skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transition: left 0.65s ease;
    z-index: -1;
}
.third-btn:hover::before { left: 130%; width: 50%; height: 100%; }
.third-btn:hover { transform: translateY(-2px); }
.third-btn i { transition: transform var(--transition-fast); }
.third-btn:hover i { transform: translateX(4px); }

/* Outline button on dark: glassy, cyan edge on hover */
.second-btn {
    background: rgba(255, 255, 255, 0.06);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.second-btn:hover { border-color: var(--accent-bright); box-shadow: 0 0 0 3px rgba(63, 211, 223, 0.15); }

/* ---- Gradient keywords in headings ---- */
h1 .text-colour-accent, h2 .text-colour-accent, h3 .text-colour-accent,
h1 .text-accent, h2 .text-accent, h3 .text-accent,
.about-split-section .about-title span {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.navbar h1 .text-colour-accent, .footer-main h2 .text-colour-accent,
.bg-black h1 .text-colour-accent, .bg-black h2 .text-colour-accent, .bg-black h3 .text-colour-accent,
.bg-dark h2 .text-colour-accent,
.hero-home-slider h1 .text-colour-accent,
.custom-hero-breadcrumb .text-colour-accent,
.parallax-section h2 .text-colour-accent,
.cta-box h2 .text-colour-accent {
    background: linear-gradient(110deg, #3FD3DF 0%, #8FC5FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ---- Badge: pulsing signal dot ---- */
.badge::before { box-shadow: 0 0 0 0 rgba(10, 140, 153, 0.5); animation: meshPulse 2.4s ease-out infinite; }
@keyframes meshPulse {
    0% { box-shadow: 0 0 0 0 rgba(63, 211, 223, 0.55); }
    70%, 100% { box-shadow: 0 0 0 7px rgba(63, 211, 223, 0); }
}

/* ---- Glass cards with gradient borders that light up ---- */
.premium-stat-card,
.why-card,
.meshtek-features .item,
.modern-benefit-card,
.iot-application-feature-card,
.case-study-feature-card,
.service-card,
.patent-item,
.faq-section .faq-card {
    border: 1px solid transparent !important;
    background:
        linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)) padding-box,
        linear-gradient(135deg, rgba(33, 96, 232, 0.16), rgba(63, 211, 223, 0.16)) border-box !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(10, 24, 48, 0.04), 0 8px 24px -16px rgba(10, 24, 48, 0.25);
}
.premium-stat-card:hover,
.why-card:hover,
.meshtek-features .item:hover,
.modern-benefit-card:hover,
.iot-application-feature-card:hover,
.case-study-feature-card:hover,
.service-card:hover,
.patent-item:hover {
    border-color: transparent !important;
    background:
        linear-gradient(#FFFFFF, #FFFFFF) padding-box,
        var(--grad-border) border-box !important;
    box-shadow: 0 22px 44px -20px rgba(33, 96, 232, 0.45), 0 0 0 4px rgba(63, 211, 223, 0.08);
    transform: translateY(-4px);
}
.modern-benefit-card::before { display: none; }

/* Icons tilt and fill with the gradient on hover */
.stat-icon-wrapper, .card-icon, .icon-shape, .icon-box, .case-study-feature-icon, .patent-icon {
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3), background var(--transition-normal), color var(--transition-normal);
}
.premium-stat-card:hover .stat-icon-wrapper,
.why-card:hover .card-icon,
.modern-benefit-card:hover .icon-shape,
.product-standout-card:hover .icon-box,
.case-study-feature-card:hover .case-study-feature-icon,
.patent-item:hover .patent-icon {
    background: var(--grad-brand) !important;
    color: var(--white) !important;
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 10px 22px -10px rgba(33, 96, 232, 0.8);
}
.why-card:hover .card-icon i { color: var(--white); }

/* Image cards: cyan edge glow on hover */
.capability-card:hover,
.application-card:hover,
.product-card:hover,
.gallery-card:hover {
    box-shadow: 0 0 0 1px rgba(63, 211, 223, 0.55), 0 26px 50px -20px rgba(10, 24, 48, 0.6), 0 0 40px -10px rgba(63, 211, 223, 0.45) !important;
}

/* ---- Section backgrounds ---- */
/* Light mist sections: faint dot grid */
.bg-colour-secondary {
    background-color: var(--bg-secondary) !important;
    background-image: radial-gradient(rgba(18, 48, 110, 0.09) 1px, transparent 1px) !important;
    background-size: 22px 22px !important;
}
/* Dark sections: blueprint grid + colour light */
.bg-black,
.bg-dark {
    background-color: var(--ink) !important;
    background-image:
        radial-gradient(60% 50% at 85% 0%, rgba(33, 96, 232, 0.28) 0%, transparent 70%),
        radial-gradient(50% 50% at 0% 100%, rgba(63, 211, 223, 0.14) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) !important;
    background-size: auto, auto, 44px 44px, 44px 44px !important;
}
.footer-main.bg-black {
    background-image:
        radial-gradient(50% 60% at 100% 0%, rgba(33, 96, 232, 0.18) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) !important;
    background-size: auto, 44px 44px, 44px 44px !important;
    position: relative;
}
.footer-main.bg-black::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(63, 211, 223, 0.6), transparent);
}

/* CTA box: gradient frame */
.cta-box {
    border: 1px solid transparent;
    background:
        radial-gradient(80% 120% at 100% 0%, rgba(33, 96, 232, 0.4) 0%, transparent 60%) padding-box,
        linear-gradient(var(--ink), var(--ink)) padding-box,
        linear-gradient(135deg, rgba(63, 211, 223, 0.7), rgba(33, 96, 232, 0.2) 50%, rgba(63, 211, 223, 0.5)) border-box;
    box-shadow: 0 30px 60px -30px rgba(10, 24, 48, 0.7), 0 0 60px -20px rgba(63, 211, 223, 0.35);
}
.cta-box::before, .cta-box::after { display: none; }

/* Swiper dots: active dot stretches into a gradient bar */
.swiper-pagination-bullet { transition: width var(--transition-normal), background var(--transition-normal); }
.swiper-pagination-bullet-active { width: 26px; border-radius: 4px; background: var(--grad-brand) !important; }
.hero-home-slider .swiper-pagination-bullet-active { background: var(--grad-cta) !important; }

/* Scroll-to-top: gradient */
#scrollTopBtn { background: var(--grad-brand); box-shadow: var(--glow-cyan); }

@media (prefers-reduced-motion: reduce) {
    .badge::before { animation: none; }
    .premium-stat-card:hover, .why-card:hover, .meshtek-features .item:hover, .modern-benefit-card:hover,
    .iot-application-feature-card:hover, .case-study-feature-card:hover, .service-card:hover, .patent-item:hover { transform: none; }
}

/* CTA box: second button stays an outline so the two actions differ */
.cta-box .d-flex > a.fourth-btn + a.fourth-btn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    color: var(--white) !important;
    box-shadow: none;
}
.cta-box .d-flex > a.fourth-btn + a.fourth-btn::before { display: none !important; }
.cta-box .d-flex > a.fourth-btn + a.fourth-btn:hover {
    border-color: var(--accent-bright) !important;
    background: rgba(63, 211, 223, 0.1) !important;
}

/* Mesh behind blog and product banners: keep their text above it */
.bh-hero > .container,
.product-hero > .container { position: relative; z-index: 4 !important; }

/* Product detail banner: darker photo overlay so the title reads clearly */
.product-hero .hero-bg > .bg-black { opacity: 0.72 !important; background: linear-gradient(180deg, rgba(10, 24, 48, 0.55), rgba(10, 24, 48, 0.95)) !important; }
.product-hero h1 { text-shadow: 0 2px 24px rgba(10, 24, 48, 0.6); letter-spacing: -0.01em; }
.product-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, 0.5); }

/* --------------------------------------------------------------------------
   WPForms phone field (country flag picker)
   Template form styles force 20px left padding with !important, which put the
   number under the flag, and the country list was squeezed to the flag width.
   -------------------------------------------------------------------------- */
div.wpforms-container-full .wpforms-form .iti { width: 100%; display: block; }

html body div.wpforms-container-full .wpforms-form .iti--allow-dropdown input[type="tel"],
html body div.wpforms-container-full .wpforms-form .iti--show-flags input[type="tel"] {
    padding-left: 64px !important;
}

/* Flag button: full height, divider line, clear hover */
div.wpforms-container-full .wpforms-form .iti__country-container,
div.wpforms-container-full .wpforms-form .iti__flag-container { padding: 4px 0 4px 4px; }
div.wpforms-container-full .wpforms-form .iti__selected-country,
div.wpforms-container-full .wpforms-form .iti__selected-flag {
    height: 100%;
    padding: 0 10px 0 12px !important;
    border-radius: 9px 0 0 9px;
    border-right: 1px solid var(--line);
    background: transparent;
    gap: 6px;
}
div.wpforms-container-full .wpforms-form .iti__selected-country:hover,
div.wpforms-container-full .wpforms-form .iti__selected-flag:hover,
div.wpforms-container-full .wpforms-form .iti__selected-country[aria-expanded="true"] { background: var(--bg-secondary); }
div.wpforms-container-full .wpforms-form .iti__arrow { border-top-color: var(--text-muted); margin-left: 4px; }
div.wpforms-container-full .wpforms-form .iti__arrow--up { border-bottom-color: var(--text-muted); }

/* Country list: wide enough for names on one line */
div.wpforms-container-full .wpforms-form .iti__dropdown-content {
    width: max-content !important;
    min-width: 300px !important;
    max-width: min(380px, calc(100vw - 2.5rem)) !important;
    margin-top: 6px;
    border: 1px solid var(--line) !important;
    border-radius: 12px !important;
    background: var(--white) !important;
    box-shadow: var(--box-shadow-lg) !important;
    overflow: hidden;
    z-index: 50 !important;
}
div.wpforms-container-full .wpforms-form .iti__country-list {
    max-height: 280px !important;
    margin: 0 !important;
    padding: 6px !important;
    border: 0 !important;
    box-shadow: none !important;
    white-space: nowrap !important;
    overflow-y: auto;
    scrollbar-width: thin;
}
div.wpforms-container-full .wpforms-form .iti__country {
    display: flex !important;
    align-items: center;
    gap: 10px;
    width: auto !important;
    padding: 9px 12px !important;
    margin: 0 !important;
    border-radius: 8px;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    color: var(--text-dark);
    cursor: pointer;
}
div.wpforms-container-full .wpforms-form .iti__country * { white-space: nowrap !important; }
div.wpforms-container-full .wpforms-form .iti__country.iti__highlight,
div.wpforms-container-full .wpforms-form .iti__country:hover { background: var(--bg-secondary) !important; }
div.wpforms-container-full .wpforms-form .iti__country[aria-selected="true"] { font-weight: 600; color: var(--primary-color); }
div.wpforms-container-full .wpforms-form .iti__country-name { margin: 0 !important; overflow: hidden; text-overflow: ellipsis; }
div.wpforms-container-full .wpforms-form .iti__dial-code { color: var(--text-muted) !important; margin-left: auto; padding-left: 12px; }
div.wpforms-container-full .wpforms-form .iti__flag-box { margin: 0 !important; }
div.wpforms-container-full .wpforms-form .iti__divider { margin: 4px 0 !important; border-bottom: 1px solid var(--line) !important; padding: 0 !important; }

/* Search box inside the list (newer versions of the picker) */
html body div.wpforms-container-full .wpforms-form .iti__search-input {
    width: calc(100% - 12px) !important;
    margin: 6px 6px 0 !important;
    min-height: 42px;
    padding: 0 12px !important;
    border: 1.5px solid var(--line) !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
}


/* ==========================================================================
   17. SUBMENUS
   Items stay on one line, soft open animation, hover marker, flyouts that
   open toward the side with room (js/theme-fixes.js adds .open-left).
   ========================================================================== */
@media (min-width: 992px) {
    .navbar .dropdown-menu {
        min-width: 250px;
        width: max-content;
        max-width: 340px;
        padding: 8px !important;
        margin-top: 0 !important;
        border: 1px solid var(--line) !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 24px 48px -16px rgba(10, 24, 48, 0.35), 0 2px 6px rgba(10, 24, 48, 0.06) !important;
    }
    .navbar-nav > .nav-item > .dropdown-menu { top: calc(100% + 4px); }
    /* Invisible bridge so the menu does not close while the pointer moves down to it */
    .navbar-nav > .nav-item > .dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0; right: 0;
        top: -14px;
        height: 14px;
    }
    .navbar-nav .menu-item-has-children:hover > .dropdown-menu,
    .navbar-nav .nav-item.show > .dropdown-menu,
    .dropdown-menu .dropdown:hover > .dropdown-menu {
        animation: mtMenuIn 0.18s ease-out both;
    }
    @keyframes mtMenuIn {
        from { opacity: 0; transform: translateY(6px); }
        to { opacity: 1; transform: none; }
    }

    .navbar .dropdown-menu .dropdown-item {
        position: relative;
        white-space: nowrap !important;
        padding: 0.65rem 2.25rem 0.65rem 0.9rem !important;
        border-radius: 9px;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-dark) !important;
        transition: background var(--transition-fast), color var(--transition-fast), padding var(--transition-fast);
    }
    .navbar .dropdown-menu .dropdown-item::before {
        content: "";
        position: absolute;
        left: 0.8rem;
        top: 50%;
        width: 6px; height: 6px;
        margin-top: -3px;
        border-radius: 50%;
        background: var(--accent-color);
        opacity: 0;
        transform: scale(0.4);
        transition: opacity var(--transition-fast), transform var(--transition-fast);
    }
    .navbar .dropdown-menu .dropdown-item:hover,
    .navbar .dropdown-menu .dropdown-item:focus-visible,
    .navbar .dropdown-menu .dropdown:hover > .dropdown-item {
        padding-left: 1.6rem !important;
        background: var(--bg-secondary) !important;
        color: var(--primary-color) !important;
    }
    .navbar .dropdown-menu .dropdown-item:hover::before,
    .navbar .dropdown-menu .dropdown-item:focus-visible::before,
    .navbar .dropdown-menu .dropdown:hover > .dropdown-item::before { opacity: 1; transform: scale(1); }

    /* Current page */
    .navbar .dropdown-menu .current-menu-item > .dropdown-item,
    .navbar .dropdown-menu .current-menu-ancestor > .dropdown-item {
        background: rgba(33, 96, 232, 0.08) !important;
        color: var(--secondary-color) !important;
        font-weight: 600;
    }

    /* Group parents with a flyout: chevron on the right */
    .navbar .dropdown-menu .dropdown-toggle::after {
        content: "";
        position: absolute;
        right: 0.9rem;
        top: 50%;
        width: 7px; height: 7px;
        margin: -4px 0 0 !important;
        border: 0 !important;
        border-top: 1.5px solid currentColor !important;
        border-right: 1.5px solid currentColor !important;
        transform: rotate(45deg);
        opacity: 0.6;
        vertical-align: 0;
    }
    .navbar .dropdown-menu .dropend > .dropdown-menu,
    .dropdown-menu .dropdown:hover > .dropdown-menu {
        top: -9px !important;
        left: calc(100% + 8px) !important;
        right: auto !important;
    }
    .navbar .dropdown-menu .dropend > .dropdown-menu::before {
        content: "";
        position: absolute;
        top: 0; bottom: 0;
        left: -12px;
        width: 12px;
    }
    .navbar .dropdown-menu .dropend.open-left > .dropdown-menu,
    .dropdown-menu .dropdown.open-left:hover > .dropdown-menu {
        left: auto !important;
        right: calc(100% + 8px) !important;
    }
    .navbar .dropdown-menu .dropend.open-left > .dropdown-menu::before { left: auto; right: -12px; }

    /* Top-level dropdowns near the right edge open right-aligned */
    .navbar .nav-item.open-right-edge > .dropdown-menu { left: auto !important; right: 0 !important; }

    /* Top-level caret: thin chevron that flips while open */
    .navbar-nav > .nav-item > .dropdown-toggle::after {
        width: 6px; height: 6px;
        margin-left: 0.4em !important;
        border: 0 !important;
        border-right: 1.5px solid currentColor !important;
        border-bottom: 1.5px solid currentColor !important;
        transform: translateY(-2px) rotate(45deg);
        transition: transform var(--transition-fast);
        vertical-align: middle;
    }
    .navbar-nav > .nav-item:hover > .dropdown-toggle::after,
    .navbar-nav > .nav-item.show > .dropdown-toggle::after { transform: translateY(1px) rotate(-135deg); }
}

/* Phone menu: nested groups indented with a guide line */
@media (max-width: 991.98px) {
    .navbar .dropdown-menu .dropdown-menu {
        margin: 0.25rem 0 0.5rem 0.9rem !important;
        padding: 0 0 0 0.75rem !important;
        border-left: 1px solid rgba(63, 211, 223, 0.35) !important;
        background: transparent;
    }
    .navbar .dropdown-menu .dropdown-item { white-space: normal; padding: 0.65rem 0.75rem !important; }
    .navbar .dropdown-menu .dropdown-toggle::after { float: right; margin-top: 0.55em; }
}

/* ==========================================================================
   18. CALL-TO-ACTION BANNERS (parallax sections)
   White heading with one cyan highlight, readable paragraph, clear button.
   ========================================================================== */
.parallax-content { max-width: 860px; }
.parallax-content h2,
.parallax-content h2.text-colour-accent {
    color: var(--white) !important;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem) !important;
    line-height: 1.15;
    letter-spacing: -0.025em;
    max-width: 24ch;
    margin: 0 auto 1.25rem !important;
}
.parallax-content p,
.parallax-content p.text-white-50 {
    color: var(--text-on-dark) !important;
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    font-weight: 400;
    line-height: 1.65;
    max-width: 60ch;
    margin: 0 auto 2rem !important;
    opacity: 1;
}


/* ==========================================================================
   19. FOOTER  (mesh canvas from js/mesh-network.js sits behind it)
   ========================================================================== */
.mt-footer {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--text-on-dark-muted);
    background-color: var(--ink) !important;
    background-image:
        radial-gradient(55% 60% at 100% 0%, rgba(33, 96, 232, 0.28) 0%, transparent 70%),
        radial-gradient(45% 55% at 0% 70%, rgba(63, 211, 223, 0.12) 0%, transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px) !important;
    background-size: auto, auto, 44px 44px, 44px 44px !important;
    padding-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
    --accent-color: var(--accent-bright);
}
.mt-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    z-index: 3;
    background: linear-gradient(90deg, transparent, rgba(63, 211, 223, 0.7) 30%, rgba(111, 180, 255, 0.7) 70%, transparent);
}
.mt-footer .mesh-canvas { opacity: 0.45; }
.mt-footer__glow {
    position: absolute;
    left: 50%; bottom: -30%;
    width: 70%; height: 60%;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(63, 211, 223, 0.18), transparent);
    filter: blur(20px);
    pointer-events: none;
    z-index: 1;
}
.mt-footer__inner { position: relative; z-index: 4; }

/* Intro row */
.mt-footer__intro {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mt-footer__title {
    color: var(--white) !important;
    font-size: clamp(1.75rem, 1.25rem + 2vw, 2.85rem) !important;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 20ch;
    margin: 0 0 0.9rem;
}
.mt-footer__title span {
    background: linear-gradient(110deg, #3FD3DF 0%, #8FC5FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.mt-footer__lede { max-width: 52ch; margin: 0; font-size: 1.05rem; line-height: 1.6; }
.mt-footer__intro-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 575.98px) {
    .mt-footer__intro-actions, .mt-footer__intro-actions > a { width: 100%; }
}

/* Columns */
.mt-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem 2rem;
}
@media (max-width: 991.98px) {
    .mt-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .mt-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .mt-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.25rem; }
}

.mt-footer__logo img { max-width: 180px; height: auto; margin-bottom: 1.5rem; }
.mt-footer__contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.mt-footer__contact a {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: var(--text-on-dark) !important;
    font-size: 0.95rem;
    line-height: 1.5;
}
.mt-footer__contact a:hover { color: var(--white) !important; }
.mt-footer__ico {
    flex: none;
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--accent-bright);
    background: rgba(63, 211, 223, 0.1);
    border: 1px solid rgba(63, 211, 223, 0.22);
    transition: background var(--transition-fast), color var(--transition-fast);
}
.mt-footer__contact a:hover .mt-footer__ico { background: var(--accent-bright); color: var(--ink); }

.mt-footer__social { list-style: none; display: flex; gap: 0.5rem; margin: 1.5rem 0 0; padding: 0; }
.mt-footer__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--text-on-dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all var(--transition-fast);
}
.mt-footer__social a:hover { color: var(--ink) !important; background: var(--grad-cta, var(--accent-bright)); border-color: transparent; transform: translateY(-2px); }

.mt-footer__heading {
    color: var(--white) !important;
    font-family: var(--font-heading);
    font-size: 1rem !important;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0 0 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.mt-footer__heading::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 0 4px rgba(63, 211, 223, 0.15);
}
.mt-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.mt-footer__col a {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0;
    color: var(--text-on-dark-muted) !important;
    font-size: 0.95rem;
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.mt-footer__col a::before {
    content: "";
    width: 0; height: 1.5px;
    margin-right: 0;
    background: var(--accent-bright);
    transition: width var(--transition-fast), margin var(--transition-fast);
}
.mt-footer__col a:hover,
.mt-footer__col a:focus-visible { color: var(--white) !important; }
.mt-footer__col a:hover::before,
.mt-footer__col a:focus-visible::before { width: 14px; margin-right: 0.5rem; }
.mt-footer__col a[aria-current="page"] { color: var(--accent-bright) !important; }

/* Bottom bar */
.mt-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}
.mt-footer__copy { margin: 0; color: var(--text-on-dark-muted); }
.mt-footer__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 0; padding: 0; }
.mt-footer__legal a { color: var(--text-on-dark-muted) !important; }
.mt-footer__legal a:hover { color: var(--white) !important; }
.mt-footer__top {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-on-dark) !important;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}
.mt-footer__top span {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
}
.mt-footer__top:hover span { background: var(--grad-cta, var(--accent-bright)); color: var(--ink); border-color: transparent; transform: translateY(-3px); }
@media (max-width: 767.98px) {
    .mt-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* Giant outlined wordmark */
.mt-footer__wordmark {
    position: relative;
    z-index: 2;
    margin: 0.5rem 0 -0.2em;
    text-align: center;
    white-space: nowrap;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(4.5rem, 19vw, 19rem);
    line-height: 0.82;
    letter-spacing: -0.05em;
    color: transparent;
    background: linear-gradient(180deg, rgba(63, 211, 223, 0.30) 0%, rgba(33, 96, 232, 0.12) 50%, transparent 88%);
    -webkit-background-clip: text;
    background-clip: text;
    user-select: none;
    pointer-events: none;
}

/* The floating scroll-to-top button is not needed while the footer's own is on screen */
#scrollTopBtn { align-items: center; justify-content: center; }

/* ==========================================================================
   20. PHONE / TABLET HEADER: call-to-action beside the menu button
   ========================================================================== */
.mt-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}
.mt-header-cta {
    min-height: 40px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(63, 211, 223, 0.3), 0 6px 18px -8px rgba(63, 211, 223, 0.6) !important;
}
.mt-header-cta__short { display: none; }
@media (max-width: 991.98px) {
    #main-navbar > .container { flex-wrap: wrap; }
    .site_logo { max-height: 28px; }
}
@media (max-width: 575.98px) {
    .site_logo { max-height: 22px; }
    #main-navbar .navbar-brand { margin-right: 0.5rem; }
    .mt-header-actions { gap: 0.35rem; }
    .mt-header-actions .navbar-toggler { width: 40px; height: 40px; padding: 0; }
    .mt-header-actions .navbar-toggler i { font-size: 1.4rem !important; }
}
@media (max-width: 429.98px) {
    .mt-header-cta { padding: 0.45rem 0.85rem !important; font-size: 0.825rem !important; }
    .mt-header-cta__long { display: none; }
    .mt-header-cta__short { display: inline; }
}
@media (max-width: 339.98px) {
    .site_logo { max-height: 18px; }
}
/* Inside the open phone menu the full-width button stays as well */
@media (max-width: 991.98px) {
    .quote-btn-wrapper { margin-top: 1rem; }
}
