:root {
  --bg: #f4f8fc;
  --surface: #ffffff;
  --surface-alt: #eef4f9;
  --text: #17324d;
  --text-soft: #5d7288;
  --primary: #0d74b8;
  --primary-dark: #0a537f;
  --border: rgba(23, 50, 77, 0.12);
  --shadow: 0 24px 60px rgba(13, 70, 112, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1120px, calc(100% - 40px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Cairo", "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(13, 116, 184, 0.15), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 100%);
  line-height: 1.7;
  text-align: start;
  overflow-x: hidden;
}

body.lang-en {
  font-family: "Manrope", sans-serif;
}

body.is-ready .hero-copy,
body.is-ready .hero-card {
  animation: liftIn 0.9s ease both;
}

body.is-ready .hero-card {
  animation-delay: 0.14s;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding-inline-start: 20px;
}

.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;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(251, 253, 255, 0.9);
  border-bottom: 1px solid rgba(23, 50, 77, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 112px;
  height: auto;
  max-height: 84px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 12px 30px rgba(14, 82, 129, 0.12);
}

.brand strong,
.brand small {
  display: block;
}

.brand span {
  min-width: 0;
}

.brand strong {
  font-size: 1rem;
  white-space: nowrap;
}

.brand small {
  font-size: 0.82rem;
  color: var(--text-soft);
}

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

.lang-switch {
  display: inline-flex;
  padding: 4px;
  background: rgba(13, 116, 184, 0.08);
  border-radius: 999px;
  border: 1px solid rgba(13, 116, 184, 0.12);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn.active {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 18px rgba(13, 116, 184, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  position: relative;
  font-weight: 700;
  color: var(--text-soft);
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 116, 184, 0.14);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(14, 82, 129, 0.08);
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2.5px;
  margin: 0;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle:hover {
  background: #fff;
  border-color: rgba(13, 116, 184, 0.24);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.hero,
.page-hero {
  padding: 72px 0 48px;
}

.hero-grid,
.two-column,
.booking-layout,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.two-column h2,
.cta-shell h2 {
  margin: 0 0 16px;
  font-family: "Cairo", "Playfair Display", serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body.lang-en .hero-copy h1,
body.lang-en .page-hero h1,
body.lang-en .section-heading h2,
body.lang-en .two-column h2,
body.lang-en .cta-shell h2 {
  font-family: "Playfair Display", serif;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.35rem, 4.5vw, 4.6rem);
}

.hero-text,
.section-heading p,
.page-hero p,
.two-column p,
.detail-card p,
.doctor-card p,
.contact-card p {
  color: var(--text-soft);
}

.contact-card {
  padding: 30px;
}

.contact-card p {
  margin: 0 0 14px;
  font-size: 1.02rem;
  line-height: 1.9;
}

.contact-card a {
  overflow-wrap: anywhere;
}

.hero-text,
.section-heading p,
.page-hero p,
.two-column p,
.detail-card p,
.doctor-card p,
.contact-card p,
.feature-card p,
.service-card p,
.testimonial-card p,
.booking-form p,
label,
input,
select,
textarea {
  font-size: clamp(0.98rem, 1.2vw, 1.04rem);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-actions,
.cta-shell,
.section-heading.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 40px rgba(13, 116, 184, 0.28);
}

.btn-secondary {
  background: #fff;
  border: 1px solid var(--border);
}

.hero-points,
.check-list,
.hero-stats,
.feature-grid,
.service-grid,
.testimonial-grid,
.doctor-grid,
.footer-grid,
.detail-grid {
  display: grid;
  gap: 20px;
}

.hero-points {
  margin-top: 22px;
}

.hero-panel,
.feature-card,
.service-card,
.testimonial-card,
.accent-card,
.detail-card,
.doctor-card,
.booking-form,
.contact-card,
.map-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-card,
.service-card,
.testimonial-card,
.doctor-card,
.detail-card,
.accent-card,
.booking-form,
.contact-card,
.mini-map-card,
.hero-stats article {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.feature-card:hover,
.service-card:hover,
.testimonial-card:hover,
.doctor-card:hover,
.detail-card:hover,
.accent-card:hover,
.booking-form:hover,
.contact-card:hover,
.mini-map-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 68px rgba(13, 70, 112, 0.16);
  border-color: rgba(13, 116, 184, 0.2);
}

.hero-panel {
  padding: 32px;
  background:
    linear-gradient(145deg, rgba(13, 116, 184, 0.12), rgba(255, 255, 255, 0.95)),
    #fff;
}

.panel-badge {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(13, 116, 184, 0.12);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.88rem;
}

.hero-stats {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.hero-stats article {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(13, 116, 184, 0.12);
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
}

.stat-number {
  will-change: contents;
}

.section {
  padding: 48px 0;
}

.surface {
  background: rgba(234, 242, 248, 0.55);
}

.section-heading {
  margin-bottom: 28px;
}

.feature-grid,
.service-grid,
.testimonial-grid,
.doctor-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.feature-card,
.service-card,
.testimonial-card,
.doctor-card {
  padding: 28px;
}

.doctor-card h2,
.doctor-card h3 {
  margin: 0 0 10px;
  line-height: 1.35;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.values-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card {
  position: relative;
  padding: 26px 26px 24px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-top: 4px solid rgba(13, 116, 184, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 68px rgba(13, 70, 112, 0.16);
  border-color: rgba(13, 116, 184, 0.2);
}

.value-card-compact {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.value-card h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.5;
}

.value-card p {
  margin: 0;
  color: var(--text-soft);
}


.icon-chip,
.doctor-avatar {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  margin: 0 auto 1rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  margin: 0 0 1rem;
  color: var(--primary);
  background: rgba(13, 116, 184, 0.1);
  border: 1px solid rgba(13, 116, 184, 0.14);
  border-radius: 18px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.text-link {
  color: var(--primary);
  font-weight: 700;
}

.check-list {
  margin-top: 24px;
}

.check-list div {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
}

.accent-card {
  padding: 32px;
  background:
    linear-gradient(180deg, rgba(13, 116, 184, 0.12), rgba(255, 255, 255, 0.95)),
    #fff;
}

.cta-band {
  padding-bottom: 80px;
}

.cta-shell {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0f6fae, #0b4d79);
  color: #fff;
  box-shadow: 0 24px 60px rgba(12, 79, 123, 0.28);
}

.cta-shell .eyebrow,
.cta-shell p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  padding: 28px 0 100px;
  background: #0f2134;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr;
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.location-strip {
  padding-top: 8px;
}

.mini-map-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  align-items: center;
}

.mini-map-copy h2 {
  margin: 0 0 12px;
  font-family: "Cairo", "Playfair Display", serif;
  line-height: 1.2;
}

body.lang-en .mini-map-copy h2 {
  font-family: "Playfair Display", serif;
}

.mini-map-copy p {
  margin-top: 0;
  color: var(--text-soft);
}

.mini-map-visual {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(13, 116, 184, 0.1), rgba(13, 116, 184, 0.03)),
    #eef6fb;
  border: 1px solid rgba(13, 116, 184, 0.12);
  isolation: isolate;
}

.mini-map-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.55) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 2px, transparent 2px);
  background-size: 44px 44px;
  opacity: 0.6;
  animation: mapDrift 12s linear infinite;
}

.mini-map-visual::before,
.mini-map-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(13, 116, 184, 0.14);
}

.mini-map-visual::before {
  width: 140%;
  height: 12px;
  top: 34%;
  left: -10%;
  transform: rotate(-12deg);
}

.mini-map-visual::after {
  width: 12px;
  height: 140%;
  top: -10%;
  left: 48%;
  transform: rotate(16deg);
}

.mini-map-pin {
  position: absolute;
  inset-inline-start: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #0d74b8, #0a537f);
  transform-origin: center;
  rotate: -45deg;
  box-shadow: 0 20px 44px rgba(13, 116, 184, 0.24);
  animation: pinBounce 2.8s ease-in-out infinite;
}

.mini-map-pin span {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #fff;
}

.mini-map-badge {
  position: absolute;
  inset-inline-end: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.86rem;
}

.service-stack {
  display: grid;
  gap: 24px;
}

.detail-card {
  padding: 32px;
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

.doctor-role {
  color: var(--primary);
  font-weight: 700;
}

.booking-form {
  padding: 28px;
}

.booking-form label {
  display: block;
  margin-bottom: 16px;
  font-weight: 700;
}

.booking-form input,
.booking-form select {
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(23, 50, 77, 0.16);
  background: #fbfdff;
  font: inherit;
  color: var(--text);
}

.form-note {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.map-card {
  position: relative;
  min-height: 360px;
  padding: 0;
  overflow: hidden;
}

.map-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  text-align: center;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(13, 116, 184, 0.12), rgba(13, 116, 184, 0.03)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.5) 14px,
      rgba(13, 116, 184, 0.04) 14px,
      rgba(13, 116, 184, 0.04) 28px
    );
}

.map-embed {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.map-overlay {
  position: absolute;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(15, 33, 52, 0.82);
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.contact-cta {
  width: 100%;
  min-height: 58px;
  margin-top: 10px;
  padding-inline: 24px;
  font-size: 1rem;
}

.floating-whatsapp,
.floating-call {
  position: fixed;
  inset-inline-end: 18px;
  z-index: 45;
  color: #fff;
  box-shadow: 0 16px 40px rgba(12, 46, 71, 0.2);
}

.floating-whatsapp {
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #19a766;
  animation: pulseRing 2.8s ease-in-out infinite;
}

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

.floating-call {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  min-width: 150px;
  max-width: min(220px, calc(100vw - 96px));
  bottom: calc(98px + env(safe-area-inset-bottom, 0px));
  inset-inline-start: 18px;
  inset-inline-end: auto;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  background: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal[data-reveal-delay="1"] {
  transition-delay: 0.08s;
}

.reveal[data-reveal-delay="2"] {
  transition-delay: 0.16s;
}

.reveal[data-reveal-delay="3"] {
  transition-delay: 0.24s;
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pinBounce {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    transform: translate(-50%, -56%) scale(1.04);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    box-shadow: 0 16px 40px rgba(12, 46, 71, 0.2), 0 0 0 0 rgba(25, 167, 102, 0.24);
  }

  50% {
    box-shadow: 0 16px 40px rgba(12, 46, 71, 0.24), 0 0 0 12px rgba(25, 167, 102, 0);
  }
}

@keyframes mapDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-8px, 6px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes navPanelIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes navItemIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1200px) {
  .nav-shell {
    min-height: 82px;
    gap: 18px;
  }

  .hero,
  .page-hero {
    padding: 60px 0 42px;
  }

  .hero-grid,
  .two-column,
  .booking-layout,
  .contact-layout {
    gap: 24px;
  }

  .hero-panel,
  .feature-card,
  .service-card,
  .testimonial-card,
  .accent-card,
  .detail-card,
  .doctor-card,
  .booking-form,
  .contact-card {
    padding: 24px;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .two-column,
  .booking-layout,
  .contact-layout,
  .feature-grid,
  .service-grid,
  .testimonial-grid,
  .doctor-grid,
  .leadership-grid,
  .values-grid,
  .footer-grid,
  .detail-grid,
  .mini-map-card {
    grid-template-columns: 1fr;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 20px;
    inset-inline-end: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(13, 116, 184, 0.12);
    border-radius: 24px;
    box-shadow: 0 26px 50px rgba(8, 33, 56, 0.16);
    transform-origin: top center;
  }

  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(243, 248, 252, 0.9), rgba(255, 255, 255, 0.98));
    border: 1px solid rgba(13, 116, 184, 0.08);
    color: var(--text);
    font-size: 1rem;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav a:hover,
  .site-nav a.active {
    background: rgba(13, 116, 184, 0.1);
    border-color: rgba(13, 116, 184, 0.16);
  }

  .site-nav.open {
    display: flex;
    animation: navPanelIn 0.26s ease both;
  }

  .site-nav.open a {
    animation: navItemIn 0.34s ease both;
  }

  .site-nav.open a:nth-child(1) {
    animation-delay: 0.04s;
  }

  .site-nav.open a:nth-child(2) {
    animation-delay: 0.08s;
  }

  .site-nav.open a:nth-child(3) {
    animation-delay: 0.12s;
  }

  .site-nav.open a:nth-child(4) {
    animation-delay: 0.16s;
  }

  .site-nav.open a:nth-child(5) {
    animation-delay: 0.2s;
  }

  .site-nav.open a:nth-child(6) {
    animation-delay: 0.24s;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-shell {
    position: relative;
    flex-wrap: nowrap;
    align-items: center;
    min-height: 78px;
  }

  .hero,
  .page-hero,
  .section {
    padding: 40px 0;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.1rem, 6vw, 3.2rem);
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 24px, 1120px);
  }

  .nav-shell {
    min-height: 68px;
    gap: 8px;
  }

  .brand small {
    display: none;
  }

  .brand img {
    width: 94px;
    max-height: 62px;
    border-radius: 12px;
  }

  .brand strong {
    font-size: 0.92rem;
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.45rem);
  }

  .hero-text,
  .section-heading p,
  .page-hero p,
  .two-column p,
  .detail-card p,
  .doctor-card p,
  .contact-card p,
  .feature-card p,
  .service-card p,
  .testimonial-card p,
  .booking-form p,
  label,
  input,
  select,
  textarea {
    font-size: 0.97rem;
  }

  .header-actions {
    margin-inline-start: auto;
    flex-shrink: 0;
    gap: 8px;
  }

  .lang-switch {
    transform: scale(0.96);
    transform-origin: center;
  }

  .lang-btn {
    padding: 7px 10px;
  }

  .site-footer {
    padding: 26px 0 42px;
  }

  .btn {
    width: calc(100% - 24px);
  }

  .floating-call {
    justify-content: center;
    inset-inline-start: auto;
    inset-inline-end: 12px;
  }

  .floating-whatsapp {
    width: 58px;
    height: 58px;
    inset-inline-end: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .floating-call {
    display: inline-flex;
    width: auto;
    min-width: 144px;
    max-width: calc(100vw - 92px);
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    padding-inline: 18px;
    font-size: 0.94rem;
  }
}

@media (max-width: 420px) {
  .brand img {
    width: 88px;
    max-height: 58px;
  }

  .brand strong {
    display: none;
  }

  .floating-call {
    min-width: 132px;
    max-width: calc(100vw - 84px);
    padding-inline: 16px;
    font-size: 0.9rem;
  }

  .floating-whatsapp {
    width: 56px;
    height: 56px;
  }
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom-flex {
  display: flex;
  justify-content: flex-start; /* right side in RTL */
  gap: 24px;
  flex-wrap: wrap;
}

body.lang-en .footer-bottom-flex {
  justify-content: flex-end; /* right side in LTR */
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  display: inline;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (max-width: 680px) {
  .footer-bottom-flex {
    justify-content: center;
    text-align: center;
  }
  body.lang-en .footer-bottom-flex {
    justify-content: center;
  }
}

/* Testimonials Rolling Marquee Styles */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 520px; /* Center and fit a single card perfectly */
  margin: 0 auto;
  padding: 10px 0 30px;
  direction: ltr; /* Force LTR direction for layout and overflow alignment */
  display: flex;
  justify-content: flex-start;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.testimonials-track {
  display: flex;
  gap: 0; /* Fully connected cards for no dead space */
  width: max-content;
  direction: ltr; /* Force LTR layout for consistent marquee calculations */
  animation: marquee-scroll 64s linear infinite; /* Slower rolling animation (8s per card) */
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  flex: 0 0 520px; /* Force cards to take up the full container width */
  box-sizing: border-box;
  direction: rtl; /* Restore Arabic text alignment */
  text-align: start;
}

body.lang-en .testimonial-card {
  direction: ltr; /* Restore LTR text alignment for English translation */
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0); /* Move by exactly half the track width (the duplicated set) */
  }
}

@media (max-width: 600px) {
  .testimonials-slider {
    max-width: 100%;
    padding: 10px 16px 30px;
  }
  .testimonial-card {
    flex: 0 0 calc(100vw - 32px); /* Scale to screen width on mobile */
    padding: 20px;
  }
}
