/*
Theme Name: Kaya Kalp Salon Child
Theme URI: https://kayakalpsalon.com/
Description: Fully editable ACF/CPT-powered CMS child theme for Kaya Kalp A Family Salon Panipat. Manages services, price lists, packages, and verified profiles dynamically.
Author: Kaya Kalp Team
Author URI: https://kayakalpsalon.com/
Template: kayakalp-salon
Version: 1.0.0
Text Domain: kayakalp-salon-child
*/

/* Child Theme Custom Enhancements */
.kk-cpt-service-item {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kk-cpt-service-item:hover {
    transform: translateY(-2px);
}

.kk-cpt-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kk-cpt-badge.gold {
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold-light, #E6CA65);
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.kk-cpt-badge.emerald {
    background: rgba(16, 185, 129, 0.2);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.kk-price-row-item .item-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted, #94A3B8);
    margin-top: 2px;
}

/* ==========================================================================
   GEO / AEO (Generative Engine & Answer Engine Optimization) Styling
   ========================================================================== */

.geo-direct-answer-box {
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.95), rgba(18, 18, 24, 0.98));
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-left: 4px solid var(--gold-primary, #D4AF37);
    border-radius: 14px;
    padding: 24px 28px;
    margin: 28px 0 36px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.geo-direct-answer-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.geo-ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-light, #E6CA65);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.geo-direct-answer-heading {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    font-family: 'Playfair Display', serif;
}

.geo-direct-answer-text {
    font-size: 1.02rem;
    color: #F1F5F9;
    line-height: 1.7;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.geo-facts-chip-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.geo-fact-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.78rem;
    color: #CBD5E1;
}

.geo-fact-chip strong {
    color: var(--gold-primary, #D4AF37);
}

.geo-freshness-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(18, 18, 24, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.8rem;
    color: #94A3B8;
    margin-bottom: 24px;
}

.geo-freshness-bar .freshness-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #34D399;
    font-weight: 600;
}

.geo-bilingual-block {
    background: rgba(26, 26, 36, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin: 28px 0;
}

.geo-bilingual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 8px;
}

.geo-bilingual-header h3 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--gold-light, #E6CA65);
    font-family: 'Playfair Display', serif;
}

.geo-bilingual-tag {
    font-size: 0.74rem;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-primary, #D4AF37);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.geo-bilingual-content {
    font-size: 0.94rem;
    color: #E2E8F0;
    line-height: 1.7;
}

/* ==========================================================================
   Mobile Perfection & Production Readiness Enhancements
   ========================================================================== */

/* 1. WordPress Admin Bar Header Alignment on Mobile */
@media (max-width: 782px) {
    body.admin-bar .kk-header {
        top: 46px !important;
    }
    body.admin-bar .kk-mobile-drawer {
        top: 46px !important;
        height: calc(100% - 46px) !important;
    }
}

/* 2. iOS Auto-Zoom Prevention & Safe-Area Insets */
@media (max-width: 768px) {
    /* Prevent iOS Safari auto-zooming on focus by guaranteeing 16px */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="search"],
    select,
    textarea,
    .rate-search-input,
    .form-control {
        font-size: 16px !important;
    }

    /* Modern iPhone Safe Area Inset Support for Mobile Bottom Bar */
    .kk-mobile-bottom-bar {
        display: flex !important;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        height: calc(62px + env(safe-area-inset-bottom, 0px));
        z-index: 998;
    }

    body {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    }

    /* Suppress redundant floating buttons that collide with mobile bottom bar */
    .floating-wa-btn,
    .kk-sticky-mobile-cta {
        display: none !important;
    }
}

/* Zero Horizontal Overflow Lock */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
}

/* Fix CSS Grid blowout on mobile */
.rate-menu-grid {
    display: grid;
    min-width: 0 !important;
    width: 100% !important;
}

.rate-category-card {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 991px) {
    .rate-menu-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* 3. Rate Card Mobile Scrollable Category Tabs & Responsive Rows */
@media (max-width: 768px) {
    .kk-rate-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 8px !important;
        padding: 4px 2px 10px 2px !important;
        margin-bottom: 24px !important;
    }

    .kk-rate-tabs::-webkit-scrollbar {
        display: none !important;
    }

    .kk-rate-tab {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        font-size: 0.84rem !important;
        padding: 9px 16px !important;
        min-height: 40px !important;
    }

    .rate-category-card {
        padding: 20px 16px !important;
    }

    /* Luxury App-Style Service Rows: Name on left, Price & Book pinned on right */
    .service-row {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .service-name-col {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 120px) !important;
    }

    .service-name {
        font-size: 0.9rem !important;
        line-height: 1.35 !important;
        word-break: break-word !important;
    }

    .service-sub {
        font-size: 0.75rem !important;
        margin-top: 2px !important;
        color: var(--text-muted) !important;
    }

    .service-leader-line {
        display: none !important;
    }

    .service-price-col {
        flex: 0 0 auto !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        margin-top: 0 !important;
    }

    .service-price {
        font-size: 0.98rem !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
        color: var(--gold-light) !important;
    }

    .service-book-wa {
        padding: 4px 10px !important;
        font-size: 0.78rem !important;
        min-height: 30px !important;
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
    }
}

/* 4. Waxing Table Responsive Scrolling on Mobile */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    margin-top: 14px;
}

@media (max-width: 640px) {
    .waxing-table th,
    .waxing-table td {
        padding: 10px 12px !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
    }
}

/* 5. Mobile Typography & Padding for Ultra-Compact Screens (360px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 14px !important;
    }

    .geo-direct-answer-box {
        padding: 18px 14px !important;
        margin-bottom: 18px !important;
    }

    .geo-direct-answer-heading {
        font-size: 1.05rem !important;
        line-height: 1.35 !important;
    }

    .geo-direct-answer-text {
        font-size: 0.92rem !important;
        line-height: 1.62 !important;
        margin-bottom: 12px !important;
    }

    .geo-facts-chip-strip {
        gap: 6px !important;
    }

    .geo-fact-chip {
        font-size: 0.72rem !important;
        padding: 3px 8px !important;
    }

    .geo-freshness-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        font-size: 0.74rem !important;
        padding: 10px 12px !important;
        margin-bottom: 20px !important;
    }

    .geo-bilingual-block {
        padding: 16px 14px !important;
        margin: 20px 0 !important;
    }

    .geo-bilingual-header h3 {
        font-size: 0.95rem !important;
    }

    .geo-bilingual-content {
        font-size: 0.88rem !important;
        line-height: 1.62 !important;
    }

    /* Modal dialog fitting */
    .kk-modal-box {
        padding: 24px 18px !important;
        width: 95% !important;
        max-width: 380px !important;
    }
}


