/*
 Theme Name:   TheGem Child - Dupno
 Theme URI:    https://dupno.com
 Description:  Child theme for TheGem - Dupno GPS Tracking Website.
               সব custom CSS এবং code এখানে রাখা হবে যাতে parent theme update এ কিছু হারিয়ে না যায়।
 Author:       Dupno Development Team
 Author URI:   https://dupno.com
 Template:     thegem
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  thegem-child
*/

/* ==========================================================================
   TABLE OF CONTENTS
   ==========================================================================
   1. WordPress Custom CSS Migration (from WP Customizer)
   2. WPBakery Custom CSS (from vc_custom-css)
   3. Security & Performance Enhancements
   4. Mobile Responsiveness Fixes
   5. AI SEO & Accessibility Improvements
   ========================================================================== */

/* ==========================================================================
   1. WordPress Custom CSS Migration (wp-custom-css)
   --------------------------------------------------------------------------
   এই CSS গুলো WordPress Customizer > Additional CSS থেকে নেওয়া।
   Parent theme update করলেও এগুলো preserve থাকবে।
   ========================================================================== */

/* Product Meta Hide (Single Product Pages) */
.single-product .product_meta,
.single-product .single-product-content .product-meta > div {
    display: none !important;
}

/* Page Title Block Styling */
#page-title {
    position: relative;
    z-index: 1;
    padding-top: 120px !important;
    padding-bottom: 120px !important;
    overflow: hidden;
}

#page-title .breadcrumbs,
#page-title .breadcrumbs-container,
#page-title .page-subtitle,
#page-title .title-excerpt,
#page-title .gem-breadcrumbs {
    display: none !important;
}

#page-title .container,
#page-title .container-inner {
    position: relative;
    z-index: 2;
}

#page-title h1,
#page-title .title-h1 {
    position: relative;
    z-index: 2;
    line-height: 1.25 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    word-break: break-word;
}

#page-title::before,
#page-title::after,
#page-title .overlay,
#page-title .background-overlay {
    display: none !important;
}

#page-title .title-area {
    align-items: center !important;
    justify-content: center !important;
}

/* Page Title Responsive */
@media (max-width: 1024px) {
    #page-title {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
}

@media (max-width: 768px) {
    #page-title {
        padding-top: 90px !important;
        padding-bottom: 90px !important;
    }
    #page-title h1,
    #page-title .title-h1 {
        font-size: 26px !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }
}

@media (max-width: 480px) {
    #page-title {
        padding-top: 70px !important;
        padding-bottom: 70px !important;
    }
    #page-title h1,
    #page-title .title-h1 {
        font-size: 22px !important;
    }
}

/* ==========================================================================
   2. WPBakery Custom CSS Migration (vc_custom-css)
   --------------------------------------------------------------------------
   WPBakery Page Builder > Custom CSS থেকে নেওয়া।
   এগুলো WPBakery settings এও থাকবে, কিন্তু child theme এ backup হিসেবে রাখা হলো।
   ========================================================================== */

/* Header Shrink - Top Area Hide */
#site-header.shrink #top-area {
    display: none;
}

/* Transparent Header Top Area */
#site-header-wrapper.site-header-wrapper-transparent #site-header:not(.shrink) #top-area {
    border-bottom: 0;
    background: rgba(33, 35, 49, 0.7) !important;
}

/* No Overflow Row */
.no-overflow.vc_row[data-vc-full-width] {
    overflow: visible !important;
}

/* Mouse Scroll Indicator */
.mouse-scroll {
    border: 2px solid #00bcd4;
}

/* Textbox Styling */
.new-textbox-style .gem-textbox .gem-textbox-inner {
    border-top: 10px solid #dfe5e8 !important;
    z-index: 4;
}

/* Progress Bar Styling */
.custome-progress-bar .vc_progress_bar .vc_single_bar {
    background: transparent;
    border-bottom: 1px solid #d8e2e4;
}

.custome-progress-bar .vc_tta.vc_general.vc_tta-accordion.vc_tta-style-simple_solid .vc_tta-panel-body,
.vc_tta.vc_general.vc_tta-accordion.vc_tta-style-simple_dashed .vc_tta-panel-body {
    padding: 25px 0;
}

/* Counter Box */
.custome-counter-box .gem-counter-inner {
    border: 2px solid #a3a4ad;
}

/* Padding Utilities */
.no-paddings-row {
    padding: 0 0 35px 0;
}

.new-quick-style-border .quickfinder-item a.quickfinder-item-link {
    border-right: 1px solid #dfe5e8;
}

.new-quick-style-border .quickfinder-item:last-child a.quickfinder-item-link {
    border-right: 0;
}

.new-quick-style-border .quickfinder-item .quickfinder-item-box {
    padding: 25px 0;
}

.no-padding-row .vc_column-inner {
    padding: 0;
}

.no-paddings-posts .justified-style-2 .description {
    padding: 15px 0 20px 0;
}

.no-paddings-posts .justified-style-2 .post-content-wrapper {
    background-color: transparent;
}

.small-no-padding .gem-map-with-text-content {
    padding: 0;
}

.media-no-padding {
    z-index: 0;
}

/* Responsive Adjustments */
@media (max-width: 1199px) {
    .wpb_row {
        margin-top: 0;
    }
    .wpb_row > * {
        margin-top: 0;
    }
    .row {
        margin-top: 0;
    }
    .row > * {
        margin-top: 0;
    }
}

@media (min-width: 770px) and (max-width: 1025px) {
    .mouse-scroll {
        display: none;
    }
}

@media (max-width: 770px) {
    .mouse-scroll {
        margin-top: -90px !important;
    }
    .small-no-padding.vc_row .media-no-padding .vc_column-inner {
        padding-left: 15px !important;
    }
    .no-padding-row .vc_column-inner {
        padding: 0 15px !important;
    }
}

@media (max-width: 500px) {
    .mouse-scroll {
        display: none;
    }
    body .vc_custom_1460732100888 {
        padding-top: 100px !important;
    }
    .no-overflow h2 {
        display: none !important;
    }
    .no-paddings-row h1 {
        font-size: 29px;
    }
    .small-no-padding.vc_row .media-no-padding .vc_column-inner {
        padding-left: 0 !important;
        text-align: center !important;
    }
}

/* ==========================================================================
   3. Security & Performance Enhancements
   --------------------------------------------------------------------------
   Phase 1 ও Phase 3 এ আরও CSS add হবে
   ========================================================================== */

/* Preloader optimization - reduce initial paint blocking */
#page-preloader {
    transition: opacity 0.3s ease-out;
}

#page-preloader.preloader-loaded {
    opacity: 0;
    pointer-events: none;
}

/* ==========================================================================
   4. Mobile Responsiveness Fixes
   --------------------------------------------------------------------------
   Phase 5 এ আরও responsive fixes add হবে
   ========================================================================== */

/* Ensure touch targets are at least 48px */
@media (max-width: 767px) {
    .menu-item a,
    .socials-item,
    button,
    input[type="submit"],
    .gem-button {
        min-height: 48px;
        min-width: 48px;
    }
}

/* ==========================================================================
   5. AI SEO & Accessibility Improvements
   --------------------------------------------------------------------------
   Phase 2 এ আরও accessibility improvements add হবে
   ========================================================================== */

/* Screen reader only - enhanced */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #00bcd4;
    outline-offset: 2px;
}

/* Skip to content link styling */
.scroll-to-content:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100000;
    background: #00bcd4;
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
