/* ZIMAM POULTRY - responsive.css */

/* ============================================
   RESPONSIVE - Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .hero-title { font-size: var(--fs-4xl); }
    .section-title { font-size: var(--fs-3xl); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .farm-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .intro-grid { grid-template-columns: 1fr; gap: var(--space-10); }
    .quality-grid { grid-template-columns: 1fr; gap: var(--space-10); }
    .sustain-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   RESPONSIVE - Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --fs-6xl: 2.5rem;
        --fs-5xl: 2rem;
        --fs-4xl: 1.75rem;
        --fs-3xl: 1.5rem;
    }

    .section { padding: var(--space-16) 0; }

    .nav { display: none; }
    .menu-toggle { display: flex; }
    .mobile-nav { display: flex; }
    .nav-cta { display: none; }

    .hero { min-height: 100svh; }
    .hero-stats { flex-direction: column; gap: var(--space-6); }
    .hero-scroll-indicator { display: none; }

    .features-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .farm-gallery-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
    .news-grid { grid-template-columns: 1fr; }
    .sustain-grid { grid-template-columns: 1fr; }
    .intro-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
    .footer-bottom { flex-direction: column; gap: var(--space-3); text-align: center; }
    .cta-contact-info { flex-direction: column; gap: var(--space-6); }

    /* Timeline Mobile */
    .journey-timeline::before { left: 20px; }
    .journey-item,
    .journey-item:nth-child(even) { flex-direction: column; align-items: flex-start; padding-right: 50px; }
    .journey-item-content { width: 100%; }
    .journey-item-dot { left: 20px; }

    .cta-actions { flex-direction: column; align-items: center; }
}

/* ============================================
   RESPONSIVE - Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
    .container { padding: 0 var(--space-4); }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
}

/* ============================================
   RESPONSIVE - Compact phones (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container,
    .container-narrow {
        width: 100%;
        max-width: 100%;
        padding-inline: var(--container-padding);
    }

    .header-inner {
        gap: var(--space-3);
    }

    .header-logo {
        min-width: 0;
        max-width: 70%;
    }

    .header-logo img,
    .footer-logo img {
        height: 40px;
        width: 40px;
    }

    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-4);
    }

    .contact-grid > *,
    .contact-info-card,
    .contact-form-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .contact-info-card,
    .contact-form-card {
        padding: var(--space-5);
        border-radius: var(--radius-md);
    }

    .contact-info-item {
        gap: var(--space-3);
        margin-bottom: var(--space-4);
    }

    .contact-info-item > div {
        min-width: 0;
        flex: 1;
    }

    .contact-info-item i {
        width: 40px;
        height: 40px;
        font-size: var(--fs-base);
    }

    .contact-info-item p {
        max-width: 100%;
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: var(--fs-sm);
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .form-input,
    .form-select,
    .form-textarea {
        min-width: 0;
        max-width: 100%;
    }

    .page-hero {
        padding: 120px 0 64px;
    }

    .page-hero h1,
    .section-title {
        overflow-wrap: anywhere;
    }

    .map-container {
        height: 300px;
    }

    .cta-content {
        padding: var(--space-5) !important;
    }

    .cta-actions .btn {
        width: 100%;
        max-width: 320px;
        white-space: normal;
        text-align: center;
    }

    /* Keep both floating contact buttons inside narrow viewports. */
    body .whatsapp-float[style*="left: 30px"] {
        left: 16px !important;
    }

    body .whatsapp-float[style*="left: 100px"] {
        left: 76px !important;
    }

    html[data-lang="en"] body .whatsapp-float {
        left: auto !important;
        right: 16px !important;
    }
}

/* ============================================
   RESPONSIVE - Very small phones (max-width: 380px)
   ============================================ */
@media (max-width: 380px) {
    :root {
        --container-padding: 0.75rem;
        --fs-3xl: 1.35rem;
        --fs-2xl: 1.5rem;
    }

    .section {
        padding: var(--space-12) 0;
    }

    .contact-info-card,
    .contact-form-card {
        padding: var(--space-4);
    }

    .contact-info-item {
        gap: var(--space-2);
    }

    .contact-info-item i {
        width: 36px;
        height: 36px;
        font-size: var(--fs-sm);
    }

    .contact-info-item h4,
    .form-label {
        font-size: var(--fs-xs);
    }

    .contact-info-item p,
    .form-input,
    .form-select,
    .form-textarea {
        font-size: var(--fs-sm);
    }

    .form-submit {
        padding: 12px;
        font-size: var(--fs-sm);
    }

    body .whatsapp-float {
        width: 48px !important;
        height: 48px !important;
        bottom: 16px !important;
        font-size: 22px !important;
    }

    body .whatsapp-float[style*="left: 100px"] {
        left: 72px !important;
    }
}
