/*
 Theme Name:   Braintech Child
 Theme URI:    http://keenitsolutions.com/products/wordpress/braintech/
 Description:  Unitek Child
 Author:       RS Theme
 Author URI:   http://rstheme.com
 Template:     braintech
 Version:      1.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
 */

.fixed-email-btn {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background-image: linear-gradient(220deg, #F27C1E 0%, #DD4C23 79%);
    color: #fff;
    padding: 15px 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    writing-mode: vertical-rl;
    border-radius: 8px 0 0 8px;
    z-index: 99999;
}

.fixed-email-btn:hover {
    background-image: linear-gradient(220deg, #DD4C23 0%, #F27C1E 79%);
    color: #fff;
}

/* Global Breadcrumb/Hero Background Override (excluding homepage) */
body:not(.home):not(.front-page) .breadcrumbs-single,
body:not(.home):not(.front-page) .rs-breadcrumbs-inner {
    background-image: url('http://localhost/it-support-prod/tech-itsupport/wp-content/uploads/2026/06/ChatGPT-Image-Jun-26-2026-01_50_53-PM_result.jpg') !important;
    background-size: cover !important;
    /* background-position: center center !important; */
    background-repeat: no-repeat !important;
    height: 85vh !important;
}

/* Fix header hierarchy on ALL pages */
body #rs-header,
body .menu-area {
    position: relative !important;
    background-color: #ffffff !important;
    z-index: 999;
}

/* Maintain sticky behavior */
body .menu-area.sticky {
    position: fixed !important;
    top: 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* .rs-breadcrumbs .page-title {
    display: none !important;
} */

.main-contain #content {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

/* Base Reset */
.premium-footer {
    color: inherit;
    padding: 6rem 2rem 3rem 2rem;
    border-top: 1px solid #f3f4f6;
}

.premium-footer * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.pf-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* --- TOP SECTION: INTRO & MAP --- */
.pf-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.pf-intro {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.pf-logo {
    max-width: 160px !important;
    height: auto;
    margin-bottom: 1rem;
}

.pf-heading {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.pf-text {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.8;
}

.pf-socials {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.pf-social-link {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pf-social-link:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.pf-map-wrapper {
    width: 100%;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

.pf-map-iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- MIDDLE SECTION: CONTACT CARDS --- */
.pf-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.pf-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.pf-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.pf-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pf-card-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.pf-card-text {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.7;
    text-decoration: none;
}

.pf-card-link {
    color: #2563eb;
    font-weight: 500;
    transition: color 0.2s;
    text-decoration: none;
    margin-top: 0.25rem;
}

.pf-card-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* --- BOTTOM BAR: COPYRIGHT & SLOGAN --- */
.pf-bottom-bar {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.pf-slogan {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
    background: #f8fafc;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 1px solid #f1f5f9;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.pf-slogan-icon {
    font-size: 1.25rem;
}

.pf-copyright-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    color: #64748b;
    font-size: 0.95rem;
}

.pf-credit strong {
    color: #0f172a;
    font-weight: 600;
}

/* --- RESPONSIVE LAYOUT --- */
@media (min-width: 768px) {
    .pf-copyright-row {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 1200px) {
    .pf-contact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .pf-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pf-intro {
        text-align: center;
        align-items: center;
    }

    .pf-map-wrapper {
        height: 300px;
    }
}

@media (max-width: 640px) {
    .premium-footer {
        padding: 4rem 1rem 2rem 1rem;
    }

    .pf-contact-grid {
        grid-template-columns: 1fr;
    }

    .pf-slogan {
        font-size: 0.95rem;
        padding: 1rem;
        border-radius: 16px;
        line-height: 1.5;
    }

    .pf-slogan-icon {
        display: none;
    }
}


/* #F6F7F9 */

/* Sticky Left Column for About Section (Tablet & Desktop Only) */
@media (min-width: 768px) {

    /* Critical Fix: The parent theme has overflow-x: hidden on the body, which permanently disables all sticky elements globally. We must reset it. */
    html,
    body {
        overflow-x: visible !important;
        overflow-y: visible !important;
    }

    /* Force parents to allow overflow so sticky child can actually slide down */
    .sticky-parent,
    .sticky-parent>.elementor-container,
    .sticky-parent>.elementor-container>.elementor-row {
        overflow: visible !important;
    }

    .custom-sticky-col {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px !important;
        /* Adjust this to match your sticky header height */
        align-self: flex-start !important;
        /* Critical: Stops column from stretching to full height */
        z-index: 10;
    }

    /* Second Sticky Column (Mission & Vision) */
    .custom-sticky-col-2 {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 120px !important;
        align-self: flex-start !important;
        z-index: 10;
    }
}

/* ═══════════════════════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════════════════════ */
#techit-preloader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#techit-preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.techit-preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.techit-preloader-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    animation: techit-pulse 1.6s ease-in-out infinite;
}

@keyframes techit-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.06);
        opacity: 0.85;
    }
}

/* Three animated loading dots */
.techit-preloader-dots {
    display: flex;
    gap: 8px;
}

.techit-preloader-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(220deg, #F27C1E 0%, #DD4C23 79%);
    animation: techit-bounce 1.2s ease-in-out infinite;
}

.techit-preloader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.techit-preloader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.techit-preloader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes techit-bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    40% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ==========================================================================
   Header & Menu Overrides (Fixing Hover & Mobile Breaking)
   ========================================================================== */

/* 1. Desktop Submenu Hover Fix */
@media (min-width: 992px) {

    /* Remove any weird background/gradient on hover from both li and a */
    #rs-header .menu-area ul.sub-menu>li:hover,
    #rs-header .menu-area ul.sub-menu>li>a:hover,
    #rs-header .menu-area ul.nav-menu ul li:hover,
    #rs-header .menu-area ul.nav-menu ul li a:hover,
    #rs-header .rs-menu ul.sub-menu li:hover,
    #rs-header .rs-menu ul.sub-menu li a:hover,
    .widget_nav_menu ul li:hover,
    .widget_nav_menu ul li a:hover {
        background: transparent !important;
        background-color: #f8f9fa !important;
        background-image: none !important;
        color: #F27C1E !important;
    }

    /* Fix submenu padding */
    #rs-header .menu-area ul.sub-menu>li>a,
    #rs-header .menu-area ul.nav-menu ul li a,
    #rs-header .rs-menu ul li ul li a {
        padding: 12px 20px !important;
        line-height: 1.5 !important;
        display: block !important;
    }

    /* Remove padding from submenu li elements (desktop) */
    #rs-header .menu-area ul.sub-menu>li,
    #rs-header .menu-area ul.nav-menu ul li,
    #rs-header .rs-menu ul li ul li {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Increase submenu width to prevent excessive text wrapping */
    #rs-header .menu-area ul.sub-menu,
    #rs-header .menu-area ul.nav-menu ul,
    #rs-header .rs-menu ul.sub-menu {
        width: 320px !important;
        min-width: 320px !important;
    }
}

/* 2. Mobile Menu Fixes */
@media (max-width: 991px) {

    /* Fix mobile menu background and layout breaking */
    #rs-header .menu-area,
    #rs-header .rs-menu,
    #rs-header .rs-menu ul,
    .mobile-menu-container,
    .mobile-menu,
    .offcanvas-menu,
    .responsive-menus,
    .responsive-menus .menu-container {
        background: #ffffff !important;
        background-color: #ffffff !important;
        background-image: none !important;
    }

    /* Fix mobile menu links typography and spacing */
    #rs-header .rs-menu ul li a,
    .mobile-menu ul li a,
    .offcanvas-menu ul li a,
    .responsive-menus ul li a {
        color: #1b365d !important;
        /* Dark blue */
        padding: 15px 20px !important;
        border-bottom: 1px solid #f1f1f1 !important;
        display: block !important;
        text-align: left !important;
    }

    /* Mobile menu hover state */
    #rs-header .rs-menu ul li a:hover,
    .mobile-menu ul li a:hover,
    .offcanvas-menu ul li a:hover,
    .responsive-menus ul li a:hover {
        color: #F27C1E !important;
        /* Orange */
        background-color: #f8f9fa !important;
        background-image: none !important;
    }

    /* Ensure submenus on mobile display correctly when expanded */
    #rs-header .rs-menu ul.sub-menu,
    .mobile-menu ul.sub-menu,
    .offcanvas-menu ul.sub-menu,
    .responsive-menus ul.sub-menu {
        background: #fdfdfd !important;
        padding-left: 15px !important;
    }

    /* Remove padding from mobile submenu li elements */
    #rs-header .rs-menu ul.sub-menu>li,
    .mobile-menu ul.sub-menu>li,
    .offcanvas-menu ul.sub-menu>li,
    .responsive-menus ul.sub-menu>li {
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* ==========================================================================
   Custom Premium Header Styles
   ========================================================================== */

.custom-premium-header {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
    transition: all 0.3s ease;
}

.custom-header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.custom-logo img {
    max-height: 30px;
    width: auto;
}

/* Desktop Navigation */
.custom-nav-container {
    display: flex;
    align-items: center;
}

.custom-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.custom-menu>li {
    position: relative;
    padding: 10px 0;
}

.custom-menu>li>a {
    text-decoration: none;
    color: #1b365d;
    font-weight: 600;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.custom-menu>li>a:hover {
    color: #f07c22;
}

.dropdown-icon {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.custom-menu>li:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Glassmorphism Dropdowns */
.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    list-style: none;
    padding: 15px 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 100;
}

.custom-menu>li:hover .custom-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-dropdown li {
    padding: 0;
    margin: 0;
}

.custom-dropdown li a {
    display: block;
    padding: 10px 25px;
    color: #1b365d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.custom-dropdown li a:hover {
    background: rgba(240, 124, 34, 0.05);
    color: #f07c22;
    border-left: 3px solid #f07c22;
    padding-left: 30px;
}

/* Mobile Hamburger */
.custom-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 10000;
}

.custom-mobile-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #1b365d;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.custom-mobile-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
    background: #f07c22;
}

.custom-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.custom-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
    background: #f07c22;
}

/* Mobile Layout */
@media (max-width: 991px) {
    .custom-mobile-toggle {
        display: flex;
    }

    .custom-nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 400px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        padding: 80px 30px 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        overflow-y: auto;
        z-index: 9998;
    }

    .custom-nav-container.active {
        right: 0;
    }

    .custom-menu {
        flex-direction: column;
        gap: 15px;
    }

    .custom-menu>li>a {
        font-size: 18px;
        padding: 10px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        justify-content: space-between;
    }

    .custom-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        box-shadow: none;
        border: none;
        padding: 80px 30px 40px;
        opacity: 1;
        visibility: visible;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        display: block !important;
        z-index: 10001;
        /* Keep it above everything */
        overflow-y: auto;
    }

    .custom-menu>li.open .custom-dropdown {
        transform: translateX(0);
    }

    /* Hide the dropdown icon on mobile since the whole item is clickable */
    .custom-menu>li>a .dropdown-icon {
        transform: rotate(-90deg);
        /* Point right to indicate a new panel opens */
    }

    .custom-menu>li.open .dropdown-icon {
        transform: rotate(-90deg);
    }

    .mobile-back-btn {
        display: block;
        margin-bottom: 25px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        position: relative;
        z-index: 999999;
    }

    .mobile-back-btn a {
        display: inline-block;
        padding: 10px 20px 20px 0 !important;
        color: #f07c22 !important;
        font-weight: 700 !important;
        font-size: 28px !important;
        /* Larger arrow */
        line-height: 1 !important;
        border-left: none !important;
        cursor: pointer;
    }

    .mobile-back-btn a:hover {
        background: transparent !important;
    }
}

/* Hide back button on Desktop */
@media (min-width: 992px) {
    .mobile-back-btn {
        display: none !important;
    }
}

/* ==========================================================================
   Native Page Banner Title Customization
   ========================================================================== */

.rs-breadcrumbs .page-title {
    color: #ffffff !important;
    text-transform: capitalize !important;
    text-align: center !important;
    font-size: 56px !important;
    font-weight: 700 !important;
    /* Absolute Centering */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100%;
    margin: 0 !important;
    z-index: 10;
}

.rs-breadcrumbs .breadcrumbs-inner {
    padding-top: 400px !important;
}

/* Ensure the breadcrumb area acts as a positioning container */
.rs-breadcrumbs,
.rs-breadcrumbs .breadcrumbs-single {
    position: relative !important;
}

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .rs-breadcrumbs .page-title {
        font-size: 26px !important;
    }
}