/* ========================================
   Responsive Styles for Mobile & Tablet
   Media Query Breakpoints: 768px, 1024px
   ======================================== */

/* === Tablet Styles (768px - 1024px) === */
@media screen and (max-width: 1024px) {
    
    /* Typography adjustments */
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    
    /* Container padding */
    .container,
    .section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 2rem;
    }
    
    .nav-phone {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    .hero {
        background-size: cover;
        background-position: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Product grid */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .product-image {
        height: auto;
        min-height: 250px;
        object-fit: cover;
    }
    
    /* Features grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Product detail page */
    .detail-container {
        gap: 3rem;
    }
    
    .main-image-container img {
        object-fit: contain;
    }
    
    /* About page - timeline */
    .timeline-item {
        grid-template-columns: 120px 1fr;
        gap: 2rem;
    }
    
    .timeline-year {
        font-size: 1.75rem;
    }
    
    /* Contact page */
    .contact-container {
        gap: 3rem;
    }
    
    /* Partner logos */
    div[style*="grid-template-columns: repeat(auto-fit"] img {
        max-width: 70px !important;
    }
    
    /* Factory images */
    .factory-image {
        height: auto;
        object-fit: cover;
    }
}


/* === Mobile Styles (Max 768px) === */
@media screen and (max-width: 768px) {
    
    /* Typography for mobile */
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.35rem; }
    h4 { font-size: 1.15rem; }
    
    body {
        font-size: 15px;
    }
    
    /* === Navigation Mobile === */
    .nav-container {
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        position: relative;
    }
    
    .logo {
        font-size: 1.35rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 0;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #E2E8F0;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .nav-phone {
        font-size: 1.15rem;
        white-space: normal;
        order: 3;
    }
    
    .menu-toggle {
        display: flex !important;
        order: 2;
        margin-left: auto;
    }
    
    /* === Hero Section Mobile === */
    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem 1rem;
        margin-top: 70px;
        background-size: cover;
        background-position: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .hero-feature {
        padding: 0.75rem;
    }
    
    .hero-feature-icon {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-feature-text {
        font-size: 0.75rem;
    }
    
    .trust-badges {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.75rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
    
    .trust-badge {
        padding: 0.5rem;
    }
    
    /* Hero buttons stacked */
    .hero .btn-large {
        display: block;
        width: 100%;
        margin: 0.5rem 0 !important;
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    /* === Product Grid Mobile === */
    .product-grid,
    .product-grid-large {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .product-image {
        height: auto;
        min-height: 220px;
        max-height: 350px;
        object-fit: cover;
        width: 100%;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .product-name {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    /* Partner logos responsive */
    div[style*="grid-template-columns: repeat(auto-fit"] img {
        max-width: 60px !important;
    }
    
    /* === Features Grid Mobile === */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-item {
        padding: 2rem 1.5rem;
    }
    
    .feature-icon {
        font-size: 3rem;
    }
    
    /* === Section Spacing === */
    .section {
        padding: 3rem 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .section-title p {
        font-size: 1.05rem;
    }
    
    /* === Footer Mobile === */
    .footer {
        padding: 3rem 1rem 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .newsletter-btn {
        width: 100%;
    }
    
    /* === Floating CTA Mobile === */
    .floating-cta {
        bottom: 20px;
        right: 20px;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .floating-cta span:last-child {
        display: none;
    }
    
    .floating-cta::after {
        content: 'Call Us';
        margin-left: 0.5rem;
    }
    
    /* === Buttons Mobile === */
    .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
    
    /* === Products Page Mobile === */
    .products-hero h1,
    .about-hero h1,
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .products-hero p,
    .about-hero p,
    .contact-hero p {
        font-size: 1.1rem;
    }
    
    .products-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .filter-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sort-select {
        width: 100%;
    }
    
    /* === Product Detail Page Mobile === */
    .detail-container {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 2rem;
    }
    
    .gallery-section {
        position: static;
    }
    
    .main-image-container {
        height: auto;
        min-height: 300px;
        max-height: 450px;
    }
    
    .main-image-container img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }
    
    .thumbnail {
        height: 80px;
    }
    
    .info-section h1 {
        font-size: 2rem;
    }
    
    .price-display {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
        padding: 1rem;
    }
    
    .option-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .option-price {
        font-size: 1.25rem;
    }
    
    .total-price {
        font-size: 2.5rem;
    }
    
    .specs-table-section {
        padding: 2rem 1rem;
        overflow-x: auto;
    }
    
    .specs-table {
        font-size: 0.9rem;
    }
    
    .specs-table th,
    .specs-table td {
        padding: 0.875rem 0.75rem;
    }
    
    /* === About Page Mobile === */
    .about-hero {
        padding: 3rem 1rem;
    }
    
    .timeline-section {
        padding: 3rem 1rem;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .timeline-item::before {
        display: none;
    }
    
    .timeline-year {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cert-logo {
        font-size: 3.5rem;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    .factory-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .factory-image {
        height: auto;
        min-height: 200px;
        max-height: 300px;
        width: 100%;
        object-fit: cover;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .value-card {
        padding: 2rem 1.5rem;
    }
    
    /* === Contact Page Mobile === */
    .contact-hero {
        padding: 3rem 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        padding: 3rem 1rem;
        gap: 2rem;
    }
    
    .contact-info-section,
    .contact-form-section {
        padding: 2rem 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        gap: 1rem;
    }
    
    .contact-icon {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .map-placeholder {
        height: 300px;
    }
    
    .map-section {
        padding: 2rem 1rem;
    }
    
    /* === Stats/Numbers Grid === */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* === Utility Spacing Mobile === */
    .mt-3, .mb-3 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* === Badge Mobile === */
    .badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.7rem;
    }
    
    /* === Trust Seal Mobile === */
    .trust-seal {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .trust-seal-icon {
        font-size: 2.5rem;
    }
}


/* === Extra Small Mobile (Max 480px) === */
@media screen and (max-width: 480px) {
    
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.5rem; }
    
    .logo {
        font-size: 1.15rem;
    }
    
    .nav-phone {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section {
        padding: 2.5rem 1rem;
    }
    
    .product-info {
        padding: 1.25rem;
    }
    
    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .thumbnail {
        height: 100px;
    }
    
    .floating-cta {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Stats grid to single column on very small screens */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
}


/* === Landscape Mobile Optimization === */
@media screen and (max-height: 600px) and (orientation: landscape) {
    
    .hero {
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-features {
        grid-template-columns: repeat(3, 1fr);
        margin: 1.5rem 0;
    }
}


/* === Print Styles === */
@media print {
    
    .header,
    .floating-cta,
    .footer,
    .menu-toggle,
    .btn,
    .newsletter-form {
        display: none;
    }
    
    .hero {
        margin-top: 0;
        height: auto;
        background: white;
        color: black;
    }
    
    .hero h1 {
        color: #003366;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: underline;
        color: #003366;
    }
}


/* === High Contrast Mode === */
@media (prefers-contrast: high) {
    
    .btn-primary {
        background-color: #000;
        border-color: #000;
    }
    
    .btn-secondary {
        border-width: 3px;
    }
    
    .product-card {
        border: 2px solid #000;
    }
}


/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}


/* === Dark Mode Support (Optional) === */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here if needed */
    /* Currently maintaining light theme for professional appearance */
}
