/* ============================================================
   IRIS MEDICAL CENTER — Design System
   ============================================================ */

:root {
  /* Brand colors (fixed brief palette) */
  --c-primary: #0e7490;
  --c-primary-dark: #0b5a70;
  --c-primary-light: #e0f2f6;
  --c-secondary: #14b8a6;
  --c-accent: #06b6d4;
  --c-bg: #f8fafc;
  --c-text: #1e293b;

  /* Extended neutrals derived from brief */
  --c-ink: #0b1220;
  --c-muted: #64748b;
  --c-border: #e2e8f0;
  --c-surface: #ffffff;
  --c-surface-tint: #ecfeff;
  --c-danger: #e11d48;
  --c-warn: #f59e0b;

  /* Gradients */
  --grad-brand: linear-gradient(
    120deg,
    var(--c-primary) 0%,
    var(--c-accent) 55%,
    var(--c-secondary) 100%
  );
  --grad-glass: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.35)
  );

  /* Typography */
  --font-main: "Cairo", "Segoe UI", Tahoma, sans-serif;

  /* Radii & shadows */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(14, 116, 144, 0.12);
  --shadow-lg: 0 20px 50px rgba(14, 116, 144, 0.18);
  --shadow-glow:
    0 0 0 1px rgba(6, 182, 212, 0.15), 0 8px 24px rgba(6, 182, 212, 0.25);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 0.25s;
  --dur-med: 0.5s;
  --dur-slow: 0.9s;

  /* Layout */
  --container: 1240px;
  --nav-h: 68px;
}

/* Dark mode tokens */
[data-theme="dark"] {
  --c-bg: #0b1524;
  --c-text: #e2e8f0;
  --c-surface: #101d30;
  --c-surface-tint: #0f2333;
  --c-border: #1e2e43;
  --c-muted: #93a4b8;
  --c-primary-light: #123241;
}

/* ============================== Reset ============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  height: 100%;
}
body {
  font-family: var(--font-main);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.8;
  overflow-x: hidden;
  transition:
    background var(--dur-med) var(--ease-out),
    color var(--dur-med) var(--ease-out);
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
input,
textarea,
select {
  font-family: inherit;
}
:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================== Typography ============================== */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.35;
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5 {
  color: #f1f5f9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--c-primary);
  background: var(--c-primary-light);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.18);
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 16px;
}
.section-desc {
  color: var(--c-muted);
  font-size: 17px;
  max-width: 640px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .section-desc {
  margin: 0 auto;
}

section {
  position: relative;
  padding: 110px 0;
}
@media (max-width: 768px) {
  section {
    padding: 70px 0;
  }
}

/* ============================== Buttons ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 15px;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background-position: 100% 0;
}
.btn-outline {
  background: transparent;
  color: var(--c-primary);
  border: 2px solid var(--c-primary);
}
[data-theme="dark"] .btn-outline {
  color: #67e8f9;
  border-color: #67e8f9;
}
.btn-outline:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
}
[data-theme="dark"] .btn-outline:hover {
  background: #67e8f9;
  color: #0b1524;
}
.btn-white {
  background: #fff;
  color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}
.btn:active {
  transform: scale(0.97);
}

/* ============================== Loading Screen ============================== */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--c-primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.6s var(--ease-out),
    visibility 0.6s var(--ease-out);
}
#loader.hide {
  opacity: 0;
  visibility: hidden;
}
.loader-wrap {
  text-align: center;
  color: #fff;
}
.loader-logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.pulse-loader {
  width: 220px;
  height: 60px;
  margin: 0 auto;
}
.pulse-loader path {
  stroke: #67e8f9;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw-pulse 1.6s var(--ease-out) infinite;
}
@keyframes draw-pulse {
  0% {
    stroke-dashoffset: 400;
  }
  60% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -400;
  }
}
.loader-text {
  margin-top: 14px;
  font-size: 14px;
  color: #b9e6ee;
  letter-spacing: 0.5px;
}

/* ============================== Navbar ============================== */
#navbar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 1200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(248, 250, 252, 0.7);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition:
    box-shadow var(--dur-fast),
    background var(--dur-fast),
    height var(--dur-fast);
}
[data-theme="dark"] #navbar {
  background: rgba(11, 21, 36, 0.7);
  border-color: rgba(30, 46, 67, 0.6);
}
#navbar.scrolled {
  box-shadow: var(--shadow-sm);
  height: 68px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  color: rgb(30, 41, 59);
  text-decoration: none;
}
[data-theme="dark"] .logo {
  color: #67e8f9;
}
.logo-image {
  width: 45px;
  height: auto;
  display: block;
}
.logo-text {
  display: inline-block;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.nav-links a {
  font-weight: 600;
  font-size: 15px;
  color: var(--c-text);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  transition: width var(--dur-fast) var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-primary);
  font-size: 16px;
  transition: all var(--dur-fast);
}
.icon-btn:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--c-primary);
}
.lang-switch {
  font-weight: 700;
  font-size: 13px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  color: var(--c-primary);
  background: var(--c-surface);
}
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--c-primary);
}

/* Search box */
.search-panel {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 100%;
  z-index: 1200;
  background: rgba(11, 18, 32, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--dur-fast),
    visibility var(--dur-fast);
}
.search-panel.open {
  opacity: 1;
  visibility: visible;
}
.search-box {
  margin-top: 120px;
  width: min(600px, 92vw);
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  transform: translateY(-20px);
  transition: transform var(--dur-med) var(--ease-out);
}
.search-panel.open .search-box {
  transform: translateY(0);
}
.search-box form {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 2px solid var(--c-border);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 20px;
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  padding: 8px 0;
  color: var(--c-text);
}
.search-box button.submit {
  background: var(--grad-brand);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-close {
  position: absolute;
  top: -46px;
  inset-inline-end: 0;
  color: #fff;
  font-size: 22px;
}

/* ============================== Hero ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #04222c 0%,
    #0b4b5c 55%,
    var(--c-primary) 100%
  );
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.28;
  mix-blend-mode: luminosity;
  transform: scale(1.02);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(6, 182, 212, 0.35),
      transparent 55%
    ),
    radial-gradient(circle at 10% 90%, rgba(20, 184, 166, 0.3), transparent 50%);
}
.hero-pulse-line {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  width: 100%;
  height: 140px;
  opacity: 0.5;
}
.hero-pulse-line path {
  stroke: #67e8f9;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: pulse-run 4.5s linear infinite;
}
@keyframes pulse-run {
  to {
    stroke-dashoffset: -1400;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: #fff;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
  margin-top: 10px;
}
.hero-badge .dot {
  width: 9px;
  height: 9px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.25);
  animation: blink 1.8s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  color: #fff;
  margin-bottom: 22px;
}
.hero h1 span {
  color: #67e8f9;
}
.hero p {
  font-size: 18px;
  color: #dceef2;
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 54px;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}
.hero-stat b {
  display: block;
  font-size: 30px;
  color: #fff;
}
.hero-stat span {
  font-size: 13px;
  color: #a9d6de;
}

.hero-visual {
  position: absolute;
  inset-inline-end: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  z-index: 2;
  display: none;
}
.hero-card-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 14px;
  color: var(--c-ink);
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: #b9e6ee;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
}
.scroll-cue .line {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, #67e8f9, transparent);
  animation: scrolldown 1.8s ease-in-out infinite;
}
@keyframes scrolldown {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============================== About ============================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.about-media {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
}
.about-media img {
  width: 100%;
  height: 430px;
  object-fit: fit;
  object-position: center;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.about-media-badge {
  position: absolute;
  bottom: 20px;
  inset-inline-start: 20px;
  z-index: 2;
  background: var(--c-surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 20px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-media-badge .icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.about-media-badge b {
  display: block;
  font-size: 22px;
}
.about-media-badge span {
  font-size: 13px;
  color: var(--c-muted);
}
.about-list {
  display: grid;
  gap: 16px;
  margin: 30px 0 36px;
}
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-weight: 600;
}
.about-list li i {
  color: var(--c-secondary);
  margin-top: 4px;
  font-size: 18px;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.stat-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.stat-num {
  font-size: 34px;
  font-weight: 800;
  color: var(--c-primary);
  display: flex;
  justify-content: center;
  gap: 2px;
}
.stat-label {
  font-size: 13px;
  color: var(--c-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ============================== Divider (signature pulse) ============================== */
.pulse-divider {
  width: 100%;
  height: 60px;
  display: block;
}
.pulse-divider path {
  stroke: var(--c-accent);
  stroke-width: 2;
  fill: none;
  opacity: 0.55;
}

/* ============================== Services ============================== */
.bg-tint {
  background: var(--c-surface-tint);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}
.service-media {
  position: relative;
  height: 190px;
  overflow: hidden;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.service-card:hover .service-media img {
  transform: scale(1.1);
}

.service-body {
  padding: 36px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-body h3 {
  font-size: 19px;
  margin-bottom: 10px;
}
.service-body p {
  color: var(--c-muted);
  font-size: 14.5px;
  flex: 1;
  margin-bottom: 18px;
}
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--c-primary);
  font-size: 14px;
}
.service-more i {
  transition: transform var(--dur-fast);
}
.service-card:hover .service-more i {
  transform: translateX(-5px);
}
[dir="rtl"] .service-card:hover .service-more i {
  transform: translateX(5px);
}

/* ============================== Why choose ============================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.why-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 30px 24px;
  text-align: center;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-fast) var(--ease-out);
}
.why-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
  background: linear-gradient(180deg, var(--c-surface), var(--c-primary-light));
}
.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: all var(--dur-fast);
}
.why-card:hover .why-icon {
  background: var(--grad-brand);
  color: #fff;
  transform: rotate(-8deg) scale(1.08);
}
.why-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13.5px;
  color: var(--c-muted);
}

/* ============================== Doctors ============================== */
.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.doctor-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  transition: all var(--dur-med) var(--ease-out);
}
.doctor-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.doctor-photo {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.doctor-card:hover .doctor-photo img {
  transform: scale(1.06);
}
.doctor-social {
  position: absolute;
  bottom: 14px;
  inset-inline: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--dur-fast) var(--ease-out);
}
.doctor-card:hover .doctor-social {
  opacity: 1;
  transform: translateY(0);
}
.doctor-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}
.doctor-social a:hover {
  background: var(--c-primary);
  color: #fff;
}
.doctor-body {
  padding: 22px 20px 24px;
  text-align: center;
}
.doctor-body h3 {
  font-size: 18px;
  margin-bottom: 4px;
}
.doctor-spec {
  color: var(--c-secondary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
}
.doctor-exp {
  color: var(--c-muted);
  font-size: 13px;
  margin-bottom: 18px;
}

/* ============================== Team List ============================== */
.team-intro {
  background: linear-gradient(135deg, #f0fcff 0%, #e0f7fa 100%);
  border: 1px solid rgba(14, 116, 144, 0.16);
  border-radius: 24px;
  padding: 28px 30px;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(14, 116, 144, 0.12);
  position: relative;
  overflow: hidden;
}
.team-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(6, 182, 212, 0.18),
    transparent 40%
  );
  pointer-events: none;
}
.team-intro h3 {
  font-size: 24px;
  color: var(--c-primary-dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.team-intro p {
  color: var(--c-secondary);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}
.team-intro ul {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.team-intro li {
  color: var(--c-text);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(14, 116, 144, 0.12);
  flex: 1 1 220px;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.team-intro li strong {
  color: var(--c-primary-dark);
  display: block;
  margin-bottom: 2px;
  font-size: 15px;
}
.team-intro li span {
  display: block;
  color: var(--c-muted);
  font-size: 13px;
  margin-top: 2px;
}
.team-hospital {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--c-primary), #0891b2);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(8, 145, 178, 0.22);
  position: relative;
  z-index: 1;
  width: fit-content;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur-med) var(--ease-out),
    box-shadow var(--dur-med) var(--ease-out);
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.team-card h4 {
  font-size: 17px;
  color: var(--c-primary-dark);
  margin-bottom: 12px;
}
.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.team-list li {
  color: var(--c-text);
  font-size: 14px;
  line-height: 1.7;
}

/* ============================== Testimonials ============================== */
.testi-section {
  background: linear-gradient(180deg, var(--c-primary-dark), var(--c-primary));
  color: #fff;
  position: relative;
  overflow: hidden;
}
.testi-section .section-desc {
  color: #cfeff4;
}
.testi-section .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.testi-slider {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.testi-slide {
  display: none;
  text-align: center;
}
.testi-slide.active {
  display: block;
  animation: fadeUp 0.6s var(--ease-out);
}
.testi-stars {
  color: #fbbf24;
  font-size: 18px;
  margin-bottom: 22px;
  letter-spacing: 4px;
}
.testi-quote {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.9;
  margin-bottom: 30px;
}
.testi-person {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testi-person img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}
.testi-person b {
  display: block;
}
.testi-person span {
  font-size: 13px;
  color: #b9e6ee;
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.testi-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--dur-fast);
}
.testi-dots button.active {
  background: #fff;
  width: 28px;
  border-radius: var(--r-pill);
}

/* ============================== Gallery ============================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 180px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.gallery-item.tall {
  grid-row: span 2;
}
.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center;
  transition: transform 0.6s var(--ease-out);
  display: block;
}
.gallery-item:hover img {
  transform: scale(1.08);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(2, 8, 23, 0.65) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 16px 18px;
  opacity: 0;
  transition: opacity var(--dur-fast);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay i {
  margin-inline-start: 8px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(4, 10, 20, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-fast);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox img {
  max-width: 86vw;
  max-height: 82vh;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  color: #fff;
  font-size: 24px;
  background: rgba(255, 255, 255, 0.1);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close {
  top: 26px;
  inset-inline-end: 26px;
}
.lightbox-nav.prev {
  inset-inline-start: 26px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-nav.next {
  inset-inline-end: 26px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--c-accent);
}

/* ============================== FAQ ============================== */
.faq-wrap {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  font-weight: 700;
  font-size: 16px;
  width: 100%;
  text-align: start;
}
.faq-q i {
  color: var(--c-primary);
  transition: transform var(--dur-fast) var(--ease-out);
  flex-shrink: 0;
}
.faq-item.open .faq-q i {
  transform: rotate(180deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur-med) var(--ease-out);
}
.faq-a p {
  padding: 0 26px 24px;
  color: var(--c-muted);
  font-size: 14.5px;
}
.faq-item.open .faq-a {
  max-height: 240px;
}
.faq-item.open {
  border-color: var(--c-accent);
}

/* ============================== Articles ============================== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-med) var(--ease-out);
}
.article-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.article-media {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.article-card:hover .article-media img {
  transform: scale(1.08);
}
.article-date {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  background: #fff;
  color: var(--c-primary);
  font-weight: 700;
  font-size: 12.5px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.article-body {
  padding: 24px;
}
.article-body h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.article-body p {
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.article-more {
  font-weight: 700;
  color: var(--c-primary);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================== Contact ============================== */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 36px 48px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast);
}
.contact-card:hover {
  transform: translateY(-4px);
}
.contact-card .icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.contact-card b {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}
.contact-card span {
  font-size: 13.5px;
  color: var(--c-muted);
}
.map-placeholder {
  height: 220px;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    120deg,
    var(--c-primary-light),
    var(--c-surface-tint)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  font-weight: 700;
  border: 1px dashed var(--c-primary);
}
.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.contact-form-wrap {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
  border: 1px solid var(--c-border);
  height: 100%;
}
.contact-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-text);
}
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 13px 16px;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14.5px;
  transition: border var(--dur-fast);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--c-accent);
}
.field.full {
  grid-column: 1 / -1;
}
.contact-form-wrap form > .field {
  margin-bottom: 18px;
}

/* ============================== Appointment Popup ============================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(4, 10, 20, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-fast);
  padding: 20px;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.modal-box {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  max-width: 520px;
  width: 100%;
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--dur-med) var(--ease-out);
}
.modal-overlay.open .modal-box {
  transform: scale(1);
}
.modal-close {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  font-size: 20px;
  color: var(--c-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: var(--c-bg);
  color: var(--c-danger);
}
.modal-box h3 {
  font-size: 22px;
  margin-bottom: 6px;
}
.modal-box > p {
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 24px;
}
.call-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.call-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  color: var(--c-ink);
  text-decoration: none;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}
.call-item:hover {
  transform: translateY(-2px);
  background: var(--c-primary);
  color: #fff;
  border-color: transparent;
}
.call-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 52px;
  min-height: 52px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(14, 116, 144, 0.1);
  color: var(--c-primary);
  font-size: 18px;
}
.call-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
}
.call-label {
  font-size: 14px;
  color: var(--c-muted);
}
.call-number {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.call-item:hover .call-label,
.call-item:hover .call-number {
  color: #fff;
}
.call-item:hover .call-icon {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================== Footer ============================== */
footer {
  background: var(--c-ink);
  color: #cbd5e1;
  padding-top: 90px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  color: #fff;
  margin-bottom: 18px;
}
.footer-about p {
  font-size: 14px;
  line-height: 1.9;
  color: #94a3b8;
  margin-bottom: 20px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
}
.footer-social a:hover {
  background: var(--grad-brand);
  transform: translateY(-3px);
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 22px;
}
.footer-col ul {
  display: grid;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: #94a3b8;
  transition: color var(--dur-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col a:hover {
  color: #67e8f9;
}
.footer-col a i {
  font-size: 11px;
  color: var(--c-secondary);
}
.newsletter-box {
  display: flex;
  margin-top: 6px;
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.newsletter-box input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 13px 18px;
  color: #fff;
  font-size: 13.5px;
}
.newsletter-box button {
  background: var(--grad-brand);
  color: #fff;
  padding: 0 20px;
  font-weight: 700;
  font-size: 13px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  font-size: 13.5px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a {
  color: #94a3b8;
}
.footer-bottom a:hover {
  color: #67e8f9;
}

/* ============================== Floating Buttons ============================== */
.float-stack {
  position: fixed;
  bottom: 26px;
  inset-inline-end: 26px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-fast) var(--ease-out);
}
.fab:hover {
  transform: scale(1.1) translateY(-2px);
}
.fab-whatsapp {
  background: #25d366;
}
.fab-call {
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  position: relative;
}
.fab-call::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid var(--c-accent);
  animation: ring 1.8s ease-out infinite;
}
@keyframes ring {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
.fab-top {
  width: 46px;
  height: 46px;
  background: var(--c-surface);
  color: var(--c-primary);
  border: 1px solid var(--c-border);
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--dur-fast) var(--ease-out);
}
.fab-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Cookie consent */
.cookie-bar {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: 1100;
  background: var(--c-ink);
  color: #fff;
  padding: 20px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform var(--dur-med) var(--ease-out);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
}
.cookie-bar.show {
  transform: translateY(0);
}
.cookie-bar p {
  font-size: 14px;
  color: #cbd5e1;
  max-width: 640px;
}
.cookie-bar p a {
  color: #67e8f9;
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ============================== AOS-like reveal ============================== */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: var(--ease-out);
}
[data-aos="fade-up"] {
  transform: translateY(40px);
}
[data-aos="fade-left"] {
  transform: translateX(-40px);
}
[data-aos="fade-right"] {
  transform: translateX(40px);
}
[data-aos="zoom-in"] {
  transform: scale(0.9);
}
[data-aos].aos-in {
  opacity: 1;
  transform: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ============================== Responsive ============================== */
@media (max-width: 1080px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-media-badge {
    position: static;
    margin-top: 20px;
    display: inline-flex;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.wide {
    grid-column: span 2;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 1024px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    inset-inline-end: 0;
    inset-inline-start: auto;
    bottom: 0;
    width: min(300px, 85vw);
    height: calc(100dvh - var(--nav-h));
    background: var(--c-surface);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 28px 20px;
    gap: 8px;
    transform: translateX(-110%);
    transition: transform var(--dur-med) var(--ease-out);
    overflow-y: auto;
    box-shadow: -12px 0 30px rgba(2, 8, 23, 0.16);
    border-inline-start: 1px solid var(--c-border);
    z-index: 1150;
  }
  [dir="ltr"] .nav-links {
    inset-inline-start: 0;
    inset-inline-end: auto;
    transform: translateX(110%);
    box-shadow: 12px 0 30px rgba(2, 8, 23, 0.16);
    border-inline-start: none;
    border-inline-end: 1px solid var(--c-border);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    display: block;
    width: 100%;
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    position: relative;
    z-index: 1;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background: var(--c-primary-light);
    color: var(--c-primary);
  }
  .nav-links a::after {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .lang-switch {
    display: none;
  }
}

.mobile-nav-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.08);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity var(--dur-med) var(--ease-out),
      visibility 0s linear var(--dur-med);
  }
  .mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }
}
body.menu-open {
  overflow: hidden;
}
@media (max-width: 768px) {
  .about-media img {
    height: 360px;
  }
  .hero-actions .btn {
    flex: 1;
    justify-content: center;
  }
  .hero-stats {
    gap: 26px;
  }
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
}
@media (max-width: 520px) {
  .container {
    padding: 0 18px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .float-stack {
    bottom: 18px;
    inset-inline-end: 16px;
  }
  .fab {
    width: 52px;
    height: 52px;
    font-size: 21px;
  }
  .services-grid,
  .doctors-grid,
  .articles-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
