/* 
    Spa - Premium White & Gold Design System (Arabic RTL)
*/

@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Cairo:wght@300;400;600;700;900&display=swap');

:root {
    --primary: #CDA156; /* Rich Gold */
    --primary-dark: #A67C00;
    --bg-white: #FFFFFF;
    --bg-light: #FBFBFC;
    --text-dark: #1A1A1A;
    --text-muted: #666666;
    --border-light: #EEEEEE;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-ar: 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-ar);
    line-height: 1.6;
    overflow-x: hidden;
    direction: rtl; /* RTL Support */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Header / Navigation (Clean & Smooth) --- */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1400px;
    z-index: 10000;
    padding: 0.8rem 2rem;
    background: #000000;
    backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1rem;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links li {
    position: relative;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 600;
    color: white !important;
    padding: 0.6rem 1.2rem;
    letter-spacing: 0.2px;
    opacity: 0.8;
    border-radius: 100px; /* Bubble style */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-links li a:hover, 
.nav-links li a.active {
    background: rgba(255, 255, 255, 0.1); /* Subtle bubble bg */
    color: var(--primary) !important;
    opacity: 1;
    transform: translateY(-2px);
}

/* Dropdown Styles (Mini Navbar Style) */
.dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0.98);
    width: max-content;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px; /* Matching pill shape */
    padding: 0.5rem 1.5rem;
    opacity: 0;
    visibility: hidden;
    display: flex; /* Horizontal Layout */
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    z-index: 11000;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    opacity: 0.8;
    border-radius: 50px;
    white-space: nowrap;
}

.dropdown a:hover {
    background: var(--primary);
    color: white;
    opacity: 1;
}

.cta-btn {
    background: var(--primary);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 100px; /* Advanced Bubble Shape */
    font-weight: 800;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(205, 161, 86, 0.4); /* Gold Glow */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 15px 40px rgba(205, 161, 86, 0.6);
    background: #E5B74B; /* Brighter Gold */
}

.burger-menu {
    display: none;
    cursor: pointer;
    font-size: 1.6rem;
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px;
    background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('https://images.unsplash.com/photo-1544161515-4ab6ce6db874?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

/* --- Services Grid --- */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card-img {
    height: 220px;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 1.8rem;
    text-align: right;
}

.card-body h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.card-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    min-height: 50px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.price-tag {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
}

.book-link {
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.book-link:hover {
    color: var(--primary);
}

/* --- Mobile Menu Styles (Improved Smoothness) --- */
@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 20px;
        right: -110%;
        width: calc(100% - 40px);
        height: auto;
        min-height: 70vh;
        background: #000000;
        backdrop-filter: blur(30px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 40px; /* Advanced Card Shape */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.2rem;
        transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 20000;
        box-shadow: 0 50px 120px rgba(0,0,0,0.8);
        padding: 4rem 2rem;
    }

    .nav-links.active {
        right: 20px !important;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: 0.4s ease forwards;
        width: 100%;
        text-align: center;
    }
    
    /* Mobile Dropdown (Simplified) */
    .nav-links .dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #111111;
        display: none; /* Toggle with JS later if needed, or just list them */
    }
    
    .nav-links li.open .dropdown {
        display: flex;
        flex-direction: column;
        padding: 0.5rem 0;
        background: #111111;
        border-radius: 20px;
        margin-top: 10px;
    }

    .nav-links li.open .dropdown a {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for menu items */
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }

    .nav-links li a {
        font-size: 1.8rem;
        font-weight: 800;
        display: block;
        padding: 0.5rem;
        color: white !important;
        letter-spacing: -1px;
    }

    .nav-links li a::after {
        content: '';
        display: block;
        width: 0;
        height: 3px;
        background: var(--primary);
        margin: 3px auto;
        transition: width 0.3s ease;
    }

    .nav-links li a:hover::after,
    .nav-links li a.active::after {
        width: 40px;
    }

    .burger-menu {
        display: block;
        z-index: 20001;
        color: white;
    }

    nav .cta-btn {
        display: none;
    }

    .mobile-cta {
        display: inline-block !important;
        margin-top: 1.5rem;
        background: var(--primary);
        color: white !important;
        padding: 1rem 3.5rem;
        border-radius: 50px;
        box-shadow: 0 10px 20px rgba(197, 160, 89, 0.2);
    }
}

.mobile-cta {
    display: none;
}

/* --- Footer --- */
footer {
    background: #060606;
    color: white;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 30px;
    text-align: right;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.footer-logo span {
    color: white;
}

.footer-text {
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: #888;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #888;
    margin-bottom: 0.8rem;
    font-size: 0.85rem;
}

.contact-info li i {
    color: var(--primary);
    margin-top: 5px;
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #555;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        text-align: center;
        gap: 3rem;
    }
    .footer-socials {
        justify-content: center;
    }
    .footer-links h4::after {
        right: 50%;
        transform: translateX(50%);
    }
    .footer-links ul li a {
        justify-content: center;
    }
    .contact-info li {
        justify-content: center;
    }
}

/* --- Stats Section --- */
.stats-section {
    background: #111;
    color: white;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: #999;
}

/* --- Testimonials Section (Refined) --- */
.testimonials {
    background: var(--bg-light);
    padding: 100px 0 80px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Smaller Cards */
    gap: 5rem 2rem;
}

.review-card {
    background: white;
    padding: 3.5rem 1.5rem 2rem; /* Enough top padding for the circle top */
    border-radius: 40px; /* Very rounded clean bubble */
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.02);
    transition: var(--transition);
    position: relative;
    margin-top: 60px; /* Space for the avatar */
    min-height: 280px;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.review-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid white;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    overflow: hidden; /* Added to keep image circular */
    background: #EEE;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Added to center and crop image correctly */
}

.stars {
    color: #F1C40F;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.review-text {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #666;
}

.review-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

@media (max-width: 768px) {
    .review-card {
        border-radius: 30px; /* Keep standard round on mobile for better text fit */
        min-height: auto;
    }
}

/* --- Hero Slider --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    margin-top: -80px; /* Adjust for fixed navbar transition */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
}

.slide-content {
    position: relative;
    z-index: 2;
    color: white;
    max-width: 800px;
    padding-right: 50px;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 800;
}

.slide-content h1 span {
    color: var(--primary);
}

.slide-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 40px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        margin-top: 0; /* Removing pullback on mobile */
    }
    .slide-content {
        padding: 100px 20px 40px; /* Added top padding to push content below fixed nav */
        text-align: center;
    }
    .slide-content h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
}
