
/* ========== RTL FIX ========== */
body.shaheen-rtl{direction:rtl;}
body{direction:rtl;}

/* ========== ROOT VARIABLES ========== */
        :root {
            --shaheen-primary: #00a99d;
            --shaheen-primary-hover: #008c82;
            --shaheen-primary-light: #e6f7f6;
            --shaheen-secondary: #2c3e50;
            --shaheen-gold: #d4af37;
            
            --color-obesity: #e74c3c;
            --color-dermatology: #3498db;
            --color-aesthetics: #9b59b6;
            
            --white: #ffffff;
            --text-primary: #333333;
            --text-secondary: #666666;
            --text-light: #999999;
            --bg-light: #f8f9fa;
            --border: #e0e0e0;
            
            --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
            --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
            --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
            
            --font-primary: 'Tajawal', -apple-system, sans-serif;
            --font-heading: 'Cairo', 'Tajawal', sans-serif;
            
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 20px;
        }

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

        body {
            font-family: var(--font-primary);
            font-size: 16px;
            line-height: 1.7;
            color: var(--text-primary);
            background: var(--white);
            direction: rtl;
            text-align: right;
        }

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

        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-heading);
            font-weight: 700;
            line-height: 1.2;
            color: var(--shaheen-secondary);
        }

        a {
            text-decoration: none;
            transition: all 0.3s ease;
        }

        img {
            max-width: 100%;
            height: auto;
        }

        /* ========== TOP BAR ========== */
        .top-bar {
            background: var(--shaheen-secondary);
            color: var(--white);
            padding: 10px 0;
            font-size: 0.9rem;
        }

        .top-bar-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }

        .top-bar-info {
            display: flex;
            gap: 25px;
            flex-wrap: wrap;
        }

        .top-bar-item {
            display: flex;
            align-items: center;
            gap: 8px;
            color: rgba(255,255,255,0.9);
        }

        .top-bar-item i {
            color: var(--shaheen-gold);
        }

        .top-bar-item a {
            color: rgba(255,255,255,0.9);
        }

        .top-bar-item a:hover {
            color: var(--white);
        }

        .top-bar-social {
            display: flex;
            gap: 10px;
            align-items: center;
            justify-content: flex-start;
        }

        .social-link {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            background: rgba(255,255,255,0.1);
            color: var(--white);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s;
        }

        .social-link:hover {
            background: rgba(255,255,255,0.22);
            transform: translateY(-2px);
            color: var(--white);
        }

        .social-link.whatsapp:hover { background: #25D366; }
        .social-link.facebook:hover { background: #1877F2; }
        .social-link.instagram:hover { background: linear-gradient(45deg,#F58529,#DD2A7B,#8134AF,#515BD4); }
        /* Instagram hover gradient */

        /* ========== HEADER ========== */
        .site-header {
            background: rgba(255,255,255,0.98);
            box-shadow: var(--shadow-md);
            /* Sprint 2: remove sticky behavior */
            position: relative;
            top: auto;
            z-index: 1000;
            padding: 15px 0;
        }

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

        /* RTL alignment: logo right, menu left */
        body.shaheen-rtl .header-main{
            direction: ltr; /* layout uses LTR so we can place items precisely */
        }
        body.shaheen-rtl .site-logo,
        body.shaheen-rtl .main-navigation{
            direction: rtl; /* keep Arabic text direction */
        }
        body.shaheen-rtl .site-logo{order:2; text-align:right;}
        body.shaheen-rtl .main-navigation{order:1;}

        .site-logo {
            font-size: 2rem;
            font-weight: 900;
            color: var(--shaheen-primary);
            font-family: var(--font-heading);
        }

        .main-navigation {
            display: flex;
            align-items: center;
            gap: 40px;
        }

        .main-menu {
            display: flex;
            gap: 30px;
            list-style: none;
        }

        .main-menu a {
            color: var(--shaheen-secondary);
            font-weight: 600;
            padding: 10px 0;
            position: relative;
        }

        .main-menu a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 50%;
            width: 0;
            height: 2px;
            background: var(--shaheen-primary);
            transition: all 0.3s;
            transform: translateX(50%);
        }

        .main-menu a:hover {
            color: var(--shaheen-primary);
        }

        .main-menu a:hover::after {
            width: 100%;
        }

        .header-cta {
            display: flex;
            gap: 10px;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 12px 24px;
            font-weight: 700;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s;
        }

        .btn-call {
            background: var(--shaheen-primary);
            color: var(--white);
            box-shadow: 0 4px 12px rgba(0,169,157,0.3);
        }

        .btn-call:hover {
            background: var(--shaheen-primary-hover);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,169,157,0.4);
            color: var(--white);
        }

        .btn-whatsapp {
            background: #25D366;
            color: var(--white);
        }

        .btn-whatsapp:hover {
            background: #20BA5A;
            color: var(--white);
        }

        /* ========== HERO ========== */
        .hero-section {
            background-image: var(--shaheen-hero-overlay, none), var(--shaheen-hero-image, url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?w=1920&h=800&fit=crop'));
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;
            padding: 100px 0;
            text-align: center;
            color: var(--white);
        }

        .btn-primary {
            background: var(--shaheen-primary);
            color: var(--white);
            box-shadow: 0 4px 12px rgba(0,169,157,0.3);
        }

        .btn-primary:hover {
            background: var(--shaheen-primary-hover);
            color: var(--white);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,169,157,0.4);
        }

        .btn-secondary {
            background: rgba(255,255,255,0.14);
            border: 2px solid rgba(255,255,255,0.28);
            color: var(--white);
            backdrop-filter: blur(6px);
        }

        .btn-secondary:hover {
            background: rgba(255,255,255,0.22);
            border-color: rgba(255,255,255,0.38);
            color: var(--white);
            transform: translateY(-2px);
        }

        .btn-lg {
            padding: 14px 26px;
            font-size: 1.05rem;
        }

        .hero-content {
            max-width: 900px;
        }

        .hero-title {
            font-size: var(--shaheen-hero-title-size, clamp(2.5rem, 5vw, 4rem));
            color: var(--shaheen-hero-title-color, var(--white));
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        .hero-subtitle {
            font-size: var(--shaheen-hero-subtitle-size, clamp(1.1rem, 2vw, 1.5rem));
            color: var(--shaheen-hero-subtitle-color, rgba(255,255,255,0.95));
            margin-bottom: 40px;
            opacity: 1;
        }

        .hero-cta-group {
            display: flex;
            gap: 15px;
            justify-content: center;
            flex-wrap: wrap;
        }

        /* ========== STATS BAR ========== */
        .stats-bar {
            background: var(--white);
            padding: 40px 0;
            margin-top: -50px;
            position: relative;
            z-index: 10;
            box-shadow: var(--shadow-xl);
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 40px;
        }

        .stat-item {
            text-align: center;
        }

        .stat-number {
            font-size: 3rem;
            color: var(--shaheen-primary);
            margin-bottom: 10px;
            font-weight: 900;
        }

        .stat-label {
            color: var(--text-secondary);
            font-size: 1.1rem;
        }

        /* ========== SECTIONS ========== */
        .section {
            padding: 80px 0;
        }

        .section-light {
            background: var(--bg-light);
        }

        .section-header {
            text-align: center;
            margin-bottom: 60px;
        }

        .section-tag {
            display: inline-block;
            padding: 8px 20px;
            background: var(--shaheen-primary-light);
            color: var(--shaheen-primary);
            border-radius: 50px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .section-title {
            font-size: clamp(2rem, 4vw, 3rem);
            margin-bottom: 15px;
        }

        .section-description {
            font-size: 1.2rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto;
        }

        /* ========== SERVICES ========== */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 40px;
        }

        .service-card {
            background: var(--white);
            border-radius: var(--radius-xl);
            padding: 40px 30px;
            text-align: center;
            transition: all 0.5s;
            border: 1px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .service-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--shaheen-primary), var(--shaheen-gold));
            transform: scaleX(0);
            transition: transform 0.3s;
        }

        .service-card:hover::before {
            transform: scaleX(1);
        }

        .service-card:hover {
            transform: translateY(-15px);
            box-shadow: var(--shadow-xl);
        }

        .service-icon {
            width: 76px;
            height: 76px;
            border-radius: 22px;
            background: rgba(0,169,157,0.10);
            color: var(--shaheen-primary);
            margin-bottom: 20px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s, background 0.3s;
        }
        .service-icon svg{width:40px;height:40px;display:block;}
        .service-card:hover .service-icon{background: rgba(0,169,157,0.16);
            transform: scale(1.12) rotate(3deg);
        }

        .service-title {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--shaheen-secondary);
        }

        .service-card p {
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 20px;
        }

        .service-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--shaheen-primary);
            font-weight: 600;
        }

        .service-link:hover {
            gap: 12px;
            color: var(--shaheen-primary-hover);
        }

        /* ========== GALLERY ========== */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .gallery-item {
            position: relative;
            border-radius: var(--radius-lg);
            overflow: hidden;
            aspect-ratio: 1;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            padding: 20px;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: var(--white);
            transform: translateY(100%);
            transition: transform 0.3s;
        }

        .gallery-item:hover .gallery-overlay {
            transform: translateY(0);
        }

        /* ========== BOOKING FORM ========== */
        .booking-grid {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 40px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .appointment-form {
            background: var(--white);
            padding: 40px;
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--shaheen-secondary);
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid var(--border);
            border-radius: 10px;
            font-family: var(--font-primary);
            font-size: 1rem;
            transition: border-color 0.3s;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--shaheen-primary);
        }

        .required {
            color: #e74c3c;
        }

        .booking-info {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .info-card {
            background: var(--white);
            padding: 25px;
            border-radius: 15px;
            box-shadow: var(--shadow-md);
            text-align: center;
        }

        .info-card i {
            font-size: 2.5rem;
            color: var(--shaheen-primary);
            margin-bottom: 15px;
        }

        .info-card h4 {
            margin-bottom: 10px;
        }

        /* ========== FOOTER ========== */
        .site-footer {
            background: var(--shaheen-secondary);
            color: rgba(255,255,255,0.8);
            padding: 60px 0 20px;
        }

        .footer-content {
            display: flex;
            flex-wrap: wrap;
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-column {
            flex: 1 1 240px; /* flex-basis to prevent overlap */
            min-width: 220px;
        }

        .footer-column h4 {
            color: var(--shaheen-primary);
            margin-bottom: 20px;
        }

        .footer-column p,
        .footer-column a {
            color: rgba(255,255,255,0.8);
            margin-bottom: 10px;
        }

        .footer-column ul {
            list-style: none;
        }

        .footer-column li {
            margin-bottom: 10px;
        }

        .footer-column a:hover {
            color: var(--shaheen-primary);
        }

        .footer-bottom {
            border-top: 1px solid rgba(255,255,255,0.1);
            padding-top: 20px;
            text-align: center;
        }

        /* ========== FLOATING WHATSAPP ========== */
        .floating-whatsapp {
            position: fixed;
            bottom: 20px;
            left: 20px;
            width: 60px;
            height: 60px;
            background: #25D366;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--white);
            font-size: 30px;
            box-shadow: 0 4px 12px rgba(37,211,102,0.4);
            z-index: 1000;
            animation: pulse 2s infinite;
        }

        .floating-whatsapp:hover {
            transform: scale(1.1);
            color: var(--white);
        }

        @keyframes pulse {
            0%, 100% { box-shadow: 0 4px 12px rgba(37,211,102,0.4); }
            50% { box-shadow: 0 4px 20px rgba(37,211,102,0.8); }
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 968px) {
            .main-navigation {
                display: none;
            }

            .stats-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .services-grid {
                grid-template-columns: 1fr;
            }

            .gallery-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .booking-grid {
                grid-template-columns: 1fr;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .footer-content {
                grid-template-columns: 1fr;
            }
        }


/* Quick actions (mobile) */
.shaheen-quick-actions{
  position: fixed;
  bottom: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shaheen-quick-actions.qa-right{right:16px;left:auto;}
.shaheen-quick-actions.qa-left{left:16px;right:auto;}
@media (max-width: 768px){
  .shaheen-quick-actions.qa-m-right{right:12px;left:auto;}
  .shaheen-quick-actions.qa-m-left{left:12px;right:auto;}
}
.shaheen-action{
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--shaheen-primary);
  color: #fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.15);
  text-decoration: none;
}
.shaheen-action:hover{ opacity: .92; }
.shaheen-action-whatsapp{ background: #25D366; }
.appointment-status{font-weight:600;}


/* ========== FOOTER SOCIAL ========== */
.footer-social{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap;}


/* ========== BOOKING ACTIONS ========== */
.form-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;}
.form-actions .btn{flex:1 1 220px;width:auto;justify-content:center;border-radius:var(--shaheen-radius,14px);min-height:52px;}
@media (max-width: 480px){
  .form-actions .btn{flex:1 1 100%;}
}


/* WhatsApp links next to mobile numbers */
.top-wa, .footer-wa{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-inline-start:8px;
  text-decoration:none;
}
.top-wa i, .footer-wa i{ font-size: 14px; }


/* Booking WhatsApp card */
.wa-buttons{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:10px;}
.btn-sm{padding:10px 14px;font-size:.95rem;}
.booking-info .info-card .wa-hint{margin-top:10px;color:var(--text-secondary);font-size:.95rem;}

/* ========== BACK TO TOP ========== */
.shaheen-back-to-top{
  position:fixed;
  left:18px;
  bottom:18px;
  width:46px;
  height:46px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  background:var(--shaheen-primary);
  color:#fff;
  box-shadow:0 10px 28px rgba(0,0,0,.18);
  z-index:9999;
}
.shaheen-back-to-top:hover{background:var(--shaheen-primary-hover);}
.shaheen-back-to-top.is-visible{display:flex;}


/* ===== Mixed Media Gallery (Images/Videos/Embeds) ===== */
.shaheen-media-gallery .gallery-item{
  border:0;
  padding:0;
  background:transparent;
  cursor:pointer;
  text-align:inherit;
}

.gallery-item--video,
.gallery-item--embed{
  position:relative;
}

.shaheen-gallery-badge{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  color:#fff;
  font-size:22px;
  text-shadow:0 8px 18px rgba(0,0,0,.55);
}

.gallery-item--video .shaheen-gallery-badge,
.gallery-item--embed .shaheen-gallery-badge{
  background: radial-gradient(circle at center, rgba(0,0,0,.25), rgba(0,0,0,0) 55%);
}

.shaheen-gallery-placeholder{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, rgba(0,0,0,.08), rgba(0,0,0,.02));
}

.shaheen-gallery-placeholder__icon{
  width:52px;
  height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:var(--shaheen-primary, #00a99d);
  color:#fff;
  font-size:20px;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}

.shaheen-gallery-video-thumb{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  pointer-events:none;
}

/* ===== Media Modal ===== */
html.shaheen-modal-open{ overflow:hidden; }

.shaheen-media-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.shaheen-media-modal.is-open{ display:flex; }

.shaheen-media-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
}

.shaheen-media-modal__dialog{
  --shaheen-modal-accent: var(--shaheen-accent, #d4af37);
  --shaheen-modal-primary: var(--shaheen-primary, #00a99d);

  position:relative;
  z-index:2;
  width:min(980px, 96vw);
  max-height:92vh;
  background:#0b0f12;
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  border:1px solid rgba(255,255,255,.08);
}

.shaheen-media-modal__dialog::before{
  content:"";
  position:absolute;
  left:0;right:0;top:0;
  height:3px;
  background:linear-gradient(90deg, var(--shaheen-modal-primary), var(--shaheen-modal-accent));
  opacity:.9;
}

.shaheen-media-modal__close{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  width:42px;
  height:42px;
  border:0;
  border-radius:999px;
  cursor:pointer;
  background:rgba(255,255,255,.12);
  box-shadow:0 0 0 1px rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.25);
  color:#fff;
  font-size:26px;
  line-height:42px;
}

.shaheen-media-modal__close:hover{
  background:var(--shaheen-modal-primary);
}

.shaheen-media-modal__content{
  width:100%;
  max-height:82vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:radial-gradient(circle at top, rgba(255,255,255,.06), rgba(255,255,255,0));
}

.shaheen-media-modal__content img,
.shaheen-media-modal__content video{
  width:100%;
  height:auto;
  max-height:82vh;
  object-fit:contain;
  display:block;
}

.shaheen-embed-wrap{
  width:100%;
  aspect-ratio:16/9;
}

.shaheen-embed-wrap iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.shaheen-media-modal__caption{
  padding:14px 18px 16px;
  color:rgba(255,255,255,.85);
  font-size:14px;
  border-top:1px solid rgba(255,255,255,.08);
}

