/* ===================================
   RESET & BASE STYLES
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #171c4f;
    --secondary: #233067;
    --light-bg: #eef3f3;
    --white: #ffffff;
    --text-dark: #111111;
    --text-muted: #6b7280;
    --accent: #c9a959;
    --accent-light: #d4b96e;
    --success: #25d366;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--white);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

/* Load Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Tajawal:wght@300;400;500;700;800&display=swap');

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-lg {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-sm {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

/* ===================================
   TOP HEADER
   =================================== */
.top-header {
    background-color: var(--white);
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-header-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.top-header-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.top-header-item svg {
    width: 18px;
    height: 18px;
    color: var(--primary);
}

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

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.navbar-logo img {
    height: 45px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navbar-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    padding: 8px 0;
    position: relative;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--primary);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    z-index: 1;
}

.hero-content {
    color: var(--white);
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: 'Cairo', sans-serif;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(23, 28, 79, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: var(--accent-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 89, 0.4);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

/* ===================================
   SECTIONS COMMON
   =================================== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.bg-light {
    background-color: var(--light-bg);
}

.bg-primary {
    background-color: var(--primary);
}

/* ===================================
   WHY CHOOSE US
   =================================== */
.why-us {
    background-color: var(--light-bg);
}

.why-us-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.why-us-image {
    position: relative;
}

.why-us-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.why-us-text h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.why-us-text p {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    line-height: 2;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card-image {
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 30px;
}

.service-card-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card-description {
    font-size: 1rem;
    line-height: 1.8;
}

/* ===================================
   STATISTICS SECTION
   =================================== */
.statistics {
    background-color: var(--primary);
    color: var(--white);
}

.statistics .section-title {
    color: var(--white);
}

.statistics .section-subtitle {
    color: rgba(255, 255, 255, 0.85);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.stat-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
}

/* ===================================
   HOW IT WORKS
   =================================== */
.how-it-works {
    background-color: var(--white);
}

.process-wrapper {
    background-color: var(--light-bg);
    border-radius: 20px;
    padding: 60px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 16.66%;
    left: 16.66%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-icon {
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow);
}

.step-icon svg {
    width: 45px;
    height: 45px;
    color: var(--white);
}

.step-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.step-description {
    font-size: 1rem;
    line-height: 1.8;
}

/* ===================================
   LOCATION SECTION
   =================================== */
.location-section {
    background-color: var(--white);
    padding-bottom: 0;
}

.location-box {
    background-color: var(--primary);
    border-radius: var(--border-radius);
    padding: 40px 50px;
    margin-bottom: 30px;
}

.location-box h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.location-box p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: var(--primary);
    color: var(--white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.footer-column p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.9;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 8px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.social-link svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* ===================================
   FLOATING BUTTONS
   =================================== */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.float-btn svg {
    width: 30px;
    height: 30px;
    color: var(--white);
}

.float-whatsapp {
    background-color: var(--success);
}

.float-call {
    background-color: var(--success);
}

/* ===================================
   PAGE SPECIFIC
   =================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.2rem;
}

/* About Page */
.about-content {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 55px;
    height: 55px;
    background-color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--white);
}

.feature-text h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Services Page */
.services-page {
    padding: 80px 0;
}

.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.service-detail:nth-child(even) {
    direction: ltr;
}

.service-detail:nth-child(even) > * {
    direction: rtl;
}

.service-detail-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.service-detail-content h3 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* Contact Page */
.contact-page {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-info-item svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 5px;
}

.contact-info-item h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 28, 79, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Blog Page */
.blog-page {
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.blog-card-excerpt {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1200px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2.2rem; }
    
    .hero-title { font-size: 3rem; }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }
    
    .footer-column:first-child {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.15rem; }
    
    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        padding: 100px 30px 30px;
        gap: 20px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        transition: var(--transition);
    }
    
    .navbar-menu.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .why-us-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-steps::after {
        content: '';
        position: absolute;
        top: 50px;
        bottom: 50px;
        left: 50%;
        width: 3px;
        background: linear-gradient(180deg, var(--primary), var(--accent));
        transform: translateX(-50%);
    }
    
    .about-grid,
    .service-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .service-detail:nth-child(even) {
        direction: rtl;
    }
    
    .service-detail:nth-child(even) > * {
        direction: rtl;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.5rem; }
    
    section { padding: 60px 0; }
    
    .top-header {
        font-size: 0.8rem;
    }
    
    .top-header-info {
        gap: 15px;
    }
    
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .stat-card {
        padding: 30px 20px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .process-wrapper {
        padding: 40px 20px;
    }
    
    .location-box {
        padding: 30px;
    }
    
    .map-container {
        height: 350px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column:first-child {
        grid-column: span 1;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .floating-buttons {
        bottom: 20px;
        right: 20px;
    }
    
    .float-btn {
        width: 55px;
        height: 55px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .contact-form,
    .contact-info {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-title { font-size: 1.8rem; }
    
    .top-header-info {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .section-title { font-size: 2rem; }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 25px;
    }
}
