/* ============================================
   MURIYA - LUXURY COOLING COMPANY WEBSITE
   Premium Design with Animations
   ============================================ */

/* Color Palette */
:root {
    --primary-navy: #2C4A8A;
    --primary-gold: #B8965A;
    --primary-cream: #F8F4EE;
    --dark-navy: #1A3070;
    --light-cream: #FAF9F7;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --border-color: #e0ddd6;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
}

/* ============ BASE STYLES ============ */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Jost', sans-serif; background-color: var(--primary-cream); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }

/* RTL Support */
[dir="rtl"] body, body.rtl, .rtl { direction: rtl !important; }
.rtl .navbar-menu, [dir="rtl"] .navbar-menu { flex-direction: row-reverse; }
.rtl .navbar-right, [dir="rtl"] .navbar-right { flex-direction: row-reverse; }
.rtl .footer-content, [dir="rtl"] .footer-content { direction: rtl; }
.rtl .products-grid, [dir="rtl"] .products-grid { direction: rtl; }
.rtl .product-card, [dir="rtl"] .product-card { text-align: right; }
.rtl .section-header, [dir="rtl"] .section-header { text-align: right; }
.rtl .footer-list, [dir="rtl"] .footer-list { text-align: right; }
.rtl .footer-contact, [dir="rtl"] .footer-contact { text-align: right; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4, h5, h6 { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--primary-navy); line-height: 1.2; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
p { font-size: 1rem; color: var(--text-light); margin-bottom: 1rem; }
a { color: var(--primary-gold); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--primary-navy); }

/* ============ NAVBAR ============ */

.navbar {
    background-color: var(--primary-navy);
    padding: 1rem 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    gap: 2rem;
}

.navbar-brand { display: flex; align-items: center; order: 1; max-height: 70px; overflow: hidden; }

.logo-image[alt="Engineering Industries"] { height: 50px; max-width: 130px; object-fit: contain; }
.logo-image[alt="MURIYA"] { height: 65px; max-width: 130px; object-fit: contain; }
.logo-image[alt="Made in Oman"] { height: 50px; }
.logo-image[alt="Worker"] { height: 60px; }

.navbar-menu { display: flex; gap: 2rem; order: 2; flex: 1; justify-content: center; }
.navbar-menu .nav-link { color: var(--primary-cream); font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; }
.navbar-menu .nav-link:hover { color: var(--primary-gold); }

.navbar-right { display: flex; align-items: center; gap: 1rem; order: 3; }

.desktop-only { display: flex !important; align-items: center; gap: 1rem; }

.language-switcher { display: flex; gap: 0.5rem; }

.lang-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
    border: 1.5px solid rgba(184, 150, 90, 0.4);
    border-radius: 20px;
    background-color: transparent;
    color: var(--primary-cream);
    cursor: pointer;
    transition: all 0.3s ease;
}
.lang-btn:hover { background-color: rgba(184, 150, 90, 0.2); }
.lang-btn.active { background-color: var(--primary-gold); color: var(--primary-navy); border-color: var(--primary-gold); }

/* Mobile Elements - Hidden on Desktop */
.mobile-right { display: none; align-items: center; gap: 0.5rem; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span { display: block; width: 25px; height: 2px; background: white; border-radius: 2px; }

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--primary-navy);
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.mobile-nav-link {
    color: white;
    text-decoration: none;
    padding: 0.8rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-link:hover { color: var(--primary-gold); }

/* ============ HERO SECTION ============ */

.hero {
    margin-top: 80px;
    background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2f4a 100%);
    position: relative;
    padding: 6rem 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, rgba(184, 150, 90, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 0 2rem; }
.hero-text h1 { font-size: 4rem; color: var(--primary-cream); margin-bottom: 1.5rem; line-height: 1.1; }
.hero-subtitle { font-size: 1.3rem; color: rgba(248, 244, 238, 0.8); margin-bottom: 2rem; font-weight: 300; }
.hero-cta { display: flex; gap: 1.5rem; margin-top: 2.5rem; }

/* ============ BUTTONS ============ */

.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary { background-color: var(--primary-gold); color: white; border-color: var(--primary-gold); }
.btn-primary:hover { background-color: transparent; color: var(--primary-gold); }
.btn-secondary { background-color: transparent; color: var(--primary-gold); border-color: var(--primary-gold); }
.btn-secondary:hover { background-color: var(--primary-gold); color: white; }
.btn-outline { background-color: transparent; color: var(--primary-cream); border-color: var(--primary-cream); }
.btn-outline:hover { background-color: var(--primary-cream); color: var(--primary-navy); }
.btn-large { padding: 1.1rem 2.5rem; font-size: 1rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

.btn-catalog {
    background-color: transparent;
    color: var(--primary-gold);
    border: 1.5px solid rgba(184, 150, 90, 0.5);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}
.btn-catalog:hover { background-color: var(--primary-gold); color: white; }

/* ============ HERO SNOWFLAKE ============ */

.hero-snowflake {
    width: 350px;
    height: 350px;
    animation: spin 20s linear infinite;
    filter: drop-shadow(0 0 20px rgba(107, 143, 212, 0.5));
    margin: 0 auto;
}
.hero-snowflake img { width: 100%; height: 100%; object-fit: contain; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============ STATS STRIP ============ */

.stats-strip { background-color: var(--primary-navy); padding: 4rem 0; border-top: 1px solid rgba(184, 150, 90, 0.2); border-bottom: 1px solid rgba(184, 150, 90, 0.2); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-item { text-align: center; padding: 1rem 0; }
.stat-number { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; color: var(--primary-gold); margin-bottom: 0.5rem; }
.stat-label { font-size: 0.95rem; color: rgba(248, 244, 238, 0.8); text-transform: uppercase; letter-spacing: 2px; }

/* ============ PRODUCTS SECTION ============ */

.products-section { padding: 6rem 0; background-color: var(--primary-cream); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.8rem; color: var(--primary-navy); margin-bottom: 1rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.product-card {
    background-color: white;
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover { border-color: var(--primary-gold); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.product-card.highlight { background: linear-gradient(135deg, #2C4A8A 0%, #1a2f4a 100%); color: white; }
.product-card.highlight .product-title { color: #D4AE78; }
.product-card.highlight .product-desc { color: rgba(255,255,255,0.8); }

.product-image { width: 100%; height: 280px; background-color: rgba(184, 150, 90, 0.1); border-radius: 8px 8px 0 0; display: flex; align-items: center; justify-content: center; overflow: hidden; margin: -2rem -2rem 1.5rem -2rem; width: calc(100% + 4rem); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-placeholder { font-size: 4rem; color: rgba(184, 150, 90, 0.3); }

.product-title { font-size: 1.4rem; color: var(--primary-navy); margin-bottom: 0.8rem; font-family: 'Cormorant Garamond', serif; }
.product-desc { color: var(--text-light); margin-bottom: 1.5rem; flex-grow: 1; font-size: 0.95rem; }
.product-link { color: var(--primary-gold); font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; align-self: center; }
.product-link:hover { color: var(--primary-navy); letter-spacing: 1px; }

/* Coming Soon */
.coming-soon-card { opacity: 0.85; }
.coming-soon-badge { position: absolute; top: 15px; right: 15px; background: #e74c3c; color: white; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 50px; z-index: 2; }
.coming-soon-img { background: linear-gradient(135deg, #2C4A8A 0%, #1a2f4a 100%) !important; display: flex; align-items: center; justify-content: center; }
.coming-soon-icon { font-size: 4rem; }
.btn-disabled { background: #ccc !important; color: #888 !important; cursor: not-allowed; border: none; width: 100%; padding: 0.8rem; border-radius: 4px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 1.5rem; }

/* ============ CTA SECTION ============ */

.cta-section { background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2f4a 100%); padding: 5rem 0; border-top: 2px solid var(--primary-gold); }
.contact-cta { background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2f4a 100%); padding: 5rem 2rem; border-top: 2px solid var(--primary-gold); text-align: center; }
.contact-cta h2 { font-size: 2rem; color: var(--primary-cream); margin-bottom: 1rem; }
.contact-cta p { color: rgba(248, 244, 238, 0.8); font-size: 1.05rem; margin-bottom: 2rem; }
.cta-content { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.cta-text { color: var(--primary-cream); }
.cta-title { font-size: 2.2rem; color: var(--primary-cream); margin-bottom: 1rem; }
.cta-desc { color: rgba(248, 244, 238, 0.8); font-size: 1.05rem; }
.cta-buttons { display: flex; gap: 1.5rem; }

/* ============ PAGE HEADER ============ */

.page-header { background: linear-gradient(135deg, var(--primary-navy) 0%, #1a2f4a 100%); padding: 8rem 0 4rem; margin-top: 80px; text-align: center; }
.page-title { font-size: 3rem; color: var(--primary-cream); margin-bottom: 1rem; }
.page-subtitle { font-size: 1.2rem; color: rgba(248, 244, 238, 0.8); }

/* ============ ABOUT PAGE ============ */

.about-hero { padding: 5rem 0; background-color: var(--primary-cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; color: var(--primary-navy); }
.about-text p { margin-bottom: 1rem; color: var(--text-light); font-size: 1.05rem; }

/* ============ FOOTER ============ */

.footer { background-color: var(--primary-navy); color: rgba(248, 244, 238, 0.8); padding: 4rem 0 2rem; margin-top: 4rem; }
.footer-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(184, 150, 90, 0.2); }
.footer-title { color: var(--primary-cream); font-size: 1.2rem; margin-bottom: 1rem; font-family: 'Cormorant Garamond', serif; }
.footer-desc { font-size: 0.9rem; margin-bottom: 1rem; color: rgba(248, 244, 238, 0.8); }
.footer-contact { font-size: 0.85rem; line-height: 1.8; }
.footer-contact p { margin-bottom: 0.5rem; }
.footer-contact a { color: var(--primary-gold); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.7rem; }
.footer-list a { color: rgba(248, 244, 238, 0.8); transition: color 0.3s ease; font-size: 0.9rem; }
.footer-list a:hover { color: var(--primary-gold); }
.social-links { display: flex; gap: 1rem; }
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(184, 150, 90, 0.2); border-radius: 50%; color: var(--primary-gold); font-weight: 600; transition: all 0.3s ease; }
.social-icon:hover { background-color: var(--primary-gold); color: var(--primary-navy); }
.footer-bottom { text-align: center; font-size: 0.85rem; color: rgba(248, 244, 238, 0.6); }

/* Footer Catalog - Mobile Only */
.footer-catalog { display: none; }

/* ============ CONTACT PAGE ============ */

.contact-section { padding: 4rem 0; background-color: var(--primary-cream); }
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.contact-form-wrapper { background-color: white; padding: 2.5rem; border: 1px solid var(--border-color); border-radius: 8px; }
.form-title { font-size: 1.8rem; color: var(--primary-navy); margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-weight: 600; color: var(--text-dark); margin-bottom: 0.5rem; font-size: 0.95rem; }
.form-input { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border-color); border-radius: 4px; font-family: 'Jost', sans-serif; font-size: 1rem; transition: all 0.3s ease; background-color: var(--light-cream); }
.form-input:focus { outline: none; border-color: var(--primary-gold); background-color: white; }
.form-textarea { resize: vertical; min-height: 120px; }
.alert { padding: 1rem 1.5rem; border-radius: 4px; margin-bottom: 1.5rem; }
.alert-success { background-color: rgba(39, 174, 96, 0.1); border: 1px solid #27ae60; color: #229954; }
.alert-error { background-color: rgba(231, 76, 60, 0.1); border: 1px solid #e74c3c; color: #c0392b; }

/* ============ MADE IN OMAN ============ */

.made-in-oman { padding: 5rem 0; background: var(--light-cream); }
.oman-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.oman-badge { display: inline-block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary-gold); margin-bottom: 1rem; padding: 0.4rem 1rem; border: 1px solid rgba(184,150,90,0.3); border-radius: 50px; }
.oman-text h2 { font-family: 'Cormorant Garamond', serif; font-size: 2.5rem; color: var(--primary-navy); margin-bottom: 1.5rem; }
.oman-text p { color: var(--text-light); line-height: 1.9; font-size: 1rem; }
.oman-image img { width: 100%; border-radius: 12px; }

/* ============ ANIMATIONS ============ */

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { animation: fadeInUp 0.8s ease forwards; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--primary-cream); }
::-webkit-scrollbar-thumb { background: var(--primary-gold); border-radius: 4px; }

/* ============ RTL FIXES ============ */

[dir="rtl"] .logo { margin-left: auto; }
[dir="rtl"] .navbar-menu { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { direction: rtl; }
[dir="rtl"] .hero-cta { flex-direction: column; align-items: center; }
[dir="rtl"] .hero-text { text-align: center; padding: 0 15px; }
[dir="rtl"] .btn-primary, [dir="rtl"] .btn-secondary { width: 80%; text-align: center; display: block; margin: 0 auto; }

/* ============ PRODUCT FEATURES ============ */

.product-card.detailed { display: flex; flex-direction: column; position: relative; }
.product-features { margin: 1.5rem 0; flex-grow: 1; }
.product-features ul { list-style: none; padding: 0; margin: 0; }
.product-features li { padding: 0.5rem 0; color: var(--text-light); font-size: 0.9rem; border-bottom: 1px solid var(--border-color); }
.product-features li:last-child { border-bottom: none; }
.product-card.detailed .product-link { margin-top: 1.5rem; width: 100%; text-align: center; }

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
    /* Navbar */
    .navbar-content { padding: 0.5rem 1rem; gap: 0.5rem; }
    .navbar-brand { max-height: 50px; }
    .logo-image[alt="Engineering Industries"] { height: 35px !important; max-width: 90px !important; }
    .logo-image[alt="MURIYA"] { height: 40px !important; max-width: 45px !important; }
    .logo-image[alt="Made in Oman"] { height: 35px !important; max-width: 45px !important; }
    .logo-image[alt="Worker"] { display: none !important; }

    /* Show mobile elements */
    .mobile-right { display: flex !important; }
    .mobile-toggle { display: flex !important; }
    .mobile-menu.open { display: flex !important; }
    .mobile-toggle span {
        display: block !important;
        width: 25px;
        height: 2px;
        background: white;
        border-radius: 2px;
    }


    /* Hide desktop elements */
    .desktop-menu { display: none !important; }
    .desktop-only { display: none !important; }
    /* Hero */
    .hero { min-height: auto; padding: 3rem 15px; margin-top: 70px; }
    .hero-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-text { text-align: center; padding: 0; }
    .hero-text h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: center; width: 100%; }
    .btn { width: 100%; text-align: center; display: block; }
    .hero-visual { width: 100%; display: flex; justify-content: center; }
    .hero-snowflake { width: 220px !important; height: 220px !important; margin: 0 auto !important; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .stat-number { font-size: 2rem; }

    /* Products */
    .products-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }

    /* CTA */
    .cta-content { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }

    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer-catalog { display: block; text-align: center; padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,0.1); margin-bottom: 1rem; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }

    /* About */
    .about-grid { grid-template-columns: 1fr; }
    .oman-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* General */
    .container { padding: 0 15px; }

    /* Coming Soon Badge */
    .coming-soon-badge { font-size: 0.65rem; padding: 0.25rem 0.6rem; }

    /* Buttons RTL mobile fix */
    [dir="rtl"] .hero-cta { flex-direction: column; align-items: center; }
    [dir="rtl"] .btn-primary, [dir="rtl"] .btn-secondary { width: 80%; }
    /* صور المنتجات على الموبايل */
    .product-image {
        height: 220px !important;
    }

    .product-image img {
        object-fit: contain !important;
        background: #f5f5f5;
    }

    /* زر الذهبي */
    .btn-primary {
        color: white !important;
        background-color: var(--primary-gold) !important;
        padding: 0.9rem 1.5rem !important;
        display: block !important;
        text-align: center !important;
        font-size: 0.85rem !important;
    }

    .btn-primary:hover {
        background-color: var(--dark-navy) !important;
    }

    .product-card.detailed .product-link {
        color: white !important;
        background-color: var(--primary-gold) !important;
        padding: 0.9rem !important;
        border-radius: 4px !important;
        display: block !important;
        text-align: center !important;
    }
}
