/*
 * Kitchen Yard - Responsive Styles
 * Mobile-first responsive design
 */

/* ============================================
   TABLET (768px - 1199px)
   ============================================ */
@media (max-width: 1199px) {
    :root {
        --container-padding: 1.5rem;
    }

    .why-cards {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .why-card {
        padding: var(--space-lg);
    }

    .services-grid {
        gap: var(--space-lg);
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .location-content {
        gap: var(--space-lg);
    }

    .contact-content {
        gap: var(--space-lg);
    }

    .hero-stats {
        gap: var(--space-lg);
    }
}

/* ============================================
   TABLET PORTRAIT (768px - 991px)
   ============================================ */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-sm);
        box-shadow: var(--shadow-strong);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .hero-stat {
        min-width: 120px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .pricing-card-featured {
        transform: none;
        order: -1;
    }

    .pricing-card-featured:hover {
        transform: translateY(-10px);
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .location-map {
        order: 2;
    }

    .location-info {
        order: 1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info-card {
        order: -1;
    }

    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-sm) var(--space-md);
    }
}

/* ============================================
   MOBILE (320px - 767px)
   ============================================ */
@media (max-width: 767px) {
    :root {
        --container-padding: 1rem;
        --space-3xl: 4rem;
    }

    html {
        font-size: 15px;
    }

    .header {
        padding: var(--space-sm) 0;
    }

    .logo {
        height: 40px;
    }

    .hero {
        min-height: 100svh;
        padding-top: 80px;
    }

    .hero-content {
        padding: var(--space-lg);
    }

    .hero-logo {
        width: 150px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .hero-stat {
        width: 100%;
        max-width: 200px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-md) var(--space-lg);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .why-card-number {
        font-size: 3rem;
    }

    .why-card-header {
        flex-direction: column;
        text-align: center;
    }

    .why-card h3 {
        font-size: 1.2rem;
    }

    .why-card li {
        font-size: 0.9rem;
    }

    .comparison-table-wrapper {
        margin: 0 calc(-1 * var(--container-padding));
        border-radius: 0;
    }

    .comparison-table th,
    .comparison-table td {
        padding: var(--space-sm);
        font-size: 0.8rem;
    }

    .service-card {
        padding: var(--space-lg);
    }

    .service-card-icon {
        width: 60px;
        height: 60px;
    }

    .service-card-icon svg {
        width: 30px;
        height: 30px;
    }

    .location-address {
        font-size: 1.4rem;
    }

    .location-map iframe {
        height: 300px;
    }

    .qr-code img {
        width: 120px;
        height: 120px;
    }

    .contact-form {
        padding: var(--space-lg);
    }

    .contact-method {
        flex-direction: column;
        text-align: center;
    }

    .whatsapp-btn {
        width: 100%;
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-md);
    }
}

/* ============================================
   SMALL MOBILE (320px - 374px)
   ============================================ */
@media (max-width: 374px) {
    html {
        font-size: 14px;
    }

    .hero-logo {
        width: 120px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-stat-value {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   LARGE SCREENS (1400px+)
   ============================================ */
@media (min-width: 1400px) {
    :root {
        --container-max: 1600px;
    }

    .hero-content {
        max-width: 1000px;
    }

    .why-cards {
        gap: var(--space-xl);
    }
}

/* ============================================
   ULTRA-WIDE SCREENS (2560px+)
   ============================================ */
@media (min-width: 2560px) {
    html {
        font-size: 18px;
    }

    :root {
        --container-max: 1800px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .header,
    .scroll-indicator,
    .contact-form,
    .whatsapp-btn,
    .footer-social {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section-dark,
    .why-section,
    .location-section {
        background: #f5f5f5 !important;
        color: #000 !important;
    }
}