/* ===== ROOT & VARIABLES ===== */
:root {
    --gold: #b08d57;
    --gold-light: #d4b87a;
    --gold-dark: #8a6d3b;
    --sand: #f5f0e8;
    --sand-light: #faf7f2;
    --dark: #1a1612;
    --dark-soft: #2c2520;
    --text: #3d3429;
    --text-light: #7a6f63;
    --white: #ffffff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(26,22,18,0.08);
    --shadow-lg: 0 12px 48px rgba(26,22,18,0.12);
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;
    background: var(--sand-light);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }



/* ===== NAVBAR ===== */
#navbar {
    position: fixed; top: 0; right: 0; left: 0; z-index: 1000;
    padding: 16px 0; transition: var(--transition);
}
#navbar.scrolled {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06); padding: 10px 0;
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img {
    width: 48px; height: 48px; object-fit: contain;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}
#navbar.scrolled .nav-logo img { filter: none; }
.nav-logo span {
    font-weight: 700; font-size: 1.1rem; color: var(--white);
    transition: var(--transition);
}
#navbar.scrolled .nav-logo span { color: var(--gold-dark); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    padding: 8px 16px; border-radius: 8px; font-size: 0.9rem;
    font-weight: 500; color: rgba(255,255,255,0.85);
    transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
    color: var(--white); background: rgba(255,255,255,0.15);
}
#navbar.scrolled .nav-links a { color: var(--text); }
#navbar.scrolled .nav-links a:hover, #navbar.scrolled .nav-links a.active {
    color: var(--gold-dark); background: var(--sand);
}
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span {
    width: 24px; height: 2px; background: var(--white);
    border-radius: 2px; transition: var(--transition);
}
#navbar.scrolled .nav-toggle span { background: var(--text); }

/* ===== HERO ===== */
#hero {
    position: relative; min-height: 100vh; display: flex;
    align-items: center; justify-content: center; overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(26,22,18,0.6) 0%, rgba(26,22,18,0.4) 50%, rgba(26,22,18,0.7) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    color: var(--white); padding: 0 24px;
}
.hero-logo {
    width: 140px; height: 140px; object-fit: contain;
    margin: 0 auto 24px;
    filter: brightness(0) invert(1);
    animation: fadeInUp 1s ease 0.3s both;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800;
    margin-bottom: 12px; animation: fadeInUp 1s ease 0.5s both;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem); opacity: 0.9;
    font-weight: 300; animation: fadeInUp 1s ease 0.7s both;
    margin-bottom: 32px;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fadeInUp 1s ease 0.9s both; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px; font-weight: 600;
    font-size: 0.95rem; transition: var(--transition); cursor: pointer;
}
.btn-primary { background: var(--gold); color: var(--white); }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(176,141,87,0.3); }
.btn-outline { border: 2px solid rgba(255,255,255,0.5); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--dark); }
.btn-sm { padding: 10px 24px; font-size: 0.85rem; }
.hero-scroll {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 2; color: var(--white); text-align: center;
    animation: bounceDown 2s ease infinite;
}
.hero-scroll span { display: block; font-size: 0.8rem; margin-bottom: 4px; opacity: 0.7; }
@keyframes bounceDown { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block; padding: 6px 20px; border-radius: 50px;
    background: linear-gradient(135deg, rgba(176,141,87,0.1), rgba(176,141,87,0.05));
    color: var(--gold-dark); font-size: 0.85rem; font-weight: 600;
    margin-bottom: 16px; border: 1px solid rgba(176,141,87,0.15);
}
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--dark); margin-bottom: 16px; }
.section-line { width: 60px; height: 3px; background: var(--gold); margin: 0 auto; border-radius: 3px; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { margin-bottom: 20px; font-size: 1.05rem; color: var(--text-light); line-height: 2; }
.about-text strong { color: var(--gold-dark); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.stat-item { text-align: center; padding: 20px 12px; background: var(--white); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.stat-icon { font-size: 1.4rem; color: var(--gold); margin-bottom: 8px; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--dark); }
.stat-label { font-size: 0.8rem; color: var(--text-light); margin-top: 4px; }
.about-image { position: relative; border-radius: var(--radius); overflow: hidden; }
.about-image img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); }
.about-image-accent {
    position: absolute; top: -12px; right: -12px; bottom: -12px; left: -12px;
    border: 2px solid var(--gold-light); border-radius: 20px; z-index: -1; opacity: 0.3;
}

/* ===== CHALETS ===== */
.chalets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.chalet-card {
    background: var(--sand-light); border-radius: var(--radius);
    overflow: hidden; transition: var(--transition);
    box-shadow: var(--shadow);
}
.chalet-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.chalet-image { position: relative; height: 240px; overflow: hidden; }
.chalet-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.chalet-card:hover .chalet-image img { transform: scale(1.08); }
.chalet-badge {
    position: absolute; top: 16px; right: 16px; padding: 6px 16px;
    background: var(--gold); color: var(--white); border-radius: 50px;
    font-size: 0.75rem; font-weight: 600;
}
.chalet-info { padding: 24px; }
.chalet-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.chalet-info p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 16px; }
.chalet-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chalet-features span {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: var(--white); border-radius: 8px;
    font-size: 0.75rem; color: var(--text-light);
}
.chalet-features span i { color: var(--gold); font-size: 0.7rem; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    text-align: center; padding: 40px 24px;
    background: var(--white); border-radius: var(--radius);
    transition: var(--transition); border: 1px solid rgba(176,141,87,0.08);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(176,141,87,0.2); }
.feature-icon {
    width: 72px; height: 72px; margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(176,141,87,0.12), rgba(176,141,87,0.04));
    border-radius: 20px; font-size: 1.6rem; color: var(--gold);
    transition: var(--transition);
}
.feature-card:hover .feature-icon { background: var(--gold); color: var(--white); transform: scale(1.05); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature-card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.8; }

/* ===== GALLERY ===== */
.gallery-filters { display: flex; justify-content: center; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 24px; border-radius: 50px; font-size: 0.85rem;
    font-weight: 500; color: var(--text-light);
    background: var(--sand); transition: var(--transition);
    border: 1px solid transparent;
}
.filter-btn:hover { color: var(--gold-dark); border-color: var(--gold-light); }
.filter-btn.active { background: var(--gold); color: var(--white); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item {
    position: relative; border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer; aspect-ratio: 4/3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: rgba(26,22,18,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: var(--transition);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 1.4rem; }
.gallery-item.hidden { display: none; }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-content { max-width: 90vw; max-height: 85vh; }
.lightbox-content img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 8px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; color: white; font-size: 1.5rem;
    width: 48px; height: 48px; display: flex; align-items: center;
    justify-content: center; border-radius: 50%;
    background: rgba(255,255,255,0.1); transition: var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.2); }
.lightbox-close { top: 20px; left: 20px; }
.lightbox-prev { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { left: 20px; top: 50%; transform: translateY(-50%); }

/* ===== LOCATION ===== */
.location-content { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.location-info { display: flex; flex-direction: column; gap: 16px; }
.location-card {
    padding: 24px; background: var(--white); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); transition: var(--transition);
}
.location-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.location-icon { font-size: 1.3rem; color: var(--gold); margin-bottom: 10px; }
.location-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.location-card p { font-size: 0.88rem; color: var(--text-light); }
.location-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 400px; }
.location-map iframe { width: 100%; height: 100%; min-height: 400px; }

/* ===== CONTACT ===== */
.contact-info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.contact-card {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 36px 24px;
    background: var(--sand-light); border-radius: var(--radius);
    box-shadow: var(--shadow); transition: var(--transition);
    border: 1px solid transparent;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--gold-light); }
.contact-card-icon {
    width: 64px; height: 64px; display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; border-radius: 50%; margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(176,141,87,0.12), rgba(176,141,87,0.04));
    color: var(--gold);
}
.whatsapp-card:hover .contact-card-icon { background: #25d366; color: white; }
.instagram-card:hover .contact-card-icon { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }
.contact-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.contact-card p { font-size: 0.88rem; color: var(--text-light); }

/* ===== FOOTER ===== */
#footer { background: var(--dark); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { width: 80px; height: 80px; object-fit: contain; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; }
.footer-links h4, .footer-social h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-links a { display: block; padding: 4px 0; font-size: 0.88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--gold-light); padding-right: 8px; }
.social-icons { display: flex; gap: 12px; }
.social-icons a {
    width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,0.08); font-size: 1rem;
    color: rgba(255,255,255,0.7); transition: var(--transition);
}
.social-icons a:hover { background: var(--gold); color: var(--white); transform: translateY(-3px); }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.8rem; }

/* ===== WHATSAPP FAB ===== */
.whatsapp-fab {
    position: fixed; bottom: 24px; left: 24px; z-index: 900;
    width: 56px; height: 56px; border-radius: 50%;
    background: #25d366; color: white; font-size: 1.6rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    animation: fabPulse 2s ease infinite;
    transition: var(--transition);
}
.whatsapp-fab:hover { transform: scale(1.1); }
@keyframes fabPulse { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6); } }

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed; bottom: 90px; left: 24px; z-index: 900;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--gold); color: var(--white); font-size: 0.9rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(176,141,87,0.3);
    opacity: 0; visibility: hidden; transform: translateY(20px);
    transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold-dark); transform: translateY(-3px); }

/* ===== ANIMATIONS ===== */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate].animated { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .chalets-grid, .features-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
    .location-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background: var(--white); flex-direction: column; padding: 80px 24px 24px;
        box-shadow: -4px 0 30px rgba(0,0,0,0.1); transition: var(--transition);
        align-items: flex-start; gap: 4px;
    }
    .nav-links.open { right: 0; }
    .nav-links a { color: var(--text) !important; width: 100%; padding: 12px 16px; }
    .nav-links a:hover, .nav-links a.active { background: var(--sand) !important; color: var(--gold-dark) !important; }
    .nav-toggle { display: flex; }
    .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .nav-toggle.active span:nth-child(2) { opacity: 0; }
    .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-image { order: -1; }
    .about-image img { height: 280px; }
    .about-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .chalets-grid, .features-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .contact-info-cards { grid-template-columns: 1fr; max-width: 400px; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .section { padding: 64px 0; }
    .hero-logo { width: 100px; height: 100px; }
    .location-info { flex-direction: row; flex-wrap: wrap; }
    .location-card { flex: 1; min-width: 140px; }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-number { font-size: 1.5rem; }
    .hero-btns { flex-direction: column; align-items: center; }
    .btn { width: 100%; justify-content: center; max-width: 260px; }
}
