/* ==========================================================================
   Happy Pet Vet Clinic — Professional Multi-Clinic Website
   Design System & Global Styles
   ========================================================================== */

:root {
  /* Primary teal palette */
  --primary-50: #f0fdfa;
  --primary-100: #ccfbf1;
  --primary-200: #99f6e4;
  --primary-300: #5eead4;
  --primary-400: #2dd4bf;
  --primary-500: #14b8a6;
  --primary-600: #0d9488;
  --primary-700: #0f766e;
  --primary-800: #115e59;
  --primary-900: #134e4a;
  --primary-950: #042f2e;

  /* Gold accent */
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-200: #fde68a;
  --gold-300: #fcd34d;
  --gold-400: #fbbf24;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --gold-800: #92400e;
  --gold-900: #78350f;

  /* Slate neutrals */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic colors */
  --urgent-red: #ef4444;
  --urgent-red-dark: #b91c1c;
  --warning-orange: #f97316;
  --success-green: #10b981;
  --info-blue: #3b82f6;

  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
  --font-arabic: 'Cairo', 'Noto Sans Arabic', sans-serif;

  /* Spacing */
  --section-padding: 6rem;
  --container-max: 1280px;
  --container-narrow: 960px;

  /* Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04), 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.18);
  --shadow-gold: 0 10px 40px rgba(245, 158, 11, 0.25);

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: linear-gradient(180deg, var(--primary-50) 0%, #ffffff 15%, #ffffff 85%, var(--primary-50) 100%);
  color: var(--slate-700);
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

/* Selection */
::selection {
  background: var(--primary-200);
  color: var(--primary-900);
}

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--primary-400);
  outline-offset: 2px;
}

/* Utility containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section-sm {
  padding: 3.5rem 0;
}

.section-lg {
  padding: 8rem 0;
}

.bg-white { background: #ffffff; }
.bg-slate { background: var(--slate-50); }
.bg-primary { background: var(--primary-50); }
.bg-dark {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: #fff;
}

/* Top notice bar */
.top-bar {
  background: var(--primary-950);
  color: var(--primary-200);
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  position: relative;
  z-index: 1001;
}

.top-bar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.pulse-badge {
  background: var(--urgent-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.top-bar a {
  color: var(--primary-300);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar a:hover {
  color: var(--gold-300);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-base);
}

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

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 104px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex-shrink: 0;
  margin-right: 1.5rem;
  white-space: nowrap;
}

.brand-logo {
  height: 84px;
  width: auto;
  max-width: 160px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 6px;
  border: 2px solid var(--gold-400);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
  transition: var(--transition-base);
}

.brand:hover .brand-logo {
  transform: scale(1.05) rotate(-3deg);
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--primary-900);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-arabic {
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-600);
  line-height: 1.2;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

/* Navigation */
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate-700);
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-full);
  position: relative;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-700);
  background: var(--primary-50);
}

.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background: var(--gold-500);
  border-radius: 2px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45);
}

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

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(245, 158, 11, 0.35);
}

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

.btn-outline:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-800);
}

.btn-light {
  background: #fff;
  color: var(--primary-800);
  box-shadow: var(--shadow-md);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-urgent {
  background: var(--urgent-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
}

.btn-urgent:hover {
  background: var(--urgent-red-dark);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--primary-900);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(360px, 88vw);
  height: 100%;
  background: #fff;
  box-shadow: var(--shadow-xl);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--slate-100);
}

.mobile-drawer-close {
  background: var(--slate-100);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--slate-600);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.mobile-drawer-close:hover {
  background: var(--slate-200);
  color: var(--slate-800);
}

.mobile-drawer-nav {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-drawer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-drawer-nav a {
  display: block;
  padding: 0.9rem 1rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--slate-800);
  border-radius: var(--radius-md);
}

.mobile-drawer-nav a:hover,
.mobile-drawer-nav a.active {
  background: var(--primary-50);
  color: var(--primary-700);
}

.mobile-drawer-actions {
  padding: 1.5rem;
  border-top: 1px solid var(--slate-100);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Hero section */
.hero {
  position: relative;
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  padding: 5rem 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: 
    radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(245, 158, 11, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, var(--primary-50) 0%, #ffffff 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f766e' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

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

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 148, 136, 0.1);
  color: var(--primary-700);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(13, 148, 136, 0.2);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--primary-900);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero-title span {
  color: var(--primary-600);
  background: linear-gradient(135deg, var(--primary-600), var(--gold-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-ar {
  font-family: var(--font-arabic);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary-700);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-700);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
}

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

.hero-image-main {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 5px solid #fff;
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.hero-image-main:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-image-main img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* Hero Image Slider */
.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.4);
  border: 5px solid #ffffff;
  background: var(--slate-900);
  height: 520px;
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
  user-select: none;
}

.hero-slider:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.35);
}

.hero-slides-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1.05);
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

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

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.1) 0%,
    transparent 35%,
    rgba(15, 23, 42, 0.45) 65%,
    rgba(15, 23, 42, 0.84) 100%
  );
  pointer-events: none;
}

.hero-slide-caption {
  position: absolute;
  bottom: 4.25rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  pointer-events: none;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.5s ease 0.2s, opacity 0.5s ease 0.2s;
}

.hero-slide.active .hero-slide-caption {
  transform: translateY(0);
  opacity: 1;
}

.hero-slide-tag {
  display: inline-flex;
  align-self: flex-start;
  background: var(--gold-500);
  color: var(--primary-950);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-slide-title {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: -0.01em;
}

.hero-slider-controls {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.hero-slider-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.hero-slider-btn:hover {
  background: var(--gold-500);
  color: var(--primary-950);
  border-color: var(--gold-400);
  transform: scale(1.1);
}

.hero-slider-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hero-slider-dot {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.hero-slider-dot.active {
  width: 26px;
  background: var(--gold-400);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
}

.hero-float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: float 5s ease-in-out infinite;
  z-index: 10;
}

.hero-float-card.top {
  top: -20px;
  right: -20px;
}

.hero-float-card.bottom {
  bottom: 30px;
  left: -30px;
  animation-delay: 1.5s;
}

.hero-float-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.hero-float-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--slate-800);
}

.hero-float-text span {
  font-size: 0.75rem;
  color: var(--slate-500);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-600);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--gold-400);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--primary-900);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.section-title-ar {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-600);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--slate-600);
  line-height: 1.7;
}

/* Clinic selector cards */
.clinic-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.clinic-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  transition: var(--transition-slow);
}

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

.clinic-card-image {
  height: 220px;
  overflow: hidden;
}

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

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

.clinic-card-body {
  padding: 1.75rem;
}

.clinic-card-city {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.25rem;
}

.clinic-card-city-ar {
  font-family: var(--font-arabic);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 0.75rem;
}

.clinic-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--slate-600);
  margin-bottom: 1.25rem;
}

.clinic-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.clinic-card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Service cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

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

.service-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.service-card-icon {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
}

.service-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.2rem;
}

.service-card-title-ar {
  font-family: var(--font-arabic);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 0.75rem;
}

.service-card-text {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-100);
}

.service-card-branch {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-card-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-600);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card-link:hover {
  color: var(--primary-800);
  gap: 0.55rem;
}

/* Feature split */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.feature-split.reverse {
  direction: rtl;
}

.feature-split.reverse > * {
  direction: ltr;
}

.feature-media {
  position: relative;
}

.feature-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 5px solid #fff;
}

.feature-frame img {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.feature-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
  color: #fff;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}

.feature-badge-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}

.feature-badge-text {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.feature-content h2 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary-900);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.feature-content h2.ar {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--primary-600);
  margin-bottom: 1rem;
}

.feature-content p {
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  font-size: 0.98rem;
  color: var(--slate-700);
}

.feature-list-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Value cards */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

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

.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
  transition: var(--transition-base);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(-5deg);
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
}

.value-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.5rem;
}

.value-text {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.team-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-slow);
}

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

.team-card-image {
  height: 320px;
  overflow: hidden;
  position: relative;
  background: var(--slate-900);
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

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

.team-card-branch {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-700);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.team-card-body {
  padding: 1.5rem;
}

.team-card-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-900);
  margin-bottom: 0.2rem;
}

.team-card-role {
  font-size: 0.85rem;
  color: var(--primary-600);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.team-card-bio {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.team-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--slate-500);
}

.team-card-meta span {
  background: var(--slate-100);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
  position: relative;
}

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

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--primary-100);
  line-height: 1;
}

.testimonial-stars {
  color: var(--gold-400);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary-700);
}

.testimonial-name {
  font-weight: 800;
  color: var(--slate-800);
}

.testimonial-location {
  font-size: 0.82rem;
  color: var(--slate-500);
}

/* FAQ accordion */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition: var(--transition-base);
}

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

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}

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

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

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  color: var(--slate-600);
  line-height: 1.7;
}

/* Clinic page specifics */
.clinic-hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.clinic-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.clinic-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.clinic-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.clinic-hero-title-ar {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.clinic-hero-lead {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.clinic-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.clinic-info-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.clinic-info-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clinic-info-item:last-child {
  border-bottom: none;
}

.clinic-info-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.clinic-info-label {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 0.2rem;
}

.clinic-info-value {
  font-weight: 700;
  font-size: 1rem;
}

.clinic-info-value a {
  color: var(--gold-300);
}

.clinic-info-value a:hover {
  color: #fff;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item.wide {
  grid-column: span 2;
}

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

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 78, 74, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-caption {
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6, 36, 32, 0.95);
  backdrop-filter: blur(12px);
  z-index: 100000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox img {
  max-height: 80vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-caption {
  color: #fff;
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
}

.contact-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-300);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-900);
}

.contact-card-body {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.contact-card-body a {
  color: var(--primary-600);
  font-weight: 700;
}

.contact-card-body a:hover {
  color: var(--primary-800);
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.hours-table td {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--slate-100);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 700;
  color: var(--slate-700);
}

.hours-table tr:last-child td {
  border-bottom: none;
  color: var(--primary-600);
}

.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
}

.map-frame iframe {
  width: 100%;
  height: 420px;
  border: 0;
}

/* Booking form */
.booking-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--slate-200);
}

.booking-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  position: relative;
}

.booking-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: var(--slate-200);
  z-index: 1;
}

.booking-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.booking-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--slate-300);
  color: var(--slate-500);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  transition: var(--transition-base);
}

.booking-step.active .booking-step-circle {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: #fff;
  box-shadow: 0 0 0 5px var(--primary-100);
}

.booking-step.completed .booking-step-circle {
  background: var(--primary-800);
  border-color: var(--primary-800);
  color: #fff;
}

.booking-step-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-600);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

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

.form-label .required {
  color: var(--urgent-red);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--slate-800);
  background: #fff;
  transition: var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px var(--primary-100);
}

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

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--slate-200);
}

.form-hint {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-top: 0.5rem;
}

/* Ticket result */
.ticket {
  background: linear-gradient(135deg, var(--primary-50), #fff);
  border: 2px dashed var(--primary-400);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.ticket-token {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--primary-600);
  color: var(--primary-800);
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0 1.5rem;
  letter-spacing: 1px;
}

.ticket-details {
  text-align: left;
  background: #fff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 2;
  border: 1px solid var(--slate-200);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.cta-banner-text {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 1.75rem;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: var(--primary-950);
  color: var(--slate-300);
  padding: 5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.footer-brand-logo {
  height: 48px;
  width: auto;
  max-width: 88px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px 6px;
  border: 2px solid var(--gold-500);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

.footer-brand-ar {
  font-family: var(--font-arabic);
  font-size: 0.75rem;
  color: var(--primary-400);
}

.footer-about {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--slate-400);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--slate-400);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links a:hover {
  color: var(--gold-300);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  font-size: 0.9rem;
  color: var(--slate-400);
}

.footer-contact-item a {
  color: var(--primary-300);
}

.footer-contact-item a:hover {
  color: var(--gold-300);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-bottom a {
  color: var(--primary-300);
}

.footer-bottom a:hover {
  color: var(--gold-300);
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Page header */
.page-header {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.page-header-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  color: var(--gold-300);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.page-header-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.page-header-title-ar {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.page-header-lead {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--primary-600);
}

.breadcrumb a:hover {
  color: var(--primary-800);
}

/* Privacy / content pages */
.content-page {
  max-width: 800px;
  margin: 0 auto;
}

.content-page h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-900);
  margin: 2.5rem 0 1rem;
}

.content-page p,
.content-page li {
  color: var(--slate-600);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.content-page ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-page li {
  margin-bottom: 0.5rem;
}

/* Responsive */
/* The enlarged brand needs more room: drop Call Us first (phone is in the top bar), then collapse the menu */
@media (max-width: 1500px) {
  .header-actions .btn-outline {
    display: none;
  }
}

@media (max-width: 1240px) {
  .main-nav, .header-actions .btn-outline, .header-actions .btn-urgent {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 1100px) {

  .hero-inner,
  .clinic-hero-inner,
  .feature-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-image-main img {
    height: 380px;
  }

  .hero-slider {
    height: 420px;
    transform: none;
  }

  .hero-float-card.top {
    right: 10px;
  }

  .hero-float-card.bottom {
    left: 10px;
  }

  .services-grid,
  .team-grid,
  .testimonials-grid,
  .values-grid,
  .gallery,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clinic-selector {
    grid-template-columns: 1fr;
  }

  .feature-badge {
    right: 10px;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 2.75rem;
  }

  /* Show content immediately on phones: scroll-in fades leave blank gaps while scrolling */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .section-header {
    margin-bottom: 1.75rem;
  }

  /* Keep the three hero numbers on one row */
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .hero-stat-number {
    font-size: 1.45rem;
  }

  .hero-stat-label {
    font-size: 0.75rem;
  }

  /* Promise cards: icon beside the title instead of stacked, to halve their height */
  .value-card {
    padding: 1.25rem;
    text-align: start;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: center;
  }

  .value-icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    margin: 0;
    grid-row: span 2;
  }

  .value-title {
    margin: 0 0 0.25rem;
  }

  .page-header {
    padding: 2.5rem 0;
  }

  .top-bar-right {
    display: none;
  }

  .header-inner {
    height: 84px;
  }

  .brand-logo {
    height: 64px;
    max-width: 120px;
  }

  .brand-name {
    font-size: 1.35rem;
  }

  .brand {
    margin-right: 0;
  }

  /* The drawer menu has its own Book Appointment button */
  .header-actions .btn-primary {
    display: none;
  }

  .brand-arabic,
  .brand-tagline {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 1.5rem 0 2.5rem;
  }

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

  .hero-slider {
    height: 320px;
    transform: none;
  }

  .hero-slide-caption {
    bottom: 3.5rem;
    left: 1rem;
    right: 1rem;
  }

  .hero-slide-title {
    font-size: 1rem;
  }

  .hero-slider-controls {
    bottom: 0.85rem;
    left: 0.85rem;
    right: 0.85rem;
  }

  .hero-slider-btn {
    width: 32px;
    height: 32px;
  }

  .hero-float-card {
    display: none;
  }

  .services-grid,
  .team-grid,
  .testimonials-grid,
  .values-grid,
  .gallery,
  .footer-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-item.wide,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }

  .feature-content h2 {
    font-size: 1.75rem;
  }

  .booking-card {
    padding: 1.5rem;
  }

  .booking-steps {
    flex-direction: column;
    gap: 1rem;
  }

  .booking-steps::before {
    display: none;
  }

  .booking-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
  }

  .booking-step-circle {
    margin: 0;
  }

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

  .cta-banner-actions,
  .hero-actions,
  .clinic-hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

/* Print styles */
/* ==========================================================================
   Language switch (English ⇄ العربية)
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
}

.lang-switch[lang="en"] {
  font-family: 'Inter', sans-serif;
}

.top-bar .lang-switch {
  color: var(--gold-300);
  border: 1px solid rgba(252, 211, 77, 0.5);
}

.top-bar .lang-switch:hover {
  background: rgba(252, 211, 77, 0.15);
}

/* Header copy only appears once the main menu has collapsed */
.lang-switch-header {
  display: none;
  font-size: 0.95rem;
  color: var(--primary-700);
  border: 1.5px solid var(--primary-200);
  padding: 0.5rem 0.9rem;
}

.lang-switch-header:hover {
  background: var(--primary-50);
}

@media (max-width: 1240px) {
  .lang-switch-header {
    display: inline-flex;
  }
}

/* Phones: the header has no room, so the switch moves to the top bar beside the emergency badge */
@media (max-width: 640px) {
  .lang-switch-header {
    display: none;
  }

  .top-bar-right {
    display: flex;
  }

  .top-bar-right > :not(.lang-switch),
  .top-bar-left > :not(.pulse-badge) {
    display: none;
  }
}

/* ==========================================================================
   Arabic (RTL) pages — everything under /ar/ sets <html lang="ar" dir="rtl">
   Flex and grid layouts mirror automatically; these rules mirror the rest.
   ========================================================================== */
html[dir="rtl"] {
  --font-main: var(--font-arabic);
  --font-heading: var(--font-arabic);
}

/* Letter-spacing breaks Arabic letter joining */
[dir="rtl"] * {
  letter-spacing: 0 !important;
}

/* The page text is already Arabic, so the small Arabic subtitles would repeat it */
[dir="rtl"] .brand-arabic,
[dir="rtl"] .hero-title-ar,
[dir="rtl"] .page-header-title-ar,
[dir="rtl"] .clinic-hero-title-ar,
[dir="rtl"] .section-title-ar,
[dir="rtl"] .service-card-title-ar,
[dir="rtl"] .clinic-card-city-ar,
[dir="rtl"] .footer-brand-ar,
[dir="rtl"] .ar,
[dir="rtl"] .mobile-drawer-header [lang="ar"] {
  display: none;
}

[dir="rtl"] .brand {
  margin-right: 0;
  margin-left: 1.5rem;
}

[dir="rtl"] .brand:hover .brand-logo {
  transform: scale(1.05) rotate(3deg);
}

[dir="rtl"] .mobile-drawer-panel {
  right: auto;
  left: 0;
  transform: translateX(-100%);
}

[dir="rtl"] .mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

[dir="rtl"] .hero-slider-btn svg {
  transform: scaleX(-1);
}

[dir="rtl"] .service-card-icon {
  left: auto;
  right: 1rem;
}

[dir="rtl"] .feature-badge {
  right: auto;
  left: -24px;
}

[dir="rtl"] .team-card-branch {
  right: auto;
  left: 1rem;
}

[dir="rtl"] .testimonial-card::before {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .faq-question,
[dir="rtl"] .ticket-details {
  text-align: right;
}

[dir="rtl"] .hours-table td:last-child {
  text-align: left;
}

[dir="rtl"] .lightbox-close {
  right: auto;
  left: 0;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 1.5rem;
}

[dir="rtl"] .content-page ul {
  margin-left: 0;
  margin-right: 1.5rem;
}

/* Typed phone numbers and emails read left-to-right even on Arabic pages
   (printed numbers are wrapped in dir="ltr" spans by i18n/build_ar.py) */
[dir="rtl"] input[type="tel"],
[dir="rtl"] input[type="email"] {
  direction: ltr;
  text-align: right;
}

@media (max-width: 1100px) {
  [dir="rtl"] .feature-badge {
    left: 10px;
  }
}

@media (max-width: 640px) {
  [dir="rtl"] .brand {
    margin-left: 0;
  }

  /* The Arabic clinic name is wider than "HAPPY PET" */
  [dir="rtl"] .brand-name {
    font-size: 1.05rem;
  }

  [dir="rtl"] .booking-step {
    text-align: right;
  }
}

@media print {
  .site-header, .top-bar, .whatsapp-float, .site-footer {
    display: none;
  }

  body {
    background: #fff;
  }
}
