/* General Styles */
body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFFFFF;
    color: #333;
    direction: rtl;
    text-align: right;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4 {
    color: #333;
    font-weight: 700;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1.5em;
    color: #FF6B35; /* Orange accent for section titles */
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
}

p {
    font-size: 1rem;
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: #FF6B35;
    transition: color 0.3s ease;
}

a:hover {
    color: #FF8C42;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-image: linear-gradient(to right, #FF6B35 0%, #FF8C42 51%, #FF6B35 100%);
    background-size: 200% auto;
    color: white;
    box-shadow: 0 4px 15px 0 rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background-position: right center; /* change the direction of the change here */
    color: white;
    box-shadow: 0 6px 20px 0 rgba(255, 107, 53, 0.5);
}

/* Header & Navigation */
header {
    background-color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

/* Previous text logo style - can be removed or repurposed if .logo class is no longer used directly on text */
/* .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FF6B35;
} */

.logo-link {
    display: inline-block; /* Ensures the link wraps the image correctly */
    line-height: 0; /* Removes extra space below the image if it's an inline element */
}

.logo-img {
    height: 40px; /* Adjust as needed for optimal navbar fit */
    width: auto;
    vertical-align: middle; /* Helps align image with other nav items if needed */
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 25px; /* Added gap for consistent spacing */
}

/* Removed individual li margins, handled by 'gap' in nav ul */
/* nav ul li {
    margin-right: 25px; 
}

nav ul li:last-child {
    margin-right: 0;
} */

nav ul li a {
    color: #555;
    font-weight: 500;
    font-size: 1rem;
}

nav ul li a:hover, nav ul li a.active {
    color: #FF6B35;
}

.nav-cta {
    padding: 10px 22px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero-section {
    background-color: #f9f9f9; /* Light gray for subtle contrast */
    padding: 80px 0;
    text-align: right;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex-basis: 55%;
}

.hero-text h1 {
    line-height: 1.3;
}

.hero-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1.5em;
}

.hero-image {
    flex-basis: 40%;
    text-align: left; /* For image alignment */
}

.hero-image img {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* How It Works Section */
.how-it-works-section {
    padding: 60px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.step {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.step-icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: #FFA366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-icon-placeholder {
    font-size: 2.5rem;
    color: #FF6B35;
    margin-bottom: 15px;
}

.feature-item img {
    margin-top: 20px;
    border: 3px solid #FFA366;
}

/* Testimonials Section */
.testimonials-section {
    padding: 60px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    text-align: center;
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px auto;
    object-fit: cover;
    border: 3px solid #FF8C42;
}

.testimonial-card h4 {
    margin-top: 15px;
    margin-bottom: 5px;
    color: #FF6B35;
}

.rating {
    color: #FFC107; /* Gold color for stars */
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: #333;
    color: #f4f4f4;
    padding: 50px 0 20px 0;
    text-align: right;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info, .footer-social {
    flex-basis: 45%;
}

.footer-info h3 {
    color: #FF6B35;
    margin-bottom: 15px;
}

.footer-social h4 {
    color: #f4f4f4;
    margin-bottom: 15px;
}

.footer-social a {
    display: block;
    color: #ccc;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #FF8C42;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: #aaa;
}

/* Responsive Design - Mobile First Approach */

/* Tablet */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .hero-text, .hero-image {
        flex-basis: 100%;
    }
    .hero-text {
        text-align: center;
    }
    .hero-image {
        margin-top: 30px;
        text-align: center;
    }
    .hero-image img {
        max-width: 80%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    h2 {
        font-size: 1.8rem;
    }

    header .container {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        margin-top: 15px;
        margin-bottom: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .nav-cta {
        display: block;
        margin: 10px auto 0 auto;
        width: fit-content;
    }

    .hero-section {
        padding: 50px 0;
    }

    .steps-container,
    .features-grid,
    .testimonials-grid {
        grid-template-columns: 1fr; /* Stack on mobile */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-info, .footer-social {
        flex-basis: 100%;
    }
}

/* Section Dividers - Example */
.how-it-works-section,
.features-section,
.testimonials-section {
    border-bottom: 1px solid #eee;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Styles for new pages (Services & About) */
.page-hero {
    background-color: #FF6B35; /* Orange background for inner page heroes */
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    color: white;
    font-size: 2.5rem;
}

.page-hero p {
    color: #f0f0f0;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 10px auto 0 auto;
}

.service-categories-section, 
.pricing-packages-section, 
.process-timeline-section,
.company-story-mission-section,
.team-section,
.values-approach-section,
.company-stats-section,
.why-choose-us-section,
.cta-section {
    padding: 60px 0;
}

.pricing-packages-section .step p.price {
    font-size: 1.2rem;
    color: #FF6B35;
    margin-top: 10px;
}

.process-timeline-section .timeline {
    list-style: none;
    padding-right: 0; /* RTL adjustment */
    position: relative;
}

.process-timeline-section .timeline li {
    padding: 10px 0 10px 20px;
    margin-bottom: 15px;
    border-right: 3px solid #FF8C42; /* RTL: border-right */
    position: relative;
    padding-right: 30px; /* RTL adjustment */
}

.process-timeline-section .timeline li::before {
    content: '';
    position: absolute;
    top: 15px;
    right: -9px; /* RTL adjustment */
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: #FF8C42;
    border: 2px solid white;
}

.cta-section {
    background-color: #f9f9f9;
    text-align: center;
}

.cta-section h2 {
    margin-bottom: 0.8em;
}

/* About Page Specific Styles */
.story-mission-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.story-text {
    flex-basis: 60%;
}

.story-image {
    flex-basis: 40%;
}

.story-image img {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.team-section .testimonial-card p.team-bio {
    font-size: 0.9rem;
    color: #555;
    min-height: 60px; /* Ensure consistent card height */
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.value-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.value-item h3 {
    color: #FF6B35;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item {
    background-color: #FF8C42;
    color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
}

.stat-item .stat-label {
    font-size: 1rem;
}

.why-choose-us-section ul {
    list-style: none;
    padding-right: 0; /* RTL adjustment */
}

.why-choose-us-section ul li {
    padding: 8px 0 8px 20px;
    position: relative;
    padding-right: 30px; /* RTL adjustment */
}

.why-choose-us-section ul li::before {
    content: '✔';
    color: #FF6B35;
    position: absolute;
    right: 0; /* RTL adjustment */
    top: 8px;
    font-weight: bold;
}

/* Ensure responsive adjustments for new elements if any */
@media (max-width: 768px) {
    .page-hero h1 {
        font-size: 2rem;
    }
    .story-mission-content {
        flex-direction: column;
    }
    .story-text, .story-image {
        flex-basis: 100%;
    }
    .story-image {
        margin-top: 20px;
    }
    .process-timeline-section .timeline li,
    .why-choose-us-section ul li {
        padding-right: 20px; /* Adjust padding for smaller screens */
    }

    .process-timeline-section .timeline li::before {
        right: -7px; /* Adjust position for smaller screens */
    }

    .why-choose-us-section ul li::before {
        right: 0;
    }
}
