/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Hello Elementor Child Theme
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container-fluid { width: 100%; padding-right: 20px; padding-left: 20px; margin-right: auto; margin-left: auto; }
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 2.5rem !important; }
.m-0 { margin: 0 !important; }
.w-100 { width: 100% !important; }
.inline-block { display: inline-block; }

@media (min-width: 992px) {
    .d-lg-block { display: block !important; }
    .d-lg-flex  { display: flex  !important; }
    .d-lg-none  { display: none  !important; }
    .px-lg-5    { padding-right: 3rem !important; padding-left: 3rem !important; }
}

/* ==========================================================================
   Main Header Bar (Desktop)
   ========================================================================== */

/* Wrapper */
.custom-classic-header {
    position: relative;
    z-index: 1001;
}

.header-main-bar {
    background-color: #ffffff;
    padding: 18px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 1001;
}

/* Desktop Menubar — base */
.header-menu-bar {
    background-color: #00b0f0;
    position: relative;
    z-index: 1002;
    transition: box-shadow 0.3s ease;
}

/* ---- STICKY STATES ---- */
/* Desktop: sticky menubar snaps to top when scrolled past main header */
.header-menu-bar.is-sticky {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
    animation: slideDown 0.3s ease;
}

/* Mobile: sticky main header bar */
@media (max-width: 991px) {
    .header-main-bar.is-sticky {
        position: fixed !important;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
        animation: slideDown 0.3s ease;
    }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to   { transform: translateY(0); }
}


.site-branding a { display: block; }
.site-branding img { max-height: 60px; display: block; }

/* Right-side group */
.header-right { display: flex; align-items: center; gap: 0; }

.header-item {
    padding: 0 24px;
    display: flex;
    align-items: center;
}
.header-item:first-child { padding-left: 0; }
.header-item:last-child  { padding-right: 0; }

.header-divider {
    width: 1px;
    height: 44px;
    background-color: #e2e8f0;
    flex-shrink: 0;
}

/* Search inside header */
.header-item .search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    padding: 8px 16px;
    gap: 8px;
    transition: all 0.3s ease;
}
.header-item .search-input-wrapper:focus-within {
    border-color: #00b0f0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.1);
}
.header-item .search-icon  { color: #94a3b8; font-size: 18px; flex-shrink: 0; }
.header-item .search-field {
    border: none; background: transparent; outline: none;
    font-size: 14px; width: 150px; color: #334155;
    transition: width 0.3s ease;
}
.header-item .search-field:focus { width: 190px; }

/* Contact links */
.contact-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.contact-icon-box {
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px;
    background-color: #f0f9ff;
    color: #00b0f0;
    border-radius: 50%;
    margin-right: 10px;
    font-size: 19px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.contact-text-box { display: flex; flex-direction: column; }
.contact-label  { font-size: 11px; color: #94a3b8; font-weight: 500; text-transform: uppercase; letter-spacing: 0.6px; line-height: 1.2; margin-bottom: 2px; }
.contact-detail { font-size: 14px; color: #0f172a; font-weight: 700; line-height: 1.2; transition: color 0.3s; }
.contact-link:hover .contact-icon-box { background-color: #00b0f0; color: #fff; transform: scale(1.05); box-shadow: 0 4px 10px rgba(0,176,240,0.25); }
.contact-link:hover .contact-detail { color: #00b0f0; }

/* CTA Button */
.custom-cta-btn {
    background-color: #1e3a8a;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    padding: 10px 22px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(30, 58, 138, 0.15);
}
.custom-cta-btn:hover {
    background-color: #172d6e;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(30, 58, 138, 0.25);
}

/* ==========================================================================
   Menubar (Desktop Nav)
   ========================================================================== */
.header-menu-bar {
    background-color: #00b0f0;
    position: relative;
    z-index: 1000;
}

/* Social icons in menubar */
.header-socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px;
    background-color: rgba(255,255,255,0.2);
    color: #ffffff;
    border-radius: 50%;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.header-socials a:hover { background-color: #1e3a8a; transform: scale(1.1); }

/* Desktop nav list */
.main-nav { list-style: none; padding: 0; margin: 0; }
.main-nav > li { display: inline-block; margin: 0; position: relative; }
.main-nav > li > a {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    padding: 14px 18px;
    display: block;
    transition: background-color 0.25s ease;
    white-space: nowrap;
}
.main-nav > li:hover > a,
.main-nav > li.current-menu-item > a { background-color: rgba(0,0,0,0.12); }

/* Dropdown */
.main-nav .sub-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 220px;
    background-color: #ffffff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    border-radius: 0 0 6px 6px;
    border-top: 3px solid #1e3a8a;
    padding: 8px 0;
    margin: 0; list-style: none;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}
.main-nav > li:hover .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.main-nav .sub-menu li { display: block; margin: 0; break-inside: avoid; }
.main-nav .sub-menu li a {
    display: block; padding: 9px 20px;
    color: #475569; font-size: 14px; font-weight: 500;
    text-decoration: none; transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9; white-space: nowrap;
}
.main-nav .sub-menu li:last-child a { border-bottom: none; }
.main-nav .sub-menu li a:hover { background-color: #f0f9ff; color: #00b0f0; padding-left: 26px; }

/* 2-column mega dropdown for 8+ items */
.main-nav .sub-menu:has(li:nth-child(8)),
.main-nav .sub-menu.mega-menu {
    column-count: 2; column-gap: 0; min-width: 500px;
}
.main-nav .sub-menu:has(li:nth-child(8)) li a,
.main-nav .sub-menu.mega-menu li a { white-space: normal; }

/* ==========================================================================
   Mobile Hamburger Button
   ========================================================================== */
.hamburger-btn {
    /* Hidden on desktop by default */
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    transition: background 0.2s;
    position: relative;
    z-index: 1100; /* Always above other header elements */
}
.hamburger-btn:hover { background: #f1f5f9; }
.hamburger-btn span {
    display: block;
    width: 24px; height: 2px;
    background-color: #334155;
    border-radius: 2px;
    transition: all 0.3s ease;
    pointer-events: none; /* Prevent spans from absorbing clicks */
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Mobile Off-Canvas Drawer
   ========================================================================== */
.mobile-drawer-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mobile-drawer-overlay.open { opacity: 1; }

.mobile-drawer {
    position: fixed;
    top: 0; right: -320px;
    width: 300px; height: 100%;
    background: #ffffff;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}
.mobile-drawer.open { right: 0; }

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 3px solid #00b0f0;
    background: #ffffff;
}
.mobile-drawer-header .site-branding-mobile img { max-height: 50px; }
.mobile-drawer-close {
    background: #f1f5f9;
    border: none; cursor: pointer;
    width: 34px; height: 34px;
    border-radius: 50%;
    color: #334155; font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.mobile-drawer-close:hover { background: #00b0f0; color: #ffffff; }

/* Mobile navigation inside drawer */
.mobile-drawer-nav { padding: 10px 0; flex: 1; }
.mobile-drawer-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s ease;
}
.mobile-drawer-nav ul li a:hover { background: #f0f9ff; color: #00b0f0; padding-left: 26px; }
/* Sub-menu items indented */
.mobile-drawer-nav ul ul { display: block; }
.mobile-drawer-nav ul ul li a { padding-left: 35px; font-size: 14px; font-weight: 500; color: #64748b; }
.mobile-drawer-nav ul ul li a:hover { padding-left: 42px; }

/* Mobile contact info in drawer */
.mobile-drawer-contact {
    padding: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.mobile-drawer-contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.mobile-drawer-contact a i {
    width: 36px; height: 36px;
    background: #f0f9ff; color: #00b0f0;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
}
.mobile-drawer-contact a:hover { color: #00b0f0; }

/* Mobile CTA in drawer */
.mobile-drawer-cta {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
}
.mobile-drawer-cta .custom-cta-btn { display: block; text-align: center; width: 100%; }

/* Mobile search in drawer */
.mobile-drawer-search {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.mobile-drawer-search .search-input-wrapper {
    display: flex; align-items: center;
    border: 1px solid #e2e8f0; border-radius: 25px;
    padding: 8px 14px; gap: 8px;
    background: #f8fafc;
}
.mobile-drawer-search .search-field { border: none; background: transparent; outline: none; font-size: 14px; flex: 1; }
.mobile-drawer-search .search-icon { color: #94a3b8; font-size: 18px; }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* --- Large desktop: keep everything inline --- */
@media (min-width: 1200px) {
    .header-item { padding: 0 28px; }
    .contact-detail { font-size: 15px; }
}

/* --- Medium desktop / tablet-landscape (992–1199px): hide email, keep phone --- */
@media (max-width: 1199px) and (min-width: 992px) {
    .header-item { padding: 0 16px; }
    /* Hide email to save space */
    .header-item.hide-md { display: none !important; }
    .header-divider.hide-md { display: none !important; }
    .contact-detail { font-size: 13px; }
    .contact-icon-box { width: 36px; height: 36px; font-size: 16px; }
    .main-nav > li > a { padding: 14px 12px; font-size: 14px; }
}

/* --- Tablet portrait & below (< 992px): switch to hamburger --- */
@media (max-width: 991px) {
    /* Show hamburger button */
    .hamburger-btn  { display: flex !important; }
    /* Hide desktop-only items */
    .header-right   { display: none !important; }
    .header-menu-bar { display: none !important; }

    .header-main-bar { padding: 14px 0; }
    .site-branding img { max-height: 48px; }

    /* Show drawer overlay container (JS controls actual visibility via style.display) */
    .mobile-drawer-overlay { display: none; }
}
/* ==========================================================================
   Custom Footer
   ========================================================================== */
.site-footer { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }

.footer-main { background-color: #0f172a; padding: 70px 0 50px; color: #cbd5e1; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 48px; }

.footer-col--about .footer-logo img { max-height: 55px; margin-bottom: 20px; }
.footer-col--about .footer-logo .footer-site-name { font-size: 22px; font-weight: 800; color: #ffffff; display: block; margin-bottom: 16px; }
.footer-about-text { font-size: 14px; line-height: 1.8; color: #94a3b8; margin-bottom: 24px; }

.footer-socials { display: flex; gap: 10px; }
.footer-socials a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; background-color: rgba(255,255,255,0.07); color: #94a3b8; border-radius: 50%; font-size: 16px; text-decoration: none; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.1); }
.footer-socials a:hover { background-color: #00b0f0; color: #ffffff; border-color: #00b0f0; transform: translateY(-2px); }

.footer-heading { font-size: 16px; font-weight: 700; color: #ffffff; margin: 0 0 22px; padding-bottom: 12px; position: relative; }
.footer-heading::after { content: ''; position: absolute; bottom: 0; left: 0; width: 36px; height: 3px; background-color: #00b0f0; border-radius: 2px; }

.footer-nav-list { list-style: none; padding: 0; margin: 0; }
.footer-nav-list li { margin-bottom: 12px; }
.footer-nav-list li a { color: #94a3b8; text-decoration: none; font-size: 14px; font-weight: 500; transition: all 0.25s ease; display: inline-flex; align-items: center; gap: 8px; }
.footer-nav-list li a::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background-color: #00b0f0; flex-shrink: 0; opacity: 0; transition: opacity 0.25s ease; }
.footer-nav-list li a:hover { color: #00b0f0; padding-left: 4px; }
.footer-nav-list li a:hover::before { opacity: 1; }

.footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; line-height: 1.6; color: #94a3b8; }
.footer-contact-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; background-color: rgba(0,176,240,0.12); color: #00b0f0; border-radius: 8px; font-size: 17px; flex-shrink: 0; margin-top: 2px; }
.footer-contact-list a { color: #94a3b8; text-decoration: none; transition: color 0.25s; }
.footer-contact-list a:hover { color: #00b0f0; }

.footer-bottom { background-color: #090f1d; padding: 18px 0; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copyright { font-size: 13px; color: #64748b; margin: 0; }
.footer-bottom-links { display: flex; align-items: center; gap: 10px; }
.footer-bottom-links a { color: #64748b; font-size: 13px; text-decoration: none; transition: color 0.25s; }
.footer-bottom-links a:hover { color: #00b0f0; }
.footer-bottom-sep { color: #334155; }

@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } .footer-main { padding: 50px 0 36px; } .footer-container { padding: 0 20px; } .footer-bottom-inner { flex-direction: column; text-align: center; } }

/* ==========================================================================
   Footer Full-Width Fix
   ========================================================================== */
/* Force footer to escape any Elementor/theme container constraints */
.site-footer,
.site-footer .footer-main,
.site-footer .footer-bottom {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    float: none !important;
    clear: both !important;
}

/* Make sure the footer sits outside any page content wrappers */
body .site-footer {
    position: relative;
    z-index: 1;
    display: block;
}

/* Override any Elementor section/container max-width applied to footer */
.elementor-page .site-footer,
.elementor-default .site-footer {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}
