/* ===========================
   Alluvi - Main Stylesheet
   =========================== */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* === CSS Variables === */
:root {
    --primary: #E07A5F;
    --primary-dark: #c4654c;
    --secondary: #0B2533;
    --secondary-light: #133a50;
    --bg-light: #F5F0EB;
    --bg-cream: #FAF7F4;
    --white: #FFFFFF;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --font-family: 'Tajawal', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 16px;
    --radius-sm: 8px;
}

/* === Reset & Base === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.8;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    transition: var(--transition);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.header.scrolled {
    background: var(--secondary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header.scrolled .header__container {
    padding: 10px 30px;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo-img {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.header__logo svg,
.header__logo-svg {
    height: 45px;
    width: auto;
}

/* === DESKTOP NAVIGATION === */
.desktop-nav {
    display: none;
}

@media (min-width: 1024px) {
    .desktop-nav {
        display: block;
        flex: 1;
        display: flex;
        justify-content: center;
    }

    .header__menu-btn {
        display: none;
    }

    .desktop-nav__list {
        display: flex;
        align-items: center;
        gap: 0;
    }

    .desktop-nav__item {
        position: relative;
    }

    .desktop-nav__link {
        display: flex;
        align-items: center;
        gap: 5px;
        padding: 10px 18px;
        color: var(--white);
        font-size: 0.95rem;
        font-weight: 600;
        white-space: nowrap;
        transition: var(--transition);
    }

    .desktop-nav__link:hover {
        color: var(--primary);
    }

    .desktop-nav__arrow {
        transition: var(--transition);
        opacity: 0.7;
    }

    .desktop-nav__item--dropdown:hover .desktop-nav__arrow {
        transform: rotate(180deg);
        opacity: 1;
    }

    /* Dropdown Menu */
    .desktop-nav__dropdown {
        position: absolute;
        top: 100%;
        right: 0;
        min-width: 220px;
        background: var(--secondary);
        border-radius: 0 0 var(--radius-sm) var(--radius-sm);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        padding: 8px 0;
        border-top: 2px solid var(--primary);
    }

    .desktop-nav__item--dropdown:hover .desktop-nav__dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .desktop-nav__dropdown li a {
        display: block;
        padding: 10px 25px;
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.9rem;
        font-weight: 500;
        transition: var(--transition);
    }

    .desktop-nav__dropdown li a:hover {
        color: var(--primary);
        background: rgba(255, 255, 255, 0.05);
        padding-right: 30px;
    }
}

/* === HAMBURGER (Mobile) === */
.header__menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1002;
}

.header__menu-btn span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.header__menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.header__menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.header__menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === SIDE MENU === */
.side-menu {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: var(--secondary);
    z-index: 1001;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 100px 40px 40px;
    overflow-y: auto;
}

.side-menu.active {
    right: 0;
}

.side-menu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.side-menu__overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-menu__nav li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-menu__nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 500;
}

.side-menu__nav li a:hover {
    color: var(--primary);
}

.side-menu__nav .submenu-toggle {
    cursor: pointer;
}

.side-menu__nav .submenu-toggle .arrow {
    font-size: 0.7rem;
    transition: var(--transition);
}

.side-menu__nav .submenu-toggle.open .arrow {
    transform: rotate(180deg);
}

.side-menu__submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-right: 20px;
}

.side-menu__submenu.open {
    max-height: 200px;
}

.side-menu__submenu li a {
    padding: 10px 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.side-menu__submenu li a:hover {
    color: var(--primary);
}

/* === HERO === */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(11, 37, 51, 0.6) 0%,
            rgba(11, 37, 51, 0.75) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero__title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero__subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 35px;
    opacity: 0.9;
    background: rgba(11, 37, 51, 0.5);
    display: inline-block;
    padding: 8px 25px;
    border-radius: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn--primary {
    background: var(--white);
    color: var(--secondary);
}

.btn--primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.4);
}

.btn--outline {
    background: transparent;
    border-color: var(--secondary);
    color: var(--secondary);
}

.btn--outline:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn__icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn--primary:hover .btn__icon {
    background: var(--white);
    color: var(--primary);
}

/* === ABOUT === */
.about {
    padding: 100px 0 60px;
    text-align: center;
    background: var(--bg-cream);
}

.about__label {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 8px;
}

.about__subtitle {
    font-size: 1.2rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 25px;
}

.about__text {
    max-width: 750px;
    margin: 0 auto 30px;
    color: var(--text-light);
    font-size: 1rem;
    line-height: 2;
}

/* === STATS === */
.stats {
    background: var(--secondary);
    padding: 60px 0;
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.stats__card {
    background: var(--secondary-light);
    border-radius: var(--radius);
    padding: 35px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.stats__number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    direction: ltr;
}

.stats__number .suffix {
    font-size: 1.2rem;
}

.stats__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.stats__desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* === SERVICES === */
.services {
    padding: 80px 0;
    background: var(--bg-cream);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 50px;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.services__card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 380px;
    cursor: pointer;
}

.services__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.services__card:hover img {
    transform: scale(1.08);
}

.services__card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top,
            rgba(11, 37, 51, 0.85) 0%,
            transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 50%;
}

.services__card-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-decoration: underline;
    text-decoration-color: var(--primary);
    text-underline-offset: 5px;
}

.services__card-arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1rem;
    transition: var(--transition);
    opacity: 0.8;
}

.services__card:hover .services__card-arrow {
    background: var(--primary);
    color: var(--white);
    opacity: 1;
}

.services__more {
    text-align: center;
}

/* === FEATURES === */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.features__card {
    background: var(--bg-cream);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.features__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.features__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.features__icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
}

.features__card-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 12px;
}

.features__card-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* === TESTIMONIALS === */
.testimonials {
    padding: 80px 0;
    background: var(--bg-cream);
    overflow: hidden;
}

.testimonials__header {
    text-align: center;
    margin-bottom: 50px;
}

.testimonials__header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
}

.testimonials__header .sub-title {
    font-size: 1.1rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 15px;
}

.testimonials__header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.9;
}

.testimonials__slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
}

.testimonials__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials__slide {
    min-width: 100%;
    padding: 0 20px;
}

.testimonials__card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.testimonials__quote-icon {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 15px;
    line-height: 1;
}

.testimonials__text {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonials__author {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 5px;
}

.testimonials__role {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.testimonials__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.testimonials__btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    background: transparent;
    color: var(--secondary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials__btn:hover {
    background: var(--secondary);
    color: var(--white);
}

.testimonials__dots {
    display: flex;
    gap: 8px;
}

.testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(11, 37, 51, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.testimonials__dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 5px;
}

/* === FOOTER === */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer__top {
    text-align: center;
    margin-bottom: 50px;
}

.footer__logo {
    margin-bottom: 20px;
}

.footer__logo img {
    height: 50px;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

.footer__logo svg {
    height: 50px;
    width: auto;
    margin: 0 auto;
}

.footer__cta {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--white);
}

.footer__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-family);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.footer__cta-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__column h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer__column ul li {
    margin-bottom: 10px;
}

.footer__column ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer__column ul li a:hover {
    color: var(--primary);
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer__contact-item i {
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
    font-size: 1rem;
}

.footer__social a:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.footer__bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* === SCROLL TO TOP === */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 4px 15px rgba(224, 122, 95, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(224, 122, 95, 0.5);
}

/* Force mask mobile burger menu on desktop (User Request) */
@media (min-width: 1024px) {
    .header__menu-btn {
        display: none !important;
    }
}