/* ==========================================================================
   عيادة الريسان لطب الأسنان - Al-Raysan Dental Clinic
   Design System & Master Stylesheet
   Direction: RTL (Arabic) | Fully Responsive & Accessible (WCAG AA Compliant)
   ========================================================================== */

:root {
  /* HSL Brand Palette - Medical Teal & Cyan */
  --primary-h: 198;
  --primary-s: 92%;
  --primary-l: 36%;
  --primary: hsl(var(--primary-h), var(--primary-s), var(--primary-l)); /* #076d86 */
  --primary-hover: hsl(var(--primary-h), var(--primary-s), 28%);
  --primary-light: hsl(var(--primary-h), 85%, 94%);
  --primary-glow: hsla(var(--primary-h), var(--primary-s), 50%, 0.25);

  --accent-h: 199;
  --accent-s: 95%;
  --accent-l: 54%;
  --accent: hsl(var(--accent-h), var(--accent-s), var(--accent-l)); /* #14b8a6 / vibrant cyan */
  --accent-hover: hsl(var(--accent-h), var(--accent-s), 45%);

  --gold-accent: #f59e0b;
  --emerald-accent: #10b981;

  /* Neutrals - Dark (Rich Slate Navy) */
  --bg-dark: #0b1120;
  --bg-dark-surface: #111c34;
  --bg-dark-card: #1e293b;
  --border-dark: #334155;
  --text-primary-dark: #f8fafc;
  --text-muted-dark: #cbd5e1; /* High contrast > 7:1 against dark backgrounds */

  /* Neutrals - Light */
  --bg-light: #f8fafc;
  --bg-light-soft: #f0fdfa;
  --bg-white: #ffffff;
  --text-primary-light: #0f172a;
  --text-muted-light: #334155;
  --border-light: #e2e8f0;
  --border-card: #e0f2fe;

  /* Typography */
  --font-arabic: 'Cairo', 'Tajawal', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.18);
  --shadow-cyan: 0 8px 24px rgba(6, 182, 212, 0.22);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Layout */
  --container-max: 1240px;
  --header-height: 80px;
  --topbar-height: 42px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  background-color: var(--bg-light);
  color: var(--text-primary-light);
  line-height: 1.7;
  overflow-x: hidden;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Force Left-To-Right on phone numbers & western digits */
.phone-ltr,
.ltr-text,
a[href^="tel:"],
.direction-ltr {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block;
  font-family: system-ui, -apple-system, sans-serif;
}

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

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Global Container & Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

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

.section-dark {
  background-color: var(--bg-dark);
  color: var(--text-primary-dark);
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.section-dark .section-badge {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.3);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-primary-light);
  line-height: 1.35;
  margin-bottom: 16px;
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted-light);
  line-height: 1.8;
}

.section-dark .section-subtitle {
  color: var(--text-muted-dark);
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(7, 109, 134, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 109, 134, 0.4);
}

.btn-accent {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff !important;
  box-shadow: var(--shadow-cyan);
}

.btn-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(6, 182, 212, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

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

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

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

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

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

/* --------------------------------------------------------------------------
   Top Notification / Information Bar
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-muted-dark);
  font-size: 0.88rem;
  padding: 8px 0;
  position: relative;
  z-index: 1040;
}

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

.topbar-info {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted-dark);
  font-weight: 500;
}

.topbar-item svg {
  width: 16px;
  height: 16px;
  fill: var(--accent);
  flex-shrink: 0;
}

.topbar-item a {
  color: var(--text-muted-dark);
}

.topbar-item a:hover {
  color: #ffffff;
}

.topbar-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
}

.topbar-status .status-dot {
  width: 7px;
  height: 7px;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: all 0.2s;
}

.topbar-social a:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.topbar-social a svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   Sticky Navigation Header (#navigation)
   -------------------------------------------------------------------------- */
#navigation {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(11, 17, 32, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  transition: all 0.3s ease;
}

#navigation.scrolled {
  background-color: rgba(11, 17, 32, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.3));
}

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

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

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

.brand-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-menu li a {
  color: var(--text-muted-dark);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 8px 4px;
  position: relative;
  transition: color 0.25s ease;
}

.nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #ffffff;
}

.nav-menu li a:hover::after,
.nav-menu li a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-cta-btn {
  padding: 10px 22px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.mobile-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-dark);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.4rem;
  line-height: 1;
}

.mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------------------------------------
   Hero Section (#home)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  color: #ffffff;
  overflow: hidden;
  padding: 90px 0 100px;
}

.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(11, 17, 32, 0.92) 0%,
    rgba(11, 28, 48, 0.88) 50%,
    rgba(7, 109, 134, 0.82) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #7dd3fc;
  padding: 8px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 22px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-title .highlight {
  background: linear-gradient(90deg, #38bdf8, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.22rem;
  color: #e2e8f0;
  line-height: 1.85;
  margin-bottom: 38px;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 55px;
}

/* Trust / Stats Strip in Hero */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 24px 30px;
  margin-top: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

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

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted-dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   About Section (#about)
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.about-main-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4/3.8;
  border: 3px solid #ffffff;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  right: 25px;
  background: var(--bg-dark);
  color: #ffffff;
  border: 2px solid var(--accent);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
}

.badge-text {
  font-size: 0.88rem;
  line-height: 1.4;
  color: #e2e8f0;
}

.badge-text strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}

.about-content {
  padding-right: 15px;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
  line-height: 1.7;
}

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

.about-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary-light);
}

.feature-check-icon {
  width: 22px;
  height: 22px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-check-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

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

.service-card {
  background: var(--bg-white);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(6, 182, 212, 0.4);
}

.service-img-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background-color: #e2e8f0;
}

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

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

.service-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(11, 17, 32, 0.85);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-primary-light);
  margin-bottom: 12px;
  line-height: 1.35;
}

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

.service-highlights {
  list-style: none;
  margin-top: auto;
  margin-bottom: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-light);
}

.service-highlights li {
  font-size: 0.86rem;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-highlights li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 800;
}

.service-footer {
  margin-top: auto;
}

.service-book-btn {
  width: 100%;
  padding: 10px;
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   Clinical Cases & Gallery Section (#gallery)
   -------------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

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

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #f1f5f9;
}

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

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

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(11, 17, 32, 0.9) 0%, rgba(11, 17, 32, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
  transition: opacity 0.3s ease;
}

.gallery-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--bg-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  align-self: flex-start;
}

.gallery-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.gallery-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  background: var(--bg-dark-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #000000;
}

.lightbox-caption {
  padding: 20px 24px;
  color: #ffffff;
  background: var(--bg-dark-card);
}

.lightbox-caption h4 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--accent);
}

.lightbox-caption p {
  font-size: 0.92rem;
  color: var(--text-muted-dark);
}

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

.lightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* --------------------------------------------------------------------------
   Medical Team Section (#team)
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-card);
  transition: all 0.32s ease;
  display: flex;
  flex-direction: column;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.team-photo-wrapper {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background-color: #e2e8f0;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.team-card:hover .team-photo {
  transform: scale(1.04);
}

.team-info {
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.doctor-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary-light);
  margin-bottom: 6px;
}

.doctor-role {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.doctor-bio {
  font-size: 0.94rem;
  color: var(--text-muted-light);
  line-height: 1.7;
  margin-bottom: 20px;
}

.doctor-qualifications {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-light-soft);
  border: 1px solid var(--border-card);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

/* --------------------------------------------------------------------------
   Why Choose Us Section (#why-us)
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-box {
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.feature-icon-wrapper svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.92rem;
  color: var(--text-muted-dark);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Testimonials Section (#testimonials)
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

.stars-rating {
  color: var(--gold-accent);
  font-size: 1.15rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-quote {
  font-size: 0.98rem;
  color: var(--text-muted-light);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
  flex-grow: 1;
}

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

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.author-meta h3,
.author-meta h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary-light);
  margin-bottom: 2px;
}

.author-meta span {
  font-size: 0.82rem;
  color: #64748b;
}

/* --------------------------------------------------------------------------
   FAQ Section (#faq)
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  text-align: right;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary-light);
  transition: color 0.2s;
}

.faq-trigger:hover {
  color: var(--primary);
}

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: #ffffff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--text-muted-light);
  font-size: 0.96rem;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 22px;
}

/* --------------------------------------------------------------------------
   Contact & Appointment Booking (#contact)
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: flex-start;
}

.contact-card-box {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

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

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

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

.form-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary-light);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  background: #f8fafc;
  color: var(--text-primary-light);
  font-size: 0.95rem;
  transition: all 0.25s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(7, 109, 134, 0.15);
}

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

.booking-note {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.5;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.sidebar-title {
  font-size: 1.22rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary-light);
  position: relative;
  padding-bottom: 12px;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

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

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

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

.contact-detail-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-detail-info h4,
.contact-detail-info h5 {
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 3px;
  font-weight: 600;
}

.contact-detail-info p,
.contact-detail-info a {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary-light);
}

.contact-detail-info a:hover {
  color: var(--primary);
}

/* Schedule Table */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 10px;
}

.schedule-table tr {
  border-bottom: 1px solid var(--border-light);
}

.schedule-table tr:last-child {
  border-bottom: none;
}

.schedule-table td {
  padding: 10px 0;
}

.schedule-table td:last-child {
  text-align: left;
  font-weight: 700;
  direction: ltr;
}

.schedule-table tr.highlight-day {
  color: var(--primary);
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Footer Section (WCAG AA Contrast Guarantee)
   -------------------------------------------------------------------------- */
footer {
  background-color: var(--bg-dark);
  color: var(--text-primary-dark);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-dark);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col-brand {
  padding-left: 20px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-brand-logo img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.footer-brand-logo span {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand-logo span b {
  color: var(--accent);
}

.footer-summary {
  color: var(--text-muted-dark); /* #cbd5e1 - WCAG AA compliant */
  font-size: 0.94rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.footer-social-link:hover {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-col h3,
.footer-col h4 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 22px;
  color: #ffffff;
  position: relative;
  padding-bottom: 10px;
}

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

/* Explicit styling for footer quick links & lists (Gate 2 WCAG AA Protection) */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1; /* Luminous slate tone, contrast ratio > 7:1 against #0b1120 */
  font-size: 0.94rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.footer-links a::before {
  content: '‹';
  font-size: 1.1rem;
  color: var(--accent);
  transition: transform 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(-4px);
}

.footer-links a:hover::before {
  transform: translateX(-2px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #cbd5e1;
  font-size: 0.94rem;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #cbd5e1;
  font-weight: 600;
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-dark);
  padding-top: 26px;
  font-size: 0.88rem;
  color: #94a3b8; /* Clear high contrast */
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom a {
  color: var(--text-muted-dark);
}

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

/* --------------------------------------------------------------------------
   Floating WhatsApp Button & Back-To-Top
   -------------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1020;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.floating-whatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse-ring 2.2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1020;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-dark-surface);
  border: 1px solid var(--border-dark);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.scroll-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Toast Notification for Form */
.toast-notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-notice.success {
  border-right: 4px solid #10b981;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 991px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 310px;
    height: 100vh;
    background-color: var(--bg-dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 85px 28px 40px;
    gap: 20px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1035;
    overflow-y: auto;
    border-left: 1px solid var(--border-dark);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu li a {
    display: block;
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-menu li a::after {
    display: none;
  }

  .nav-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1032;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

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

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

  .stat-item:nth-child(2)::after {
    display: none;
  }

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

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }

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

@media (max-width: 767px) {
  .section {
    padding: 65px 0;
  }

  .hero-section {
    padding: 60px 0 80px;
    min-height: auto;
  }

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

  .hero-subtitle {
    font-size: 1.05rem;
  }

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

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

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

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .topbar-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .topbar-info {
    justify-content: center;
    gap: 12px;
  }

  .floating-whatsapp {
    bottom: 20px;
    left: 20px;
    width: 52px;
    height: 52px;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    padding: 16px;
  }
  .stat-number {
    font-size: 1.6rem;
  }
  .stat-label {
    font-size: 0.78rem;
  }
  .about-features-list {
    grid-template-columns: 1fr;
  }
  .contact-card-box {
    padding: 24px 18px;
  }
}
