/* =====================================================
   Goodwill — Site customisation overrides
   Loaded after style.css / responsive.css so anything
   in here wins the cascade. Edit freely.
   ===================================================== */

/* ---------------------------------------------------------
   Homepage feature boxes (style-three)
   The default theme paints the blue hover background via a
   :before with z-index: -1, which can render white-on-white
   in some browser stacking-context cases. Force a real
   background and white text on hover for reliability.
   --------------------------------------------------------- */
.feature-area.style-three .single-feature-box {
    transition: background-color .35s ease, border-color .35s ease, transform .35s ease;
}

.feature-area.style-three .single-feature-box:hover {
    background-color: #0c5adb !important;
    border-color: #0c5adb !important;
}

.feature-area.style-three .single-feature-box:hover .feature-content h4,
.feature-area.style-three .single-feature-box:hover .feature-content p,
.feature-area.style-three .single-feature-box:hover .feature-content a {
    color: #ffffff !important;
}

/* Also turn the icon white on hover (in case the filter trick isn't covering it) */
.feature-area.style-three .single-feature-box:hover .feature-icon img {
    filter: brightness(0) invert(1);
}

/* ============================================
   Responsive Footer
   ============================================ */

.footer-area .footer-logo {
    margin-bottom: 20px;
}

.footer-area .footer-widget-desc p {
    color: rgba(255,255,255,0.8);
    margin: 0 0 20px;
}

.footer-area .footer-widget-title h4 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-area .footer-widget-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-area .footer-widget-menu ul li {
    margin-bottom: 8px;
}

.footer-area .footer-widget-menu ul li a,
.footer-area .footer-widget-menu ul li {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    line-height: 1.6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-area .footer-widget-menu ul li a:hover {
    color: #fff;
}

.footer-area .footer-widget-menu ul li i {
    margin-right: 8px;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-area .footer-company-menu-columns ul {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 4px 20px;
}

.footer-area .footer-bottom-area {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 40px;
    padding-top: 25px;
}

.footer-area .footer-bottom-content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-area .footer-botton-social-icon ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.footer-area .footer-botton-social-icon ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #111;
    color: #fff;
    transition: background 0.3s ease, transform 0.3s ease;
}

.footer-area .footer-botton-social-icon ul li a:hover {
    background: #0c5adb;
    transform: translateY(-2px);
}

.footer-area .footer-botton-social-icon ul li a i {
    font-size: 0.9rem;
}

/* -- Tablet (768px) -- */
@media (max-width: 991px) {
    .footer-area .footer-widget-content {
        margin-bottom: 30px;
    }
}

/* -- Mobile (576px) -- */
@media (max-width: 767px) {
    .footer-area .footer-company-menu-columns ul {
        grid-template-columns: 1fr;
    }

    .footer-area .footer-botton-social-icon ul {
        justify-content: flex-start;
    }

    .footer-area .footer-bottom-content {
        text-align: center;
        margin-bottom: 15px;
    }
}

/* -- Small mobile (400px) -- */
@media (max-width: 400px) {
    .footer-area .footer-botton-social-icon ul li a {
        width: 36px;
        height: 36px;
    }
}

.site-title-text {
    font-size: 3rem;
}

@media (max-width: 767px) {
    .site-title-text {
        font-size: 1.7rem !important;
        letter-spacing: 1px !important;
    }
}

/* ---------------------------------------------------------
   Homepage counter strip (style-three)
   The default theme uses opacity: 0.8 on the sub-text which,
   combined with the busy globe-pattern blue background,
   makes the labels ("IT Solutions Experts", etc.) almost
   illegible. Force full opacity, a touch more weight, and a
   subtle shadow so it always reads cleanly.
   --------------------------------------------------------- */
.counter-area.style-three .counter-content p {
    color: #ffffff !important;
    opacity: 1 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    letter-spacing: .02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    margin-top: 6px !important;
}

.counter-area.style-three .counter-content h4,
.counter-area.style-three .counter-content span {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

/* ---------------------------------------------------------
   Footer readability (style-one / home-three)
   The default theme drops opacity on several text elements
   which, on the dark navy footer, makes them look washed-out
   grey. Force fully readable values everywhere.
   --------------------------------------------------------- */

/* About-us description paragraph */
.footer-area.style-one .footer-widget-desc p {
    color: rgba(255, 255, 255, .85) !important;
    opacity: 1 !important;
    width: 100% !important;
    line-height: 1.7;
}

/* Company links — two columns on wide footers */
.footer-area.style-one .footer-widget-menu.footer-company-menu-columns ul {
    display: grid;
    grid-template-columns: 1fr ;
    column-gap: 1.25rem;
    row-gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.footer-area.style-one .footer-widget-menu.footer-company-menu-columns ul li {
    margin: 0;
    padding: 0;
    break-inside: avoid;
}

@media (max-width: 575.98px) {
    .footer-area.style-one .footer-widget-menu.footer-company-menu-columns ul {
        grid-template-columns: 1fr;
    }
}

/* Copyright bar */
.footer-area.style-one .footer-bottom-content p {
    color: rgba(255, 255, 255, .8) !important;
    opacity: 1 !important;
    font-weight: 400;
}

/* Contact list items — phone / email / address (white icons + text) */
.footer-area.style-one .footer-widget-content ul li,
.footer-area.style-one .footer-widget-content ul li i {
    color: rgba(255, 255, 255, .9) !important;
}
.footer-area.style-one .footer-widget-content ul li a {
    color: rgba(255, 255, 255, .9) !important;
}
.footer-area.style-one .footer-widget-content ul li a:hover {
    color: #ffffff !important;
}

/* ---------------------------------------------------------
   "Don't Forget to Contact Us" side panel (style-three)
   - Labels (Call Us / Send E-Mail / Office Hours) render too
     faded against the blue background.
   - Long emails overflow the card because <h4> doesn't break.
   --------------------------------------------------------- */
.contact-area.style-three .single-contact-info-box {
    overflow: hidden;
}

.contact-area.style-three .contact-info-content {
    min-width: 0;
    flex: 1 1 auto;
}

/* Labels — solid, readable white */
.contact-area.style-three .contact-info-content p {
    color: rgba(255, 255, 255, .85) !important;
    opacity: 1 !important;
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

/* Values (phone, email, hours) — break long strings (e.g. emails) */
.contact-area.style-three .contact-info-content h4 {
    color: #ffffff !important;
    font-size: 17px !important;
    line-height: 1.4 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ---------------------------------------------------------
   Header — Home Three / style-two+three. Meanmenu hides <nav> on mobile;
   desktop flex keeps primary nav and "Get A Quote" aligned in one row.
   --------------------------------------------------------- */
@media (min-width: 992px) {
    .header-area.style-two.style-three .header-menu.mobile-menu:not(.mean-container) {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important;
    }

    .header-area.style-two.style-three .header-menu.mobile-menu:not(.mean-container) > nav.main-nav {
        flex: 0 1 auto !important;
        display: block !important;
        min-width: 0 !important;
    }

    .header-area.style-two.style-three .header-menu.mobile-menu:not(.mean-container) > nav.main-nav > ul {
        margin-bottom: 0 !important;
        text-align: right !important;
    }

    .header-area.style-two.style-three .header-menu.mobile-menu:not(.mean-container) > .header-button {
        flex: 0 0 auto !important;
    }
}

/* ---------------------------------------------------------
   Responsive header / mobile navigation
   The bundled responsive.css hides .header-area below 992px
   assuming a duplicate mobile-only header block. This site uses
   a single header + jQuery meanmenu (see assets/js/theme.js),
   so the bar must stay visible and the markup must expose
   .mobile-menu nav for initialization.
   --------------------------------------------------------- */
@media (max-width: 991px) {
    #sticky-header.header-area {
        display: block !important;
    }

    /*
     Below 992px Bootstrap .container is capped (e.g. 720px between 768px–991px).
     That centers a narrow strip — large white gutters on tablets like Surface (~912px).
    */
    #sticky-header.header-area > .container {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    #sticky-header.header-area > .container > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        --bs-gutter-x: 0;
    }

    #sticky-header.header-area > .container > .row > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Theme hard-codes title in meanmenu.min.css — logo row already shows branding */
    #sticky-header .mobile-menu.mean-container .mean-bar::before {
        content: none !important;
    }

    /* Fluid mobile header: hoist mean-bar children to one flex wrapper so logo + burger
       share one row and .mean-nav is a full-width block below (no blue strip beside list). */
    #sticky-header .mobile-menu.mean-container .mean-push {
        display: none !important;
    }

    #sticky-header .mobile-menu.mean-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        align-content: flex-start !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        background: #0c5adb !important;
    }

    /* Unwrap plugin wrapper so reorder (logo/hamburger/menu stack) applies */
    #sticky-header .mobile-menu.mean-container .mean-bar {
        display: contents !important;
    }

    #sticky-header .mobile-menu.mean-container .responsive-menu-brand {
        order: -1 !important;
        flex: 0 1 auto !important;
        max-width: 72% !important;
        min-width: 0 !important;
        align-self: center !important;
        padding: 10px 6px 10px 12px !important;
    }

    #sticky-header .responsive-menu-brand__logo {
        display: block !important;
        max-height: 36px !important;
        width: auto !important;
        height: auto !important;
    }

    #sticky-header .mobile-menu.mean-container > a.meanmenu-reveal {
        order: 1 !important;
        flex: 0 0 auto !important;
        float: none !important;
        align-self: center !important;
        margin-left: auto !important; /* pushes right if justify-content collapses across browsers */
        margin-right: 12px !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* Accordion panel: forced new full-width row under logo + burger */
    #sticky-header .mobile-menu.mean-container > nav.mean-nav {
        order: 5 !important;
        flex: 0 0 100% !important;
        flex-basis: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        float: none !important;
        margin: 0 !important;
        position: relative !important;
        left: auto !important;
        align-self: stretch !important;
    }

    /* Hide CTA in header on small screens (use menu / footer / contact page instead) */
    #sticky-header .header-menu > .header-button {
        display: none !important;
    }
}

/* Floating WhatsApp + Call (fixed, above scroll-to-top control) */

.floating-contact-fabs {
    position: fixed;
    z-index: 999998;
    right: calc(22px + env(safe-area-inset-right, 0px));
    bottom: calc(94px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.floating-contact-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.floating-contact-fab:hover,
.floating-contact-fab:focus-visible {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
}

.floating-contact-fab--whatsapp {
    background: #25d366;
    font-size: 28px;
    line-height: 1;
}

.floating-contact-fab--call {
    background: #2ec4ce;
    font-size: 20px;
    line-height: 1;
}

/* ─── Desktop submenu: fix shake/flicker at edges ─────────────────────────────
 * style.css animates submenu `top` (150% → 100%); during movement the hit area can
 * fight with neighbouring nav cells. Raising stacking on hover plus a stable
 * `top` + `pointer-events` pattern removes the vibration at the submenu bottom/end.
 */
@media (min-width: 992px) {
    #sticky-header .header-menu ul li.menu-item-has-children:hover {
        z-index: 140;
    }

    #sticky-header .header-menu ul li .sub-menu {
        top: 100% !important;
        transform: translateY(0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.22s ease, visibility 0.22s ease;
    }

    #sticky-header .header-menu ul li:hover .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}