@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Tajawal:wght@400;500;700&display=swap');

:root {
    /* Colors strictly from the provided Logo */
    --bg-white: #F3EBE1; /* Main logo background (Beige) */
    --bg-light: #EAE0D3; /* Slightly darker beige for sections */
    
    --text-primary: #382D20; /* Deep brown for readability against beige */
    --text-muted: #856E54;
    
    --accent: #C39656; /* Main logo gold */
    --accent-hover: #A87F47;
    
    --border-soft: #E2D1BE;

    /* Spacing & Sizes */
    --radius-md: 8px;
    --radius-lg: 16px;
    --shadow-subtle: 0 4px 20px rgba(195, 150, 86, 0.1);
    --shadow-hover: 0 10px 30px rgba(195, 150, 86, 0.25);

    /* Typography */
    --font-primary: 'IBM Plex Sans Arabic', 'Tajawal', sans-serif;

    /* Animation Constants */
    --trans-base: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100vw; width: 100%; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background-color: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.8;
    direction: rtl;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

a { text-decoration: none; color: inherit; transition: var(--trans-base); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Typography Rules */
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--text-primary); line-height: 1.3; }
p { font-weight: 400; color: var(--text-muted); }

.display-1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 24px; color: var(--accent); }
.display-2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 16px; color: var(--accent); }
.heading-3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-bottom: 12px; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.bg-light { background-color: var(--bg-light); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: center; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-6 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Navigation */
.topbar {
    background-color: var(--text-primary); color: var(--bg-white);
    text-align: center; padding: 10px 0; font-size: 0.95rem; font-weight: 500;
}
.navbar {
    background-color: rgba(243, 235, 225, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    position: sticky; top: 0; z-index: 1000; padding: 16px 0; transition: var(--trans-base);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { font-size: 1.8rem; font-weight: 700; color: var(--accent); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 1.05rem; font-weight: 500; color: var(--text-muted); position: relative; }
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -6px; right: 0; background-color: var(--accent);
    transition: var(--trans-base);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-icons { display: flex; align-items: center; gap: 24px; font-size: 1.25rem; color: var(--text-primary); }
.nav-icon { position: relative; cursor: pointer; transition: var(--trans-base); color: var(--text-muted); }
.nav-icon:hover { color: var(--accent); transform: scale(1.1); }
.cart-badge {
    position: absolute; top: -6px; right: -10px; background-color: var(--accent); color: #fff;
    font-size: 0.75rem; font-weight: 600; min-width: 20px; height: 20px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid var(--bg-white);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 30px; font-family: var(--font-primary);
    font-size: 1.05rem; font-weight: 600; cursor: pointer; border: 2px solid transparent;
    transition: var(--trans-base); outline: none; background: transparent;
    position: relative; overflow: hidden; z-index: 1;
}
.btn-primary { background-color: var(--accent); color: #fff; }
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s; z-index: -1;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); background-color: var(--accent-hover); }

.btn-outline { border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background-color: var(--accent); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-hover); }

/* Cards */
.card {
    background: var(--bg-white); border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg); overflow: hidden; transition: var(--trans-base);
    display: flex; flex-direction: column; height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--accent); }

.card-img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-light); border-bottom: 1px solid var(--border-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--trans-base); filter: brightness(0.95) contrast(1.1); }
.card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.card-title { font-size: 1.25rem; margin-bottom: 8px; color: var(--text-primary); transition: var(--trans-base); }
.card:hover .card-title { color: var(--accent); }
.card-tag { font-size: 0.8rem; font-weight: 600; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; display: block; }
.card-price { font-size: 1.3rem; font-weight: 700; color: var(--accent); margin-top: auto; padding-top: 16px; margin-bottom: 16px; }

/* Custom Badge */
.highlight-badge { background-color: var(--border-soft); color: var(--accent-hover); padding: 4px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-block; margin-bottom: 16px; border: 1px solid var(--accent); }

/* Forms */
.form-control {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border-soft);
    border-radius: var(--radius-md); font-family: var(--font-primary); font-size: 1rem;
    color: var(--text-primary); transition: var(--trans-base); background-color: var(--bg-white);
    margin-bottom: 16px;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(195, 150, 86, 0.2); }

/* Footer */
.footer { padding: 96px 0 48px; background-color: var(--text-primary); color: var(--bg-white); }
.footer-logo { font-size: 2.2rem; font-weight: 700; color: var(--accent); margin-bottom: 24px; display: block; }
.footer p { margin-bottom: 32px; color: var(--border-soft); line-height: 1.8; }
.footer h4 { color: var(--bg-white); font-size: 1.25rem; font-weight: 600; margin-bottom: 24px; }

.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a { color: var(--border-soft); font-size: 1rem; transition: var(--trans-base); width: fit-content; }
.footer-links a:hover { color: var(--accent); transform: translateX(-5px); }


/* Global Animations (Triggered by JS) */
.animate-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.animate-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating animation for hero image */
.float-anim {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 900px) {
    .menu-toggle { display: block; font-size: 1.5rem; cursor: pointer; color: var(--accent); transition: var(--trans-base); }
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        gap: 32px;
        transition: right 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
        padding: 40px;
    }
    .nav-links.active { right: 0; }
    .menu-toggle { z-index: 2001; position: relative; }
    
    .nav-links a { font-size: 1.5rem; width: 100%; text-align: center; border-bottom: 1px solid var(--border-soft); padding-bottom: 15px; }
    .nav-links a:last-child { border-bottom: none; }
    
    /* General Mobile Refinements */
    .section { padding: 48px 0; }
    .display-1 { font-size: 2.2rem !important; margin-bottom: 16px; }
    .display-2 { font-size: 1.8rem !important; margin-bottom: 12px; }
    .heading-3 { font-size: 1.3rem !important; }
    
    .container { padding: 0 20px; }
    .grid { gap: 24px; }
    
    /* Fix for "Big Box" issue */
    .card { padding: 24px !important; }
    .card-body { padding: 20px; }
    
    /* Checking out/Visa Box Fix for mobile */
    .card-form { padding: 16px !important; }
    .pay-wrap { padding: 16px !important; font-size: 0.95rem; }
    
    /* Fix for flex layouts with large gaps */
    div[style*="display: flex"] { gap: 12px !important; }
    
    .footer { padding: 48px 0; }
    .footer .container { grid-template-columns: 1fr !important; gap: 32px !important; text-align: center; }
    .footer-links { align-items: center; }
    .footer-socials { justify-content: center !important; }
}

@keyframes floatwa {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* --- Luxury Floating WhatsApp (Avatar Style) --- */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--trans-base);
    animation: floatwa 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.05) translateY(-5px);
}

.wa-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    background: var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

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

.wa-icon-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: #25D366;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.wa-text {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--border-soft);
    white-space: nowrap;
}

@media (max-width: 900px) {
    .display-1 { font-size: 2.2rem; }
    .display-2 { font-size: 1.8rem; }
}

/* --- 3D Flip Card System (Premium Glassmorphism) --- */
.flip-card {
    background-color: transparent;
    perspective: 1200px;
    min-height: 480px;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: right;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d; 
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.flip-card-front {
    background: var(--bg-white);
    border: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
}

.flip-card-front .c-img {
    height: 240px;
    width: 100%;
    flex-shrink: 0;
}

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

.f-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.f-title { font-size: 1.4rem; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.f-desc { font-size: 0.95rem; color: var(--text-muted); flex-grow: 1; line-height: 1.6; }

.flip-card-back {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.8);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px;
    text-align: center;
}

.f-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--bg-white);
    color: var(--accent);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 6px;
    box-shadow: var(--shadow-subtle);
    z-index: 10;
}


/* --- Coming Soon Section (Luxury Refined) --- */
.coming-soon {
    min-height: calc(100vh - 180px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    background: radial-gradient(circle at 50% 50%, rgba(195, 150, 86, 0.12) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.coming-soon::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: url('https://www.transparenttextures.com/patterns/silk.pattern.png');
    opacity: 0.15;
    z-index: -1;
    animation: slowRotate 180s linear infinite;
}

.cs-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 70px 50px;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(56, 45, 32, 0.08);
    max-width: 850px;
    width: 100%;
    z-index: 10;
    position: relative;
    border-top: 5px solid var(--accent);
}

.cs-icon {
    width: 150px;
    height: 150px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--accent);
    margin: 0 auto 40px;
    border: 2px solid var(--border-soft);
    box-shadow: 0 20px 50px rgba(195, 150, 86, 0.2);
    animation: cs-float 4s ease-in-out infinite;
    position: relative;
}

.cs-icon::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0.15;
    animation: pulseAura 3s ease-out infinite;
}

@keyframes pulseAura {
    0% { transform: scale(1); opacity: 0.2; }
    100% { transform: scale(1.3); opacity: 0; }
}

.cs-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    color: var(--text-primary);
    margin-bottom: 24px;
    font-weight: 700;
    letter-spacing: -1.5px;
}

.cs-text {
    max-width: 650px;
    margin: 0 auto 50px;
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 2;
}

.cs-waiting-list {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px dashed var(--border-soft);
}

.cs-form {
    display: flex;
    gap: 15px;
    max-width: 550px;
    margin: 0 auto;
    background: #fff;
    padding: 10px;
    border-radius: 50px;
    box-shadow: var(--shadow-subtle);
}

.cs-form input {
    border: none !important;
    background: transparent !important;
    padding: 15px 25px !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    flex-grow: 1;
}

.cs-form .btn {
    padding: 15px 40px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .cs-form { 
        flex-direction: column; 
        background: transparent; 
        box-shadow: none;
        padding: 0;
    }
    .cs-form input {
        background: #fff !important;
        border-radius: 30px !important;
        margin-bottom: 12px !important;
        text-align: center;
    }
    .cs-card { padding: 50px 24px; border-radius: 30px; }
}

/* Slick Badge Pulse */
.nav-badge {
    font-size: 0.65rem;
    background: var(--accent);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    vertical-align: middle;
    margin-right: 6px;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(195,150,86,0.3);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(195,150,86,0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(195,150,86,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(195,150,86,0); }
}


