/*
Theme Name: Masraty
Theme URI: https://masraty.com
Author: Masraty Team
Author URI: https://masraty.com
Description: قالب ووردبريس احترافي ومتكامل لمنصة مسرتي - دليل شامل ونظام حجز لخدمات الأفراح والمناسبات
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masraty
Tags: rtl-language-support, custom-menu, featured-images, threaded-comments, translation-ready, e-commerce, directory
*/

/* ========================================
   متغيرات الألوان الأساسية
======================================== */
:root {
  /* الألوان الأساسية من الشعار */
  --primary-dark: #1F2937;
  /* Deep Teal / Dark Blue */
  --primary-light: #3DDCAE;
  /* Bright Mint Green / Teal */
  --accent-orange: #F59E0B;
  /* Orange للاستدعاءات الهامة */
  --accent-gold: #FCD34D;
  /* Gold خفيف */

  /* الألوان المساعدة */
  --white: #FFFFFF;
  --black: #1F2937;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* ألوان الحالات */
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  /* الظلال */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  /* الخطوط */
  --font-primary: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Almarai', 'Tajawal', sans-serif;

  /* المسافات */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* نصف القطر */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* الانتقالات */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ========================================
   إعادة تعيين أساسية
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  direction: rtl;
  text-align: right;
}

/* ========================================
   الطباعة
======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ========================================
   الأزرار
======================================== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-light);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--primary-dark);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #0A3A56;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-outline:hover {
  background-color: var(--primary-dark);
  color: var(--white);
}

/* ========================================
   الحاوية
======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-lg);
}

/* ========================================
   الشبكة
======================================== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--spacing-md) * -1);
}

.col {
  flex: 1;
  padding: 0 var(--spacing-md);
}

.col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.col-4 {
  flex: 0 0 33.333%;
  max-width: 33.333%;
}

.col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

/* ========================================
   الاستجابة للشاشات
======================================== */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .col-12,
  .col-6,
  .col-4,
  .col-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ========================================
   الأدوات المساعدة
======================================== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 {
  margin-top: var(--spacing-sm);
}

.mt-2 {
  margin-top: var(--spacing-md);
}

.mt-3 {
  margin-top: var(--spacing-lg);
}

.mt-4 {
  margin-top: var(--spacing-xl);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}

.mb-2 {
  margin-bottom: var(--spacing-md);
}

.mb-3 {
  margin-bottom: var(--spacing-lg);
}

.mb-4 {
  margin-bottom: var(--spacing-xl);
}

.p-1 {
  padding: var(--spacing-sm);
}

.p-2 {
  padding: var(--spacing-md);
}

.p-3 {
  padding: var(--spacing-lg);
}

.p-4 {
  padding: var(--spacing-xl);
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.d-grid {
  display: grid;
}

/* ===========================================
   MASRATY PREMIUM UI KIT v3.0
   Designed with ♥ for a stunning user experience
   =========================================== */

/* ----- 1. ROOT VARIABLES & RESET (أساسيات النظام) ----- */
:root {
  --primary-dark: #0A2E4D;
  /* أزرق داكن فاخر */
  --primary-medium: #174F7C;
  --primary-light: #2B6EA8;
  --accent-mint: #2DD4BF;
  /* أخضر نعناعي نابض بالحياة */
  --accent-mint-light: #5EEAD4;
  --accent-gold: #FBBF24;
  --white-pure: #FFFFFF;
  --gray-background: #F8FAFC;
  --gray-border: #E2E8F0;
  --text-dark: #1E293B;
  --text-medium: #475569;
  --shadow-sm: 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --font-primary: 'Cairo', 'Tajawal', sans-serif;
  --border-radius-card: 24px;
  --border-radius-btn: 40px;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background-color: var(--gray-background);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- 2. TYPOGRAPHY & LINKS (الخطوط والروابط) ----- */
h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* ----- 3. HEADER (تحفة فنية مع تأثير زجاجي) ----- */
.site-header {
  background: rgba(10, 46, 77, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  gap: 32px;
}

.site-logo img {
  height: 52px;
  width: auto;
  transition: transform 0.2s ease;
}

.site-logo:hover img {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 0;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 3px;
  background: var(--accent-mint);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
  left: 0;
  right: auto;
}

.header-actions {
  display: flex;
  gap: 16px;
}

.btn-header {
  padding: 12px 28px;
  border-radius: var(--border-radius-btn);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-publish {
  background: var(--accent-mint);
  color: var(--primary-dark);
  box-shadow: 0 8px 20px -6px rgba(45, 212, 191, 0.4);
}

.btn-publish:hover {
  background: var(--accent-mint-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -6px rgba(45, 212, 191, 0.5);
}

.btn-login {
  background: transparent;
  color: var(--white-pure);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white-pure);
}

/* ===================================================
   4. HERO SECTION — PROFESSIONAL MASTER
   الهيرو الاحترافي المحسّن
   =================================================== */

.hero-section-enhanced {
  position: relative;
  padding: 130px 0 150px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* ---- Animated Deep Gradient Background ---- */
.hero-bg-animated {
  position: absolute;
  inset: -25%;
  z-index: -4;
  background: linear-gradient(270deg, #0b4681, #062a52, #02c992, #0b4681);
  background-size: 400% 400%;
  animation: heroGradientShift 10s ease infinite;
}

@keyframes heroGradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* ---- 3D Geometric Floating Shapes ---- */
.hero-bg-animated .shape {
  position: absolute;
  animation: floatShape linear infinite;
  will-change: transform;
}

.hero-bg-animated .shape-triangle {
  width: 140px;
  height: 140px;
  background: linear-gradient(135deg, rgba(2, 230, 169, 0.28) 0%, rgba(255, 255, 255, 0.04) 100%);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border-radius: 4px;
  filter: blur(0.5px);
}

.hero-bg-animated .shape-triangle-alt {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(255, 255, 255, 0.04) 100%);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  filter: blur(0.5px);
}

.hero-bg-animated .shape-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Shape positions & individual animation tuning */
.shape-1 {
  top: 8%;
  left: 6%;
  --scale: 1.1;
  animation-duration: 13s;
  opacity: 0.55;
}

.shape-2 {
  top: 58%;
  left: 82%;
  --scale: 1.4;
  animation-duration: 17s;
  animation-direction: reverse;
  opacity: 0.45;
}

.shape-3 {
  top: 38%;
  left: 28%;
  --scale: 0.75;
  animation-duration: 11s;
  opacity: 0.38;
}

.shape-4 {
  top: 72%;
  left: 14%;
  --scale: 1.0;
  animation-duration: 19s;
  opacity: 0.42;
}

.shape-5 {
  top: 12%;
  left: 72%;
  --scale: 1.5;
  animation-duration: 15s;
  opacity: 0.40;
}

.shape-6 {
  top: 48%;
  left: 4%;
  --scale: 1.2;
  animation-duration: 12s;
  opacity: 0.35;
}

.shape-7 {
  top: 22%;
  left: 88%;
  --scale: 0.85;
  animation-duration: 14s;
  opacity: 0.48;
}

.shape-8 {
  top: 82%;
  left: 52%;
  --scale: 1.3;
  animation-duration: 16s;
  animation-direction: reverse;
  opacity: 0.38;
}

@keyframes floatShape {
  0% {
    transform: translateY(0) rotate(0deg) scale(var(--scale, 1));
  }

  25% {
    transform: translateY(-45px) rotate(90deg) scale(calc(var(--scale, 1) * 1.06));
  }

  50% {
    transform: translateY(-80px) rotate(180deg) scale(var(--scale, 1));
  }

  75% {
    transform: translateY(-45px) rotate(270deg) scale(calc(var(--scale, 1) * 0.94));
  }

  100% {
    transform: translateY(0) rotate(360deg) scale(var(--scale, 1));
  }
}

/* ---- Radial Glow – top-right ---- */
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(2, 230, 169, 0.22) 0%, transparent 65%);
  top: -150px;
  right: -150px;
  filter: blur(70px);
  z-index: -3;
  pointer-events: none;
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  from {
    opacity: 0.7;
    transform: scale(1);
  }

  to {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* ---- Noise Texture Overlay ---- */
.hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  z-index: -2;
  pointer-events: none;
}

/* ---- Dark overlay for text legibility ---- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg,
      rgba(8, 30, 51, 0.78) 0%,
      rgba(10, 46, 77, 0.55) 55%,
      rgba(2, 100, 70, 0.18) 100%);
  z-index: -1;
}

/* ---- SVG Wave at bottom ---- */
.hero-section-enhanced::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100%25" viewBox="0 0 1440 800" preserveAspectRatio="xMidYMid slice" xmlns="http://www.w3.org/2000/svg"><path d="M0 650 Q360 520 720 610 T1440 560 L1440 800 L0 800 Z" fill="rgba(2,230,169,0.07)"/><path d="M0 700 Q480 600 960 670 T1440 640 L1440 800 L0 800 Z" fill="rgba(255,255,255,0.03)"/><circle cx="180" cy="120" r="220" fill="rgba(255,255,255,0.025)"/><circle cx="1260" cy="480" r="280" fill="rgba(2,230,169,0.04)"/></svg>');
  background-size: cover;
  z-index: -1;
  pointer-events: none;
}

/* ==============================
   HERO CONTENT
   ============================== */
.hero-content-enhanced {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---- Lanyard Drop Wrapper ---- */
.lanyard-drop-wrapper {
  animation: lanyardDropIn 1.8s cubic-bezier(0.25, 1.25, 0.4, 1) forwards;
  display: block;
  text-align: center;
  perspective: 1000px;
}

@keyframes lanyardDropIn {
  0% { transform: translateY(-120vh) rotate(-12deg); opacity: 0; }
  60% { transform: translateY(15px) rotate(6deg); opacity: 1; }
  80% { transform: translateY(-5px) rotate(-3deg); }
  100% { transform: translateY(0) rotate(0deg); opacity: 1; }
}

/* ---- Lanyard Swinging Card Effect ---- */
.lanyard-container {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 28px;
  transform-origin: center -800px; /* Long pendulum for realistic swing */
  animation: lanyardSwing 5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite alternate;
  will-change: transform;
}

@keyframes lanyardSwing {
  0% { transform: rotate(-5deg) translateZ(10px); }
  50% { transform: rotate(0deg) translateZ(0px); }
  100% { transform: rotate(5deg) translateZ(10px); }
}

.lanyard-rope {
  width: 3px;
  height: 100vh;
  background: linear-gradient(to bottom, rgba(2, 230, 169, 0), rgba(2, 230, 169, 0.8) 80%, rgba(2, 230, 169, 1));
  margin-top: -100vh;
  box-shadow: 0 0 10px rgba(2, 230, 169, 0.4);
  z-index: 1;
  border-radius: 3px;
}

.lanyard-card {
  position: relative;
  background: rgba(10, 46, 77, 0.6);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(2, 230, 169, 0.25);
  border-top: 2px solid rgba(2, 230, 169, 0.85);
  border-radius: 40px;
  padding: 12px 28px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 0 20px rgba(2, 230, 169, 0.1) inset;
  margin-top: -2px;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.25, 1.25, 0.4, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: grab;
}

.lanyard-card::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #02e6a9;
  border-radius: 50%;
  box-shadow: 0 0 12px #02e6a9;
}

.lanyard-card:active {
  cursor: grabbing;
}

.lanyard-card:hover {
  transform: translateY(-8px) scale(1.06) rotateX(10deg);
  box-shadow: 0 20px 40px rgba(2, 230, 169, 0.25), 0 0 25px rgba(2, 230, 169, 0.2) inset;
  border-color: rgba(2, 230, 169, 0.9);
}

.lanyard-content {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Make it responsive */
@media (max-width: 768px) {
  .lanyard-card {
    padding: 10px 20px;
    border-radius: 30px;
  }
  .lanyard-content {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .lanyard-rope {
    width: 2px;
  }
  .lanyard-card {
    padding: 8px 16px;
    border-radius: 25px;
  }
  .lanyard-card::before {
    width: 8px;
    height: 8px;
    top: -4px;
  }
  .lanyard-content {
    font-size: 0.75rem;
  }
}

/* ---- Title (gradient text) ---- */
.hero-title-enhanced {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 900;
  line-height: 1.4;
  padding-bottom: 0.15em;
  background: linear-gradient(95deg, #ffffff 30%, #02e6a9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
  animation: fadeUp 0.9s 0.15s ease both;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}

/* ---- Subtitle ---- */
.hero-subtitle-enhanced {
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  animation: fadeUp 0.9s 0.28s ease both;
}

/* ---- Description ---- */
.hero-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.75;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  animation: fadeUp 0.9s 0.4s ease both;
}

/* ==============================
   SEARCH BOX
   ============================== */
.hero-search-form-enhanced {
  animation: fadeUp 0.9s 0.55s ease both;
}

.search-box-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 8px 8px 24px;
  border-radius: 70px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  max-width: 860px;
  margin: 0 auto;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.search-box-wrapper:hover {
  transform: translateY(-4px);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.3) inset;
}

.search-box-wrapper:focus-within {
  border-color: #02e6a9;
  box-shadow:
    0 0 0 4px rgba(2, 230, 169, 0.2),
    0 20px 60px rgba(0, 0, 0, 0.22);
}

/* ---- Input Group ---- */
.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-icon-wrapper {
  color: #0b4681;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.search-input-enhanced {
  flex: 1;
  border: none;
  background: transparent;
  color: #1e293b;
  font-size: 1rem;
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 16px 0;
  outline: none;
  min-width: 0;
}

.search-input-enhanced::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* ---- Select / City Group ---- */
.search-select-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  border-right: 1.5px solid #e2e8f0;
  flex-shrink: 0;
}

.search-select-group svg {
  color: #0b4681;
  flex-shrink: 0;
}

.search-select-enhanced {
  border: none;
  background: transparent;
  color: #1e293b;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 16px 0;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 110px;
}

.search-select-enhanced option {
  color: #1e293b;
  background: #fff;
  font-weight: 500;
}

/* ---- Search Button ---- */
.btn-search-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0b4681 0%, #02e6a9 100%);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 55px;
  font-weight: 800;
  font-size: 1rem;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(2, 230, 169, 0.35);
}

.btn-search-enhanced:hover {
  background: linear-gradient(135deg, #0d5499 0%, #01cfab 100%);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 35px rgba(2, 230, 169, 0.45);
  color: #fff;
}

.btn-search-enhanced:active {
  transform: translateY(0) scale(0.98);
}

/* ==============================
   ENTRY ANIMATIONS
   ============================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(36px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.9s ease forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.30s;
}

.delay-3 {
  animation-delay: 0.45s;
}

.delay-4 {
  animation-delay: 0.60s;
}

/* ==============================
   HERO RESPONSIVE
   ============================== */
@media (max-width: 768px) {
  .hero-section-enhanced {
    padding: 90px 0 110px;
  }

  .hero-badge {
    font-size: 0.82rem;
    padding: 7px 16px;
  }

  .search-box-wrapper {
    flex-direction: column;
    border-radius: 24px;
    padding: 16px;
    gap: 10px;
    align-items: stretch;
  }

  .search-input-group {
    padding: 0 8px;
    border-bottom: 1.5px solid #e2e8f0;
    padding-bottom: 12px;
  }

  .search-select-group {
    border-right: none;
    border-bottom: 1.5px solid #e2e8f0;
    padding: 0 8px 12px;
  }

  .btn-search-enhanced {
    width: 100%;
    justify-content: center;
    padding: 16px;
    border-radius: 16px;
  }

  .hero-bg-animated .shape {
    opacity: 0.25;
  }
}

@media (max-width: 480px) {
  .search-select-enhanced {
    min-width: unset;
    width: 100%;
  }
}



/* ----- 5. CATEGORIES SECTION (بطاقات الفئات) ----- */
.categories-section-enhanced {
  padding: 100px 0;
  background: var(--white-pure);
}

.section-header-enhanced {
  text-align: center;
  margin-bottom: 60px;
}

.section-title-enhanced {
  font-size: 2.8rem;
  color: var(--primary-dark);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title-enhanced::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 20%;
  right: 20%;
  height: 5px;
  background: linear-gradient(90deg, transparent, var(--accent-mint), transparent);
  border-radius: 5px;
}

.section-subtitle-enhanced {
  font-size: 1.5rem;
  color: var(--text-medium);
}

.categories-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 30px;
}

.category-card-horizontal {
  background: var(--white-pure);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  position: relative;
  aspect-ratio: 1 / 1.1;
  border: 1px solid var(--gray-border);
}

.category-card-horizontal:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-mint);
}

.category-image-horizontal {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

.category-card-horizontal:hover .category-image-horizontal {
  transform: scale(1.08);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 46, 77, 0.85) 0%, rgba(10, 46, 77, 0.2) 70%);
}

.category-info-horizontal {
  position: absolute;
  bottom: 24px;
  right: 24px;
  left: 24px;
  color: var(--white-pure);
}

.category-name-horizontal {
  font-size: 1.7rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.category-count-horizontal {
  font-size: 1rem;
  opacity: 0.9;
}

.category-arrow {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-smooth);
}

.category-card-horizontal:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ----- 6. SERVICE CARDS (بطاقات الخدمات) ----- */
.services-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.service-card-enhanced {
  background: var(--white-pure);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  border: 1px solid var(--gray-border);
}

.service-card-enhanced:hover {
  transform: translateY(-14px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-mint);
}

.service-image-enhanced {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.service-image-enhanced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-enhanced:hover .service-image-enhanced img {
  transform: scale(1.12);
}

.service-badge-featured {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-gold);
  color: var(--primary-dark);
  padding: 8px 18px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 0.9rem;
  backdrop-filter: blur(4px);
}

.service-favorite {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  backdrop-filter: blur(4px);
  color: #ef4444;
}

.service-favorite:hover {
  background: var(--white-pure);
  transform: scale(1.1);
}

.service-content-enhanced {
  padding: 32px;
}

.service-title-enhanced a {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.service-rating-enhanced {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fef9c3;
  padding: 6px 12px;
  border-radius: 30px;
  width: fit-content;
  margin: 12px 0;
}

.service-location-enhanced {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-medium);
  margin-bottom: 16px;
}

.service-footer-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-border);
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-dark);
}

.btn-view-details {
  background: transparent;
  color: var(--primary-dark);
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  border: 2px solid var(--primary-dark);
  transition: var(--transition-smooth);
}

.btn-view-details:hover {
  background: var(--primary-dark);
  color: var(--white-pure);
}

/* ----- 7. FOOTER (تذييل فاخر) ----- */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 48px;
}

.footer-section h3 {
  color: var(--white-pure);
  font-size: 1.5rem;
  margin-bottom: 24px;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--accent-mint);
  border-radius: 3px;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 14px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-smooth);
}

.footer-section a:hover {
  color: var(--accent-mint);
  padding-right: 8px;
}

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 24px;
}

.social-link {
  background: rgba(255, 255, 255, 0.08);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-pure);
  transition: var(--transition-smooth);
}

.social-link:hover {
  background: var(--accent-mint);
  color: var(--primary-dark);
  transform: translateY(-5px);
}

/* =====================================================
   MASRATY — RESPONSIVE & UI ENHANCEMENTS
   تحسينات الاستجابة وتجربة المستخدم
   ===================================================== */

/* ---- Category Cards — Icon-based Design ---- */
.categories-section-enhanced {
  padding: 70px 0;
}

.categories-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (min-width: 1100px) {
  .categories-grid-horizontal {
    grid-template-columns: repeat(6, 1fr);
  }
}

.category-card-horizontal {
  background: var(--white-pure);
  border-radius: 24px;
  overflow: visible;
  box-shadow: 0 4px 20px rgba(10, 46, 77, 0.07);
  transition: var(--transition-smooth);
  position: relative;
  aspect-ratio: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 20px 28px;
  text-decoration: none;
  text-align: center;
  min-height: 210px;
  border: 1px solid var(--gray-border);
  border-top: 5px solid var(--category-color, var(--accent-mint));
}

.category-card-horizontal:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 40px rgba(10, 46, 77, 0.14);
  border-color: var(--category-color, var(--accent-mint));
}

.category-icon-horizontal {
  position: relative;
  width: 76px;
  height: 76px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-icon-horizontal .icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: var(--category-color, var(--accent-mint));
  opacity: 0.13;
  transition: opacity 0.3s ease;
}

.category-card-horizontal:hover .icon-bg {
  opacity: 0.22;
}

.category-icon-horizontal svg {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  color: var(--category-color, var(--accent-mint));
  display: block;
}

.category-info-horizontal {
  position: static;
  color: var(--text-dark);
  bottom: auto;
  right: auto;
  left: auto;
}

.category-name-horizontal {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  text-shadow: none;
}

.category-count-horizontal {
  font-size: 0.88rem;
  color: var(--text-medium);
  opacity: 1;
}

.category-arrow {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  background: var(--category-color, var(--accent-mint));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transform: scale(0.7);
  transition: var(--transition-smooth);
}

.category-card-horizontal:hover .category-arrow {
  opacity: 1;
  transform: scale(1);
}

/* ---- Stats Section ---- */
.stats-section {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #174F7C 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-4px);
}

.stat-icon {
  width: 64px;
  height: 64px;
  background: rgba(45, 212, 191, 0.15);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent-mint);
}

.stat-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--white-pure);
  margin-bottom: 6px;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

/* ---- Testimonials Section ---- */
.testimonials-section {
  padding: 80px 0;
  background: var(--gray-background);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--white-pure);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(10, 46, 77, 0.07);
  border: 1px solid var(--gray-border);
  transition: var(--transition-smooth);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: var(--accent-mint);
  opacity: 0.3;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 35px rgba(10, 46, 77, 0.12);
  border-color: var(--accent-mint);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dark), var(--accent-mint));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
}

.testimonial-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2px;
}

.testimonial-service {
  font-size: 0.82rem;
  color: var(--text-medium);
  margin: 0;
}

.testimonial-rating {
  display: flex;
  gap: 2px;
  color: var(--accent-gold);
  margin-right: auto;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin-bottom: 12px;
}

.testimonial-date {
  font-size: 0.8rem;
  color: var(--gray-border);
  display: block;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--accent-mint) 0%, #0EA5C8 100%);
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: #fff;
}

.cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

/* ---- Recent Services Section ---- */
.recent-services-section {
  padding: 80px 0;
  background: var(--gray-background);
}

/* ---- View All Button ---- */
.btn-view-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: transparent;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  border-radius: 40px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  margin-top: 40px;
}

.btn-view-all:hover {
  background: var(--primary-dark);
  color: var(--white-pure);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.section-footer-enhanced {
  text-align: center;
}

/* ---- Footer Bottom ---- */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}

/* =====================================================
   RESPONSIVE — TABLET (max 992px)
   ===================================================== */
@media (max-width: 992px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .categories-grid-horizontal {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .services-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* =====================================================
   RESPONSIVE — MOBILE (max 768px)
   ===================================================== */
@media (max-width: 768px) {

  /* -- Header -- */
  .header-content {
    height: 68px;
    padding: 0;
  }

  /* -- Hero -- */
  .hero-section-enhanced {
    padding: 60px 0 80px;
  }

  .hero-title-enhanced {
    font-size: 1.9rem;
  }

  .hero-subtitle-enhanced {
    font-size: 1.3rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  /* -- Search Box (compact, stacked) -- */
  .search-box-wrapper {
    flex-direction: column;
    border-radius: 18px;
    padding: 8px;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  }

  .search-input-group {
    padding: 4px 14px;
    border-bottom: 1px solid var(--gray-border);
  }

  .search-input-enhanced {
    padding: 12px 8px 12px 0;
    font-size: 0.9rem;
  }

  .search-select-group {
    border-right: none;
    border-top: none;
    width: 100%;
    padding: 8px 14px;
    background: transparent;
    border-radius: 0;
  }

  .btn-search-enhanced {
    width: 100%;
    justify-content: center;
    padding: 14px;
    border-radius: 12px;
    margin-top: 6px;
    font-size: 0.95rem;
  }

  /* -- Section Titles -- */
  .section-title-enhanced {
    font-size: 1.7rem;
  }

  .section-subtitle-enhanced {
    font-size: 1rem;
  }

  /* -- Categories: 3 per row on mobile -- */
  .categories-section-enhanced {
    padding: 50px 0;
  }

  .categories-grid-horizontal {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .category-card-horizontal {
    padding: 18px 10px 16px;
    min-height: 130px;
    border-radius: 14px;
    border-top-width: 3px;
  }

  .category-icon-horizontal {
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
  }

  .category-icon-horizontal .icon-bg {
    border-radius: 12px;
  }

  .category-icon-horizontal svg {
    width: 24px;
    height: 24px;
  }

  .category-name-horizontal {
    font-size: 0.8rem;
    font-weight: 700;
  }

  .category-count-horizontal {
    font-size: 0.72rem;
  }

  .category-arrow {
    display: none;
  }

  /* -- Services: 2 columns on mobile -- */
  .featured-services-section-enhanced,
  .recent-services-section {
    padding: 50px 0;
  }

  .services-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .service-card-enhanced {
    border-radius: 14px;
  }

  .service-image-enhanced {
    height: 150px;
  }

  .service-content-enhanced {
    padding: 12px;
  }

  .service-title-enhanced a {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .service-rating-enhanced {
    padding: 4px 8px;
    margin: 8px 0;
    font-size: 0.8rem;
  }

  .service-location-enhanced {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .service-excerpt-enhanced {
    display: none;
  }

  .service-footer-enhanced {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .price-amount {
    font-size: 1rem;
  }

  .price-label {
    font-size: 0.72rem;
  }

  .btn-view-details {
    padding: 7px 12px;
    font-size: 0.78rem;
    border-radius: 20px;
    border-width: 1.5px;
  }

  .service-badge-featured {
    padding: 4px 10px;
    font-size: 0.72rem;
    border-radius: 20px;
  }

  .service-favorite {
    width: 34px;
    height: 34px;
  }

  /* -- Stats: 2×2 grid -- */
  .stats-section {
    padding: 50px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-card {
    padding: 22px 14px;
    border-radius: 14px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .stat-label {
    font-size: 0.82rem;
  }

  /* -- Testimonials: horizontal scroll -- */
  .testimonials-section {
    padding: 50px 0;
  }

  .testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: unset;
    margin-top: 24px;
  }

  .testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  .testimonial-card {
    min-width: 270px;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 20px;
  }

  /* -- CTA Section -- */
  .cta-section {
    padding: 50px 0;
  }

  .cta-title {
    font-size: 1.6rem;
  }

  .cta-subtitle {
    font-size: 0.95rem;
  }

  .cta-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
  }

  /* -- Footer -- */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .social-links {
    gap: 12px;
  }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (max 480px)
   ===================================================== */
@media (max-width: 480px) {
  .categories-grid-horizontal {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-card-horizontal {
    min-height: 110px;
    padding: 16px 8px 12px;
  }

  .services-grid-enhanced {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .service-image-enhanced {
    height: 120px;
  }

  .service-content-enhanced {
    padding: 10px;
  }

  .hero-title-enhanced {
    font-size: 1.6rem;
  }

  .hero-subtitle-enhanced {
    font-size: 1.1rem;
  }

  .container {
    padding: 0 12px;
  }
}

/* =====================================================
   MASRATY — PREMIUM CARD REDESIGN + SECTION TITLES
   ===================================================== */

/* ---- Section Title — Attractive Design ---- */
.section-header-enhanced {
  text-align: center;
  margin-bottom: 52px;
  position: relative;
}

.section-title-enhanced {
  display: inline-block;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 16px;
  position: relative;
  letter-spacing: -0.02em;
}

/* Gradient underline bar */
.section-title-enhanced::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-mint), var(--primary-dark));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.section-header-enhanced:hover .section-title-enhanced::after {
  width: 100px;
}

/* Decorative top badge */
.section-header-enhanced::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--accent-mint);
  border-radius: 4px;
  margin: 0 auto 18px;
  opacity: 0.6;
}

.section-subtitle-enhanced {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-top: 22px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ---- Premium Service Card ---- */
.service-card-enhanced {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 46, 77, 0.07);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(10, 46, 77, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card-enhanced:hover {
  transform: translateY(-12px);
  box-shadow: 0 22px 48px rgba(10, 46, 77, 0.15);
  border-color: rgba(45, 212, 191, 0.4);
}

.service-image-enhanced {
  height: 210px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.service-image-enhanced img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: block;
}

.service-card-enhanced:hover .service-image-enhanced img {
  transform: scale(1.1);
}

.service-placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent-mint) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-content-enhanced {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-header-enhanced {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.service-title-enhanced {
  margin: 0;
  flex: 1;
}

.service-title-enhanced a {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  text-decoration: none;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.service-card-enhanced:hover .service-title-enhanced a {
  color: var(--accent-mint);
  text-shadow: 0 0 1px rgba(45, 212, 191, 0.2);
}

.service-rating-enhanced {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fefce8;
  border: 1px solid #fde68a;
  color: #d97706;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.service-location-enhanced {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-medium);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.service-excerpt-enhanced {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.65;
  margin-bottom: 14px;
  flex: 1;
}

.service-footer-enhanced {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--gray-border);
  margin-top: auto;
  gap: 10px;
}

.service-price-enhanced {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 2px;
}

.price-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-light);
  background: rgba(61, 220, 174, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  display: inline-block;
}

.btn-view-details {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1e6fa8 100%);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

.btn-view-details svg {
  transition: transform 0.3s ease;
}

.btn-view-details:hover {
  background: linear-gradient(135deg, #0c3d61 0%, var(--primary-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 46, 77, 0.3);
  color: #fff;
}

.btn-view-details:hover svg {
  transform: translateX(-4px); /* Assuming RTL */
}

.service-badge-featured {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: #fff;
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.service-badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--accent-mint) 0%, #06b6d4 100%);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(45, 212, 191, 0.35);
}

.service-badges {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
}

.service-favorite {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
  color: #ef4444;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.service-favorite:hover {
  background: #ffffff;
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.2);
}

.service-favorite:active {
  transform: scale(0.95);
}

.service-favorite svg {
  transition: transform 0.3s ease, fill 0.3s ease;
}

.service-favorite:hover svg {
  transform: scale(1.1);
}

/* ---- Scroll Hint (mobile drag indicator) ---- */
.scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--text-medium);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.7;
  animation: hintPulse 2s ease-in-out infinite;
}

.scroll-hint svg {
  flex-shrink: 0;
}

@keyframes hintPulse {

  0%,
  100% {
    opacity: 0.5;
    transform: translateX(0);
  }

  50% {
    opacity: 0.9;
    transform: translateX(-5px);
  }
}

/* =====================================================
   MOBILE — HORIZONTAL SCROLL OVERRIDE
   (overrides previous grid rules)
   ===================================================== */
@media (max-width: 768px) {

  /* ---- Section Titles ---- */
  .section-title-enhanced {
    font-size: 1.6rem;
  }

  .section-header-enhanced {
    margin-bottom: 32px;
  }

  /* ---- Categories: horizontal scroll ---- */
  .categories-grid-horizontal {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-height: 3px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-mint) rgba(0, 0, 0, 0.06);
    cursor: grab;
  }

  .categories-grid-horizontal:active {
    cursor: grabbing;
  }

  .categories-grid-horizontal::-webkit-scrollbar {
    height: 3px;
  }

  .categories-grid-horizontal::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
  }

  .categories-grid-horizontal::-webkit-scrollbar-thumb {
    background: var(--accent-mint);
    border-radius: 3px;
  }

  .category-card-horizontal {
    min-width: 130px !important;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 16px;
    padding: 20px 14px 16px;
    min-height: 140px;
  }

  /* ---- Services: horizontal scroll ---- */
  .services-grid-enhanced {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
    margin-top: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-mint) rgba(0, 0, 0, 0.06);
    cursor: grab;
  }

  .services-grid-enhanced:active {
    cursor: grabbing;
  }

  .services-grid-enhanced::-webkit-scrollbar {
    height: 4px;
  }

  .services-grid-enhanced::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
  }

  .services-grid-enhanced::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-mint), var(--primary-dark));
    border-radius: 4px;
  }

  .service-card-enhanced {
    min-width: 85vw;
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 16px;
  }

  .service-image-enhanced {
    height: 180px;
  }

  .service-content-enhanced {
    padding: 18px 16px;
  }

  .service-title-enhanced a {
    font-size: 1.1rem;
  }

  .service-excerpt-enhanced {
    display: block;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .ad-card-enhanced .service-excerpt-enhanced {
    display: block !important;
  }

  .price-amount {
    font-size: 1.15rem;
  }

  .btn-view-details {
    padding: 10px 16px;
    font-size: 0.88rem;
  }

  /* ---- Show scroll hint on mobile ---- */
  .scroll-hint {
    display: flex;
  }
}

@media (max-width: 480px) {
  .category-card-horizontal {
    min-width: 140px !important;
  }
}