/*---------------------------------------------
    xGrowth Custom Styles - Section Spacing & Professional Layout
----------------------------------------------*/

/* ===== GLOBAL SECTION SPACING ===== */
.banner-section-one,
.patner-section-one,
.clients-section,
.service-section-one,
.about-section-one,
.process-section-one,
.testimonial-section-one,
.why-choose-section-one,
.contact-section-one,
.team-section-one,
.cta-section-three,
.why-choose-five-two,
.why-choose-section-four,
.location-section,
.contact-section {
    padding-top: 100px !important;
    padding-bottom: 100px !important;
}

/* Banner doesn't need top padding */
.banner-section-one {
    padding-top: 0 !important;
}

/* Clients section with dark background */
.clients-section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
}

/* Page Header for inner pages */
.page-header-section {
    padding-top: 150px !important;
    padding-bottom: 60px !important;
    margin-bottom: 0;
}

/* ===== SECTION DIVIDERS ===== */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(209, 169, 122, 0.3), transparent);
    margin: 0;
}

/* ===== HEADING BOX SPACING ===== */
.heading-box {
    margin-bottom: 50px;
}

.heading-box .sub-title {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--xgrowth-primary);
    margin-bottom: 15px;
    position: relative;
}

.heading-box .heading-title {
    margin-bottom: 20px;
}

/* ===== ABOUT SECTION IMPROVEMENTS ===== */
.about-section-one .about-right-one {
    padding-left: 30px;
}

.about-section-one .about-details-one {
    margin-bottom: 30px;
}

/* ===== SERVICES SECTION ===== */
.service-section-one {
    background-color: #f8f9fa;
}

.service-box-one {
    margin-bottom: 30px;
    padding: 40px 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.service-box-one:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(209, 169, 122, 0.2);
}

/* ===== PROCESS SECTION ===== */
.process-section-one {
    background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%);
}

.process-section-one .heading-box .sub-title,
.process-section-one .heading-box .heading-title {
    color: white;
}

.process-box-one {
    padding: 35px 30px;
    margin-bottom: 20px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-section-one {
    background-color: #f8f9fa;
}

.testimonial-item-one {
    padding: 40px;
    margin: 20px 10px;
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section-one {
    position: relative;
}

.counter-one {
    padding: 60px 0;
}

.counter-box-one {
    padding: 30px 20px;
}

/* ===== FOOTER SPACING ===== */
.main-footer {
    margin-top: 0;
}

.footer-one {
    padding-top: 80px !important;
    padding-bottom: 30px !important;
}

.contact-section-one {
    background: var(--xgrowth-light-orange);
}

/* ===== CTA SECTION ===== */
.cta-section-three {
    background: linear-gradient(135deg, var(--xgrowth-secondary) 0%, #3d5a54 100%);
    padding: 80px 0 !important;
}

.cta-section-three .heading-title {
    color: white;
    margin-bottom: 30px;
}

/* ===== TEAM/TRAINING SECTION ===== */
.team-section-one {
    background-color: #f8f9fa;
}

.team-section-one.about-team {
    padding: 100px 0 !important;
}

/* ===== ABOUT LOWER SECTION ===== */
.about-section-two {
    padding: 100px 0 !important;
    background: white;
}

/* ===== WHY CHOOSE TWO ===== */
.why-choose-section-two {
    padding: 100px 0 !important;
}

/* ===== WHY CHOOSE FOUR ===== */
.why-choose-section-four {
    padding: 100px 0 !important;
    background-color: #f8f9fa;
}

/* ===== WHY CHOOSE FIVE TWO ===== */
.why-choose-five-two {
    padding: 100px 0 !important;
}

/* ===== LOCATION SECTION ===== */
.location-section {
    padding: 80px 0 !important;
    background-color: #f8f9fa;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
    padding: 100px 0 !important;
}

/* ===== FORM STYLING ===== */
.contact-form .form-control,
.contact-form-one .form-control {
    height: 60px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus,
.contact-form-one .form-control:focus {
    border-color: var(--xgrowth-primary);
    box-shadow: 0 0 0 3px rgba(209, 169, 122, 0.1);
}

.contact-form textarea.form-control,
.contact-form-one textarea.form-control {
    height: auto;
    min-height: 120px;
}

.contact-form select.form-control,
.contact-form-one select.form-control {
    cursor: pointer;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 991px) {
    .banner-section-one,
    .patner-section-one,
    .clients-section,
    .service-section-one,
    .about-section-one,
    .process-section-one,
    .testimonial-section-one,
    .why-choose-section-one,
    .contact-section-one,
    .team-section-one,
    .cta-section-three,
    .why-choose-five-two,
    .why-choose-section-four,
    .location-section,
    .contact-section {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
    
    .heading-box {
        margin-bottom: 40px;
    }
    
    .about-section-one .about-right-one {
        padding-left: 0;
        margin-top: 40px;
    }
}

@media (max-width: 767px) {
    .banner-section-one,
    .patner-section-one,
    .clients-section,
    .service-section-one,
    .about-section-one,
    .process-section-one,
    .testimonial-section-one,
    .why-choose-section-one,
    .contact-section-one,
    .team-section-one,
    .cta-section-three,
    .why-choose-five-two,
    .why-choose-section-four,
    .location-section,
    .contact-section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    .heading-box {
        margin-bottom: 30px;
    }
    
    .page-header-section {
        padding-top: 120px !important;
        padding-bottom: 40px !important;
    }
    
    .page-header-section h2 {
        font-size: 2rem !important;
    }
    
    /* Banner Mobile Fixes */
    .banner-section-one {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .banner-slide-item-one {
        padding: 100px 15px 80px 15px !important;
        min-height: 500px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .banner-image-one {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    
    .banner-image-one img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .banner-section-one .container-fluid,
    .banner-section-one .row {
        position: relative;
        z-index: 2;
    }
    
    .banner-section-one .heading-box {
        position: relative;
        z-index: 3;
        padding: 20px;
        background: rgba(0, 0, 0, 0.4);
        border-radius: 15px;
        backdrop-filter: blur(10px);
    }
    
    .banner-section-one h1.heading-title {
        font-size: 32px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px !important;
    }
    
    .banner-section-one h1.heading-title span {
        font-size: 32px !important;
    }
    
    .banner-section-one .banner-sub-title-one h2 {
        font-size: 18px !important;
        margin-bottom: 10px !important;
    }
    
    .banner-section-one p.heading-details {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        max-width: 100% !important;
    }
    
    .banner-section-one .btn {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
    
    .banner-sub-title-one {
        padding-bottom: 20px !important;
    }
    
    #slider-info {
        bottom: 30px !important;
        font-size: 12px !important;
    }
    
    .banner-section-one ul.slick-dots {
        bottom: 20px !important;
        z-index: 10 !important;
    }
    
    .banner-section-one ul.slick-dots li button {
        cursor: pointer !important;
        pointer-events: auto !important;
    }
}

/* Fix for banner dots clickability */
.banner-section-one ul.slick-dots {
    z-index: 999 !important;
    pointer-events: auto !important;
}

.banner-section-one ul.slick-dots li {
    pointer-events: auto !important;
    cursor: pointer !important;
}

.banner-section-one ul.slick-dots li button {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
    position: relative;
}

.banner-section-one ul.slick-dots li button:hover {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

.banner-section-one ul.slick-dots li.slick-active button {
    background-color: var(--xgrowth-light) !important;
    width: 50px !important;
}

@media (max-width: 479px) {
    .banner-slide-item-one {
        padding: 80px 15px 60px 15px !important;
        min-height: 450px !important;
    }
    
    .banner-section-one h1.heading-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    
    .banner-section-one h1.heading-title span {
        font-size: 28px !important;
    }
    
    .banner-section-one .banner-sub-title-one h2 {
        font-size: 16px !important;
    }
    
    .banner-section-one p.heading-details {
        font-size: 13px !important;
    }
    
    .banner-section-one .heading-box {
        padding: 15px;
    }
}

/* ===== SMOOTH SCROLL ===== */
html {
    scroll-behavior: smooth;
}

/* ===== ANIMATIONS ===== */
.animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate.fadeInUp.wow {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CARD HOVER EFFECTS ===== */
.service-box-one,
.team-box-one,
.process-box-one,
.testimonial-item-one,
.counter-box-one {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== PROFESSIONAL TOUCHES ===== */
::selection {
    background: var(--xgrowth-primary);
    color: white;
}

::-moz-selection {
    background: var(--xgrowth-primary);
    color: white;
}

/* ===== NAVBAR ACTIVE STATE ===== */
ul.main-menu-list li.active > a {
    color: var(--xgrowth-primary) !important;
}

ul.main-menu-list li.active::after {
    content: "";
    position: absolute;
    bottom: 35px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--xgrowth-primary);
}

/* ===== MOBILE MENU BUTTON FIX ===== */
.header-menu-collaps {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 100000 !important;
    position: relative !important;
    display: flex !important;
    padding: 10px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    -webkit-tap-highlight-color: transparent;
}

.header-menu-collaps span {
    pointer-events: none !important;
    user-select: none;
    -webkit-user-select: none;
}

.main-menu-inner {
    position: relative;
    z-index: 99999;
    pointer-events: auto;
}

.main-menu-inner > * {
    pointer-events: auto;
}

.header-menu-collaps:hover,
.header-menu-collaps:active,
.header-menu-collaps:focus {
    opacity: 0.8;
    outline: none !important;
}

/* Ensure button is visible on mobile */
@media (max-width: 1024px) {
    .header-menu-collaps {
        display: flex !important;
    }
}

/* Mobile Nav Wrapper Fix & Design Improvements */
@media (max-width: 991px) {
    .mobile-nav-wrapper {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-nav-wrapper.expanded {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .mobile-nav-wrapper.expanded .mobile-nav-content {
        left: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: translateX(0) !important;
    }
    
    .mobile-nav-content {
        transition: left 0.3s ease, transform 0.3s ease !important;
        background: #ffffff !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Close Button */
    .mobile-nav-close {
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 10 !important;
        background: rgba(209, 169, 122, 0.1) !important;
        border-radius: 50% !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-nav-close:hover {
        background: var(--xgrowth-primary) !important;
        transform: rotate(90deg) !important;
    }
    
    .mobile-nav-close span {
        position: absolute !important;
        width: 20px !important;
        height: 2px !important;
        background: #1a2a3a !important;
        transition: all 0.3s ease !important;
    }
    
    .mobile-nav-close span:first-child {
        transform: rotate(45deg) !important;
    }
    
    .mobile-nav-close span:last-child {
        transform: rotate(-45deg) !important;
    }
    
    .mobile-nav-close:hover span {
        background: white !important;
    }
    
    /* Logo Box */
    .mobile-nav-content .logo-box {
        padding: 30px 20px 20px 20px !important;
        text-align: center !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-bottom: 0 !important;
        background: linear-gradient(135deg, #1a2a3a 0%, #0d1b2a 100%) !important;
        position: relative !important;
    }
    
    .mobile-nav-content .logo-box::before,
    .mobile-nav-content .logo-box::after {
        content: none !important;
        display: none !important;
    }
    
    .mobile-nav-content .logo-box img {
        max-width: 150px !important;
        height: auto !important;
        filter: brightness(0) invert(1) !important;
        display: block !important;
        margin: 0 auto !important;
        position: relative !important;
        z-index: 1 !important;
        opacity: 1 !important;
    }
    
    .mobile-nav-content .logo-box a {
        display: block !important;
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Remove any duplicate images */
    .mobile-nav-content .logo-box img:not(:first-of-type) {
        display: none !important;
    }
    
    /* Hide header logo when mobile nav is open */
    body.locked .main-menu-logo {
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    /* Menu Container */
    .mobile-nav-container {
        padding: 20px !important;
        flex: 1 !important;
        overflow-y: auto !important;
    }
    
    /* Menu List */
    .mobile-menu-list {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-menu-list li {
        margin-bottom: 5px !important;
    }
    
    .mobile-menu-list li a {
        display: block !important;
        padding: 15px 20px !important;
        color: #1a2a3a !important;
        font-size: 16px !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        border-radius: 10px !important;
        transition: all 0.3s ease !important;
        border-left: 3px solid transparent !important;
    }
    
    .mobile-menu-list li a:hover,
    .mobile-menu-list li a:active {
        background: linear-gradient(135deg, rgba(209, 169, 122, 0.1) 0%, rgba(209, 169, 122, 0.05) 100%) !important;
        color: var(--xgrowth-primary) !important;
        border-left-color: var(--xgrowth-primary) !important;
        padding-left: 25px !important;
    }
    
    /* Contact Section */
    .mobile-nav-contact {
        padding: 25px 20px !important;
        margin: 0 20px 20px 20px !important;
        background: linear-gradient(135deg, rgba(209, 169, 122, 0.1) 0%, rgba(209, 169, 122, 0.05) 100%) !important;
        border-radius: 15px !important;
        border: 1px solid rgba(209, 169, 122, 0.2) !important;
    }
    
    .mobile-nav-contact h5 {
        color: var(--xgrowth-primary) !important;
        font-size: 18px !important;
        font-weight: 600 !important;
        margin-bottom: 15px !important;
    }
    
    .mobile-nav-contact p {
        margin-bottom: 12px !important;
        font-size: 14px !important;
    }
    
    .mobile-nav-contact a {
        color: #1a2a3a !important;
        text-decoration: none !important;
        transition: color 0.3s ease !important;
    }
    
    .mobile-nav-contact a:hover {
        color: var(--xgrowth-primary) !important;
    }
    
    .mobile-nav-contact i {
        color: var(--xgrowth-primary) !important;
        width: 20px !important;
        text-align: center !important;
    }
}

@media (min-width: 992px) {
    .mobile-nav-wrapper {
        display: none !important;
    }
}
