/* ============================================
   PREMIUM RESPONSIVE DESIGN
   Mobile-First Approach
   ============================================ */

/* Large Desktops (1400px+) */
@media (min-width: 1400px) {
    .heritage-container,
    .contact-container {
        gap: 120px;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) {
    :root {
        --spacing-section: 120px;
    }

    .heritage-container,
    .contact-container {
        gap: 80px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

/* Laptop (992px - 1199px) */
@media (max-width: 1199px) {
    :root {
        --spacing-section: 100px;
    }

    .nav-container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: clamp(3rem, 7vw, 5rem);
    }

    .section-title {
        font-size: clamp(2rem, 4.5vw, 3.5rem);
    }

    .heritage-container,
    .contact-container {
        gap: 60px;
    }

    .heritage-stats {
        gap: 30px;
    }

    .footer-top {
        gap: 60px;
    }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
    :root {
        --spacing-section: 80px;
        --spacing-section-mobile: 60px;
    }

    /* Navigation */
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(22, 22, 28, 0.98);
        backdrop-filter: blur(22px);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 30px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

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

    /* Language Switcher in Mobile Menu */
    .nav-lang-switcher {
        margin-top: 25px;
        margin-bottom: 10px;
        padding: 10px 20px;
        justify-content: center;
        width: 100%;
        max-width: 100%;
        background: rgba(192, 192, 192, 0.1);
        border: 1px solid rgba(192, 192, 192, 0.2);
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .nav-lang-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        min-width: 60px;
        display: inline-block !important;
    }

    .nav-lang-separator {
        font-size: 1rem;
        margin: 0 8px;
        display: inline-block !important;
    }

    /* Hero */
    .hero-content {
        padding: 0 20px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

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

    /* Heritage */
    .heritage-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .heritage-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

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

    /* Products */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .product-image {
        height: 280px;
    }

    /* Manufacturing */
    .process-image-container {
        height: 400px;
        min-height: 300px;
    }

    .process-image-container img {
        position: relative;
    }

    .process-step {
        gap: 20px;
        padding: 25px;
    }

    .step-number {
        font-size: 1.75rem;
        min-width: 50px;
    }

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

    .contact-map {
        height: 450px;
    }

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

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

    /* Scroll to Top Button - Tablet */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top i {
        font-size: 1.1rem;
    }

    /* RTL Support - Tablet */
    html[dir="rtl"] .scroll-to-top {
        right: auto;
        left: 20px;
    }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
    :root {
        --spacing-section: 60px;
        --spacing-section-mobile: 50px;
    }

    /* Global */
    .section-label {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }

    .section-desc {
        font-size: 1rem;
    }

    /* Navigation */
    .nav-container {
        height: 60px;
    }

    .nav-logo img {
        height: 30px;
    }

    .nav-menu {
        top: 60px;
        padding: 20px;
    }

    /* Language Switcher - Smaller Mobile */
    .nav-lang-switcher {
        margin-top: 20px;
        padding: 10px 16px;
    }

    .nav-lang-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    /* Hero */
    .hero-section {
        min-height: 600px;
    }

    .hero-label {
        font-size: 0.75rem;
        padding: 8px 20px;
    }

    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .hero-scroll {
        display: none;
    }

    /* Heritage */
    .heritage-container,
    .contact-container,
    .journey-timeline,
    .products-grid,
    .manufacturing-steps,
    .footer-container {
        padding: 0 20px;
    }

    .heritage-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 40px;
    }

    .read-more-btn {
        padding: 12px 28px;
        font-size: 0.9rem;
        margin: 25px 0 35px 0;
    }

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

    .stat-label {
        font-size: 0.85rem;
    }

    .heritage-accent {
        width: 150px;
        height: 150px;
        top: -20px;
        right: -20px;
    }

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

    .product-image {
        height: 260px;
    }

    .product-info {
        padding: 18px 22px;
    }

    /* Manufacturing */
    .process-image-container {
        height: 300px;
        min-height: 250px;
    }

    .process-image-container img {
        position: relative;
    }

    .process-step {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .step-number {
        font-size: 1.5rem;
    }

    .step-content h4 {
        font-size: 1.1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    /* Contact */
    .contact-text {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .contact-info {
        gap: 25px;
        margin-bottom: 40px;
    }

    .contact-icon {
        width: 45px;
        height: 45px;
    }

    .contact-icon i {
        font-size: 18px;
    }

    .contact-value {
        font-size: 1rem;
    }

    .contact-map {
        height: 350px;
    }

    /* Scroll to Top Button - Mobile */
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top i {
        font-size: 1rem;
    }

    /* RTL Support - Mobile */
    html[dir="rtl"] .scroll-to-top {
        right: auto;
        left: 20px;
    }

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

    .footer-logo {
        height: 35px;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    :root {
        --spacing-section: 50px;
    }

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

    /* Language Switcher - Small Mobile */
    .nav-lang-switcher {
        margin-top: 20px;
        padding: 8px 14px;
    }

    .nav-lang-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
        min-width: 50px;
    }

    .nav-lang-separator {
        font-size: 0.9rem;
        margin: 0 6px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 4.5vw, 2.5rem);
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 4.5vw, 2rem);
    }

    .heritage-text p {
        font-size: 1rem;
    }

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

    .product-title {
        font-size: 1.25rem;
    }

    .process-step {
        padding: 15px;
    }

    /* Scroll to Top Button - Small Mobile */
    .scroll-to-top {
        width: 42px;
        height: 42px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-to-top i {
        font-size: 0.95rem;
    }

    /* RTL Support - Small Mobile */
    html[dir="rtl"] .scroll-to-top {
        right: auto;
        left: 15px;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .nav-container {
        padding: 0 15px;
    }

    /* Language Switcher - Extra Small Mobile */
    .nav-lang-switcher {
        padding: 8px 12px;
        margin-top: 18px;
    }

    .nav-lang-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 45px;
    }

    .nav-lang-separator {
        font-size: 0.85rem;
        margin: 0 4px;
    }

    .hero-content {
        padding: 0 15px;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .hero-scroll,
    .footer-social {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-section {
        height: auto;
        min-height: auto;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .scroll-line {
        animation: none;
    }
}
