/* ========================================================
   مجمع لآنه الطبي - الثيم الغامق الفاخر (Luxury Dark Theme)
   Lanh Medical Complex - Aesthetics & Laser Dark Design
   ======================================================== */

:root {
    --bg-dark: #070e15;
    --bg-surface: #0c1722;
    --bg-card: #0f1d2b;
    --bg-card-hover: #142536;
    
    --primary-rose: #e65c82;
    --primary-rose-light: #ffa3bc;
    --primary-teal: #14b8a6;
    --gold-accent: #e5b97d;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --whatsapp-green: #25d366;
    --whatsapp-hover: #20ba5a;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(230, 92, 130, 0.4);
    
    --radius: 16px;
    --font: 'Cairo', 'Tajawal', system-ui, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    direction: rtl;
    font-family: var(--font);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 80% 15%, rgba(230, 92, 130, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 15% 75%, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================================
   الهيدر (Dark Header)
   ======================================================== */
.site-header {
    background: rgba(7, 14, 21, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    padding: 5px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease;
}

.logo-wrap:hover {
    transform: scale(1.02);
}

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

.header-contact-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-header-wa {
    background: var(--whatsapp-green);
    color: white;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-header-wa:hover {
    background: var(--whatsapp-hover);
    transform: translateY(-2px);
}

.btn-header-call {
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    border: 1px solid var(--border-subtle);
    font-weight: 700;
    padding: 9px 16px;
    border-radius: 99px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-header-call:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: var(--primary-rose-light);
}

/* ========================================================
   شريط التنبيه العلوي
   ======================================================== */
.top-notice {
    background: linear-gradient(90deg, #13080e 0%, #290f1e 50%, #13080e 100%);
    border-bottom: 1px solid rgba(230, 92, 130, 0.25);
    color: #fbcfe8;
    text-align: center;
    padding: 9px 16px;
    font-size: 0.86rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.top-notice .tamara-img {
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 3px;
    background: white;
    padding: 1px 4px;
}

/* ========================================================
   مقدمة الصفحة البسيطة
   ======================================================== */
.hero-simple {
    text-align: center;
    padding: 40px 20px 24px;
    max-width: 820px;
    margin: 0 auto;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(230, 92, 130, 0.12);
    border: 1px solid rgba(230, 92, 130, 0.3);
    color: var(--primary-rose-light);
    padding: 5px 16px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-simple h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 10px;
    line-height: 1.3;
}

.hero-simple h1 .glow-text {
    background: linear-gradient(135deg, #ffa3bc 0%, #e65c82 50%, #ffc0d0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-simple p {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ========================================================
   تبويبات الأقسام الفئوية (Dark Filter Tabs)
   ======================================================== */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px 36px;
    max-width: 1240px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: #ffffff;
    border-color: var(--primary-rose-light);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #e65c82 0%, #ba3860 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 18px rgba(230, 92, 130, 0.45);
}

/* ========================================================
   شبكة وبطاقات العروض (Dark Cards)
   ======================================================== */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 26px;
}

/* فواصل الأقسام الواضحة */
.section-divider-title {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
}

.section-divider-title:first-child {
    margin-top: 0;
}

.section-divider-title i {
    font-size: 1.4rem;
    color: var(--primary-rose-light);
}

.section-divider-title.derma-title {
    border-bottom-color: rgba(229, 185, 125, 0.35);
    color: #ffeed3;
}

.section-divider-title.derma-title i {
    color: #f6c888;
}

.section-divider-title.laser-title i {
    color: #38bdf8;
}

.section-divider-title.skin-title i {
    color: var(--primary-rose-light);
}

.section-divider-title.hair-title i {
    color: #34d399;
}

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.offer-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(230, 92, 130, 0.2);
}

.offer-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.9;
    background: #050b10;
    overflow: hidden;
}

.offer-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.45s ease;
}

.offer-card:hover .offer-img-wrap img {
    transform: scale(1.04);
}

.price-chip {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(7, 14, 21, 0.9);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid rgba(230, 92, 130, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 2;
}

.preview-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    cursor: pointer;
    z-index: 5;
    transition: all 0.2s ease;
    backdrop-filter: blur(6px);
}

.preview-btn:hover {
    background: var(--primary-rose);
    border-color: var(--primary-rose);
    transform: scale(1.1);
}

.card-wa-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 14, 21, 0.85) 0%, transparent 55%);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    transition: opacity 0.25s ease;
}

.offer-card:hover .card-wa-overlay {
    opacity: 1;
}

.wa-overlay-pill {
    background: var(--whatsapp-green);
    color: white;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 99px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.offer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-dept-tag {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--primary-rose-light);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.offer-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
}

.offer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ========================================================
   الفوتر (Dark Footer)
   ======================================================== */
.site-footer-simple {
    background: #04080d;
    border-top: 1px solid var(--border-subtle);
    padding: 36px 20px;
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-dim);
}

.footer-info {
    max-width: 900px;
    margin: 0 auto 16px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: #cbd5e1;
    font-weight: 600;
}

.footer-info a {
    color: var(--primary-rose-light);
    transition: color 0.2s;
}

.footer-info a:hover {
    color: #ffffff;
}

/* ========================================================
   زر الواتساب العائم
   ======================================================== */
.float-wa-btn {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--whatsapp-green);
    color: white;
    padding: 13px 22px;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    z-index: 99;
    transition: all 0.25s ease;
}

.float-wa-btn:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

/* ========================================================
   نافذة تكبير الصورة (Dark Modal)
   ======================================================== */
.poster-modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 11, 0.93);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 16px;
}

.poster-modal.active {
    display: flex;
}

.poster-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    max-width: 540px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(230, 92, 130, 0.25);
}

.close-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: var(--primary-rose);
    transform: scale(1.1);
}

.poster-modal-content img {
    max-height: 72vh;
    width: 100%;
    object-fit: contain;
    background: #000;
}

.poster-modal-footer {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
}

.poster-modal-footer span {
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.modal-wa-btn {
    background: var(--whatsapp-green);
    color: white;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.modal-wa-btn:hover {
    background: var(--whatsapp-hover);
}

@media (max-width: 640px) {
    .header-contact-btns .btn-header-call {
        display: none;
    }
    .logo-wrap img {
        height: 38px;
    }
    .float-wa-btn span {
        display: none;
    }
    .float-wa-btn {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    .float-wa-btn i {
        font-size: 1.5rem;
    }
}
