/* ============================================
   BAVARIAN INTERVENTIONAL RADIOLOGY CLINIC
   Premium Design System — CSS
   ============================================ */

/* ── Font Faces ── */
@font-face {
  font-family: 'TheYearOfTheCamel';
  src: url('../assets/fonts/The-Year-Of-The-Camel/arfonts-the-year-of-the-camel-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TheYearOfTheCamel';
  src: url('../assets/fonts/The-Year-Of-The-Camel/arfonts-the-year-of-the-camel-light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TheYearOfTheCamel';
  src: url('../assets/fonts/The-Year-Of-The-Camel/arfonts-the-year-of-the-camel-medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TheYearOfTheCamel';
  src: url('../assets/fonts/The-Year-Of-The-Camel/arfonts-the-year-of-the-camel-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'TheYearOfTheCamel';
  src: url('../assets/fonts/The-Year-Of-The-Camel/arfonts-the-year-of-the-camel-extrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ogg';
  src: url('../assets/fonts/Ogg/Ogg-Regular-BF646c18fc3ed57.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ogg';
  src: url('../assets/fonts/Ogg/Ogg-Light-BF646c18fbb73f7.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ogg';
  src: url('../assets/fonts/Ogg/Ogg-Medium-BF646c18fc4e918.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ogg';
  src: url('../assets/fonts/Ogg/Ogg-Bold-BF646c18fc4aa63.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OggText';
  src: url('../assets/fonts/Ogg/OggText-Book-BF646c18fc3d930.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OggText';
  src: url('../assets/fonts/Ogg/OggText-Light-BF646c18fa863ce.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'OggText';
  src: url('../assets/fonts/Ogg/OggText-Medium-BF646c18fbe3cb2.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ── Custom Properties ── */
:root {
  /* Colors */
  --clr-primary: #162E48;
  --clr-primary-light: #1E3A5F;
  --clr-primary-dark: #0E1F33;
  --clr-secondary: #475A68;
  --clr-secondary-light: #5A7080;
  --clr-text: #D5D4D4;
  --clr-text-muted: #9BA8B2;
  --clr-white: #FFFFFF;
  --clr-accent: #5b9cc4;
  --clr-accent-soft: rgba(58, 143, 194, 0.15);
  --clr-surface: rgba(22, 46, 72, 0.6);
  --clr-surface-hover: rgba(30, 58, 95, 0.7);
  --clr-border: rgba(213, 212, 212, 0.08);
  --clr-border-light: rgba(213, 212, 212, 0.15);
  --clr-overlay: rgba(14, 31, 51, 0.85);

  /* Typography Scale */
  --fs-display: clamp(2rem, 6vw, 5.5rem);
  --fs-h1: clamp(1.8rem, 4.5vw, 4rem);
  --fs-h2: clamp(1.5rem, 3.5vw, 3rem);
  --fs-h3: clamp(1.2rem, 2.2vw, 1.8rem);
  --fs-h4: clamp(1.1rem, 1.5vw, 1.4rem);
  --fs-body: clamp(1rem, 1.2vw, 1.15rem);
  --fs-body-lg: clamp(1.05rem, 1.4vw, 1.3rem);
  --fs-small: clamp(0.85rem, 1vw, 0.95rem);
  --fs-caption: clamp(0.75rem, 0.9vw, 0.85rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --space-4xl: 12rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 900px;
  --container-wide: 1440px;
  --section-padding: clamp(5rem, 10vh, 9rem);

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(58, 143, 194, 0.15);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: 0.2s var(--ease-out-quart);
  --transition-base: 0.4s var(--ease-out-expo);
  --transition-slow: 0.7s var(--ease-out-expo);
  --transition-slower: 1s var(--ease-out-expo);

  /* Fonts */
  --font-ar: 'TheYearOfTheCamel', 'Segoe UI', Tahoma, sans-serif;
  --font-en: 'Ogg', 'Georgia', serif;
  --font-en-text: 'OggText', 'Georgia', serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-ar);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.85;
  color: var(--clr-text);
  background-color: var(--clr-primary-dark);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

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

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

.font-en {
  font-family: var(--font-en);
}

.font-en-text {
  font-family: var(--font-en-text);
}

.fw-light {
  font-weight: 300 !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Scroll Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
  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;
}

.reveal-delay-5 {
  transition-delay: 0.5s;
}

.reveal-delay-6 {
  transition-delay: 0.6s;
}

.reveal-left {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ── Section Title ── */
.section-label {
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--clr-accent);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--clr-accent);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: var(--fs-body-lg);
  color: var(--clr-text-muted);
  line-height: 1.9;
  max-width: 720px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-xl);
  font-family: var(--font-ar);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: transparent;
  color: var(--clr-accent);
  border: 1.5px solid var(--clr-accent);
  box-shadow: 0 4px 15px rgba(58, 143, 194, 0.15);
}

.btn-primary::before {
  background: var(--clr-accent);
}

.btn-primary:hover {
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(58, 143, 194, 0.3);
}

.btn-outline {
  border: 1px solid var(--clr-border-light);
  color: var(--clr-text);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.03);
}

.btn-outline:hover {
  border-color: var(--clr-accent);
  color: var(--clr-white);
  background: var(--clr-accent-soft);
  transform: translateY(-2px);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-fast);
}

.btn:hover .btn-icon {
  transform: translateX(-4px);
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  transition: all var(--transition-base);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(14, 31, 51, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding: 0.8rem 0;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header__current-section {
  font-weight: 700;
  color: var(--clr-accent);
  font-size: var(--fs-small);
  letter-spacing: 1px;
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-md);
}

.lang-switch {
  color: var(--clr-white);
  font-weight: 700;
  text-decoration: none;
  font-size: var(--fs-small);
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

.lang-switch:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}

.lang-switch--ar {
  font-family: var(--font-ar);
}

.header__socials {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.header__socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: var(--clr-white);
  transition: all var(--transition-fast);
}

.header__socials a svg {
  width: 18px;
  height: 18px;
}

.header__socials a:hover {
  background: var(--clr-accent);
  color: var(--clr-white);
}

.header__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: margin-top var(--transition-fast);
}

.header__logo img {
  height: 90px;
  width: auto;
  transition: height var(--transition-fast);
}

.header.scrolled .header__logo {
  margin-top: 5px;
}

.header.scrolled .header__logo img {
  height: 70px;
}

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

.header__logo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.2;
}

.header__logo-tagline {
  font-size: 0.7rem;
  color: var(--clr-text-muted);
  font-weight: 300;
}

.header__nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  background: rgba(14, 31, 51, 0.97);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 5rem 2rem 2rem;
  gap: 0;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  border-left: 1px solid var(--clr-border);
  z-index: 999;
}

.header__nav.open {
  transform: translateX(0);
}

.header__nav-link {
  padding: 0.8rem 0;
  font-size: var(--fs-body);
  color: var(--clr-text-muted);
  width: 100%;
  border-bottom: 1px solid var(--clr-border);
  transition: color var(--transition-fast);
  font-weight: 400;
}

.header__nav-link:hover,
.header__nav-link.active {
  color: var(--clr-white);
}

.header__cta {
  margin-top: var(--space-md);
  width: 100%;
  text-align: center;
  padding: 0.65rem 1.6rem;
  font-size: var(--fs-small);
}

.header__overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.header__overlay.visible {
  display: block;
}

/* Mobile Menu Toggle */
.header__toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  z-index: 1001;
}

.header__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.header__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.header__toggle.active span:nth-child(2) {
  opacity: 0;
}

.header__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(22, 46, 72, 0.4) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(58, 143, 194, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 80%, rgba(71, 90, 104, 0.3) 0%, transparent 50%),
    linear-gradient(180deg, var(--clr-primary-dark) 0%, rgba(22, 46, 72, 0.95) 40%, var(--clr-primary-dark) 100%);
}

.hero__3d-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}


/* Interactive Canvas Particles */
.hero__canvas {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 8rem;
  padding-bottom: 4rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(58, 143, 194, 0.1);
  border: 1px solid rgba(58, 143, 194, 0.2);
  border-radius: var(--radius-xl);
  font-size: var(--fs-caption);
  color: var(--clr-accent);
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(10px);
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--clr-accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.hero__title {
  font-size: var(--fs-display);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1.15;
  margin-bottom: var(--space-md);
  max-width: 800px;
}

.hero__title-accent {
  color: var(--clr-accent);
  display: inline;
}

.hero__doctor {
  font-family: var(--font-ar);
  font-size: var(--fs-h4);
  color: var(--clr-text-muted);
  font-weight: 300;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.hero__desc {
  font-size: var(--fs-body-lg);
  color: var(--clr-text-muted);
  max-width: 580px;
  margin-bottom: var(--space-xl);
  line-height: 2;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-text-muted);
  font-size: var(--fs-caption);
  animation: scrollBounce 2s infinite;
  z-index: 1;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--clr-accent), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@keyframes scrollLine {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }

  100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ── Section Base ── */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

.section--alt {
  background:
    radial-gradient(ellipse at 30% 0%, rgba(22, 46, 72, 0.5) 0%, transparent 60%),
    linear-gradient(180deg, var(--clr-primary) 0%, var(--clr-primary-dark) 100%);
}

.section--dark {
  background: var(--clr-primary-dark);
}

.section__header {
  margin-bottom: var(--space-2xl);
}

.section__header--center {
  text-align: center;
}

.section__header--center .section-label {
  justify-content: center;
}

.section__header--center .section-label::before {
  display: none;
}

.section__header--center .section-subtitle {
  margin: 0 auto;
}

/* ── Divider ── */
.section-divider {
  height: 1px;
  background: linear-gradient(to left, transparent, var(--clr-border-light), transparent);
  margin: 0;
  border: none;
}

/* ── Services Section ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.service-card {
  position: relative;
  padding: var(--space-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--clr-accent-soft) 0%, transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  border-color: rgba(58, 143, 194, 0.2);
  background: var(--clr-surface-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.service-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--clr-accent-soft);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  color: var(--clr-accent);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: rgba(58, 143, 194, 0.25);
  transform: scale(1.05);
}

.service-card__icon svg {
  width: 24px;
  height: 24px;
}

.service-card__title {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.service-card__desc {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 1.9;
}

/* ── IR (Interventional Radiology) Section ── */
.ir-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.ir-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.ir-text p {
  font-size: var(--fs-body-lg);
  color: var(--clr-text);
  line-height: 2;
}

.ir-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ir-visual__image {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.ir-visual__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(22, 46, 72, 0.3), transparent);
  border-radius: var(--radius-lg);
}

/* IR Advantages List */
.ir-advantages {
  margin-top: var(--space-xl);
}

.ir-advantages__title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-lg);
}

.ir-advantages__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ir-advantages__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-body);
  color: var(--clr-text);
  line-height: 1.8;
}

.ir-advantages__item::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  margin-top: 0.6rem;
}

/* IR Cases section */
.ir-cases {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--clr-border);
}

.ir-cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.ir-cases__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-sm) var(--space-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  color: var(--clr-text);
  transition: all var(--transition-fast);
}

.ir-cases__item:hover {
  border-color: rgba(58, 143, 194, 0.2);
  background: var(--clr-surface-hover);
}

.ir-cases__item-icon {
  width: 20px;
  height: 20px;
  color: var(--clr-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Why Us Section ── */
.why-us-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.why-us-intro {
  font-size: var(--fs-body-lg);
  color: var(--clr-text);
  line-height: 2;
  max-width: 800px;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.why-us-card {
  padding: var(--space-lg) var(--space-lg) var(--space-lg);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.why-us-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to left, var(--clr-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.why-us-card:hover {
  transform: translateY(-4px);
  border-color: rgba(58, 143, 194, 0.15);
  box-shadow: var(--shadow-glow);
}

.why-us-card:hover::after {
  opacity: 1;
}

.why-us-card__number {
  font-family: var(--font-en);
  font-size: var(--fs-display);
  font-weight: 300;
  color: rgba(58, 143, 194, 0.1);
  line-height: 1;
}

/* ── LTR / English Version Overrides ── */
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
  font-family: var(--font-en-text);
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3,
html[dir="ltr"] h4,
html[dir="ltr"] h5,
html[dir="ltr"] h6,
html[dir="ltr"] .section-title,
html[dir="ltr"] .hero__title,
html[dir="ltr"] .hero__doctor,
html[dir="ltr"] .cta-section__title {
  font-family: var(--font-en);
}

html[dir="ltr"] .hero__title,
html[dir="ltr"] .hero__desc,
html[dir="ltr"] .hero__doctor,
html[dir="ltr"] .hero__badge {
  text-align: left;
}

html[dir="ltr"] .section__header--center,
html[dir="ltr"] .cta-section__title,
html[dir="ltr"] .cta-section__desc {
  text-align: center;
}

/* Flip the 3D canvas / logo position for LTR */
html[dir="ltr"] .hero__3d-container {
  left: auto;
  right: 0;
}

/* Flip button arrows for LTR */
html[dir="ltr"] .btn-icon {
  transform: scaleX(-1);
}



/* IR advantages items text */
html[dir="ltr"] .ir-advantages__item {
  text-align: left;
}

/* Footer text alignment */
html[dir="ltr"] .footer__brand-desc,
html[dir="ltr"] .footer__title,
html[dir="ltr"] .footer__link,
html[dir="ltr"] .footer__contact-text {
  text-align: left;
}

/* Section label */
html[dir="ltr"] .section-label {
  font-family: var(--font-en-text);
}

/* Why-us cards */
html[dir="ltr"] .why-us-card__title,
html[dir="ltr"] .why-us-card__desc {
  text-align: left;
}

/* Service cards */
html[dir="ltr"] .service-card__title,
html[dir="ltr"] .service-card__desc {
  text-align: left;
}

/* FAQ */
html[dir="ltr"] .faq-item__question span,
html[dir="ltr"] .faq-item__answer-inner {
  text-align: left;
}

/* Nav overlay for LTR */
html[dir="ltr"] .header__nav {
  left: 0;
  right: auto;
  transform: translateX(-100%);
  border-left: none;
  border-right: 1px solid var(--clr-border);
}
html[dir="ltr"] .header__nav.open {
  transform: translateX(0);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
}

.why-us-card__number {
  margin-bottom: var(--space-sm);
}

.why-us-card__title {
  font-size: var(--fs-h4);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.why-us-card__desc {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 1.9;
}

/* ── Info Section ── */
.info-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.info-text {
  font-size: var(--fs-body-lg);
  color: var(--clr-text);
  line-height: 2;
}

.info-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.info-visual__image {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
}

.info-cta-box {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: linear-gradient(135deg, rgba(58, 143, 194, 0.1), rgba(22, 46, 72, 0.6));
  border: 1px solid rgba(58, 143, 194, 0.15);
  border-radius: var(--radius-lg);
  text-align: center;
}

.info-cta-box p {
  font-size: var(--fs-body-lg);
  color: var(--clr-text);
  margin-bottom: var(--space-md);
}

/* ── FAQ Section ── */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  background: var(--clr-surface);
}

.faq-item:hover {
  border-color: rgba(58, 143, 194, 0.15);
}

.faq-item.active {
  border-color: rgba(58, 143, 194, 0.2);
  background: var(--clr-surface-hover);
}

.faq-item__question {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  color: var(--clr-white);
  text-align: right;
  cursor: pointer;
  transition: color var(--transition-fast);
  font-family: var(--font-ar);
}

.faq-item__question:hover {
  color: var(--clr-accent);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--clr-accent-soft);
  transition: all var(--transition-base);
}

.faq-item__icon svg {
  width: 14px;
  height: 14px;
  color: var(--clr-accent);
  transition: transform var(--transition-base);
}

.faq-item.active .faq-item__icon {
  background: var(--clr-accent);
}

.faq-item.active .faq-item__icon svg {
  transform: rotate(180deg);
  color: var(--clr-white);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
}

.faq-item.active .faq-item__answer {
  max-height: 400px;
}

.faq-item__answer-inner {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--fs-body);
  color: var(--clr-text-muted);
  line-height: 2;
}

/* ── CTA Section ── */
.cta-section {
  padding: var(--space-3xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(58, 143, 194, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--clr-primary-dark), var(--clr-primary), var(--clr-primary-dark));
}

.cta-section__content {
  position: relative;
  z-index: 1;
}

.cta-section__title {
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.cta-section__desc {
  font-size: var(--fs-body-lg);
  color: var(--clr-text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-xl);
  line-height: 2;
}

/* ── Footer ── */
.footer {
  background: var(--clr-primary);
  border-top: 1px solid var(--clr-border);
  padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand-logo {
  height: 40px;
  margin-bottom: var(--space-md);
}

.footer__brand-desc {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  line-height: 1.9;
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
  background: var(--clr-accent-soft);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__title {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--space-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__link {
  font-size: var(--fs-small);
  color: var(--clr-text-muted);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__link:hover {
  color: var(--clr-accent);
  transform: translateX(-4px);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-sm);
}

.footer__contact-text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--clr-text-muted);
  line-height: 1.6;
}

.footer__contact-text a {
  color: inherit;
  font-weight: inherit;
}

.footer__contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--clr-accent);
}

.footer__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-md);
  border: 1px solid var(--clr-border);
}

.footer__map iframe {
  width: 100%;
  height: 180px;
  border: 0;
  filter: grayscale(0.5) brightness(0.7) contrast(1.1);
}

.footer__bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-caption);
  color: var(--clr-text-muted);
}

/* ── Mobile Responsive ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-us-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ir-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .ir-cases__grid {
    grid-template-columns: 1fr;
  }

  .info-content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .header__nav-link {
    padding: 0.5rem 0.6rem;
    font-size: var(--fs-caption);
  }
}

@media (max-width: 768px) {
  .header__nav {
    justify-content: flex-start;
    padding-top: 6rem;
    padding-bottom: 2rem;
    overflow-y: auto;
  }

  .header__nav-link {
    font-size: 1.15rem;
    padding: 0.8rem 0;
  }

  .header__cta {
    font-size: 1.05rem;
    padding: 0.8rem 2rem;
    margin-top: auto;
    margin-bottom: 2rem;
    border-radius: 50px;
  }

  :root {
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
    --space-2xl: 3.5rem;
    --space-3xl: 4.5rem;
    --section-padding: clamp(3.5rem, 8vh, 6rem);
  }

  .header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.2rem;
  }

  .header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
  }

  .header__logo img {
    height: 100px;
  }

  .header.scrolled .header__logo {
    margin-top: 4px;
  }

  .header.scrolled .header__logo img {
    height: 65px;
  }

  .header__actions {
    gap: 0.2rem;
  }

  .header__socials {
    gap: 0.25rem;
  }

  .header__socials a {
    width: 30px;
    height: 30px;
  }

  .header__socials a svg {
    width: 16px;
    height: 16px;
  }

  .lang-switch {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }

  .header__toggle {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }

  .header__toggle span {
    width: 16px;
  }

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

  .why-us-grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero__3d-container {
    position: relative;
    width: 100%;
    height: 280px;
    z-index: 1;
    margin: var(--space-sm) 0;
    pointer-events: auto;
    /* Allow interactions on mobile */
  }

  .hero__title {
    max-width: 100%;
    text-align: center;
  }

  .hero__desc {
    text-align: center;
  }

  .hero__badge {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .hero__scroll-indicator {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .section__header--center .section-subtitle {
    text-align: right;
  }
}

@media (max-width: 480px) {
  .hero__content {
    padding-top: 6rem;
  }

  .service-card {
    padding: var(--space-md);
  }

  .why-us-card {
    padding: var(--space-md);
  }

  .faq-item__question {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-body);
  }

  .faq-item__answer-inner {
    padding: 0 var(--space-md) var(--space-md);
  }
}

/* ── Prefers Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-left,
  .reveal-right,
  .reveal-scale {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Print Styles ── */
@media print {

  .header,
  .hero__particles,
  .hero__scroll-indicator {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}