/* CSS Variables */
:root {
    --primary-color: #007bff;
    /* Trust Blue */
    --primary-dark: #0056b3;
    --secondary-color: #28a745;
    /* Success Green for WhatsApp */
    --secondary-dark: #218838;
    --accent-color: #ffc107;
    /* Warning/Action Yellow */
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-family: 'Tajawal', sans-serif;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.text-center {
    text-align: center;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.2rem;
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 123, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin: 0;
}

.logo .highlight {
    color: var(--primary-color);
}

.desktop-nav a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--primary-color);
}

.header-btn {
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 768px) {
    .header-btn {
        display: inline-block;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    text-align: center;
    color: var(--text-dark);
    min-height: 80vh;
    /* Occupy most of the screen */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay to ensure text readability if background is busy */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    /* Light overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hero-phone {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.hero-phone a {
    color: inherit;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #444;
}

.badge-item i {
    color: var(--secondary-color);
}

/* Services Section */
.services {
    padding: 60px 0;
    background-color: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-5px);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.icon-box i {
    font-size: 30px;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.text-btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Why Choose Us */
.why-choose-us {
    padding: 60px 0;
    background-color: var(--background-light);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.feature-item i {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 4px;
}

.feature-text h4 {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Testimonials */
.testimonials {
    padding: 60px 0;
    background-color: var(--white);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--background-light);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid #eee;
}

.stars {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.client-info strong {
    display: block;
    color: var(--text-dark);
}

.client-info span {
    font-size: 0.85rem;
    color: #777;
}

/* Strong CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-phone {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* FAQ Section */
.faq {
    padding: 60px 0;
    background-color: var(--background-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 15px 20px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    max-height: 150px;
    /* Adjust based on content */
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Sticky Mobile CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    z-index: 9999;
}

.sticky-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
}

.call-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.whatsapp-btn {
    background-color: var(--secondary-color);
    color: var(--white);
}

@media (min-width: 768px) {
    .mobile-sticky-cta {
        display: none;
    }
}

/* Floating WhatsApp (Desktop) */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .floating-whatsapp {
        display: none;
        /* Hide on mobile to avoid overlap with sticky bar */
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-phone {
        font-size: 1.8rem;
    }

    .cta-section h2 {
        font-size: 2rem;
    }
}

/* RTL Adjustments for Arabic */
[dir="rtl"] .desktop-nav a {
    margin-left: 0;
    margin-right: 20px;
}

[dir="rtl"] .badge-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .feature-item {
    flex-direction: row-reverse;
    text-align: right;
}

[dir="rtl"] .floating-whatsapp {
    right: auto;
    left: 30px;
}

[dir="rtl"] .faq-question {
    text-align: right;
}

/* Force phone numbers to display LTR */
.hero-phone,
.hero-phone a,
.cta-phone,
.header-btn {
    direction: ltr;
    unicode-bidi: embed;
}