/* =============================================
   BENIN AGRO-BUSINESS — Responsive Styles
   ============================================= */

/* === Tablet (max-width: 1024px) === */
@media (max-width: 1024px) {
    .about-grid,
    .why-us-grid {
        gap: 50px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .services-grid {
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* === Tablet Portrait (max-width: 768px) === */
@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Top Bar */
    .top-bar-left {
        display: none;
    }

    .top-bar-content {
        justify-content: flex-end;
    }

    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 30px rgba(0,0,0,0.15);
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 15px 10px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    #hero {
        height: 80vh;
        min-height: 500px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-buttons .btn {
        text-align: center;
        justify-content: center;
    }

    .hero-scroll {
        display: none;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .image-wrapper img {
        height: 350px;
    }

    /* Why Us */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .why-us-image {
        order: -1;
    }

    .why-us-image img {
        height: 350px;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }

    .gallery-item-lg {
        grid-row: span 1;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    /* Newsletter */
    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .newsletter-form {
        min-width: unset;
        width: 100%;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* About Page */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 50px;
    }

    .timeline-dot {
        left: 12px;
    }
}

/* === Mobile (max-width: 480px) === */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* Hero */
    #hero {
        height: 70vh;
        min-height: 450px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 15px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn-lg {
        padding: 14px 30px;
        font-size: 0.95rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .stat-icon {
        width: 55px;
        height: 55px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 25px 20px;
    }

    .testimonial-text {
        font-size: 0.95rem;
    }

    /* Service Card */
    .service-card {
        padding: 30px 25px;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Newsletter */
    .newsletter-form {
        flex-direction: column;
    }

    /* CTA */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    /* Page Header */
    .page-header {
        padding: 100px 0 40px;
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        bottom: 20px;
        right: 20px;
    }

    #backToTop {
        width: 40px;
        height: 40px;
        bottom: 80px;
        right: 20px;
    }

    /* Team */
    .team-grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* === Print === */
@media print {
    .top-bar,
    #header,
    .hero-controls,
    .hero-scroll,
    .whatsapp-float,
    #backToTop,
    .section-cta,
    #newsletter {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section {
        padding: 30px 0;
    }
}
