/*
 Theme Name:   Blocksy Child
 Theme URI:    https://creativethemes.com/blocksy/
 Description:  Blocksy Child Theme
 Author:       Creative Themes
 Author URI:   https://creativethemes.com
 Template:     blocksy
 Version:      1.0.0
 Text Domain:  blocksy-child
*/

/* Layout Variables */
:root {
    --f-blue: #2563eb;
    --f-dark: #0f172a;
    --f-text: #475569;
    --f-bg-light: #f8fafc;
}

.folio-layout { font-family: 'Inter', sans-serif; overflow: hidden; }
.f-container { max-width: 100%; margin: 0 auto; padding: 0px 5px 25px 5px; }

.f-custom-title { text-align: center; margin: 0 auto; padding: 10px 20px 20px 20px; }

/* Service Section Alignment */
.f-services {
    text-align: center;
}

.f-view-all {
  width: 100%; 
  max-width: 300px;  
  padding: 50px 0px 0px 0px;
  box-sizing: border-box; 
	 display: flex;
	 justify-content: center;
	 margin: 0 auto;
	 text-align: center;
}

/* Testimonial Section Alignment */
.f-testimonials {
    text-align: center;
}

/* Grid Systems */
.f-grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.f-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

/* Hero Stacked Image Layout */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.f-display { font-size: clamp(1.5rem, 2vw, 3rem); font-weight: 700; margin-bottom: 20px; }
.hero-visual { position: relative; height: 486px; }
.img-card { position: absolute; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); transition: 0.5s; }
.img-card img { width: 100%; height: 100%; object-fit: cover; }
.card-1 { width: 260px; height: 320px; z-index: 1; top: 0; left: 0; }
.card-2 { width: 280px; height: 360px; z-index: 2; top: 40px; left: 120px; }
.card-3 { width: 240px; height: 300px; z-index: 3; top: 120px; left: 240px; }

/* Button Styles */
.f-btn { padding: 14px 40px; border-radius: 8px; font-weight: 600; text-decoration: none; display: inline-block; transition: 0.3s; }
.f-btn-primary { background: var(--f-blue); color: #fff; }
.f-btn-outline { border: 3px solid #0f172a; color: var(--f-dark); }
.f-btn-white { background: #fff; color: var(--f-blue); }
.f-btn-outline-white { border: 3px solid rgba(255,255,255,0.4); color: #0f172a; }
.f-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); color: #fff;}

/* Section Specific Styles */
.f-brands { border-top: 2px solid #f1f5f9; padding: 15px 0px; text-align: center; }
.brand-logos { display: flex; justify-content: space-around; opacity: 0.85; font-weight: 700; font-size: 1.2rem; color: black; }

.woo-custom-box { padding: 0px 0px 20px 0px; background: #fff; border: 1px solid #f1f5f9; border-radius: 10px; transition: 0.3s; }

.service-box { padding: 20px; background: #fff; border: 1px solid #f1f5f9; border-radius: 16px; transition: 0.3s; }
.service-box:hover { border-color: var(--f-blue); }

.f-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.project-card { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #f1f5f9; }
.project-card img { width: 100%; height: 250px; object-fit: cover; }
.project-info { padding: 20px; display: flex; justify-content: space-between; align-items: center; }

.f-stats {padding: 30px 0px 0px 0px;  background: var(--f-dark); color: #fff; text-align: center; }


.stat-item h3 { font-size: 2.5rem; color: var(--f-blue); margin-bottom: 5px; }

.f-cta { background: var(--f-blue); color: #fff; text-align: center; }
.centered { justify-content: center; margin-top: 30px; }

/* Scroll Animation */
.animate-in { opacity: 0; transform: translateY(30px); transition: 1s ease-out; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { display: none; }
    .f-view-all {width: auto; min-width: 280px; }
    .f-brands, .f-stats {
    display: none !important;
  }
}


@media (min-width: 768px) and (max-width: 1024px) {
  section.f-brands .brand-logos {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem; 
  }
  section.f-brands .brand-logos span {
    font-size: 0.95rem !important; 
    letter-spacing: 0.1px; 
    white-space: nowrap;
  }
}

/* Random Product Cards Container */
.random-cards-container {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 330px;
    margin: 0 auto;
}

/* Single Card Style */
.random-card {
    position: absolute;
    width: 65%;
    height: 90%;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

/* Card Image */
.random-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover Effect */
.random-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10 !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Mobile Responsive for Product Cards */
@media (max-width: 768px) {
    .random-cards-container {
        height: 300px;
    }
    .random-card {
        width: 70%;
    }
}

/* Only apply on mobile (below 992px) */
@media (max-width: 991.98px) {
    /* 1. Force panel to non-floating state to push down content */
    .ct-panel[data-id="off-canvas"] {
        position: relative !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: 0; 
        overflow: hidden;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        box-shadow: none !important;
        pointer-events: none;
        display: block !important; /* Ensure it's not hidden by display:none */
    }

    /* 2. Active state: expand height and push down content */
    .offcanvas-open .ct-panel[data-id="off-canvas"] {
        height: auto;
        min-height: 250px; /* Adjust based on menu length */
        pointer-events: auto;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* 3. Remove background overlay to allow scrolling */
    .ct-panel-backdrop {
        display: none !important;
    }

    /* 4. Unlock body scrolling when mobile menu is open */
    body.offcanvas-open {
        overflow: auto !important;
        position: static !important;
    }

    /* 5. Fix internal panel offset */
    .ct-panel-content {
        transform: none !important;
    }
}