/**
 * AGROPLANET RIOS - Estilos Responsive
 * Breakpoints: 1200px, 992px, 768px, 576px
 */

/* ═══════════════════════════════════════════════════════════
   DESKTOP MEDIUM (max-width: 1200px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

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

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

    .hero-content h1 {
        font-size: 46px;
    }
}

/* ═══════════════════════════════════════════════════════════
   TABLET (max-width: 992px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    /* Navbar - Hamburger visible */
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        background: #fff;
        box-shadow: -4px 0 30px rgba(0,0,0,0.1);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1050;
        overflow-y: auto;
    }

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

    .nav-menu ul {
        flex-direction: column;
        gap: 4px;
    }

    .nav-menu ul li a {
        display: block;
        padding: 14px 16px;
        font-size: 17px;
        border-radius: 8px;
    }

    .nav-menu ul li a:hover,
    .nav-menu ul li a.active {
        background: #f0f7ff;
    }

    .nav-menu ul li a::after {
        display: none;
    }

    .nav-social-mobile {
        display: flex;
        gap: 12px;
        margin-top: 30px;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .nav-social-mobile a {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: #0072BC;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: background 0.3s ease;
    }

    .nav-social-mobile a:hover {
        background: #8DC63F;
    }

    /* Hero */
    .hero-slide {
        height: 450px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 16px;
    }

    /* Logo on tablet */
    .logo img {
        height: 70px;
    }

    .navbar.scrolled .logo img {
        height: 55px;
    }

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

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

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

    /* Mission/Vision */
    .mv-grid {
        grid-template-columns: 1fr;
    }

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

    .quick-contact-item:nth-child(2) {
        border-left: none;
        border-right: none;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
    }

    /* Page Banner */
    .page-banner h1 {
        font-size: 38px;
    }

    .section-title h2 {
        font-size: 36px;
    }

    .cta-section h2 {
        font-size: 36px;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE LANDSCAPE (max-width: 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .section {
        padding: 50px 0;
    }

    /* Top Bar */
    .top-bar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .top-bar-left {
        order: 2;
    }

    .top-bar-center {
        order: 1;
        width: 100%;
        text-align: center;
        font-size: 12px;
    }

    .top-bar-right {
        order: 3;
        gap: 12px;
    }

    .top-bar-text {
        display: none;
    }

    /* Hero */
    .hero-slide {
        height: 380px;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    /* Logo on mobile landscape */
    .logo img {
        height: 65px;
    }

    .navbar.scrolled .logo img {
        height: 50px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 28px;
        font-size: 14px;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .product-card-img {
        height: 180px;
    }

    .product-card-body {
        padding: 16px;
    }

    .product-card-body h3 {
        font-size: 17px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .feature-item {
        padding: 24px 16px;
    }

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

    /* CTA */
    .cta-section {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 30px;
    }

    .cta-btn-whatsapp {
        padding: 14px 30px;
        font-size: 16px;
    }

    /* About Stats */
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-item .counter {
        font-size: 32px;
    }

    .stat-item .stat-suffix {
        font-size: 32px;
    }

    /* Values */
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .value-item {
        padding: 20px 12px;
    }

    /* Section Titles */
    .section-title h2 {
        font-size: 30px;
    }

    .section-title p {
        font-size: 15px;
    }

    .page-banner {
        padding: 40px 0;
    }

    .page-banner h1 {
        font-size: 32px;
    }
}

/* ═══════════════════════════════════════════════════════════
   MOBILE SMALL (max-width: 576px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    /* Hero */
    .hero-slide {
        height: 340px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* Logo on small mobile */
    .logo img {
        height: 55px;
    }

    .navbar.scrolled .logo img {
        height: 45px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-icon {
        width: 64px;
        height: 64px;
    }

    .feature-icon i {
        font-size: 26px;
    }

    /* About */
    .about-content h2 {
        font-size: 30px;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr 1fr;
    }

    /* Contact Form */
    .contact-info-box {
        padding: 30px 24px;
    }

    .contact-form .btn-submit {
        width: 100%;
        justify-content: center;
    }

    /* Footer */
    .footer {
        padding-top: 40px;
    }

    .footer-logo {
        height: 55px;
    }

    /* WhatsApp */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    /* CTA */
    .cta-section h2 {
        font-size: 26px;
    }

    .cta-section p {
        font-size: 15px;
    }

    .cta-btn-whatsapp {
        width: 100%;
        justify-content: center;
    }

    /* Page Banner */
    .page-banner h1 {
        font-size: 28px;
    }

    /* Section Titles */
    .section-title h2 {
        font-size: 26px;
    }

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

    .mv-card {
        padding: 24px;
    }

    .mv-card h3 {
        font-size: 24px;
    }

    /* Swiper arrows hidden on mobile */
    .hero-slider .swiper-button-next,
    .hero-slider .swiper-button-prev {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════
   VERY SMALL (max-width: 380px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 22px;
    }

    .hero-slide {
        height: 280px;
    }

    .section-title h2 {
        font-size: 24px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 14px;
    }

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

    .top-bar-left .top-social {
        gap: 8px;
    }
}
