/* LHATYKING RICE PROCESSING - Responsive Stylesheet */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
    
    /* Navigation */
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        gap: 30px;
        transition: var(--transition);
        z-index: 998;
        box-shadow: 0 10px 20px var(--shadow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Section */
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content,
    .hero-image {
        flex: none;
        width: 100%;
    }
    
    .hero-content h2 {
        font-size: 2.2rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    /* Company Story */
    .company-story .container {
        flex-direction: column;
    }
    
    .story-content,
    .story-image {
        flex: none;
        width: 100%;
    }
    
    /* Mission & Vision */
    .mission-vision .container {
        flex-direction: column;
        gap: 30px;
    }
    
    .mission-card,
    .vision-card {
        flex: none;
        width: 100%;
    }
    
    /* Service Detail Cards */
    .service-detail-card,
    .product-detail-card {
        flex-direction: column;
        gap: 30px;
    }
    
    .service-detail-card.reverse,
    .product-detail-card.reverse {
        flex-direction: column;
    }
    
    .service-detail-image,
    .service-detail-content,
    .product-detail-image,
    .product-detail-content {
        flex: none;
        width: 100%;
    }
    
    /* Stats */
    .stat-item {
        min-width: 120px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
    
    /* Typography */
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .page-hero h1,
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title::after {
        width: 60px;
    }
    
    .hero-content p,
    .page-hero p,
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Stats */
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* Services & Products Grid */
    .services-grid,
    .products-grid,
    .values-grid,
    .team-grid,
    .packaging-grid,
    .testimonial-grid,
    .certification-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    /* Map Section */
    .map-container {
        grid-template-columns: 1fr;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    /* Gallery */
    .gallery-grid .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-buttons {
        gap: 5px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    /* Contact Form */
    .contact-form-container {
        padding: 25px;
    }
    
    /* Padding Adjustments */
    .hero,
    .services-preview,
    .featured-products,
    .cta,
    .page-hero,
    .company-story,
    .mission-vision,
    .core-values,
    .leadership,
    .services-detail,
    .products-grid-section,
    .packaging-options,
    .advantages,
    .testimonials,
    .certifications,
    .gallery-grid,
    .contact-section,
    .map-section,
    .contact-faq {
        padding: 60px 0;
    }
    
    .stats {
        padding: 40px 0;
    }
    
    .gallery-filter {
        padding: 30px 0;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .container {
        padding: 0 15px;
    }
    
    /* Logo */
    .logo-text h1 {
        font-size: 1.5rem;
    }
    
    .logo-text p {
        font-size: 0.7rem;
    }
    
    /* Typography */
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .page-hero h1,
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    /* Stats */
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.9rem;
    }
    
    /* Service Cards */
    .service-card,
    .value-card,
    .advantage-card,
    .packaging-card,
    .certification-item,
    .faq-item {
        padding: 20px;
    }
    
    .service-icon,
    .value-icon,
    .advantage-icon,
    .packaging-icon {
        font-size: 2rem;
    }
    
    /* Gallery */
    .gallery-grid .container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 200px;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    /* Contact Items */
    .contact-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    /* Product CTA */
    .product-cta {
        flex-direction: column;
    }
    
    /* Testimonial Author */
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    /* Footer Bottom */
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* Very Small Devices (less than 400px) */
@media (max-width: 399.98px) {
    /* Stats */
    .stats .container {
        grid-template-columns: 1fr;
    }
    
    /* Filter Buttons */
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    /* Hero Buttons */
    .hero-buttons .btn {
        width: 100%;
    }
    
    /* Product Specs */
    .product-specs ul li {
        flex-direction: column;
        gap: 5px;
    }
}

/* Print Styles */
@media print {
    .whatsapp-float,
    .hamburger,
    .social-links,
    .contact-form,
    .btn {
        display: none !important;
    }
    
    .header {
        position: static;
        box-shadow: none;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero,
    .cta,
    .service-cta {
        background: none !important;
        color: #000 !important;
    }
    
    .cta h2,
    .service-cta h2 {
        color: #000 !important;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
    }
}