/* ==========================================================================
   RESET & VARIABLES
   ========================================================================== */
:root {
    --bg-white: #ffffff;
    --bg-gray: #f8f9fa;
    --bg-light-gray: #e9ecef;
    --bg-dark: #212529;
    --primary-color: #0f4c81; /* Professional corporate blue */
    --accent-color: #fca311;
    --text-dark: #343a40;
    --text-black: #000000;
    --text-white: #ffffff;
    --text-muted: #6c757d;
    
    --font-main: 'Vazirmatn', 'IBM Plex Sans Arabic', sans-serif;
    
    --whatsapp-color: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.7;
    direction: rtl;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.site-nav {
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background-color: var(--primary-color);
    color: var(--bg-white) !important;
    padding: 10px 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.3s ease;
}

.nav-cta:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .nav-links {
        display: none; 
    }
    .nav-container {
        justify-content: center;
    }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-header {
    position: relative;
    height: 500px;
    background-image: url('assets/images/15.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 76, 129, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--text-white);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .hero-header {
        height: 350px;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   DESCRIPTION SECTION
   ========================================================================== */
.description-section {
    padding: 80px 20px;
    background-color: var(--bg-gray);
    border-bottom: 1px solid var(--bg-light-gray);
}

.description-section h2 {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.8;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.whatsapp-button-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: var(--whatsapp-color);
    color: var(--text-white);
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-section {
    padding: 100px 20px;
    background-color: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.about-text {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--text-muted);
    max-width: 800px;
    margin: 40px auto 0 auto;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 100px 20px;
    background-color: var(--bg-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0 auto;
}

.service-card {
    background-color: var(--bg-white);
    padding: 50px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(15, 76, 129, 0.1);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ==========================================================================
   GALLERY CATEGORY SECTIONS
   ========================================================================== */
.gallery-category-section {
    padding: 60px 20px;
    background-color: #f3f4f6; /* Standard light gray from screenshot */
    border-bottom: 10px solid #ffffff; /* separation between sections */
}

.gallery-category-section.bg-gray {
    background-color: #f3f4f6; /* Ensure all sections have the same background as the screenshot */
}

.category-header {
    text-align: right; /* Crucial: align text to the right as in Arabic Google Sites */
    max-width: 1000px; 
    margin: 0 auto 40px auto;
    position: relative;
    padding-top: 30px;
}

/* The horizontal white line from the screenshots */
.category-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background-color: #ffffff;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #111111;
    margin-bottom: 30px;
    line-height: 1.5;
    font-family: Arial, Helvetica, sans-serif; /* Standard clean font like the screenshot */
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 20px;
}

.category-description {
    font-size: 1.1rem;
    line-height: 2;
    color: #111111;
    font-weight: 500;
    font-family: Arial, Helvetica, sans-serif;
}

/* Images Grid tweaks */
.gallery-grid {
    display: grid;
    /* In the screenshot it's a single massive image spanning the width. Let's make the grid show 1 column on mobile, 2 on desktop to be closer to the large image feel */
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 0; /* The screenshots show sharp corners on the image */
    box-shadow: none; /* Removing shadow for a flatter, more authentic look */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-gray);
    aspect-ratio: 16 / 9; /* Wide aspect ratio like the screenshot */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

/* ==========================================================================
   HARAJ BANNER SECTION
   ========================================================================== */
.haraj-nav-link {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
    background: rgba(15, 76, 129, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

.haraj-nav-link:hover {
    background: rgba(15, 76, 129, 0.2);
}

.haraj-banner {
    padding: 80px 20px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    border-top: 1px solid var(--bg-light-gray);
}

.haraj-content {
    background: linear-gradient(to right, #007bb5, #009ceb); /* Elegant Haraj blue gradient */
    border-radius: 20px;
    padding: 60px 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    box-shadow: 0 15px 35px rgba(0, 123, 181, 0.2);
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.haraj-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%), radial-gradient(circle, rgba(255,255,255,0.1) 10%, transparent 10%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    transform: rotate(30deg);
    pointer-events: none;
}

.haraj-text {
    flex: 1;
    min-width: 300px;
    position: relative;
    z-index: 1;
    text-align: right;
}

.haraj-text h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.4;
}

.haraj-text h2 span {
    color: #ffd700; /* Gold highlight */
    text-shadow: 0 2px 10px rgba(255,215,0,0.4);
}

.haraj-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.8;
}

.haraj-action {
    position: relative;
    z-index: 1;
}

.haraj-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #007bb5;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 20px 50px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.haraj-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
    background-color: #ffd700; /* Turns gold on hover */
    color: #111;
}

@media (max-width: 768px) {
    .haraj-content {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    .haraj-text {
        text-align: center;
    }
    .haraj-text h2 {
        font-size: 2rem;
    }
    .haraj-btn {
        font-size: 1.2rem;
        padding: 15px 30px;
    }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-white);
    padding: 60px 20px;
}

.footer-link {
    color: var(--text-white);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   FLOATING WHATSAPP & LIGHTBOX
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--whatsapp-color);
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox.active {
    display: block;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    cursor: pointer;
}




