/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Large Tablets / Small Desktops (max-width: 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 4rem;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }

    .hero h1 {
        font-size: 3rem;
    }

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

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

    .about-grid {
        gap: var(--spacing-lg);
    }
}

/* --------------------------------------------------------------------------
   Tablets (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
        --header-height: 70px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }

    /* Navigation */
    ul.nav-links {
        position: fixed !important;
        top: var(--header-height) !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #f8f5f0 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: var(--spacing-md) !important;
        display: none !important;
        z-index: 9999 !important;
        width: 100% !important;
        height: calc(100vh - var(--header-height)) !important;
    }

    ul.nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    /* LTR: logo left, lang+burger right */
    .logo {
        order: 1;
    }

    .nav-actions {
        position: static;
        transform: none;
        order: 2;
        margin-left: auto;
    }

    .mobile-menu-btn {
        display: flex;
        order: 3;
    }

    .nav {
        gap: var(--spacing-sm);
    }

    .lang-switch {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    /* RTL: burger left, lang, logo right */
    [dir="rtl"] .logo {
        order: 1;
    }

    [dir="rtl"] .nav-actions {
        order: 2;
        margin-left: 0;
        margin-right: auto;
    }

    [dir="rtl"] .mobile-menu-btn {
        order: 3;
    }



    /* Hero */
    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--spacing-xl)) 0 var(--spacing-xl);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .hero-image {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image-decoration {
        display: none;
    }

    .hero-content {
        text-align: center;
        align-items: center;
    }

    .hero-badge {
        margin: 0 auto var(--spacing-md);
    }

    .hero-tagline {
        max-width: 100%;
    }

    [dir="rtl"] .hero-grid {
        direction: rtl;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-lg);
        border-top: none;
        padding-top: 0;
    }

    .stat {
        text-align: center;
        min-width: 80px;
    }

    [dir="rtl"] .hero-stats {
        flex-direction: row;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
        max-width: 300px;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        max-width: 300px;
    }

    .about-content .section-title {
        text-align: center;
    }

    .about-content .gold-line {
        margin: 0 auto;
    }

    .about-text {
        text-align: center;
    }

    .about-features {
        grid-template-columns: 1fr;
        justify-items: flex-start;
    }

    .about-features li {
        text-align: left;
    }

    [dir="rtl"] .about-features {
        justify-items: flex-start;
    }

    [dir="rtl"] .about-features li {
        flex-direction: row;
        text-align: right;
    }

    [dir="rtl"] .about-content .section-title {
        text-align: center;
    }

    [dir="rtl"] .about-content .gold-line {
        margin: 0 auto;
    }

    /* Products */
    .products-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .service-card {
        text-align: center;
    }

    .service-icon {
        margin: 0 auto var(--spacing-md);
    }

    [dir="rtl"] .service-card {
        text-align: center;
    }

    [dir="rtl"] .service-icon {
        margin: 0 auto var(--spacing-md);
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .contact-info .section-title {
        text-align: center;
    }

    .contact-info .gold-line {
        margin: 0 auto;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }

    [dir="rtl"] .contact-info .section-title {
        text-align: center;
    }

    [dir="rtl"] .contact-info .gold-line {
        margin: 0 auto;
    }

    [dir="rtl"] .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .map-placeholder {
        min-height: 300px;
    }

    .map-placeholder iframe {
        height: 300px;
    }

    /* Contact Form */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .footer-brand .footer-logo {
        margin: 0 auto var(--spacing-md);
    }

    .footer-brand p {
        max-width: none;
        margin: 0 auto;
    }

    .footer-links ul {
        align-items: center;
    }

    [dir="rtl"] .footer-grid {
        text-align: center;
    }

    [dir="rtl"] .footer-brand,
    [dir="rtl"] .footer-links,
    [dir="rtl"] .footer-contact {
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Mobile Phones (max-width: 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo img {
        height: 40px;
    }

    .hero-logo-icon {
        width: 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .hero-tagline {
        font-size: 1rem;
    }

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

    .btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .product-image {
        min-height: 200px;
        padding: var(--spacing-sm);
    }

    .product-image img {
        height: 160px;
    }

    .product-info {
        padding: var(--spacing-sm);
    }

    .price {
        font-size: 1.25rem;
    }

    .service-card {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

    .service-icon svg {
        width: 28px;
        height: 28px;
    }

    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .contact-form-card {
        padding: var(--spacing-md);
    }

    .footer-grid {
        gap: var(--spacing-md);
    }

    .footer-brand .footer-logo {
        height: 50px;
    }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
    .header,
    .mobile-menu-btn,
    .lang-switch,
    .hero-cta,
    .contact-map {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: var(--spacing-md) 0;
    }

    .section {
        padding: var(--spacing-md) 0;
        opacity: 1;
        transform: none;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}
