/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary-rose: #dbacac;
    --secondary-rose: #f4dada;
    --light-bg: #fffbfb;
    --white: #ffffff;
    --gold: #c5a059;
    --gold-hover: #b08d48;
    --text-dark: #2c2c2c;
    --text-gray: #666666;
    --black: #000000;

    --font-heading: 'Marcellus', serif;
    --font-body: 'Outfit', sans-serif;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.1);

    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.sub-title {
    display: block;
    text-transform: uppercase;
    color: var(--gold);
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary-rose);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #c99393;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
}

.btn-gold:hover {
    background-color: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit {
    background-color: var(--text-dark);
    color: var(--white);
    width: 100%;
}

.btn-submit:hover {
    background-color: var(--black);
}

.icon-btn i {
    margin-right: 8px;
}

/* =========================================
   Header & Nav
   ========================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header.scrolled {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    /* Kept for fallback or legacy */
    display: none;
}

.logo-img-wrapper {
    display: block;
    padding: 5px 0;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    /* Blends the logo background if it's not transparent */
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.header.scrolled .logo-img {
    height: 60px;
    /* Slight shrink on scroll */
}

.footer-logo-img {
    height: 60px;
    /* Slightly smaller in footer */
}

.footer-logo-text {
    align-items: flex-start;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo-text:hover {
    color: var(--white);
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list li a {
    font-size: 0.95rem;
    color: var(--text-dark);
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-list li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.mobile-menu.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin: 20px 0;
}

.mobile-nav-list li a {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    /* Subtle dark overlay for text contrast */
}

/* If the generated image is light, we need a light gradient with dark text. 
   Assuming a spa feel, it's likely bright. Let's trust the 'text-dark' but add a white fade if needed 
   Override: Roskin asked for "Soft Rose, White, Gold". 
   Let's do a soft white gradient overlay from left to right. */

.hero-overlay {
    background: linear-gradient(90deg, rgba(255, 251, 251, 0.9) 0%, rgba(255, 251, 251, 0.7) 50%, rgba(255, 251, 251, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 650px;
    padding-top: 80px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 500px;
}

/* =========================================
   Technology Section
   ========================================= */
.technology {
    background-color: var(--white);
    overflow: hidden;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tech-image-wrapper {
    position: relative;
}

.tech-image {
    width: 100%;
    border-radius: 10px;
    /* Slight rounding */
    box-shadow: var(--shadow-lg);
}

.tech-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--gold);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
}

.tech-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    margin-top: 10px;
}

.tech-content p {
    margin-bottom: 30px;
    color: var(--text-gray);
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--gold);
}

/* =========================================
   Services & Pricing Section
   ========================================= */
.services-pricing {
    background-color: var(--secondary-rose);
    background: linear-gradient(to bottom, var(--light-bg) 0%, var(--secondary-rose) 100%);
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin: 10px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    border: 1px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-rose);
}

.pricing-card.popular {
    border: 1px solid var(--gold);
    background: linear-gradient(to bottom right, #fff, #fffbf0);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--gold);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-header {
    text-align: center;
    margin-bottom: 30px;
}

.card-header i {
    font-size: 2.5rem;
    color: var(--primary-rose);
    margin-bottom: 15px;
    display: block;
}

.popular .card-header i {
    color: var(--gold);
}

.card-header h3 {
    font-size: 1.5rem;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed #eee;
}

.price-list li:last-child {
    border-bottom: none;
}

.price-list li span:first-child {
    font-weight: 500;
}

.price-list li .price {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--gold);
    font-size: 1.1rem;
}

/* =========================================
   Gallery Section
   ========================================= */
.gallery-section {
    background-color: var(--white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    opacity: 1;
}

.overlay span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

/* =========================================
   Booking Section
   ========================================= */
.booking-section {
    background-color: var(--light-bg);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.booking-info {
    padding: 60px;
    background-color: var(--primary-rose);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.booking-info h2,
.booking-info p,
.booking-info i {
    color: var(--white);
    /* Force white text on rose background */
}

.booking-info h2 {
    margin-bottom: 20px;
}

.booking-info p {
    margin-bottom: 40px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.contact-details .detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
    /* Changed from center to handle multi-line text */
}

.contact-details i {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.detail-text {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 5px;
    line-height: 1.4;
}

.map-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--white);
    font-size: 0.9rem;
    text-decoration: underline;
    opacity: 0.9;
    transition: var(--transition);
}

.map-link:hover {
    opacity: 1;
    color: var(--gold);
}

.booking-form-container {
    padding: 60px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-rose);
    box-shadow: 0 0 0 3px rgba(219, 172, 172, 0.2);
}

.form-status {
    margin-top: 15px;
    font-weight: 500;
    text-align: center;
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    /* height: 40px; handled by class */
    margin-bottom: 20px;
    /* filter: brightness(0) invert(1);Removed to show original logo colors */
}

.footer-logo p {
    color: #999;
}

.footer h3 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #ccc;
}

.footer-links ul li a:hover {
    color: var(--gold);
}

.footer-contact p {
    margin-bottom: 15px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--gold);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* =========================================
   Animations & Responsive
   ========================================= */
.fade-in-up,
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.fade-in-up.active,
.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* Responsive Media Queries */
@media (max-width: 900px) {

    .grid-2,
    .booking-wrapper {
        grid-template-columns: 1fr;
    }

    .tech-image-wrapper {
        margin-bottom: 40px;
    }

    .tech-image {
        max-height: 400px;
        object-fit: cover;
    }

    .booking-info {
        padding: 40px;
    }

    .booking-form-container {
        padding: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {

    .nav-list,
    .btn.sm-hidden {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo img {
        margin: 0 auto 20px;
    }
}

/* =========================================
   Bilingual Support
   ========================================= */
.hidden {
    display: none !important;
}

html[lang="ar"] {
    direction: rtl;
    font-family: 'Cairo', sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] .logo,
html[lang="ar"] .price,
html[lang="ar"] .sub-title {
    font-family: 'Cairo', sans-serif;
}

/* Fix spacing for RTL */
html[lang="ar"] .feature-list li i {
    margin-left: 10px;
    margin-right: 0;
}

html[lang="ar"] .icon-btn i {
    margin-left: 8px;
    margin-right: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--gold);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-btn:hover {
    background-color: var(--gold);
    color: var(--white);
}

/* RTL Specific Nav Adjustments */
html[lang="ar"] .nav-list li a::after {
    right: 0;
    left: auto;
}

html[lang="ar"] .tech-image-wrapper {
    /* If needed to flip image or badge position */
}

html[lang="ar"] .tech-badge {
    left: -20px;
    right: auto;
}

/* Media Queries Adjustment */
@media (max-width: 768px) {
    .header-right {
        gap: 15px;
    }

    .logo-img {
        height: 50px;
    }
}