/* ===== CSS Variables ===== */
:root {
    --color-primary: #C88A3D;
    --color-primary-light: #E6B873;
    --color-white: #FFFFFF;
    --color-dark: #0B0B0B;
    --color-navy: #0A1F33;
    --color-gray: #2F2F2F;
    --color-text: #2F2F2F;
    --color-text-light: #666666;
    
    --font-arabic: 'Cairo', sans-serif;
    --font-english: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 30px rgba(200, 138, 61, 0.2);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-arabic);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-navy);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 70px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-white);
    font-family: var(--font-arabic);
}

.nav__menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    color: var(--color-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__lang {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.nav__lang-mobile {
    display: none;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--color-white);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-arabic);
}

.lang-btn:hover {
    background: rgba(200, 138, 61, 0.2);
    border-color: var(--color-primary);
}

.lang-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
    border-radius: 2px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-dark) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    margin-bottom: 0;
    z-index: 1;
}

.hero__container {
    position: relative;
    z-index: 2;
}

.hero__content {
    text-align: center;
    color: var(--color-white);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.hero__title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero__title-main {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero__title-sub {
    font-size: 2rem;
    font-weight: 400;
    color: var(--color-white);
    letter-spacing: 1px;
}

.hero__description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.hero__buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero__wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    background: var(--color-white);
    border-radius: 50% 50% 0 0;
    animation: wave 10s linear infinite;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-arabic);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--secondary {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--secondary:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
    transform: translateY(-2px);
}

/* ===== Section Headers ===== */
.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section__title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section__divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to left, var(--color-primary), var(--color-primary-light));
    margin: 1.5rem auto;
    border-radius: 2px;
}

.section__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-top: 1rem;
}

/* ===== About Section ===== */
.about {
    background-color: #f8f9fa;
    position: relative;
    z-index: 2;
}

.about__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about__paragraph {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.stat__item {
    text-align: center;
    padding: 1.5rem;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat__number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.stat__label {
    font-size: 1rem;
    color: var(--color-text-light);
}

.about__image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 350px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-dark) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.about__image-placeholder svg {
    width: 80%;
    height: 80%;
}

/* ===== Services Section ===== */
.services {
    background-color: var(--color-white);
    position: relative;
    z-index: 2;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service__card {
    background: var(--color-white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--color-primary);
    text-align: center;
}

.service__card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 138, 61, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.service__card:hover .service__icon {
    background: var(--color-primary);
    color: var(--color-white);
    transform: scale(1.1);
}

.service__icon svg {
    width: 35px;
    height: 35px;
}

.service__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.service__description {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ===== Why Us Section ===== */
.why-us {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-dark) 100%);
    color: var(--color-white);
    position: relative;
    z-index: 2;
}

.why-us .section__title {
    color: var(--color-primary);
}

.why-us .section__subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.why-us__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.why-us__item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(200, 138, 61, 0.2);
    transition: var(--transition);
}

.why-us__item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: translateY(-5px);
}

.why-us__number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    opacity: 0.3;
    font-family: var(--font-english);
}

.why-us__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.why-us__description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

/* ===== Contact Section ===== */
.contact {
    background-color: #f8f9fa;
    position: relative;
    z-index: 2;
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact__item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact__item:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-hover);
}

.contact__icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 138, 61, 0.1);
    border-radius: 50%;
    color: var(--color-primary);
}

.contact__icon svg {
    width: 25px;
    height: 25px;
}

.contact__details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact__label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    text-align: right;
}

.contact__value {
    display: block;
    font-size: 1rem;
    color: var(--color-primary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
    width: 100%;
}

.contact__value:hover {
    color: var(--color-navy);
}

/* Phone numbers - always LTR */
.contact__value[href^="tel:"],
.footer__link[href^="tel:"] {
    direction: ltr;
    text-align: right;
    display: block;
    unicode-bidi: embed;
    width: 100%;
    margin-bottom: 0.5rem;
}

.contact__value-small {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 0.25rem;
}

.contact__map {
    height: 100%;
    min-height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact__map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 3rem 0 1.5rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer__logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer__text {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.footer__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer__link:hover {
    color: var(--color-primary);
    padding-right: 5px;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: var(--color-navy);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    }

    .nav__menu.show {
        right: 0;
    }

    /* Hide language buttons in header on mobile */
    .header > .nav > .nav__lang {
        display: none;
    }
    
    /* Show language buttons in sidebar on mobile */
    .nav__lang-mobile {
        display: block;
    }
    
    .nav__lang-mobile .nav__lang {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .nav__lang-mobile .lang-btn {
        flex: 1;
    }
    
    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero__title-main {
        font-size: 2.5rem;
    }

    .hero__title-sub {
        font-size: 1.5rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .about__content {
        grid-template-columns: 1fr;
    }

    .about__stats {
        grid-template-columns: 1fr;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .section__title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .nav {
        padding: 1rem;
    }

    .logo-text {
        font-size: 1rem;
    }

    .hero__title-main {
        font-size: 2rem;
    }

    .hero__title-sub {
        font-size: 1.2rem;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .why-us__content {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 80px 0;
    }
}

/* ===== Scroll Animation ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 1;
    transform: translateY(0);
}

/* ===== LTR Support for English ===== */
body.lang-en,
html[dir="ltr"] {
    direction: ltr;
}

body.lang-en .nav__link::after,
html[dir="ltr"] .nav__link::after {
    right: auto;
    left: 0;
}

body.lang-en .contact__label,
html[dir="ltr"] .contact__label {
    text-align: left;
}

body.lang-en .section__title,
html[dir="ltr"] .section__title {
    text-align: center;
}

body.lang-en .section__divider,
html[dir="ltr"] .section__divider {
    margin-left: auto;
    margin-right: auto;
}

body.lang-en .about__content,
html[dir="ltr"] .about__content {
    direction: ltr;
}

body.lang-en .contact__item:hover,
html[dir="ltr"] .contact__item:hover {
    transform: translateX(5px);
}

body.lang-en .footer__link:hover,
html[dir="ltr"] .footer__link:hover {
    padding-right: 0;
    padding-left: 5px;
}
