/*
 Theme Name:   Zestify Child
 Theme URI:    http://muisandhika.emon.my.id/zestify-child/
 Description:  Zestify Child Theme untuk pengembangan khusus.
 Author:       Gemini AI
 Template:     zestify
 Version:      1.0.0
 Text Domain:  zestify-child
*/

/* Core Alignment Support */
.alignfull {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    max-width: 100vw !important;
    width: 100vw !important;
}

/* Fix for parent theme container constraints */
#content.site-content {
    padding: 0 !important;
    max-width: 100% !important;
}

/* =========================================
   HEADER REFINEMENT
   ========================================= */

/* Overriding parent absolute positioning that causes mess */
.zestify-theme .main-header {
    position: relative !important;
    background: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 999 !important;
}

/* Correcting top margin created by absolute position logic */
.zestify-theme .main-navigation:not(.is-sticky-menu) {
    margin-top: 0 !important;
    padding: 10px 0;
}

/* Ensure mobile header is also solid */
.main-header .navigation-wrapper {
    background: #ffffff !important;
}

/* Fix logo and menu alignment */
.main-navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* =========================================
   HOMEPAGE REFINEMENT
   ========================================= */

.hp-hero-section {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 20px !important;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100% !important;
}

.hp-hero-section h1 {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    margin-bottom: 20px !important;
    color: #0f172a;
    font-weight: 900 !important;
}

.hp-hero-section p {
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
    max-width: 800px;
    margin: 0 auto 30px !important;
    color: #475569;
}

.hp-section-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2.5rem !important;
    color: #1e293b;
    font-size: clamp(1.75rem, 4vw, 2.5rem) !important;
}

.hp-card {
    background: #ffffff;
    border: 1px solid #e2e8f0 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 25px !important;
    border-radius: 20px !important;
}

.hp-card:hover {
    transform: translateY(-8px);
    border-color: #3b82f6 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Responsive Grid Fix */
@media (max-width: 768px) {
    .wp-block-columns {
        flex-direction: column !important;
        display: block !important;
    }
    .wp-block-column {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 30px !important;
        flex-basis: 100% !important;
    }
    
    .hp-hero-section {
        padding: 60px 15px !important;
    }
}
