/* ─── Alpine cloak ───────────────────────────────── */
[x-cloak] {
  display: none !important;
}

/* ─── Nav states ─────────────────────────────────── */
.nav-transparent {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.nav-transparent.scrolled {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(15, 82, 159, .1), 0 1px 4px rgba(0, 0, 0, .04);
}

.nav-solid {
  background: white;
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .04);
}

.nav-link-active {
  background: var(--color-brand);
  color: white !important;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
}

/* ─── Home hero gradient (bedoctor style) ────────── */
.home-hero-bg {
  background: linear-gradient(135deg,
      #b8d3f3 0%,
      #cfe0f8 20%,
      #e6f0fb 45%,
      #f5e8df 75%,
      #fdf4ef 100%);
}

/* ─── Typography ─────────────────────────────────── */
:root {
  --font-base: 'IBM Plex Sans Arabic', sans-serif;
  --color-brand: #0f529f;
  --color-brand-dark: #0a3d7a;
  --color-brand-light: #1a6bc8;
  --color-brand-pale: #e8f0fb;
}

body {
  font-family: var(--font-base);
  -webkit-font-smoothing: antialiased;
}

/* ─── RTL/LTR base ───────────────────────────────── */
[dir="rtl"] {
  text-align: right;
}

[dir="ltr"] {
  text-align: left;
}

/* ─── Tailwind brand color bridge ───────────────── */
.bg-brand {
  background-color: var(--color-brand);
}

.bg-brand-dark {
  background-color: var(--color-brand-dark);
}

.bg-brand-light {
  background-color: var(--color-brand-light);
}

.text-brand {
  color: var(--color-brand);
}

.text-brand-light {
  color: var(--color-brand-light);
}

.border-brand {
  border-color: var(--color-brand);
}

.hover\:bg-brand:hover {
  background-color: var(--color-brand);
}

.hover\:bg-brand-dark:hover {
  background-color: var(--color-brand-dark);
}

.hover\:text-brand:hover {
  color: var(--color-brand);
}

.hover\:border-brand:hover {
  border-color: var(--color-brand);
}

/* ─── Hero dotted background ─────────────────────── */
.hero-dots-bg {
  background-image: radial-gradient(circle, #0f529f 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── Float animations ───────────────────────────── */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes float-delayed {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-7px);
  }
}

.hero-float {
  animation: float 3.5s ease-in-out infinite;
}

.hero-float-delayed {
  animation: float-delayed 4s ease-in-out infinite;
  animation-delay: 0.8s;
}

/* ─── Line clamp utilities ───────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Smooth transitions (selective, not * ────────── */
a,
button,
.group,
[class*="hover:"] {
  transition-property: color, background-color, border-color, box-shadow, opacity, transform;
  transition-duration: 200ms;
  transition-timing-function: ease-in-out;
}

/* ─── Product image zoom ─────────────────────────── */
.group:hover .group-hover\:scale-105 {
  transform: scale(1.05);
}

/* ─── Swiper brand colors ────────────────────────── */
.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}

.swiper-pagination-bullet-active {
  background: var(--color-brand);
}

/* ─── Table responsive ───────────────────────────── */
@media (max-width: 640px) {
  table {
    display: block;
    overflow-x: auto;
  }
}

/* ─── Sticky nav shadow on scroll ───────────────── */
nav.shadow-sm {
  box-shadow: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .05);
}

/* ─── Backdrop blur fallback ─────────────────────── */
@supports not (backdrop-filter: blur(4px)) {
  .backdrop-blur-sm {
    background-color: rgba(15, 82, 159, 0.85);
  }
}

/* ─── Stats section divider (RTL-friendly) ───────── */
[dir="rtl"] .divide-x>*+* {
  border-right-width: 1px;
  border-left-width: 0;
}

/* ─── Scroll reveal ──────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--rd, 0s);
}

[data-reveal].visible {
  opacity: 1;
  transform: none;
}

/* ─── Section rhythm helpers ─────────────────────── */
.sec-dark {
  background: #0c1a2e;
}

.sec-light {
  background: #ffffff;
}

.sec-light-blue {
  background: linear-gradient(180deg, #edf5ff 0%, #f6f9fe 100%);
}

.sec-light-warm {
  background: linear-gradient(180deg, #f8fafe 0%, #ffffff 100%);
}

/* ─── Floating glass nav ─────────────────────────── */
.nav-glass-pill {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 4px 24px rgba(15, 82, 159, .08), 0 1px 4px rgba(0, 0, 0, .06);
}

/* ─── Hero section (full-viewport cinematic slider) ─ */
.hero-section {
  position: relative;
  height: 100dvh;
  overflow: hidden;
}

/* Background layer */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

@keyframes hero-zoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}

.hero-bg video,
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* animation: hero-zoom 25s linear infinite alternate; */
}

.hero-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100dvh;
  min-width: 177.78dvh;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 0;
}

/* Dark overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* background: linear-gradient(0deg, rgb(255 255 255 / 71%) 0%, rgb(255 255 255 / 9%) 40%, rgb(85 91 113 / 43%) 100%);
  backdrop-filter: blur(.5px); */
}

/* Content layer */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
}

.hero-content-inner {
  text-align: center;
  padding: 0 1.5rem;
  max-width: 860px;
  width: 100%;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-top: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0.1s;
}

/* Content fade-out state during slide transition */
.hero-content-inner.hero-fading .hero-title,
.hero-content-inner.hero-fading .hero-subtitle {
  opacity: 0;
  transform: translateY(20px) scale(0.97);
}

/* Hero slide dots */
.hero-dots {
  position: absolute;
  bottom: 174px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.hero-dots button {
  pointer-events: auto;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-dot--active {
  background: #ffffff;
  width: 24px;
}

/* Brand panel at bottom of hero */
.hero-brands {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1280px;
  z-index: 3;
  padding: 20px 24px;
  box-sizing: border-box;
  margin-bottom: 3rem;
}

.hero-brands-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.hero-brands-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-brands-sep {
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: -0.04em;
}

.brand-dots-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.brand-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease;
}

.brand-dot--active {
  background: #ffffff;
}

.brand-track-wrap,
.brand-slider-wrap {
  overflow: hidden;
}

.brand-track {
  display: flex;
  gap: 12px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.brand-card {
  flex-shrink: 0;
  width: 236px;
  height: 110px;
  background: rgb(15 82 159 / 84%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.brand-card:hover {
  background: rgb(255 255 255 / 82%);
  border-color: rgba(255, 255, 255, 0.25);
}

.brand-card img {
  /* height: 100%; */
  object-fit: contain;
  pointer-events: none;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all 0.5s ease-in-out;
}

.brand-card:hover img {
  opacity: 1;
  filter: brightness(1) invert(0);
  transform: scale(1.1);
}

/* ─── Header: full-width solid background ─────────── */
#main-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 14px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Home page: fully transparent while over hero */
#main-header.hero-transparent {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border-bottom-color: transparent !important;
}

#main-header.hero-transparent nav a,
#main-header.hero-transparent nav button span,
#main-header.hero-transparent nav .text-gray-700,
#main-header.hero-transparent nav .text-gray-600,
#main-header.hero-transparent nav .text-gray-500 {
  color: rgba(255, 255, 255, 0.92) !important;
}

#main-header.hero-transparent nav svg {
  color: rgba(255, 255, 255, 0.85) !important;
}

#main-header.hero-transparent .nav-link-active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
}

#main-header.hero-transparent [class*="border-gray"] {
  border-color: rgba(255, 255, 255, 0.28) !important;
}

/* Toggles (language/country) dropdown menu glass blur style on hero */
#main-header.hero-transparent nav .relative>div[x-show] {
  background: rgb(0 0 0 / 20%) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

#main-header.hero-transparent nav .relative>div[x-show] a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

#main-header.hero-transparent nav .relative>div[x-show] .text-gray-400 {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Pill is now a plain layout wrapper — no visual styling */
.nav-glass-pill {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 1rem 0;
}

/* ─── Remove all shadow styles from products page ─── */
.products-page-container,
.products-page-container *,
.products-page-container *:hover,
.products-page-container *:active,
.products-page-container *:focus,
.products-page-container *:focus-within {
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}