/* ==============================================================================
   CABINET DE GYNÉCOLOGIE-OBSTÉTRIQUE DR. YASSIR BENNANI - LARACHE
   Official Design System & Stylesheet (Trilingual LTR & RTL)
   ============================================================================== */

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

/* --- Root CSS Variables --- */
:root {
  --primary: #188a8d;
  --primary-hover: #137376;
  --primary-dark: #0f595b;
  --primary-light: #e6f5f5;
  --primary-tint: #d0eded;
  
  --dark-slate: #1e242b;
  --dark-slate-deep: #14181d;
  --dark-card: #262e37;
  
  --oak: #d4a373;
  --oak-hover: #c89666;
  --oak-dark: #9e6d3d;
  --oak-light: #faf4ed;
  
  --bg-body: #f8fafb;
  --bg-surface: #ffffff;
  --bg-soft: #f1f5f7;
  
  --text-main: #2c3e50;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;
  
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  
  --shadow-sm: 0 2px 4px rgba(30, 36, 43, 0.04);
  --shadow-md: 0 4px 12px rgba(30, 36, 43, 0.08);
  --shadow-lg: 0 10px 25px rgba(30, 36, 43, 0.12);
  --shadow-xl: 0 20px 40px rgba(24, 138, 141, 0.15);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  --font-latin: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Alex Brush', cursive, serif;
  --font-current: var(--font-latin);
  
  --header-height: 80px;
  --topbar-height: 40px;
}

/* RTL Override */
html[dir="rtl"] {
  --font-current: var(--font-arabic);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-current);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
}

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

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

button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

ul {
  list-style: none;
}

/* --- Containers & Layout --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding: 85px 0;
  position: relative;
}

.section-alt {
  background-color: #ffffff;
}

.section-dark {
  background-color: var(--dark-slate);
  color: #ffffff;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 55px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--primary-light);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.section-tag.tag-oak {
  background-color: var(--oak-light);
  color: var(--oak-dark);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--dark-slate);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-dark .section-title {
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .section-subtitle {
  color: #a8b5c4;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(24, 138, 141, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(24, 138, 141, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-oak {
  background-color: var(--oak);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(212, 163, 115, 0.35);
}

.btn-oak:hover {
  background-color: var(--oak-hover);
  box-shadow: 0 6px 20px rgba(212, 163, 115, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

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

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

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.btn-outline-white:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

/* --- Top Header Bar --- */
.top-bar {
  background-color: var(--dark-slate);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.top-bar-item svg {
  width: 14px;
  height: 14px;
  color: var(--oak);
}

/* --- Main Navigation Header --- */
.main-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.main-header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: #ffffff;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

/* Brand Logo */
.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo-svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(24, 138, 141, 0.2));
  transition: var(--transition);
}

.brand-link:hover .brand-logo-svg {
  transform: rotate(-4deg) scale(1.04);
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark-slate);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.brand-script {
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: var(--primary);
  line-height: 1.1;
  font-weight: 400;
  display: inline-block;
}

html[dir="rtl"] .brand-script {
  font-family: var(--font-arabic);
  font-size: 1.15rem;
  font-weight: 700;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

html[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

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

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

/* Header Actions (Language Switcher + Booking CTA) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-soft);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.lang-btn {
  background: none;
  border: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(24, 138, 141, 0.3);
}

/* Mobile Toggle Hamburger */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--dark-slate);
}

.mobile-nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  padding: 80px 0 100px 0;
  background: linear-gradient(135deg, #f8fafb 0%, #edf7f7 50%, #ffffff 100%);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 138, 141, 0.08) 0%, rgba(24, 138, 141, 0) 70%);
  pointer-events: none;
}

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

.hero-badge-wrap {
  margin-bottom: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: #ffffff;
  border: 1px solid rgba(24, 138, 141, 0.25);
  box-shadow: 0 2px 8px rgba(24, 138, 141, 0.1);
  color: var(--primary-dark);
  font-size: 0.86rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 138, 141, 0.2);
}

.hero-headline {
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--dark-slate);
  line-height: 1.18;
  margin-bottom: 8px;
  letter-spacing: -0.8px;
}

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

.hero-specialty {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--oak-dark);
  margin-bottom: 22px;
}

/* Credentials List in Hero */
.hero-credentials-box {
  background-color: #ffffff;
  border: 1px solid rgba(212, 163, 115, 0.35);
  border-left: 4px solid var(--oak);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

html[dir="rtl"] .hero-credentials-box {
  border-left: 1px solid rgba(212, 163, 115, 0.35);
  border-right: 4px solid var(--oak);
}

.hero-cred-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
  font-weight: 500;
}

.hero-cred-item:last-child {
  margin-bottom: 0;
}

.hero-cred-item svg {
  width: 16px;
  height: 16px;
  color: var(--oak);
  flex-shrink: 0;
  margin-top: 3px;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 35px;
}

/* Hero Trust Badges */
.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding-top: 25px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

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

.trust-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 18px;
  height: 18px;
}

.trust-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-slate);
  line-height: 1.2;
}

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

/* Hero Visual / Clinic Card */
.hero-visual {
  position: relative;
}

.hero-card-featured {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(24, 138, 141, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-card-featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--oak) 100%);
}

.hero-badge-circle {
  width: 130px;
  height: 130px;
  margin: 0 auto 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-badge-circle svg {
  width: 100%;
  height: 100%;
}

.hero-visual-content {
  text-align: center;
}

.hero-visual-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 4px;
}

.hero-visual-spec {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.hero-info-pills {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  text-align: left;
}

html[dir="rtl"] .hero-info-pills {
  text-align: right;
}

.info-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--bg-soft);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}

.info-pill svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Floating Card Accent */
.floating-accent-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background-color: var(--dark-slate);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

html[dir="rtl"] .floating-accent-card {
  right: auto;
  left: -20px;
}

.floating-accent-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--oak);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-accent-title {
  font-size: 0.85rem;
  font-weight: 700;
}

.floating-accent-sub {
  font-size: 0.74rem;
  color: #a8b5c4;
}

/* --- Stats Counter Strip --- */
.stats-strip {
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
}

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

.stat-box {
  padding: 10px 15px;
  border-right: 1px solid var(--border-color);
}

.stat-box:last-child {
  border-right: none;
}

html[dir="rtl"] .stat-box {
  border-right: none;
  border-left: 1px solid var(--border-color);
}

html[dir="rtl"] .stat-box:last-child {
  border-left: none;
}

.stat-number {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* --- About Doctor Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 60px;
}

.about-image-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  position: relative;
}

.about-avatar-wrap {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 25px auto;
  background: linear-gradient(135deg, var(--primary-light), var(--oak-light));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 16px rgba(24, 138, 141, 0.2);
}

.about-avatar-wrap svg {
  width: 140px;
  height: 140px;
}

.about-profile-summary {
  text-align: center;
}

.about-profile-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 4px;
}

.about-profile-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 18px;
}

.about-diplomas-list {
  background-color: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
}

html[dir="rtl"] .about-diplomas-list {
  text-align: right;
}

.diploma-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-main);
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
}

.diploma-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.diploma-item svg {
  width: 16px;
  height: 16px;
  color: var(--oak);
  flex-shrink: 0;
  margin-top: 3px;
}

.about-text-content .section-title {
  margin-bottom: 10px;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.about-paragraph {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 25px;
}

.highlight-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 16px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.highlight-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-tint);
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
}

.highlight-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 4px;
}

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

/* --- Services Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: transparent;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-tint);
}

.service-card:hover::after {
  background: linear-gradient(90deg, var(--primary) 0%, var(--oak) 100%);
}

.service-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background-color: var(--primary);
  color: #ffffff;
  transform: scale(1.05);
}

.service-icon-wrap svg {
  width: 30px;
  height: 30px;
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--oak-dark);
  background-color: var(--oak-light);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 12px;
  line-height: 1.35;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-checklist {
  margin-bottom: 24px;
  margin-top: auto;
}

.service-check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 8px;
}

.service-check-item svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
  flex-shrink: 0;
}

.service-action-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  background-color: var(--bg-soft);
  color: var(--primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.service-card:hover .service-action-btn {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Feature card 5 spans full width on 3-col or featured look */
.service-card-featured {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 100%);
  border-color: rgba(24, 138, 141, 0.3);
}

/* --- Technology / Equipment Section --- */
.tech-box {
  background: linear-gradient(135deg, var(--dark-slate) 0%, var(--dark-slate-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 50px 45px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.tech-box::after {
  content: '';
  position: absolute;
  right: -50px;
  top: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24, 138, 141, 0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.tech-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.tech-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
}

.tech-brand-highlight {
  color: #38c8cc;
}

.tech-subtitle {
  font-size: 1.05rem;
  color: var(--oak);
  margin-bottom: 20px;
  font-weight: 500;
}

.tech-desc {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 26px;
}

.tech-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-point-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: #e2e8f0;
}

.tech-point-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: rgba(56, 200, 204, 0.2);
  color: #38c8cc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-point-icon svg {
  width: 14px;
  height: 14px;
}

.tech-visual-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 30px;
  text-align: center;
}

.tech-badge-large {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: rgba(212, 163, 115, 0.2);
  color: var(--oak);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.tech-scanner-mock {
  width: 100%;
  height: 200px;
  background: radial-gradient(circle at center, #1b3842 0%, #141c22 100%);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(56, 200, 204, 0.3);
  position: relative;
  overflow: hidden;
}

.scanner-wave {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #38c8cc, transparent);
  animation: scanWave 3s infinite linear;
}

@keyframes scanWave {
  0% { top: 0%; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.tech-scanner-mock svg {
  width: 60px;
  height: 60px;
  color: #38c8cc;
}

.scanner-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

/* --- Clinic Gallery Tour --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery-card {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.gallery-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: var(--bg-soft);
}

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

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

.gallery-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(30, 36, 43, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

html[dir="rtl"] .gallery-badge {
  right: auto;
  left: 12px;
}

.gallery-badge svg {
  width: 12px;
  height: 12px;
}

.gallery-info {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gallery-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 6px;
  line-height: 1.35;
}

.gallery-card-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: auto;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(14, 18, 22, 0.94);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  width: 100%;
  background-color: #1e242b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-img-box {
  width: 100%;
  height: 480px;
  background-color: #0f1317;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-caption-bar {
  padding: 18px 24px;
  background-color: #1e242b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
}

.lightbox-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.lightbox-desc {
  font-size: 0.85rem;
  color: #94a3b8;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.lightbox-close:hover {
  background-color: var(--primary);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background-color: var(--primary);
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}

/* --- Interactive Appointment Booking Section --- */
.booking-section {
  background: linear-gradient(180deg, #f8fafb 0%, #edf7f7 100%);
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

/* Direct Channels Box (Left side) */
.booking-channels-box {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.booking-channels-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 10px;
}

.booking-channels-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 25px;
}

.channel-card {
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-soft);
  transition: var(--transition);
}

.channel-card:hover {
  border-color: var(--primary-tint);
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.channel-card-whatsapp {
  border-color: rgba(37, 211, 102, 0.3);
  background-color: #f0faf3;
}

.channel-card-whatsapp:hover {
  border-color: #25d366;
  background-color: #ffffff;
}

.channel-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon-phone {
  background-color: var(--primary-light);
  color: var(--primary);
}

.channel-icon-wa {
  background-color: #25d366;
  color: #ffffff;
}

.channel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 2px;
}

.channel-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-dark);
  direction: ltr;
  display: inline-block;
}

.channel-card-whatsapp .channel-number {
  color: #128c7e;
}

.channel-btn {
  width: 100%;
}

/* Clinic Address Box inside Channels */
.clinic-desk-schedule {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.schedule-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.schedule-header svg {
  width: 16px;
  height: 16px;
  color: var(--oak);
}

.schedule-row {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

/* Main Booking Form Card */
.booking-form-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.form-header {
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 18px;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 6px;
}

.form-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Form Groups & Inputs */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-slate);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 0.94rem;
  color: var(--text-main);
  background-color: var(--bg-soft);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  background-color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(24, 138, 141, 0.15);
}

.form-input.is-invalid, .form-select.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

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

/* Dual Submit Buttons */
.form-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 25px;
}

.btn-book-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 0.95rem;
}

/* Honeypot hidden input */
.hp-field {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.form-privacy-note svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

/* --- Feedback Modal / Toast for Bookings --- */
.booking-toast-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2500;
  background-color: rgba(20, 24, 29, 0.85);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.booking-toast-modal.active {
  display: flex;
}

.toast-dialog {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 35px 30px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
}

@keyframes modalPop {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.toast-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #d1fae5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.toast-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.toast-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 8px;
}

.toast-message {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.toast-ref-box {
  background-color: var(--bg-soft);
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  margin-bottom: 24px;
}

.toast-ref-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-weight: 600;
}

.toast-ref-code {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}

/* --- Location & Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.contact-info-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 35px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-detail-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
}

.contact-detail-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 2px;
}

.contact-detail-val {
  font-size: 0.96rem;
  color: var(--text-main);
  font-weight: 600;
}

.contact-detail-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.map-embed-wrapper {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 420px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.map-embed-iframe {
  width: 100%;
  height: 100%;
  flex-grow: 1;
  border: none;
}

.map-card-footer {
  padding: 16px 20px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* --- Footer --- */
.main-footer {
  background-color: var(--dark-slate);
  color: #94a3b8;
  padding: 70px 0 30px 0;
  border-top: 3px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer-brand-sub {
  color: var(--oak);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.footer-col-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background-color: var(--primary);
}

html[dir="rtl"] .footer-col-title::after {
  left: auto;
  right: 0;
}

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

.footer-link-item a {
  font-size: 0.88rem;
  color: #cbd5e1;
  transition: var(--transition);
}

.footer-link-item a:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

html[dir="rtl"] .footer-link-item a:hover {
  transform: translateX(-4px);
}

.footer-cred-item {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 10px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.footer-cred-item svg {
  width: 14px;
  height: 14px;
  color: var(--oak);
  flex-shrink: 0;
  margin-top: 4px;
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #64748b;
}

/* --- Floating Quick Action Bar (Mobile only) --- */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  padding: 8px 12px;
  z-index: 1500;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.floating-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.floating-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  transition: var(--transition);
}

.floating-bar-btn svg {
  width: 20px;
  height: 20px;
}

.floating-bar-btn.btn-float-call {
  color: var(--primary);
}

.floating-bar-btn.btn-float-wa {
  color: #128c7e;
}

.floating-bar-btn.btn-float-book {
  background-color: var(--primary);
  color: #ffffff;
}

.floating-bar-btn.btn-float-map {
  color: var(--oak-dark);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .booking-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  body {
    padding-bottom: 65px; /* space for mobile floating bar */
  }
  
  .top-bar {
    display: none; /* Hide topbar on mobile to save vertical space */
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    gap: 16px;
    transform: translateY(-150%);
    opacity: 0;
    transition: var(--transition-slow);
    pointer-events: none;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .header-actions .btn-book-nav {
    display: none; /* handled by mobile floating bar */
  }
  
  .hero-headline {
    font-size: 2.15rem;
  }
  
  .hero-trust-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-box {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 10px;
  }
  
  .stat-box:nth-child(3), .stat-box:nth-child(4) {
    border-bottom: none;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-actions-grid {
    grid-template-columns: 1fr;
  }
  
  .booking-form-card {
    padding: 24px 18px;
  }
  
  .mobile-floating-bar {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
