/* ============================================================
   VICTORIA HOSPITAL BLOOD BANK
   components.css — Reusable UI Components
   ============================================================ */

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-8);
  border-radius: var(--r-full);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--ease-base);
  white-space: nowrap;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--ease-fast);
}

.btn:hover::after {
  background: rgba(255,255,255,0.08);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform var(--ease-base);
}

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

.btn:hover svg {
  transform: translateX(3px);
}

[dir="rtl"] .btn:hover svg {
  transform: scaleX(-1) translateX(3px);
}

/* Primary Button */
.btn--primary {
  background: var(--clr-red);
  color: var(--clr-white);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover {
  background: var(--clr-red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(216, 0, 27, 0.35);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn--secondary {
  background: var(--clr-navy);
  color: var(--clr-white);
  box-shadow: var(--shadow-navy);
}

.btn--secondary:hover {
  background: var(--clr-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 51, 120, 0.3);
}

/* Outline Button */
.btn--outline {
  background: transparent;
  color: var(--clr-navy);
  border-color: var(--clr-navy);
}

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

.btn--outline-white {
  background: transparent;
  color: var(--clr-white);
  border-color: var(--clr-gray-100);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--clr-white);
}

/* Ghost / Light Button */
.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--clr-white);
  border-color: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
}

/* Size variants */
.btn--sm {
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-10);
  font-size: var(--text-lg);
}

.btn--xl {
  padding: var(--sp-5) var(--sp-12);
  font-size: var(--text-xl);
}

/* Icon-only button */
.btn--icon {
  padding: var(--sp-3);
  border-radius: var(--r-full);
}

/* Phone button */
.btn--phone {
  background: var(--clr-navy);
  color: var(--clr-white);
  box-shadow: var(--shadow-navy);
}

.btn--phone:hover {
  background: var(--clr-navy-dark);
  transform: translateY(-2px);
}

/* WhatsApp button */
.btn--whatsapp {
  background: #25D366;
  color: var(--clr-white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--whatsapp svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.btn--whatsapp:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
}

/* === BOOKING MENU === */
.booking-cta-container {
  margin-top: 2rem;
}

.booking-menu {
  animation: bookingMenuIn 0.25s ease;
}

@keyframes bookingMenuIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.booking-menu h4 {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-4);
  text-align: center;
}


.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  color: var(--clr-navy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-gray-200);
  transition: box-shadow var(--ease-base), background var(--ease-base);
}

.header.is-scrolled {
  box-shadow: var(--shadow-md);
  background: var(--clr-white);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}

/* Logo */
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img {
  height: 48px;
  width: 48px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

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

.header__logo-text .logo-name-ar {
  font-family: var(--font-ar);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-navy);
}

.header__logo-text .logo-name-en {
  font-family: var(--font-en);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--clr-navy);
  text-decoration: none;
  transition: all var(--ease-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--clr-red);
  background: var(--clr-gray-50);
}

.nav__link--has-dropdown svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  transition: transform var(--ease-base);
}

.nav__item:hover .nav__link--has-dropdown svg,
.nav__item.is-open .nav__link--has-dropdown svg {
  transform: rotate(180deg);
}

/* Dropdown */
.nav__dropdown {
  position: absolute;
  top: calc(100% + var(--sp-2));
  background: var(--clr-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--clr-gray-200);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--ease-base);
  overflow: hidden;
  padding: var(--sp-2);
  z-index: 100;
}

[dir="rtl"] .nav__dropdown { right: 0; left: auto; }
[dir="ltr"] .nav__dropdown { left: 0; right: auto; }

.nav__item:hover .nav__dropdown,
.nav__item.is-open .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  color: var(--clr-gray-700);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--ease-fast);
}

.nav__dropdown-item:hover {
  background: var(--clr-navy-subtle);
  color: var(--clr-navy);
}

.nav__dropdown-item__icon {
  width: 36px;
  height: 36px;
  background: var(--clr-red-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease-fast);
}

.nav__dropdown-item:hover .nav__dropdown-item__icon {
  background: var(--clr-red);
}

.nav__dropdown-item__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--clr-red);
  fill: none;
  stroke-width: 2;
  transition: stroke var(--ease-fast);
}

.nav__dropdown-item:hover .nav__dropdown-item__icon svg {
  stroke: white;
}

.nav__dropdown-item__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav__dropdown-item__label {
  font-weight: 600;
  color: var(--clr-navy);
}

.nav__dropdown-item__desc {
  font-size: var(--text-xs);
  color: var(--clr-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 18ch;
}

/* Header actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  background: var(--clr-gray-100);
  border-radius: var(--r-full);
}

.lang-switcher__btn {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ease-fast);
  color: var(--clr-gray-500);
  border: none;
  background: none;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.lang-switcher__btn.is-active,
.lang-switcher__btn:hover {
  background: var(--clr-navy);
  color: var(--clr-white);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  cursor: pointer;
  border: none;
  background: none;
  border-radius: var(--r-md);
  transition: background var(--ease-fast);
}

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

.mobile-toggle__bar {
  width: 24px;
  height: 2.5px;
  background: var(--clr-navy);
  border-radius: 2px;
  transition: all var(--ease-base);
}

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

.mobile-toggle.is-open .mobile-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--clr-white);
  z-index: 499;
  overflow-y: auto;
  padding: var(--sp-6);
  transform: translateX(100%);
  transition: transform var(--ease-base);
}

[dir="rtl"] .mobile-menu {
  transform: translateX(-100%);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-4);
  border-radius: var(--r-lg);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--clr-navy);
  text-decoration: none;
  transition: background var(--ease-fast);
  border-bottom: 1px solid var(--clr-gray-100);
}

.mobile-menu__link:hover {
  background: var(--clr-navy-subtle);
}

.mobile-menu__submenu {
  display: none;
  padding: var(--sp-2) 0 var(--sp-4) var(--sp-4);
  gap: var(--sp-1);
  flex-direction: column;
}

[dir="rtl"] .mobile-menu__submenu {
  padding-right: var(--sp-4);
  padding-left: 0;
}

.mobile-menu__submenu.is-open { display: flex; }

.mobile-menu__sublink {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--clr-text);
  text-decoration: none;
  transition: all var(--ease-fast);
}

.mobile-menu__sublink:hover {
  color: var(--clr-navy);
  background: var(--clr-navy-subtle);
}

.mobile-menu__actions {
  margin-top: var(--sp-8);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.mobile-menu__lang {
  display: flex;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--clr-gray-200);
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

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

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 20, 60, 0.88) 0%,
    rgba(0, 51, 120, 0.75) 40%,
    rgba(0, 51, 120, 0.55) 70%,
    rgba(0, 30, 80, 0.65) 100%
  );
}

.hero__container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  padding-block: var(--sp-24) var(--sp-32);
}

.hero__content {
  max-width: 70ch;
}

[dir="rtl"] .hero__content { text-align: right; }
[dir="ltr"] .hero__content { text-align: left; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  background: rgba(216, 0, 27, 0.15);
  border: 1px solid rgba(216, 0, 27, 0.4);
  border-radius: var(--r-full);
  color: #ffaab5;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--sp-6);
  letter-spacing: 0.05em;
}

.hero__badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.hero__title {
  font-size: clamp(var(--text-4xl), 6vw, var(--text-7xl));
  color: var(--clr-white);
  line-height: 1.1;
  margin-bottom: var(--sp-6);
  font-weight: 800;
}

.hero__title .highlight {
  color: var(--clr-red-light);
  position: relative;
}

.hero__subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  color: var(--clr-white);
  margin-bottom: var(--sp-10);
  line-height: var(--leading-relaxed);
  max-width: 55ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-bottom: var(--sp-12);
}

[dir="rtl"] .hero__actions { justify-content: flex-start; }
[dir="ltr"] .hero__actions { justify-content: flex-start; }

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--clr-gray-100);
  font-size: var(--text-sm);
  font-weight: 500;
}

.hero__trust-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--clr-red-light);
  fill: none;
  stroke-width: 2.5;
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: var(--clr-gray-100);
  font-size: var(--text-xs);
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* === SERVICE CARDS === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
}

.service-card {
  background: var(--clr-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--ease-base);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--clr-gray-200);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--clr-red), var(--clr-navy));
  opacity: 0;
  transition: opacity var(--ease-base);
}

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

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

.service-card__img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  flex-shrink: 0;
}

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

.service-card:hover .service-card__img {
  transform: scale(1.06);
}

.service-card__body {
  padding: var(--sp-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: var(--clr-red-subtle);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-5);
  transition: background var(--ease-base), transform var(--ease-base);
}

.service-card:hover .service-card__icon {
  background: var(--clr-red);
  transform: translateY(-4px);
}

.service-card__icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--clr-red);
  fill: none;
  stroke-width: 2;
  transition: stroke var(--ease-base);
}

.service-card:hover .service-card__icon svg {
  stroke: white;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-3);
  line-height: var(--leading-snug);
}

.service-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-text);
  flex: 1;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-5);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--clr-red);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: gap var(--ease-base);
}

[dir="rtl"] .service-card__link svg { transform: scaleX(-1); }

.service-card:hover .service-card__link {
  gap: var(--sp-3);
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* === CONTACT CARDS === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.contact-card {
  background: var(--clr-white);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--clr-gray-200);
  transition: all var(--ease-base);
}

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

.contact-card__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--sp-5);
}

.contact-card__icon--phone {
  background: var(--clr-navy-subtle);
}

.contact-card__icon--phone svg {
  stroke: var(--clr-navy);
}

.contact-card__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke-width: 2;
}

.contact-card__icon--whatsapp {
  background: rgba(37, 211, 102, 0.1);
}

/* Override the generic fill:none — must come after the generic rule */
.contact-card__icon--whatsapp svg {
  fill: #25D366 !important;
  stroke: none !important;
}

.contact-card__icon--location {
  background: var(--clr-red-subtle);
}

.contact-card__icon--location svg {
  stroke: var(--clr-red);
}

.contact-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-2);
}

.contact-card__info {
  font-size: var(--text-base);
  color: var(--clr-text);
  margin-bottom: var(--sp-5);
  font-weight: 500;
  direction: ltr;
  unicode-bidi: embed;
}

/* === FOOTER === */
.footer {
  background: var(--clr-navy-dark);
  color: var(--clr-white);
  padding-top: var(--sp-20);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
  text-decoration: none;
}

.footer__logo img {
  height: auto;
  width: auto;
  object-fit: contain;
}

.footer__logo-text .logo-name-ar {
  font-family: var(--font-ar);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--clr-white);
}

.footer__logo-text .logo-name-en {
  font-size: var(--text-xs);
  color: var(--clr-gray-100);
  font-family: var(--font-en);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__tagline {
  font-size: var(--text-sm);
  color: var(--clr-gray-100);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--sp-6);
  max-width: 35ch;
}

.footer__social {
  display: flex;
  gap: var(--sp-3);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--ease-fast);
  text-decoration: none;
}

.footer__social-link:hover {
  background: var(--clr-red);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,0.7);
  transition: fill var(--ease-fast);
}

.footer__social-link:hover svg {
  fill: white;
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-5);
}

[dir="rtl"] .footer__col-title {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.footer__nav-link {
  color: var(--clr-gray-100);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--ease-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer__nav-link:hover {
  color: var(--clr-white);
}

.footer__nav-link::before {
  content: '›';
  color: var(--clr-red);
  font-size: 1.1em;
  line-height: 1;
}

[dir="rtl"] .footer__nav-link::before {
  content: '‹';
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.footer__contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--clr-red);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__contact-item a,
.footer__contact-item p {
  color: var(--clr-gray-100);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--ease-fast);
  line-height: var(--leading-relaxed);
}

.footer__contact-item a:hover {
  color: var(--clr-white);
}

.footer__bottom {
  padding-block: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__copy {
  font-size: var(--text-sm);
  color: var(--clr-gray-100);
}

.footer__lang-nav {
  display: flex;
  gap: var(--sp-4);
}

.footer__lang-link {
  font-size: var(--text-sm);
  color: var(--clr-gray-100);
  text-decoration: none;
  transition: color var(--ease-fast);
  font-weight: 500;
}

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

/* === ABOUT SECTION === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-2xl);
  border: 2px solid rgba(0, 51, 120, 0.2);
  pointer-events: none;
}

.about-img-badge {
  position: absolute;
  bottom: var(--sp-6);
  background: var(--clr-white);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 160px;
}

[dir="rtl"] .about-img-badge { right: var(--sp-6); }
[dir="ltr"] .about-img-badge { left: var(--sp-6); }

.about-img-badge__icon {
  width: 44px;
  height: 44px;
  background: var(--clr-red-subtle);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-img-badge__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--clr-red);
  fill: none;
  stroke-width: 2;
}

.about-img-badge__text strong {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--clr-navy);
  line-height: 1;
}

.about-img-badge__text span {
  font-size: var(--text-xs);
  color: var(--clr-text);
  font-weight: 500;
}

.about-content {}

.about-content p {
  margin-bottom: var(--sp-4);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--clr-gray-50);
  border-radius: var(--r-lg);
  border-inline-start: 3px solid var(--clr-red);
}

.about-feature svg {
  width: 22px;
  height: 22px;
  stroke: var(--clr-navy);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 1px;
}

.about-feature__text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 2px;
}

.about-feature__text span {
  font-size: var(--text-xs);
  color: var(--clr-text);
}

/* === MEDICAL TEAM SECTION === */
.team-section {
  background: var(--clr-gray-50);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
}

.team-card {
  background: var(--clr-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--ease-base);
  text-align: center;
  border: 1px solid var(--clr-gray-200);
}

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

.team-card__img-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--clr-gray-100);
}

.team-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.team-card:hover .team-card__img {
  transform: scale(1.05);
}

.team-card__body {
  padding: var(--sp-6);
}

.team-card__name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: var(--sp-1);
}

.team-card__title {
  font-size: var(--text-sm);
  color: var(--clr-red);
  font-weight: 600;
  margin-bottom: var(--sp-3);
}

.team-card__desc {
  font-size: var(--text-sm);
  color: var(--clr-text);
  line-height: var(--leading-relaxed);
}

.team-placeholder {
  background: linear-gradient(135deg, var(--clr-navy-subtle), var(--clr-gray-100));
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-placeholder svg {
  width: 80px;
  height: 80px;
  stroke: var(--clr-gray-300);
  fill: none;
  stroke-width: 1;
}

/* === LOCATION SECTION === */
.location-section {
  background: var(--clr-navy-dark);
  color: var(--clr-white);
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-12);
  align-items: center;
}

[dir="rtl"] .location-grid { }
[dir="ltr"] .location-grid { }

.location-info {}

.location-address {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  margin-top: var(--sp-8);
}

.location-address__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.location-address__icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-address__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--clr-red-light);
  fill: none;
  stroke-width: 2;
}

.location-address__text strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-white);
  margin-bottom: var(--sp-1);
}

.location-address__text p,
.location-address__text a {
  font-size: var(--text-sm);
  color: var(--clr-gray-100);
  line-height: var(--leading-relaxed);
  text-decoration: none;
}

.location-address__text a:hover {
  color: var(--clr-white);
}

.location-map {
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--clr-navy);
  position: relative;
}

.location-map__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-4);
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-light) 100%);
  text-align: center;
  padding: var(--sp-8);
}

.location-map__placeholder svg {
  width: 48px;
  height: 48px;
  stroke: rgba(255,255,255,0.4);
  fill: none;
  stroke-width: 1.5;
}

.location-map__placeholder p {
  color: var(--clr-gray-100);
  font-size: var(--text-sm);
}

.location-map__placeholder .btn {
  margin-top: var(--sp-2);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* === FORM STYLES === */
.form-group {
  margin-bottom: var(--sp-5);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--clr-navy);
  margin-bottom: var(--sp-2);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--clr-gray-200);
  border-radius: var(--r-lg);
  font-size: var(--text-base);
  color: var(--clr-gray-800);
  background: var(--clr-white);
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
  font-family: inherit;
}

[dir="rtl"] .form-input,
[dir="rtl"] .form-textarea {
  font-family: var(--font-ar);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--clr-navy);
  box-shadow: 0 0 0 3px var(--clr-navy-subtle);
}

.form-input.is-error,
.form-textarea.is-error {
  border-color: var(--clr-red);
  box-shadow: 0 0 0 3px var(--clr-red-subtle);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--clr-red);
  margin-top: var(--sp-1);
  display: none;
}

.form-error.is-visible { display: block; }

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

/* === NOTIFICATION / TOAST === */
.toast {
  position: fixed;
  z-index: 9999;
  padding: var(--sp-4) var(--sp-6);
  background: var(--clr-navy-dark);
  color: var(--clr-white);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  max-width: 360px;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--ease-base);
}

[dir="rtl"] .toast { left: var(--sp-6); bottom: var(--sp-6); }
[dir="ltr"] .toast { right: var(--sp-6); bottom: var(--sp-6); }

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

.toast--success { background: #166534; }
.toast--error { background: var(--clr-red-dark); }

/* === SERVICE PAGE LAYOUT === */
.service-page-hero {
  background: linear-gradient(135deg, var(--clr-navy-dark) 0%, var(--clr-navy) 100%);
  padding-top: calc(var(--header-h) + var(--sp-12));
  padding-bottom: var(--sp-16);
  overflow: hidden;
  position: relative;
}

.service-page-hero__content {
  max-width: 55ch;
  position: relative;
  z-index: 1;
}

[dir="rtl"] .service-page-hero__content { text-align: right; }
[dir="ltr"] .service-page-hero__content { text-align: left; }

.service-page-hero__img-col {
  position: relative;
  z-index: 1;
}

.service-page-hero__img {
  border-radius: var(--r-2xl);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255,255,255,0.1);
}

.service-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.service-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.service-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--clr-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-gray-100);
  transition: box-shadow var(--ease-base);
}

.service-feature-item:hover {
  box-shadow: var(--shadow-md);
}

.service-feature-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--clr-navy);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  margin-top: 2px;
}

.service-feature-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--clr-navy);
  margin-bottom: 2px;
}

.service-feature-item p {
  font-size: var(--text-xs);
  color: var(--clr-text);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* Related services */
.related-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

/* === CTA SECTION === */
.cta-section {
  background: linear-gradient(135deg, var(--clr-navy) 0%, var(--clr-navy-dark) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: var(--sp-24);
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(216, 0, 27, 0.15), transparent 70%);
}

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

.cta-section h2 {
  color: var(--clr-white);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--sp-4);
}

.cta-section p {
  color: var(--clr-gray-100);
  font-size: var(--text-xl);
  margin-bottom: var(--sp-10);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-section .cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}


/* Header Social Links */
.header__social {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 auto;
}

.header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--clr-navy);
  background: var(--clr-gray-50);
  transition: all var(--ease-fast);
}

.header__social-link:hover {
  background: var(--clr-red);
  color: var(--clr-white);
  transform: translateY(-2px);
}

.header__social-link--wa:hover {
  background: #25D366;
}

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

/* Hero Brand Heading */
.hero__brand-heading {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  color: #FFFFFF !important;
  font-weight: 800;
  margin-bottom: var(--sp-2);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  font-family: var(--font-ar);
}


/* === SERVICE HERO FIX === */
.service-hero {
  background: var(--clr-bg-alt);
  color: var(--clr-gray-900);
}

.service-hero .page-hero__title {
  color: var(--clr-gray-900); /* Black in light mode, white in dark mode */
}

.service-hero .page-hero__subtitle {
  color: var(--clr-text);
}

.service-hero .page-hero__tag {
  color: var(--clr-red); 
  background: rgba(216, 0, 27, 0.15);
  border-color: rgba(216, 0, 27, 0.2);
}

/* Ensure breadcrumbs in the light service hero are visible */
.service-hero .breadcrumb a,
.service-hero .breadcrumb__sep,
.service-hero .breadcrumb span[aria-current="page"] {
  color: var(--clr-text);
}
.service-hero .breadcrumb a:hover {
  color: var(--clr-red);
}

/* Dark Mode Overrides for Service Hero */
[data-theme="dark"] .service-hero .page-hero__tag {
  color: var(--clr-white);
  background: rgba(216, 0, 27, 0.4);
}
[data-theme="dark"] .service-hero .breadcrumb a:hover {
  color: var(--clr-white);
}
