/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* =============================================
   MOBILE OFF-CANVAS MENU FIX
   Ensures hamburger menu links work on all pages
   ============================================= */

/* 1. Ensure the off-canvas drawer is interactive when open */
.ct-drawer-canvas.active,
.ct-drawer-canvas[data-behaviour].active {
    pointer-events: auto !important;
    z-index: 999999 !important;
}

/* 2. Ensure all elements inside the open drawer are clickable */
.ct-drawer-canvas.active * {
    pointer-events: auto !important;
}

/* 3. Make menu links fully tappable on touch devices */
.ct-drawer-canvas .menu-item > a {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10 !important;
    display: block !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
}

/* 4. Hide AITOPIA AI sidebar on mobile to prevent overlay interference */
@media (max-width: 999px) {
    #aifnmjmchg-container,
    #aifnmjmchg-sidebar,
    #aifnmjmchg-sidebar-opener {
        display: none !important;
        pointer-events: none !important;
    }
}

/* 5. Ensure nothing overlaps the open mobile menu */
@media (max-width: 999px) {
    .ct-drawer-canvas.active {
        z-index: 9999999 !important;
    }
}

/* ============================================
   TESTIMONIALS FIX - Match Loft Conversion Layout
   ============================================ */
.hext-testimonials {
    background: #f7f9fc !important;
    padding: 52px 20px !important;
    text-align: center;
}
.hext-testimonials h2 {
    color: #0A1628 !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 8px !important;
}
.hext-testimonials .sub {
    text-align: center !important;
    color: #64748b !important;
    margin-bottom: 28px !important;
    font-size: 16px !important;
}
.hext-reviews {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}
.hext-review {
    background: #fff !important;
    border-radius: 12px !important;
    padding: 28px !important;
    box-shadow: 0 2px 16px rgba(0, 46, 93, 0.08) !important;
    border-left: 4px solid #EBB738 !important;
    text-align: left !important;
}
.hext-photo {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-bottom: 12px !important;
    display: block !important;
    max-width: 60px !important;
    max-height: 60px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    flex: none !important;
}
.hext-review p img.hext-photo,
.hext-review img.hext-photo {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}
.hext-stars {
    color: #EBB738 !important;
    font-size: 18px !important;
    margin-bottom: 14px !important;
}
.hext-review blockquote {
    font-style: italic !important;
    color: #334155 !important;
    border-left: none !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}