/**
 * Kimia Luxury Carpet Theme - Responsive Stylesheet
 * Strict Mobile-First & Touch Target Compliance
 */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-bottom: 78px; /* Room for sticky mobile CTA bar */
        font-size: 0.95rem;
    }

    .top-announcement {
        display: none !important; /* Cluttered topbar hidden on mobile */
    }
    
    .header-container {
        height: 60px;
    }
    
    .main-nav {
        display: none; /* Controlled by mobile drawer */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .header-phone-badge {
        display: none !important; /* Replaced by mobile-call-icon and drawer card */
    }

    .mobile-call-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-full);
        background: linear-gradient(135deg, var(--gold), #d97706);
        color: #ffffff;
        text-decoration: none;
        font-size: 1.1rem;
        box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
    }

    .mobile-sub-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: var(--primary-dark);
        color: #e2e8f0;
        font-size: 0.775rem;
        padding: 6px 14px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-sub-call {
        color: var(--gold-light);
        font-weight: 800;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        direction: ltr;
    }
    
    .hero-section {
        padding: 36px 0 48px;
    }
    
    .hero-h1 {
        font-size: 1.85rem;
        line-height: 1.4;
    }
    
    .hero-desc {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .hero-cta-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta-wrap .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .areas-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .booking-card {
        padding: 24px 18px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    /* Display Sticky Bottom Mobile CTA Bar */
    .mobile-sticky-cta {
        display: block;
    }
    
    .landing-prose h2 {
        font-size: 1.35rem;
    }
    
    .landing-prose h3 {
        font-size: 1.15rem;
    }
    
    .landing-cta-banner {
        padding: 28px 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }
    
    .brand-title {
        font-size: 1.15rem;
    }
    
    .brand-subtitle {
        display: none;
    }
    
    .hero-h1 {
        font-size: 1.6rem;
    }
    
    .area-card {
        padding: 20px 16px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Mobile Off-canvas Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ffffff;
    z-index: 10000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 24px;
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 58, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    min-height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    min-height: 48px;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
    background: var(--primary-subtle);
    color: var(--primary);
}

.mobile-drawer-links a i {
    font-size: 1.25rem;
    color: var(--gold);
}

/* Drawer Contact Box (inside menu) */
.drawer-contact-card {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.drawer-contact-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border-color);
}

.drawer-phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.drawer-phone-main {
    background: var(--primary);
    color: #ffffff;
}

.drawer-phone-main:hover {
    background: var(--primary-dark);
}

.drawer-phone-wa {
    background: #25d366;
    color: #ffffff;
}

.drawer-info-row {
    font-size: 0.775rem;
    color: #64748b;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

@media (min-width: 769px) {
    .mobile-call-icon,
    .mobile-sub-bar {
        display: none !important;
    }
}
