/* ==========================================================================
   عيادة الأمير لطب وجراحة الفم والأسنان - التصميم الفاخر والهوية البصرية
   Al-Amir Dental Clinic - Main Stylesheet
   Color Palette: Royal Emerald Green (#1b4332), Sage Olive, Champagne Gold (#c5a059)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Cairo:wght@600;700;800;900&display=swap');

:root {
  /* Colors */
  --primary-dark: #0f291e;
  --primary: #1b4332;
  --primary-medium: #2d5a43;
  --primary-light: #40755a;
  --primary-soft: #edf5f0;
  
  --sage: #607258;
  --sage-light: #8b9d82;

  --gold: #c5a059;
  --gold-hover: #b08d47;
  --gold-light: #dfc17b;
  --gold-soft: #fcf8f0;
  --gold-glow: rgba(197, 160, 89, 0.25);

  --dark-text: #1a2421;
  --body-text: #3c4a44;
  --muted-text: #6b7a74;
  
  --bg-cream: #faf8f5;
  --bg-warm: #f4efe8;
  --white: #ffffff;
  --border-light: rgba(197, 160, 89, 0.2);
  --border-subtle: #e9ece8;
  
  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(27, 67, 50, 0.05);
  --shadow-md: 0 8px 24px rgba(27, 67, 50, 0.08);
  --shadow-lg: 0 16px 36px rgba(27, 67, 50, 0.12);
  --shadow-gold: 0 8px 25px rgba(197, 160, 89, 0.28);
  
  /* Typography */
  --font-main: 'Tajawal', sans-serif;
  --font-heading: 'Cairo', 'Tajawal', sans-serif;
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-cream);
  color: var(--body-text);
  line-height: 1.75;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-warm);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-medium);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Top Emergency Bar (الشريط العلوي للطوارئ على مدار 24 ساعة)
   ========================================================================== */
.emergency-topbar {
  background: linear-gradient(135deg, #123023 0%, #1b4332 50%, #0d2419 100%);
  color: var(--white);
  padding: 10px 0;
  position: relative;
  z-index: 1001;
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.emergency-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
}

.pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  direction: ltr;
  padding: 4px 12px;
  background: rgba(197, 160, 89, 0.12);
  border-radius: var(--radius-full);
  border: 1px solid rgba(197, 160, 89, 0.3);
  transition: var(--transition);
}

.topbar-phone:hover {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.topbar-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #c9d6cf;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.98);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}

.brand-title span {
  color: var(--gold);
}

.brand-subtitle {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted-text);
  letter-spacing: 0.3px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-text);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--gold);
  transition: var(--transition);
  border-radius: var(--radius-full);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Primary and Secondary Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #a88338 100%);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #d6b36a 0%, var(--gold) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(197, 160, 89, 0.4);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(27, 67, 50, 0.25);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, var(--primary-medium) 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(27, 67, 50, 0.35);
  color: var(--white);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae26f 0%, #1fa855 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #faf7f2 0%, #f3ede2 60%, #e9f0eb 100%);
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -150px;
  left: -150px;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(27, 67, 50, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  color: #8c6d2c;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--gold);
  position: relative;
  display: inline-block;
}

.hero-title .clinic-name {
  color: var(--primary);
  display: block;
}

.hero-desc {
  font-size: 1.18rem;
  color: var(--body-text);
  line-height: 1.85;
  margin-bottom: 35px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-trust-badges {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(27, 67, 50, 0.1);
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.trust-text {
  display: flex;
  flex-direction: column;
}

.trust-text strong {
  font-size: 0.95rem;
  color: var(--primary-dark);
  font-weight: 800;
}

.trust-text span {
  font-size: 0.8rem;
  color: var(--muted-text);
}

/* Hero Media Card */
.hero-media {
  position: relative;
}

.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
}

.hero-card img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border-right: 4px solid var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 280px;
}

.floating-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.floating-text h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.floating-text p {
  font-size: 0.8rem;
  color: var(--muted-text);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  padding: 4px 14px;
  background: var(--gold-soft);
  border-radius: var(--radius-full);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.3;
  margin-bottom: 14px;
}

.section-title span {
  color: var(--gold);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--muted-text);
  line-height: 1.8;
}

/* ==========================================================================
   About Section & Doctor Profile (نبذة عن العيادة والدكتور أحمد الأمير)
   ========================================================================== */
.about-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.about-media-wrapper {
  position: relative;
}

.doctor-portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(27, 67, 50, 0.15);
  border: 5px solid var(--white);
  background: var(--bg-warm);
}

.doctor-portrait-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.doctor-portrait-card:hover img {
  transform: scale(1.02);
}

.doctor-badge-ribbon {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, var(--gold) 0%, #b08d47 100%);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 6px;
}

.about-content {
  display: flex;
  flex-direction: column;
}

.about-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.35;
}

.about-doctor-name {
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.doctor-credentials-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-cream);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border-right: 4px solid var(--gold);
}

.cred-icon {
  color: var(--gold);
  font-size: 1.3rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.cred-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 2px;
}

.cred-info span {
  font-size: 0.85rem;
  color: var(--muted-text);
}

.about-text {
  font-size: 1.05rem;
  color: var(--body-text);
  line-height: 1.85;
  margin-bottom: 28px;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.pillar-item i {
  color: var(--gold);
  font-size: 1.1rem;
}

/* ==========================================================================
   Quick Services Section (عرض الخدمات السريع)
   ========================================================================== */
.services-preview-section {
  padding: 100px 0;
  background: var(--bg-warm);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  margin-bottom: 45px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

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

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-light);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-thumb {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.service-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-thumb img {
  transform: scale(1.06);
}

.service-thumb-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 41, 30, 0.88);
  backdrop-filter: blur(6px);
  color: var(--gold-light);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(197, 160, 89, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
}


.service-card:hover .service-icon-box {
  background: var(--gold);
  color: var(--white);
  transform: rotate(4deg);
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.service-card-desc {
  font-size: 0.96rem;
  color: var(--body-text);
  line-height: 1.75;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-link-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.service-card:hover .service-link-text {
  color: var(--gold);
}

.services-action-center {
  text-align: center;
  margin-top: 30px;
}

/* ==========================================================================
   Why Choose Us (مميزات عيادة الأمير)
   ========================================================================== */
.features-section {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #153829 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.features-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(197, 160, 89, 0.15), transparent 50%);
  pointer-events: none;
}

.features-section .section-title {
  color: var(--white);
}

.features-section .section-desc {
  color: #c4d4cc;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(197, 160, 89, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.feature-box:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-5px);
  border-color: var(--gold);
}

.feature-box-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  margin: 0 auto 20px;
  border: 1px solid var(--gold);
}

.feature-box h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.feature-box p {
  font-size: 0.92rem;
  color: #d1dfd8;
  line-height: 1.7;
}

/* ==========================================================================
   Testimonials Section (آراء العملاء والمراجعين)
   ========================================================================== */
.testimonials-section {
  padding: 100px 0;
  background: var(--bg-cream);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(197, 160, 89, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.quote-icon {
  font-size: 2.2rem;
  color: rgba(197, 160, 89, 0.3);
  margin-bottom: 15px;
}

.testimonial-rating {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 15px;
  display: flex;
  gap: 3px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--body-text);
  line-height: 1.8;
  margin-bottom: 25px;
  font-style: normal;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 15px;
  border-top: 1px solid var(--border-subtle);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.author-info h5 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.author-info span {
  font-size: 0.82rem;
  color: var(--gold-hover);
  font-weight: 600;
}

/* ==========================================================================
   Appointment Booking Banner / CTA
   ========================================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #123124 100%);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin: -40px auto 70px;
  border: 2px solid rgba(197, 160, 89, 0.35);
}

.cta-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
  position: relative;
  z-index: 2;
}

.cta-banner-text h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--white);
}

.cta-banner-text h3 span {
  color: var(--gold-light);
}

.cta-banner-text p {
  font-size: 1.05rem;
  color: #d7e6de;
}

.cta-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer (تذييل الصفحة وملاحظة الاستفسارات)
   ========================================================================== */
.site-footer {
  background: #0d1e17;
  color: #d1dfd8;
  padding-top: 80px;
  position: relative;
  border-top: 3px solid var(--gold);
}

/* Inquiries Callout Box in Footer */
.footer-inquiries-box {
  background: linear-gradient(135deg, rgba(197, 160, 89, 0.15) 0%, rgba(27, 67, 50, 0.3) 100%);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  text-align: center;
  margin-bottom: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.inquiries-heading {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--gold-light);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.inquiries-subtext {
  font-size: 1.05rem;
  color: #edf5f0;
  margin-bottom: 18px;
}

.inquiries-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 900;
  color: var(--white);
  direction: ltr;
  background: var(--primary);
  padding: 10px 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-gold);
  transition: var(--transition);
}

.inquiries-phone-link:hover {
  background: var(--gold);
  color: var(--primary-dark);
  transform: scale(1.03);
}

/* Footer Main Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-brand img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  border: 1px solid var(--gold);
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
}

.footer-brand-title span {
  color: var(--gold);
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #a7bbb0;
  margin-bottom: 20px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  color: #c2d4cb;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links-list a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
}

.contact-info-item i {
  color: var(--gold);
  font-size: 1.15rem;
  margin-top: 4px;
  flex-shrink: 0;
}

.map-container {
  margin-top: 15px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, 0.3);
  height: 160px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.88rem;
  color: #7e9488;
}

/* ==========================================================================
   Services Page Detailed Styles (`services.html`)
   ========================================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a3f2f 60%, #153326 100%);
  color: var(--white);
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
  border-bottom: 3px solid var(--gold);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 15px;
}

.page-hero-title span {
  color: var(--gold-light);
}

.page-hero-desc {
  font-size: 1.15rem;
  color: #d1dfd8;
  max-width: 680px;
  margin: 0 auto;
}

.detailed-service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 45px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  position: relative;
  transition: var(--transition);
}

.detailed-service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.detailed-service-card.reverse {
  grid-template-columns: 0.8fr 1.2fr;
}

.detailed-service-card.reverse .service-detail-content {
  order: 2;
}

.detailed-service-card.reverse .service-detail-box {
  order: 1;
}

.service-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.service-detail-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-detail-title i {
  color: var(--gold);
}

.service-detail-lead {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.service-detail-text {
  font-size: 1rem;
  color: var(--body-text);
  line-height: 1.85;
  margin-bottom: 22px;
}

.service-benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 25px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.benefit-item i {
  color: #10b981;
  font-size: 1rem;
}

.service-detail-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(27, 67, 50, 0.12);
  border: 4px solid var(--white);
  height: 380px;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.service-detail-media:hover img {
  transform: scale(1.04);
}

.service-detail-overlay-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(13, 30, 23, 0.95) 0%, rgba(13, 30, 23, 0.7) 65%, transparent 100%);
  padding: 24px 20px 18px;
  color: var(--white);
}

.service-detail-overlay-info h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.service-detail-overlay-info p {
  font-size: 0.85rem;
  color: #d1dfd8;
  line-height: 1.5;
}

.service-detail-box {

  background: linear-gradient(135deg, var(--bg-cream) 0%, #f4efe6 100%);
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.detail-box-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 2px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.detail-box-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.detail-box-desc {
  font-size: 0.9rem;
  color: var(--muted-text);
  line-height: 1.6;
}

/* ==========================================================================
   Floating Action Buttons (واتساب والاتصال العائم)
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 24px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  position: relative;
}

.float-btn:hover {
  transform: scale(1.1);
  color: var(--white);
}

.float-whatsapp {
  background: #25d366;
}

.float-whatsapp:hover {
  background: #1eb956;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.float-call {
  background: var(--primary);
  border: 1.5px solid var(--gold);
}

.float-call:hover {
  background: var(--primary-dark);
}

.float-tooltip {
  position: absolute;
  left: 64px;
  background: var(--primary-dark);
  color: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.float-btn:hover .float-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Smile & Clinic Gallery (معرض الابتسامات والعيادة)
   ========================================================================== */
.gallery-section {
  padding: 95px 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 270px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border-light);
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 30, 23, 0.92) 0%, rgba(13, 30, 23, 0.3) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  opacity: 0.95;
  transition: var(--transition);
}

.gallery-overlay h4 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: var(--gold-light);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc {
    margin: 0 auto 35px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust-badges {
    justify-content: center;
  }

  .hero-card img {
    height: 380px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .doctor-portrait-card img {
    height: 420px;
  }

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

  .detailed-service-card,
  .detailed-service-card.reverse {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 30px;
  }

  .detailed-service-card.reverse .service-detail-content,
  .detailed-service-card.reverse .service-detail-box {
    order: unset;
  }
}

@media (max-width: 768px) {
  .topbar-content {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-light);
    display: none;
    transform: translateY(-20px);
    transition: var(--transition);
  }

  .nav-menu.active {
    display: flex;
    transform: translateY(0);
  }

  .nav-cta .btn {
    display: none;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .inquiries-heading {
    font-size: 1.6rem;
  }

  .inquiries-phone-link {
    font-size: 1.7rem;
    padding: 8px 20px;
  }

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

  .about-pillars {
    grid-template-columns: 1fr;
  }

  .service-benefits-list {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    padding: 30px 20px;
    text-align: center;
  }

  .cta-banner-content {
    justify-content: center;
  }

  .cta-banner-actions {
    justify-content: center;
  }
}

/* ==========================================================================
   Booking Modal (نافذة الحجز السريع عبر الواتساب)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(13, 30, 23, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold);
  max-width: 520px;
  width: 100%;
  padding: 40px 32px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(15px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--bg-cream);
  border: 1px solid var(--border-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.modal-header {
  text-align: center;
  margin-bottom: 25px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.modal-title span {
  color: var(--gold);
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--muted-text);
}

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

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.98rem;
  background: var(--bg-cream);
  color: var(--dark-text);
  transition: var(--transition);
  direction: rtl;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.modal-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  margin-top: 10px;
}

