/* ===================================
   Responsive Styles - Mobile Optimization
   =================================== */

/* ===== TABLET (768px - 1023px) ===== */
@media (max-width: 1023px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    h3 {
        font-size: 24px;
    }
    
    /* Header adjustments */
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .email-signup {
        order: 1;
        width: 100%;
        text-align: center;
        margin-top: var(--spacing-md);
    }
    
    .signup-form {
        justify-content: center;
    }
    
    /* Grid adjustments */
    .about-grid,
    .deals-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ===== MOBILE (< 768px) ===== */
@media (max-width: 767px) {
    /* Typography */
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    h3 {
        font-size: 22px;
    }
    
    h4 {
        font-size: 18px;
    }
    
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .header-content {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .logo-text {
        font-size: 36px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-mobile.active {
        display: block;
    }
    
    .email-signup {
        width: 100%;
        text-align: center;
    }
    
    .signup-form {
        flex-direction: column;
        align-items: center;
    }
    
    .signup-form input[type="email"] {
        width: 100%;
        max-width: 300px;
    }
    
    .signup-form button {
        width: 100%;
        max-width: 300px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    /* Hero */
    .hero {
        min-height: 80vh;
    }
    
    .hero-content {
        padding: var(--spacing-md);
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-tagline {
        font-size: 18px;
    }
    
    .delivery-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: center;
    }
    
    .delivery-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .delivery-btn img {
        height: 40px;
    }
    
    /* Sections */
    section {
        padding: var(--spacing-xl) 0 !important;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    /* Trust Badges */
    .badges-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-md);
    }
    
    .badge-item img {
        width: 60px;
        height: 60px;
    }
    
    .badge-item h4 {
        font-size: 16px;
    }
    
    .badge-item p {
        font-size: 13px;
    }
    
    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about-content p {
        font-size: 15px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-content {
        padding: var(--spacing-md);
    }
    
    /* Deals Grid */
    .deals-grid {
        grid-template-columns: 1fr;
    }
    
    .deals-images {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }
    
    .deals-images img:first-child {
        grid-column: span 2;
    }
    
    .deals-content {
        order: 2;
    }
    
    /* Location Grid */
    .location-grid {
        grid-template-columns: 1fr;
    }
    
    .location-image {
        order: -1;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Ordering Steps */
    .ordering-steps {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .step {
        padding: var(--spacing-md);
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-item {
        padding: var(--spacing-md);
    }
    
    .service-item img {
        width: 50px;
        height: 50px;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .customer-photo {
        width: 80px;
        height: 80px;
    }
    
    .quote {
        font-size: 14px;
    }
    
    /* FAQ */
    .faq-question {
        font-size: 16px;
        padding: var(--spacing-sm);
    }
    
    .faq-answer {
        padding: 0 var(--spacing-sm) var(--spacing-sm);
        font-size: 14px;
    }
    
    /* Contact CTA */
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn-white,
    .cta-buttons .btn-white-outline {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact p {
        font-size: 14px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
    
    /* Buttons */
    .btn-primary,
    .btn-white,
    .btn-white-outline {
        padding: 14px 28px;
        font-size: 14px;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* ===== SMALL MOBILE (< 480px) ===== */
@media (max-width: 479px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-tagline {
        font-size: 16px;
    }
    
    .badges-grid {
        grid-template-columns: 1fr;
    }
    
    .deals-images {
        grid-template-columns: 1fr;
    }
    
    .deals-images img:first-child {
        grid-column: span 1;
    }
    
    .partner-logos {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size:22px;
    }
}

/* ===== TOUCH FRIENDLY ELEMENTS ===== */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    button,
    a.btn-primary,
    a.btn-white,
    a.btn-white-outline {
        min-height: 44px;
        padding: 16px 24px;
    }
    
    .nav-menu a,
    .mobile-menu a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .faq-question {
        min-height: 60px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .nav-mobile,
    .social-icons,
    .email-signup,
    .delivery-buttons,
    .btn-primary,
    .btn-white,
    .btn-white-outline,
    .cta-buttons {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
    }
    
    .footer {
        border-top: 1px solid #000;
        color: #000;
        background: #fff;
    }
}
