/* =====================================================
   7Agro - Responsive Styles
   ===================================================== */

/* =====================================================
   Extra Large Devices (1400px and below)
   ===================================================== */
@media (max-width: 1400px) {
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .stats-grid {
        gap: var(--spacing-6);
    }
    
    .footer-grid {
        gap: var(--spacing-6);
    }
}

/* =====================================================
   Large Devices (1200px and below)
   ===================================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: var(--text-4xl);
    }
    
    .hero-description {
        font-size: var(--text-lg);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .problems-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .segments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-8);
    }
}

/* =====================================================
   Medium Devices (992px and below)
   ===================================================== */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-menu {
        display: block;
    }
    
    /* Hero */
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-slider .swiper-button-prev,
    .hero-slider .swiper-button-next {
        display: none;
    }
    
    /* About Preview */
    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-10);
    }
    
    .about-preview-image {
        order: -1;
    }
    
    .about-preview-image .image-wrapper img {
        height: 400px;
    }
    
    .experience-badge {
        bottom: auto;
        top: -30px;
        left: auto;
        right: 20px;
    }
    
    /* Tabs */
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1 1 calc(50% - var(--spacing-2));
    }
    
    .tab-content-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
    }
    
    .tab-image {
        order: -1;
    }
    
    /* Benefits */
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-10);
    }
    
    .benefits-image {
        order: -1;
    }
    
    .benefits-image .image-container img {
        height: 450px;
    }
    
    .floating-card.card-1 {
        right: 10px;
    }
    
    .floating-card.card-2 {
        left: 10px;
    }
    
    /* Newsletter */
    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-content {
        flex-direction: column;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        width: 100%;
    }
    
    .newsletter-form .btn {
        width: 100%;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: var(--text-3xl);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: var(--spacing-4);
    }
    
    /* Page Header */
    .page-header {
        padding: 150px 0 80px;
    }
    
    .page-header h1 {
        font-size: var(--text-4xl);
    }
}

/* =====================================================
   Small Devices (768px and below)
   ===================================================== */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-4);
    }
    
    /* Typography */
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .section-subtitle {
        font-size: var(--text-base);
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 80px;
    }
    
    .hero-badge {
        font-size: var(--text-xs);
        padding: var(--spacing-1) var(--spacing-3);
    }
    
    .hero-title {
        font-size: var(--text-2xl);
        margin-bottom: var(--spacing-4);
    }
    
    .hero-description {
        font-size: var(--text-base);
        margin-bottom: var(--spacing-6);
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Stats */
    .stats-section {
        padding: var(--spacing-10) 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-4);
    }
    
    .stat-item {
        padding: var(--spacing-4);
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: var(--text-xl);
    }
    
    .stat-number {
        font-size: var(--text-3xl);
    }
    
    /* About */
    .about-preview {
        padding: var(--spacing-16) 0;
    }
    
    .about-preview-image .image-wrapper img {
        height: 300px;
    }
    
    .about-preview-image .image-decoration {
        display: none;
    }
    
    /* Problems */
    .problems-section {
        padding: var(--spacing-16) 0;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .problem-card {
        padding: var(--spacing-6);
    }
    
    .problem-icon {
        width: 60px;
        height: 60px;
    }
    
    .problem-icon i {
        font-size: var(--text-2xl);
    }
    
    /* Solutions */
    .solutions-preview {
        padding: var(--spacing-16) 0;
    }
    
    .tab-btn {
        flex: 1 1 100%;
        padding: var(--spacing-3) var(--spacing-4);
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn i {
        font-size: var(--text-xl);
    }
    
    .tabs-content {
        padding: var(--spacing-4);
    }
    
    .tab-info h3 {
        font-size: var(--text-xl);
    }
    
    .tab-image img {
        height: 250px;
    }
    
    /* Segments */
    .segments-section {
        padding: var(--spacing-16) 0;
    }
    
    .segments-grid {
        grid-template-columns: 1fr;
    }
    
    .segment-image {
        height: 180px;
    }
    
    /* Benefits */
    .benefits-section {
        padding: var(--spacing-16) 0;
    }
    
    .benefits-image .image-container img {
        height: 350px;
    }
    
    .floating-card {
        padding: var(--spacing-3) var(--spacing-4);
    }
    
    .floating-card i {
        font-size: var(--text-xl);
    }
    
    .floating-card span {
        font-size: var(--text-xs);
    }
    
    /* Testimonials */
    .testimonials-section {
        padding: var(--spacing-16) 0;
    }
    
    .testimonial-card {
        padding: var(--spacing-6);
        margin: var(--spacing-2);
    }
    
    .testimonial-text {
        font-size: var(--text-base);
    }
    
    /* CTA */
    .cta-bg {
        padding: var(--spacing-12) 0;
    }
    
    .cta-content h2 {
        font-size: var(--text-2xl);
    }
    
    .cta-content p {
        font-size: var(--text-base);
    }
    
    /* Newsletter */
    .newsletter-section {
        padding: var(--spacing-10) 0;
    }
    
    .newsletter-box {
        padding: var(--spacing-6);
    }
    
    .newsletter-content i {
        font-size: var(--text-3xl);
    }
    
    .newsletter-content h3 {
        font-size: var(--text-lg);
    }
    
    /* Footer */
    .footer-top {
        padding: var(--spacing-10) 0;
    }
    
    /* Floating buttons */
    .back-to-top {
        right: 80px;
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: var(--text-xl);
    }
    
    /* Page Header */
    .page-header {
        padding: 130px 0 60px;
    }
    
    .page-header h1 {
        font-size: var(--text-3xl);
    }
    
    .page-header p {
        font-size: var(--text-base);
    }
}

/* =====================================================
   Extra Small Devices (576px and below)
   ===================================================== */
@media (max-width: 576px) {
    :root {
        --text-6xl: 2.5rem;
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-3xl: 1.5rem;
    }
    
    .container {
        padding: 0 var(--spacing-4);
    }
    
    /* Header */
    .logo-text {
        font-size: var(--text-xl);
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: var(--text-lg);
    }
    
    .btn-login span {
        display: none;
    }
    
    /* Hero */
    .hero-title {
        font-size: var(--text-xl);
    }
    
    .hero-description {
        font-size: var(--text-sm);
    }
    
    .btn-lg {
        padding: var(--spacing-3) var(--spacing-5);
        font-size: var(--text-sm);
    }
    
    /* Section Header */
    .section-header {
        margin-bottom: var(--spacing-10);
    }
    
    .section-badge {
        font-size: var(--text-xs);
        padding: var(--spacing-1) var(--spacing-3);
    }
    
    /* About */
    .about-preview-image .image-wrapper img {
        height: 250px;
    }
    
    .experience-badge {
        padding: var(--spacing-4);
    }
    
    .experience-badge .years {
        font-size: var(--text-2xl);
    }
    
    .experience-badge .text {
        font-size: var(--text-xs);
    }
    
    /* Benefits */
    .benefit-item {
        flex-direction: column;
        text-align: center;
    }
    
    .benefit-item:hover {
        transform: translateY(-5px);
    }
    
    /* Testimonials */
    .testimonial-rating i {
        font-size: var(--text-base);
    }
    
    .author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .author-avatar i {
        font-size: var(--text-lg);
    }
    
    /* Page Header */
    .page-header {
        padding: 120px 0 50px;
    }
    
    .page-header h1 {
        font-size: var(--text-2xl);
    }
    
    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =====================================================
   Print Styles
   ===================================================== */
@media print {
    .header,
    .footer,
    .back-to-top,
    .whatsapp-float,
    .scroll-indicator,
    .cta-section,
    .newsletter-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    .hero {
        height: auto;
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-slide {
        background: none !important;
    }
    
    .hero-overlay {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title,
    .section-title {
        color: #000;
    }
    
    .hero-title span,
    .section-title span {
        color: #333;
    }
    
    a {
        text-decoration: underline;
    }
    
    img {
        max-width: 100% !important;
    }
    
    .container {
        max-width: 100%;
    }
}

/* =====================================================
   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;
    }
    
    .loader-circle {
        animation: none;
    }
    
    .floating-card {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .wheel {
        animation: none;
    }
}

/* =====================================================
   High Contrast Mode
   ===================================================== */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #00ff00;
        --color-secondary: #000000;
        --color-tertiary: #000000;
    }
    
    .btn-primary {
        border: 2px solid var(--color-secondary);
    }
    
    .btn-outline {
        border-width: 3px;
    }
}

/* =====================================================
   Dark Mode Preference (Optional)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    /* 
    The site already uses dark sections strategically.
    This is here for future implementation if needed.
    */
}
