:root {
    --brand-green: #0f8b6d;
    --brand-emerald: #13a17b;
    --brand-gold: #d4a017;
    --brand-red: #c94c4c;
    --brand-blue: #2f80ed;
    --brand-sand: #fff6ea;
    --brand-cream: #fffdf9;
    --brand-dark: #16332f;
    --text-muted: #5d6765;
    --white: #ffffff;
    --shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: Tahoma, Arial, sans-serif;
    background: linear-gradient(180deg, #fffdf9 0%, #fff8ef 100%);
    color: var(--brand-dark);
}

    body.rtl {
        direction: rtl;
        text-align: right;
    }

.topbar {
    background: linear-gradient(90deg, #0b5d56, #0f8b6d, #13a17b);
    color: white;
    font-size: 0.95rem;
    padding: 0.7rem 0;
}

.topbar-text,
.language-switcher a,
.language-switcher span {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

    .language-switcher a:hover {
        color: #ffe08a;
    }

.main-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(212, 160, 23, 0.2);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--brand-green) !important;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand-green), var(--brand-blue));
    color: white;
    box-shadow: var(--shadow-soft);
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 700;
    color: var(--brand-dark) !important;
}

    .nav-link:hover {
        color: var(--brand-green) !important;
    }

.btn-brand {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-blue));
    color: white;
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

    .btn-brand:hover {
        color: white;
        transform: translateY(-1px);
    }

.btn-outline-brand,
.btn-light-outline {
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
}

.btn-outline-brand {
    border: 2px solid var(--brand-gold);
    color: var(--brand-gold);
    background: white;
}

.btn-light-outline {
    border: 2px solid rgba(255,255,255,0.85);
    color: white;
    background: transparent;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15,139,109,0.95), rgba(47,128,237,0.88)), url('/images/moroccan-pattern.png') center/cover no-repeat;
    color: white;
    padding: 6rem 0 5rem;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 223, 140, 0.35), transparent 28%), radial-gradient(circle at bottom left, rgba(201, 76, 76, 0.18), transparent 25%);
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
    text-shadow: 0 4px 18px rgba(0,0,0,0.15);
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 680px;
    color: rgba(255,255,255,0.95);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-card,
.service-shortcut,
.info-card,
.service-card,
.step-card,
.pattern-card,
.cta-box,
.moroccan-panel {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.stat-card {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

    .stat-card strong {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .stat-card span {
        font-size: 0.92rem;
        color: rgba(255,255,255,0.88);
    }

.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
}

.hero-image {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center calc(50% - 120px);
    border-radius: 36px;
    border: 6px solid rgba(255,255,255,0.18);
    display: block;
    box-shadow: var(--shadow-soft);
}

.hero-image-caption {
    background: linear-gradient(135deg, #fffefb, #fff4da);
    color: var(--brand-dark);
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(212, 160, 23, 0.28);
    border-radius: 22px;
    box-shadow: var(--shadow-soft);
}

    .hero-image-caption h5 {
        margin-bottom: 0.55rem;
        font-weight: 800;
        color: var(--brand-green);
    }

    .hero-image-caption p {
        margin-bottom: 0;
        color: var(--text-muted);
        line-height: 1.7;
    }

.quick-services-section,
.services-section,
.how-section {
    padding: 5rem 0;
}

.why-section {
    padding: 4rem 0 5rem;
    background: linear-gradient(180deg, #fffefb, var(--brand-sand));
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

    .section-heading h2 {
        font-size: 2.4rem;
        font-weight: 900;
        margin-bottom: 0.8rem;
        color: var(--brand-green);
    }

    .section-heading p {
        color: var(--text-muted);
        font-size: 1.05rem;
    }

.service-shortcut {
    background: linear-gradient(180deg, #ffffff, #fff8ef);
    padding: 1.5rem 1rem;
    text-align: center;
    height: 100%;
    border: 1px solid rgba(15,139,109,0.1);
}

    .service-shortcut span {
        font-size: 2.1rem;
        display: block;
        margin-bottom: 0.8rem;
    }

    .service-shortcut h6 {
        margin: 0;
        font-weight: 800;
    }

.moroccan-panel {
    background: white;
    padding: 2rem;
    border-top: 8px solid var(--brand-gold);
}

.feature-list {
    padding-left: 1.2rem;
    line-height: 2;
}

body.rtl .feature-list {
    padding-left: 0;
    padding-right: 1.2rem;
}

.info-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-card,
.service-card,
.step-card {
    background: linear-gradient(180deg, #ffffff, #fffaf2);
    padding: 1.6rem;
    height: 100%;
    border: 1px solid rgba(15,139,109,0.1);
}

    .service-card h4,
    .info-card h5,
    .step-card h5 {
        font-weight: 900;
        margin-bottom: 0.8rem;
        color: var(--brand-green);
    }

    .service-card p,
    .info-card p,
    .step-card p,
    .moroccan-panel p,
    .footer-section p {
        color: var(--text-muted);
        line-height: 1.8;
    }

.step-card {
    text-align: center;
}

    .step-card span {
        width: 58px;
        height: 58px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        background: linear-gradient(135deg, #fff3cd, #ffd36b);
        color: var(--brand-dark);
        font-size: 1.3rem;
        font-weight: 900;
        margin-bottom: 1rem;
    }

.cta-section {
    padding: 0 0 5rem;
}

.cta-box {
    background: linear-gradient(135deg, var(--brand-green), var(--brand-blue), var(--brand-emerald));
    color: white;
    padding: 3rem 2rem;
}

    .cta-box p {
        color: rgba(255,255,255,0.92);
        max-width: 760px;
        margin: 0.8rem auto 1.5rem;
    }

.footer-section {
    background: linear-gradient(135deg, #102926, #163f39);
    color: #effaf7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .footer-links li {
        margin-bottom: 0.55rem;
    }

    .footer-links a {
        color: #effaf7;
        text-decoration: none;
    }

        .footer-links a:hover {
            color: #ffe08a;
        }

.footer-bottom {
    font-weight: 600;
}

.powered-by {
    color: #ffe08a;
    font-size: 0.98rem;
    font-weight: 600;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1rem;
}

@media (max-width: 991.98px) {
    .hero-image {
        height: 380px;
    }

    .hero-stats,
    .info-card-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 4.5rem 0 4rem;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .pattern-card {
        position: static;
        margin-top: 1rem;
    }
}




.hero-image {
    width: 100%;
    height: 450px; /* Set a fixed height for the frame */
    object-fit: cover;
    object-position: top; /* This forces the top of the photo to be the priority */
    border-radius: 20px;
}

.pattern-card {
    margin-top: -60px; /* Pulls the card UP to overlap the bottom of the photo slightly */
    position: relative;
    z-index: 2;
    background: #fffdf5;
    padding: 20px;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}



@media (max-width: 991.98px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
}