/* style.css - FINAL VERSION (Updated for JABAL HUD and new grid layout) */

:root {
    --primary-color: #0E4D92; /* Dark Blue (Primary Accent) */
    --accent-color: #B8860B; /* Golden Beige/Dark Yellow (Secondary Accent) */
    --heading-color: #222222; /* Near Black (Headings) */
    --text-light: #444444; /* Dark Gray (Paragraph Text) */
    --bg-light: #FFFFFF; /* White Background */
    --bg-dark: #F7F7F7; /* Very Light Gray (Darker Sections Background) */
    --nav-bg: #FFFFFF; /* White Nav Bar */
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    direction: ltr;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

/* Global Typography & Styles */
h1, h2, h3, h4 {
    color: var(--heading-color);
    font-weight: 900;
    margin-bottom: 25px;
}

h1 { font-size: 3.5em; }
h2 { font-size: 2.8em; margin-bottom: 60px; }
p { font-size: 1.1em; line-height: 1.8; }
a { color: var(--primary-color); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-color); }

/* Header & Navigation */
header {
    background-color: var(--nav-bg);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent !important; 
    padding: 0; 
}

.logo span::after, 
.header-wrapper div::after {
    content: none !important;
    display: none !important;
}
.header-wrapper {
    max-width: 1200px;
    background-color: var(--bg-light);
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); 
    margin: 20px auto 0 auto; 
    padding: 15px 25px; 
    
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .container {
    display: block !important; 
    padding: 0 !important;
}
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img { height: 40px; width: auto; }
.logo span { color: var(--heading-color); font-weight: 900; font-size: 1.2em;position: relative;}

.main-nav-wrapper { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 15px; }
.header-nav ul li a { color: var(--heading-color); padding: 8px 12px; font-weight: 600; border-radius: 6px; transition: 0.3s; }
.header-nav ul li a:hover, .header-nav ul li.active a { color: var(--primary-color); }

.header-actions-group { display: flex; align-items: center; gap: 15px; }
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(184, 134, 11, 0); 
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0);
    }
}
.consultation-btn {
    background-color: var(--accent-color);
    color: var(--bg-light);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9em;
    box-shadow: 0 3px 6px rgba(184, 134, 11, 0.4);
     animation: pulse 2s infinite;
}

/* Hero Section */
#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.6)), url('images/photo1.jpeg'); 
    background-size: cover;
    background-position: center;
    color: var(--bg-light);
    padding: 150px 0 120px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    position: relative; 
        padding-top: 150px !important; 

}
.hero-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 150px; 
    z-index: 500;
}
#hero:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 150px; 
    clip-path: ellipse(120% 100% at 50% 100%);
    z-index: 500; 
   
}

#hero h1 { color: var(--primary-color); font-size: 4em; text-shadow: 1px 1px #000; }
#hero h2 { color: var(--accent-color); font-size: 2.2em; margin-bottom: 30px; text-align: left; }
#hero p { font-size: 1.2em; }

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 700;
    transition: 0.3s;
    text-align: center;
    display: inline-block;
}

.btn-primary { background-color: var(--primary-color); color: var(--bg-light); }
.btn-primary:hover { background-color: #0B417F; text-decoration: none; }
.btn-secondary { background-color: var(--accent-color); color: var(--bg-light); }
.btn-secondary:hover { background-color: #9C7209; text-decoration: none; }

/* Global Structure */
main { padding-top: 0px; flex-grow: 1; }
.page-section { padding: 80px 0; }
.dark-bg { background-color: var(--bg-dark); }


/* Services Grid (General) */
.services-grid, .applications-grid {
    display: grid;
grid-template-columns: 1fr 1fr;    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.service-card, .application-item {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.3s, box-shadow 0.3s;
     text-align: center;
}

.service-card i, .application-item i { 
    font-size: 2.5em; 
    color: var(--accent-color);
    margin-bottom: 15px; 
    display: block; 
}
.service-card:hover, .application-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-color);
}

.service-card i { font-size: 2.5em; color: var(--accent-color); margin-bottom: 15px; display: block; }
.service-card h3 { color: var(--heading-color); font-weight: 800; }


/* --- NEW Application Card Layout --- */

/* Base style for the application card structure */
.application-card {
    background-color: var(--bg-light);
    border: 1px solid #EEE;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px; /* Separating each application card */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* Hover/Animation effect for the main application card */
.application-card:hover {
    transform: scale(1.01); /* Slight zoom on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.application-card img {
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Desktop: Making the application cards take 50% width (two columns) */
@media (min-width: 993px) {
    /* We use FLEX to align cards in two columns */
    #services .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between; /* To push cards apart */
    }

    .application-card {
        width: 48%; /* A bit less than 50% to account for gap */
        margin-bottom: 40px; /* Keep vertical separation */
    }
        .application-container-grid {
        display: block !important;
    }
 .logo span {
        font-size: 30px !important; 
        white-space: nowrap; 
    }
}


/* About Page Specific */
.management-card {
    text-align: center;
    margin-top: 40px;
    padding: 30px;
    background-color: var(--bg-dark);
    border-radius: 10px;
}
.management-card i { font-size: 3em; color: var(--primary-color); }
.management-card h3 { color: var(--accent-color); }


/* Contact Page Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    margin-top: 40px;
    text-align: left;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}
.contact-info-item i { font-size: 1.5em; color: var(--primary-color); margin-top: 5px; }

.contact-form-wrapper {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 10px;
}

.contact-form-wrapper input, .contact-form-wrapper textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #CCC;
    background-color: var(--bg-light);
    color: var(--heading-color);
    border-radius: 5px;
    box-sizing: border-box;
}

.map-container { margin-top: 50px; border-radius: 10px; overflow: hidden; }
.map-container iframe { width: 100%; height: 400px; border: 0; }

/* Footer */
footer {
    background-color: var(--heading-color); 
    color: #EEE;
    padding: 50px 0 20px 0;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-col h3 { color: var(--primary-color); margin-bottom: 20px; font-weight: 700; }
.footer-col p { font-size: 1em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li a { color: #EEE; display: block; margin-bottom: 10px; }
.footer-col ul li a:hover { color: var(--accent-color); text-decoration: none; }

.footer-social-links a { font-size: 1.5em; margin-right: 15px; color: #EEE; }
.copyright { text-align: center; border-top: 1px solid #444; padding-top: 20px; color: #AAA; font-size: 0.9em; }

/* Mobile Adjustments (992px) */
@media (max-width: 992px) {
    h1 { font-size: 3em; }
    h2 { font-size: 2.2em; margin-bottom: 40px; }
    
    .hamburger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; background: transparent; border: none; cursor: pointer; padding: 0; z-index: 1100; }
    .hamburger-menu span { width: 100%; height: 3px; background-color: var(--heading-color); border-radius: 10px; transition: all 0.3s linear; }

    .main-nav-wrapper {
        position: fixed; top: 0; left: 0; width: 80%; max-width: 350px; height: 100%; background-color: var(--bg-dark); 
        flex-direction: column; align-items: flex-start; padding: 80px 20px; gap: 30px; z-index: 1050; overflow-y: auto;
        transform: translateX(-100%); transition: transform 0.3s ease-in-out;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.2);
    }
    .main-nav-wrapper.is-open { transform: translateX(0); }
    .header-nav { width: 100%; }
    .header-nav ul { flex-direction: column; gap: 0; align-items: flex-start; }
    .header-nav ul li a { padding: 15px 0; border-bottom: 1px solid #DDD; display: block; font-size: 1.2em; }
    .header-actions-group { 
        flex-direction: column; 
        align-items: center; 
        width: 100%; 
        padding-top: 30px; 
        border-top: 1px solid #DDD;
        gap: 15px;
        order: 2; 
    }

       .main-nav-wrapper .lang-btn-desktop {
        display: none !important;
    }
    html[dir="rtl"] .header-actions-group .lang-btn-desktop {
    margin-right: auto;
    order: 2;
    background-color: transparent !important;
    box-shadow: none !important; 
    padding: 8px 12px !important; 
}

/* إبقاء زر عرض السعر في مكانه */
html[dir="rtl"] .header-actions-group .consultation-btn:last-child {
    order: 1; 
}
    /* Mobile: Ensure application cards stack and take full width */
    .application-card {
        width: 100% !important;
        margin-bottom: 30px; 
    }
    #services .container {
        display: block !important;
    }


    .contact-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-col { margin-bottom: 30px; }
    .footer-social-links { text-align: center; }
    .footer-contact-info p { justify-content: center; }
}
@media (max-width: 992px) {
    .application-card {
        width: 100% !important;
        margin-bottom: 30px; 
    }
    .application-container-grid { 
        display: block !important;
    }
}


@media (min-width: 993px) {
    .application-container-grid {
        display: flex !important;
        flex-wrap: wrap; 
        justify-content: space-between; 
    }

    .application-card {
        flex-basis: calc(50% - 15px) !important;
        width: calc(50% - 15px) !important; 
        margin-bottom: 30px !important; 
    }
}


.parallax-section {
    background-image: url('images/photo7.jpeg'); 
    min-height: 400px; 
    background-attachment: fixed; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1; 
}

.parallax-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 2;
}

.parallax-content {
    z-index: 3;
    color: var(--bg-light);
    padding: 20px;
}
.parallax-content h2 {
    color: var(--accent-color);
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px #000;
}
.parallax-content p {
    font-size: 1.2em;
    font-weight: 700;
}


.cta-parallax-section {
    background-image: url('images/photo6.jpeg'); 
    min-height: 450px; 
    background-attachment: fixed; 
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 50px 0;
}

.cta-parallax-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 2;
}

.cta-content {
    z-index: 3;
    color: var(--bg-light);
    max-width: 800px;
    margin: 0 auto;
}
.cta-content h2 {
    color: var(--bg-light);
    font-size: 2.5em;
    margin-bottom: 30px;
    text-shadow: 1px 1px #000;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.cta-buttons a {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: 700;
    text-decoration: none !important;
}

.cta-phone-btn {
    background-color: #D9534F; 
    color: var(--bg-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.cta-email-btn {
    background-color: var(--primary-color); 
    color: var(--bg-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
   
    .consultation-btn {
        font-size: 0.8em; 
        padding: 8px 15px;
    }    
    .header-wrapper {
        margin: 10px auto 0 auto !important; 
        max-width: 95% !important;
    }
}

@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.5em !important; 
    }
    #hero h2 {
        font-size: 1.5em !important; 
    }
    #hero p {
        font-size: 1em !important;
    }
    
    /* 3. Hero Section */
    #hero {
        text-align: center !important; 
        padding-top: 80px !important; 
        padding-bottom: 120px !important; 
        text-align: center !important; 
    }

    /* 4 Hero Section */
    .hero-content div {
        display: flex;
        flex-direction: column; 
        align-items: center; 
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 90%; 
        max-width: 300px;
        margin: 0 !important;
    }
    .services-grid, .applications-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-top: 30px; 
        padding: 0 10px;
    }

    .service-card, .application-item {
        max-width: 400px; 
        width: 90% !important; 
        margin: 0 auto 30px auto !important; 
        padding: 20px !important; 
    }

    .service-card h3, .application-item h3 {
        font-size: 1.2em; 
        margin-bottom: 10px;
    }
    .service-card p, .application-item p {
        font-size: 0.9em;
    }
    
    .service-card i, .application-item i {
        font-size: 2em;
        margin-bottom: 10px;
    }
}
@media (max-width: 600px) { 
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .cta-buttons a {
        width: 100%; 
        max-width: 250px; 
        margin: 0 auto; 
        min-width: unset;
    }
    
    .cta-content h2 {
        font-size: 1.8em !important;
    }
    .container h1 {
        font-size: 2em !important; 
        line-height: 1.2;
    }
    
    /* (Application Cards) */
    .application-card {
        max-width: 350px; 
        width: 90% !important; 
        margin: 0 auto 30px auto !important; 
        padding: 15px !important; 
    }

    .application-card h3 {
        font-size: 1.1em; 
        margin-bottom: 10px;
    }
    .application-card img {
        height: 200px !important;
    }
    .application-card ul {
        font-size: 0.9em;
    }
    .container h1 {
        font-size: 2em !important; 
        line-height: 1.2;
    }
    
    /* 2 (Application Cards) */
    .application-card {
        max-width: 350px;
        width: 90% !important;
        margin: 0 auto 30px auto !important;
        padding: 15px !important; 
    }

    .application-card h3 {
        font-size: 1.1em; 
        margin-bottom: 10px;
    }
    .application-card img {
        height: 200px !important; 
    }
    .application-card ul {
        font-size: 0.9em;
    }
    .parallax-content h2 {
        font-size: 2em !important; 
        line-height: 1.2;
        margin-bottom: 15px !important;
    }
    .parallax-content p {
        font-size: 0.95em !important; 
        padding: 0 10px;
    }
    .cta-buttons a {
        font-size: 1em !important; 
    }
    
}

/* --- Floating Contact Buttons Container --- */
.fixed-contact-buttons {
    position: fixed;
    bottom: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* LTR: Buttons on the right */
html[dir="ltr"] .fixed-contact-buttons {
    right: 20px;
    left: auto;
}

/* RTL: Buttons on the left */
html[dir="rtl"] .fixed-contact-buttons {
    left: 20px;
    right: auto;
}

/* --- Individual Button Styles --- */
.floating-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: var(--bg-light); 
    font-size: 1.5em;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, background-color 0.3s;
    text-decoration: none !important;
}

.floating-btn:hover {
    transform: scale(1.1);
}

/* WhatsApp Button (Green) */
.whatsapp-btn { background-color: #25D366; }

/* Phone Button (Primary Blue) */
.phone-btn { background-color: var(--primary-color); }

/* Language Button (Accent/Beige) */
.lang-switch-btn { background-color: var(--accent-color); }

@media (min-width: 993px) {

}
@media (max-width: 992px) {
    .header-actions-group .lang-btn-desktop {
        display: none !important;
    }
}
@media (min-width: 993px) {
    .lang-switch-btn-mobile {
        display: none !important;
    }
}
html[dir="rtl"] .hero-actions-mobile-group a i,
html[dir="rtl"] .parallax-content a i {
    margin-right: 0 !important;
    margin-left: 10px !important; 
}

html[dir="rtl"] .footer-contact-info p i,
html[dir="rtl"] .contact-info-item i,
html[dir="rtl"] .service-card i,
html[dir="rtl"] .application-card i {
    margin-right: 0 !important;
    margin-left: 10px !important; 
    order: 2;
}
html[dir="rtl"] .contact-info-item div {
    order: 1; 
}

html[dir="rtl"] .header-actions-group .lang-btn-desktop i {
    margin-right: 0 !important;
    margin-left: 8px !important;
}
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col {
        margin-bottom: 30px;
    }
    
    .footer-col h3 {
        text-align: center !important;
    }
    .footer-col p {
        text-align: center !important;
    }
    
    .footer-col ul {
        padding-right: 0 !important; 
        text-align: center !important;
    }
    .footer-col ul li a {
        display: inline-block !important; 
    }

    .footer-social-links {
        text-align: center !important;
    }
    
    .footer-contact-info p {
        justify-content: center !important; 
        direction: ltr;
    }
    .footer-contact-info p span {
        margin-left: 5px !important;
        margin-right: 5px !important;
    }
    .main-nav-wrapper .lang-btn {
        display: none !important;
    }
}

@media (min-width: 993px) {
    
    .application-cards-wrapper {
        display: flex !important; 
        flex-wrap: wrap; 
        justify-content: center !important; 
        gap: 30px; 
        margin-top: 50px;
    }

    .application-card {
        width: 350px !important; 
        flex-basis: auto !important; 
        margin-bottom: 30px !important; 
    }
}

@media (min-width: 993px) {
    
    .application-card {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}



html[dir="rtl"] .application-card ul, 
html[dir="rtl"] .service-card ul {
    list-style-type: none !important;
    padding-left: 0 !important;
    padding-right: 15px !important; 
}

html[dir="rtl"] .application-card ul li, 
html[dir="rtl"] .service-card ul li {
    position: relative;
    padding-right: 15px;
    text-align: right;
    display: block; 
}

html[dir="rtl"] .application-card ul li::before,
html[dir="rtl"] .service-card ul li::before {
    content: "\f111"; 
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-color); 
    font-size: 0.5em;
    top: 0.6em;
}

html[dir="rtl"] .application-card {
    text-align: right !important;
}


.page-section a.btn-primary, 
.page-section a.btn-secondary {
    
    display: block !important;
    width: 250px; 
    margin-right: auto !important;
    margin-left: auto !important;
    
    text-align: center !important; 
    
    display: block !important; 
}



html[dir="rtl"] .header-wrapper {
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .main-nav-wrapper {
    margin-right: auto !important; 
    margin-left: 0 !important;
    flex-direction: row-reverse !important;
}

html[dir="rtl"] .header-wrapper {
    justify-content: space-between;
}

html[dir="rtl"] .main-nav-wrapper {
    margin-left: 0;
    margin-right: auto;
}
html[dir="rtl"] .header-nav ul {
    direction: rtl;
    padding-right: 0;
}

.consultation-btn {
    background-color: var(--accent-color);
    color: var(--bg-light);
    padding: 8px 15px; 
    font-size: 0.8em; 
    border-radius: 8px;
    font-weight: 700;
    box-shadow: 0 3px 6px rgba(184, 134, 11, 0.4);
    animation: pulse 2s infinite;
}

.lang-btn-desktop {
    background-color: var(--bg-light) !important;
    color: var(--heading-color) !important;
    box-shadow: none !important;
    border: 1px solid var(--accent-color);
}



@media (max-width: 992px) {

    .contact-info-wrapper {
        text-align: center !important; 
    }

    .contact-info-item {
        justify-content: center !important; 
        margin-bottom: 20px !important; 
    }
    
    .contact-info-item h4 {
        text-align: center !important;
        width: 100% !important;
    }
    
    .contact-info-item span, .contact-info-item a {
        text-align: center !important;
        display: block !important;
    }

}