/* ==================================================================
   THEME VARIABLES (overwritten at runtime from siteConfig.colors)
================================================================== */
:root {
  --color-primary: #b91c1c;
  --color-primary-dark: #7f1d1d;
  --color-primary-light: #fee2e2;
  --color-secondary: #0f172a;
  --color-secondary-light: #374151;
  --color-accent: #d4a017;
  --color-background: #ffffff;
  --color-background-soft: #f8fafc;
  --color-background-dark: #0b1220;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #ffffff;
  --color-card-background: #ffffff;
  --color-border: #e5e7eb;
  --color-navbar-background: #ffffff;
  --color-navbar-text: #0f172a;
  --color-navbar-transparent-text: #ffffff;
  --color-button-primary-background: #b91c1c;
  --color-button-primary-text: #ffffff;
  --color-button-secondary-background: transparent;
  --color-button-secondary-text: #ffffff;
  --color-button-secondary-border: #ffffff;
  --color-overlay-dark: rgba(0, 0, 0, 0.6);
  --color-whatsapp: #25d366;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 6px 18px -10px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 18px 40px -22px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 30px 70px -30px rgba(0, 0, 0, 0.35);
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: "Playfair Display", "Inter", serif;
  --font-arabic: "Tajawal", "Cairo", system-ui, sans-serif;
}
/* ==================================================================
   DARK THEME — palette variables come from JS (buildPalette).
   These rules cover component-level adjustments that aren't driven
   by CSS variables alone (translucent surfaces, color-shifts, etc.).
================================================================== */
html[data-theme="dark"] body {
  color-scheme: dark;
}
html[data-theme="dark"] .navbar.solid {
  background: var(--color-primary);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.55);
}
html[data-theme="dark"] .lang-btn,
html[data-theme="dark"] .navbar.solid .lang-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}
html[data-theme="dark"] .lang-btn:hover,
html[data-theme="dark"] .navbar.solid .lang-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
html[data-theme="dark"] .tb-theme {
  background: rgba(255, 255, 255, 0.08);
}
/* Cards / surfaces in dark mode get a subtle inner sheen instead of a hard border */
html[data-theme="dark"] .card,
html[data-theme="dark"] .contact-info,
html[data-theme="dark"] .brand-item {
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 36px -22px rgba(0, 0, 0, 0.7);
}
html[data-theme="dark"] .contact-buttons .btn-soft {
  background: var(--color-card-background);
  color: var(--color-text);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 22px -16px rgba(0, 0, 0, 0.6);
}
html[data-theme="dark"] .contact-buttons .btn-soft:hover {
  background: var(--color-background-soft);
}
html[data-theme="dark"] .btn-outline {
  background: var(--color-background-soft);
  color: var(--color-text);
}
/* Drawer surface gets a deeper background to feel premium in dark mode */
html[data-theme="dark"] .nav-drawer {
  background: var(--color-card-background);
}
/* Scroll indicator in hero — keep it visible on a dark navbar */
html[data-theme="dark"] .navbar.transparent .nav-toggle,
html[data-theme="dark"] .navbar.transparent .nav-link,
html[data-theme="dark"] .navbar.transparent .nav-brand,
html[data-theme="dark"] .navbar.transparent .lang-btn {
  color: #fff;
}
/* Suppress transitions until the first paint to avoid drawer/theme flicker */
html.no-transitions *,
html.no-transitions *::before,
html.no-transitions *::after {
  transition: none !important;
  animation: none !important;
}
/* ==================================================================
   BASE
================================================================== */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}
html[dir="rtl"] body {
  font-family: var(--font-arabic);
  line-height: 1.85;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--color-text);
  font-weight: 700;
}
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4 {
  font-family: var(--font-arabic);
  letter-spacing: 0;
  font-weight: 700;
}
::selection {
  background: var(--color-primary);
  color: #fff;
}
/* ---------- ACCESSIBILITY ---------- */
/* Skip link — visually hidden until focused, then slides into view */
.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 2000;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translate(-50%, 0);
  outline: none;
}
/* Visible keyboard focus ring on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 6px;
}
/* ==================================================================
   TOP BAR (above navbar — call + WhatsApp + social media)
================================================================== */
:root {
  --topbar-h: 40px;
  --navbar-h: 76px;
}
.top-bar {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: var(--topbar-h);
  z-index: 101;
  /* A deep brand band — sits between the mid-dark secondary and the near-black
     footer token, so it reads dark but not pitch black. Both are primary-derived. */
  background: color-mix(in srgb, var(--color-secondary) 45%, var(--color-background-dark));
  color: #e2e8f0;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  transition:
    transform 0.4s ease,
    opacity 0.3s ease;
}
.top-bar.hidden-up {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.top-bar-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  color: #e2e8f0;
  text-decoration: none;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
  font-weight: 500;
}
.top-bar a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.top-bar a.tb-social {
  width: 32px;
  height: 32px;
  padding: 0;
  justify-content: center;
}
.top-bar svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}
.top-bar a.tb-social svg {
  width: 14px;
  height: 14px;
}
.top-bar .tb-text {
  direction: ltr;
}
/* Theme toggle button (lives in the top bar) */
.tb-theme {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: #e2e8f0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  margin-inline-start: 0.35rem;
}
.tb-theme:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}
.tb-theme svg {
  width: 16px;
  height: 16px;
}
.tb-theme .icon-sun {
  display: none;
}
.tb-theme .icon-moon {
  display: inline-flex;
}
html[data-theme="dark"] .tb-theme .icon-sun {
  display: inline-flex;
}
html[data-theme="dark"] .tb-theme .icon-moon {
  display: none;
}
@media (max-width: 700px) {
  .top-bar {
    height: 36px;
    font-size: 0.78rem;
  }
  .top-bar-container {
    padding: 0 0.85rem;
  }
  .top-bar a {
    padding: 0.3rem 0.55rem;
  }
  .top-bar a.tb-social {
    width: 28px;
    height: 28px;
  }
  .top-bar .tb-label {
    display: none;
  }
}
/* ==================================================================
   NAVBAR
================================================================== */
.navbar {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 100;
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease,
    padding 0.4s ease,
    top 0.4s ease,
    backdrop-filter 0.4s ease;
  padding: 1rem 0;
}
body.no-topbar .navbar {
  top: 0;
}
.navbar.topbar-hidden {
  top: 0;
}
.navbar.transparent {
  background: transparent;
}
.navbar.transparent .nav-link,
.navbar.transparent .nav-brand,
.navbar.transparent .lang-btn,
.navbar.transparent .nav-toggle {
  color: var(--color-navbar-transparent-text);
}
.navbar.solid {
  background: var(--color-primary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  padding: 0.55rem 0;
}
.navbar.solid .nav-link,
.navbar.solid .nav-brand,
.navbar.solid .lang-btn,
.navbar.solid .nav-toggle {
  color: var(--color-on-primary);
}
.navbar.solid .nav-link::after {
  background: var(--color-on-primary);
}
.navbar.solid .nav-link:hover {
  color: var(--color-on-primary);
  opacity: 0.85;
}
.navbar.solid .lang-btn {
  background: var(--color-on-primary-border);
  color: var(--color-on-primary);
}
.navbar.solid .lang-btn:hover {
  background: var(--color-on-primary);
  color: var(--color-primary);
}
/* ----- Alternate style: neutral light/dark surface (settings.navbarStyle = "default") */
.navbar.navbar-style-default.solid {
  background: var(--color-card-background);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.navbar.navbar-style-default.solid .nav-link,
.navbar.navbar-style-default.solid .nav-brand,
.navbar.navbar-style-default.solid .lang-btn,
.navbar.navbar-style-default.solid .nav-toggle {
  color: var(--color-navbar-text);
}
.navbar.navbar-style-default.solid .nav-link::after {
  background: var(--color-primary);
}
.navbar.navbar-style-default.solid .nav-link:hover {
  color: var(--color-primary);
  opacity: 1;
}
.navbar.navbar-style-default.solid .lang-btn {
  background: rgba(0, 0, 0, 0.05);
  color: var(--color-navbar-text);
}
.navbar.navbar-style-default.solid .lang-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
/* Dark mode: a translucent, primary-tinted glass navbar. The surface is the
   primary-derived navbar token made semi-transparent so the backdrop blur
   shows through, with a faint primary glow underneath. Changing
   theme.primary re-tints all of it. */
html[data-theme="dark"] .navbar.navbar-style-default.solid {
  background: color-mix(in srgb, var(--color-navbar-background) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow:
    0 8px 30px -6px rgba(0, 0, 0, 0.55),
    0 2px 18px -8px color-mix(in srgb, var(--color-primary) 60%, transparent);
}
html[data-theme="dark"] .navbar.navbar-style-default.solid .lang-btn {
  background: rgba(255, 255, 255, 0.08);
}
.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-side {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}
.nav-brand img {
  height: 50px;
  width: auto;
  transition: height 0.4s ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}
.navbar.solid.shrink .nav-brand img {
  height: 38px;
}
.nav-brand-mobile {
  display: none;
} /* shown only on mobile */
.nav-menu-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  justify-content: center;
}
.nav-link {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  white-space: nowrap;
  color: inherit;
}
.nav-link::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--color-primary);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link:hover {
  color: var(--color-primary);
}
/* Language switcher (desktop = text pill, mobile = flag-only circle) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
}
.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  color: inherit;
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.navbar.solid .lang-btn {
  background: rgba(0, 0, 0, 0.05);
}
.lang-btn:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-1px);
}
.lang-btn .lang-flag {
  font-size: 1.05rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
/* Flag icons (SVG file or inline SVG). Emoji flags don't render on Windows,
   so the switcher uses image/SVG flags — sized relative to the button text. */
.lang-btn .lang-flag svg,
.lang-btn .lang-flag .lang-flag-img {
  width: 1.4em;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.lang-btn .lang-text {
  font-weight: 600;
}
/* When the slot renders a theme toggle (only one language enabled) */
.lang-btn.mode-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}
.lang-btn.mode-btn svg {
  width: 18px;
  height: 18px;
}
.lang-btn.mode-btn .icon-sun {
  display: none;
}
.lang-btn.mode-btn .icon-moon {
  display: inline-flex;
}
html[data-theme="dark"] .lang-btn.mode-btn .icon-sun {
  display: inline-flex;
}
html[data-theme="dark"] .lang-btn.mode-btn .icon-moon {
  display: none;
}
/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px;
  color: inherit;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* ==================================================================
   MOBILE NAV LAYOUT (≤ 960px)
================================================================== */
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .nav-brand-desktop {
    display: none;
  }
  .nav-menu-desktop {
    display: none;
  }
  .nav-brand-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    text-decoration: none;
  }
  .nav-brand-mobile img {
    height: 56px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
    transition: height 0.4s ease;
  }
  .navbar.solid .nav-brand-mobile img {
    height: 44px;
  }
  .nav-container {
    padding: 0 1rem;
  }
  /* Show only the flag on mobile language button */
  .lang-btn .lang-text {
    display: none;
  }
  .lang-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
  }
  .lang-btn .lang-flag {
    font-size: 1.15rem;
  }
  .lang-btn .lang-flag svg,
  .lang-btn .lang-flag .lang-flag-img {
    width: 1.6em;
  }
}
/* ==================================================================
   PAGE OVERLAY (when mobile drawer is open)
================================================================== */
.page-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 110;
}
.page-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
/* ==================================================================
   MOBILE DRAWER MENU
================================================================== */
/* Drawer side rule:
   - English (LTR) -> drawer enters from the LEFT edge
   - Arabic  (RTL) -> drawer enters from the RIGHT edge
   We use physical positioning per direction so the slide-in feel
   matches the user's reading flow.                                  */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: auto;
  height: 100vh;
  width: 84%;
  max-width: 340px;
  background: var(--color-navbar-background);
  z-index: 120;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  box-shadow: 10px 0 40px rgba(0, 0, 0, 0.18);
}
html[dir="rtl"] .nav-drawer {
  left: auto;
  right: 0;
  transform: translateX(110%);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.18);
}
.nav-drawer.open {
  transform: translateX(0) !important;
}
.nav-drawer-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.nav-drawer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-text);
  width: 100%;
}
.nav-drawer-brand img {
  height: 88px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}
.nav-drawer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--color-text);
  line-height: 1.2;
}
html[dir="rtl"] .nav-drawer-brand span {
  font-family: var(--font-arabic);
}
.drawer-close {
  position: absolute;
  top: 0.6rem;
  inset-inline-end: 0.7rem;
  background: transparent;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
.drawer-close:hover {
  background: var(--color-background-soft);
  color: var(--color-primary);
}
.nav-drawer-menu {
  list-style: none;
  margin: 0;
  padding: 1.25rem 0;
  flex: 1 1 auto;
  overflow-y: auto;
}
.nav-drawer-menu li {
  padding: 0;
}
.nav-drawer-menu .nav-link {
  display: block;
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  color: var(--color-text);
  border-inline-start: 3px solid transparent;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    padding 0.25s ease;
}
.nav-drawer-menu .nav-link::after {
  display: none;
}
.nav-drawer-menu .nav-link:hover,
.nav-drawer-menu .nav-link.active {
  background: var(--color-background-soft);
  color: var(--color-primary);
  border-inline-start-color: var(--color-primary);
}
.nav-drawer-footer {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.drawer-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.drawer-social a {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--color-background-soft);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}
.drawer-social a svg {
  width: 16px;
  height: 16px;
}
.drawer-social a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.drawer-lang .lang-btn {
  background: var(--color-background-soft);
  color: var(--color-text);
  border: 0;
}
.drawer-lang .lang-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.drawer-lang .lang-btn .lang-text {
  display: inline;
}
.drawer-lang .lang-btn {
  width: auto;
  height: auto;
  padding: 0.45rem 0.95rem;
}
/* ==================================================================
   HERO
================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light);
  overflow: hidden;
  /* Cross-browser parallax (iOS-safe).
     `clip-path` confines the fixed `.hero-bg` child to the hero box without
     creating a new containing block (which would break `position: fixed`).
     `isolation: isolate` keeps the bg's negative z-index inside this section. */
  clip-path: inset(0);
  isolation: isolate;
}
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
  }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.65) 100%),
    rgba(0, 0, 0, var(--hero-overlay-opacity, 0.5));
}
/* Primary-tinted dark overlay — matches the Statistics section vibe.
   Activated by hero.overlayStyle: "primary" in config. Honors --hero-overlay-opacity. */
.hero.hero-overlay-primary .hero-overlay {
  background:
    radial-gradient(
      900px 480px at 15% 15%,
      color-mix(in srgb, var(--color-primary) 55%, #000),
      transparent 60%
    ),
    radial-gradient(
      800px 460px at 85% 85%,
      color-mix(in srgb, var(--color-primary) 35%, #000),
      transparent 60%
    ),
    color-mix(in srgb, var(--color-primary) 22%, var(--color-background-dark));
  opacity: var(--hero-overlay-opacity, 0.85);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  padding: 7rem 1.5rem 3rem;
}
@media (max-width: 700px) {
  .hero-content {
    padding: 6rem 1rem 2.5rem;
  }
}
.hero-logo {
  height: 100px;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5));
}
.hero h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  color: var(--color-text-light);
  margin: 0 0 1.1rem;
  line-height: 1.15;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}
.hero p {
  font-size: clamp(1.02rem, 1.5vw, 1.28rem);
  max-width: 720px;
  margin: 0 auto 2.2rem;
  opacity: 0.95;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* ==================================================================
   BUTTONS
================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.btn-primary {
  background: var(--color-button-primary-background);
  color: var(--color-button-primary-text);
  box-shadow: 0 8px 22px -12px var(--color-primary);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px var(--color-primary);
  background: var(--color-primary-dark);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-button-secondary-text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-button-secondary-text);
  transform: translateY(-2px);
}
.btn-outline {
  background: var(--color-background-soft);
  color: var(--color-text);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 6px 18px -12px rgba(15, 23, 42, 0.18);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 8px 22px -12px var(--color-whatsapp);
}
.btn-whatsapp:hover {
  background: #1ebe57;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px var(--color-whatsapp);
}
/* ==================================================================
   SECTIONS
================================================================== */
section {
  padding: 6.5rem 1.5rem;
}
@media (max-width: 700px) {
  section {
    padding: 4rem 1rem;
  }
}
.container {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}
.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-title h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin: 0 0 0.75rem;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 999px;
}
.section-title p {
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 1.6rem auto 0;
  font-size: 1.02rem;
}
/* ==================================================================
   ABOUT
================================================================== */
.about {
  background: var(--color-background-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-image-wrap {
  position: relative;
}
.about-image-wrap::before {
  content: "";
  position: absolute;
  inset-inline-start: -18px;
  bottom: -18px;
  width: 60%;
  height: 60%;
  border: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.about-image {
  position: relative;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  z-index: 1;
}
.about-text h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin: 0 0 1.25rem;
}
.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}
.about-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-image-wrap::before {
    display: none;
  }
}
/* ==================================================================
   CARD GRID (services + products)
================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--color-card-background);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: var(--color-background-soft);
}
.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.card:hover .card-image {
  transform: scale(1.07);
}
.card-body {
  padding: 1.6rem 1.6rem 1.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
}
.card-body p {
  color: var(--color-text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.96rem;
  flex: 1;
}
.card .btn {
  align-self: flex-start;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}
html[dir="rtl"] .card .btn {
  align-self: flex-end;
}
/* ==================================================================
   TEAM — elegant circular portrait cards
================================================================== */
.team {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(
      1200px 400px at 50% -10%,
      rgba(0, 0, 0, 0.04),
      transparent 60%
    ),
    var(--color-background);
  position: relative;
  overflow: hidden;
}
html[data-theme="dark"] .team {
  background:
    radial-gradient(
      1200px 400px at 50% -10%,
      rgba(255, 255, 255, 0.04),
      transparent 60%
    ),
    var(--color-background);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 5rem 1.75rem; /* large vertical gap to make room for the overlapping circle */
  margin-top: 5.5rem;
  max-width: 1200px;
  margin-inline: auto;
  padding: 0 1rem;
}
.team-card {
  position: relative;
  background: var(--color-card-background);
  border: 1px solid var(--color-border);
  border-radius: 22px;
  padding: 4.5rem 1.6rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  isolation: isolate;
}
.team-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    160deg,
    var(--color-primary) 0%,
    transparent 35%,
    transparent 65%,
    var(--color-primary) 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
  border-color: transparent;
}
.team-card:hover::before {
  opacity: 1;
}
html[data-theme="dark"] .team-card:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.55);
}
/* Circular portrait — overlaps the top of the card */
.team-photo {
  position: absolute;
  top: -64px;
  left: 50%;
  transform: translateX(-50%);
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-background-soft);
  box-shadow:
    0 0 0 4px var(--color-card-background),
    0 8px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.4s ease;
}
.team-photo::after {
  /* Subtle gradient ring behind the avatar — appears on hover */
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    var(--color-primary),
    transparent 35%,
    transparent 65%,
    var(--color-primary)
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.team-card:hover .team-photo {
  transform: translateX(-50%) translateY(-4px) scale(1.04);
  box-shadow:
    0 0 0 4px var(--color-card-background),
    0 14px 32px rgba(0, 0, 0, 0.18);
}
.team-card:hover .team-photo::after {
  opacity: 1;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.team-card:hover .team-photo img {
  transform: scale(1.07);
}
.team-photo-empty {
  background: linear-gradient(
    135deg,
    var(--color-background-soft),
    var(--color-card-background)
  );
}
.team-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.team-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.2px;
}
.team-role {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}
.team-role::after {
  /* Decorative divider under the role */
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  margin: 0.7rem auto 0;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
}
.team-bio {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 32ch;
}
.team-social {
  margin-top: 1.1rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.team-social a {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.team-social a svg {
  width: 15px;
  height: 15px;
}
.team-social a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 540px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 5rem 1rem;
    max-width: 360px;
  }
  .team-card {
    padding: 4.25rem 1.25rem 1.5rem;
  }
}
/* ==================================================================
   STATS / ACHIEVEMENTS — dark primary background, borderless cards
================================================================== */
.stats {
  position: relative;
  padding: 5.5rem 0;
  /* Deep, primary-derived gradient base. Every tone is a color-mix of
     --color-primary, so re-theming the brand color re-themes this section. */
  background:
    radial-gradient(
      1100px 560px at 12% 12%,
      color-mix(in srgb, var(--color-primary) 42%, transparent),
      transparent 62%
    ),
    radial-gradient(
      950px 520px at 88% 90%,
      color-mix(in srgb, var(--color-primary) 30%, transparent),
      transparent 60%
    ),
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--color-primary) 32%, var(--color-background-dark)),
      color-mix(in srgb, var(--color-primary) 12%, var(--color-background-dark)) 55%,
      var(--color-background-dark)
    );
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}
/* Floating, blurred colour blobs. `screen` blending lets the overlapping
   primary tints melt together into soft luminous gradients on the dark base. */
.stats-blob {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  filter: blur(90px);
  mix-blend-mode: screen;
  will-change: transform;
  animation: statsBlobFloat 20s ease-in-out infinite alternate;
}
.stats-blob.b1 {
  /* Pure primary — top-left anchor */
  width: 460px;
  height: 460px;
  top: -130px;
  left: -110px;
  background: var(--color-primary);
  opacity: 0.7;
  animation-duration: 22s;
}
.stats-blob.b2 {
  /* Bright pastel highlight — bottom-right */
  width: 500px;
  height: 500px;
  bottom: -160px;
  right: -120px;
  background: color-mix(in srgb, var(--color-primary) 55%, #ffffff);
  opacity: 0.5;
  animation-duration: 26s;
  animation-direction: alternate-reverse;
  animation-delay: -6s;
}
.stats-blob.b3 {
  /* Auto-derived accent hue — centre-right */
  width: 400px;
  height: 400px;
  top: 24%;
  left: 56%;
  background: var(--color-accent);
  opacity: 0.45;
  animation-duration: 24s;
  animation-delay: -11s;
}
.stats-blob.b4 {
  /* Deep saturated primary — lower-left */
  width: 360px;
  height: 360px;
  bottom: -60px;
  left: 18%;
  background: color-mix(in srgb, var(--color-primary) 78%, var(--color-background-dark));
  opacity: 0.55;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
  animation-delay: -3s;
}
.stats-blob.b5 {
  /* Soft lifted primary — upper-right glow */
  width: 320px;
  height: 320px;
  top: -80px;
  right: 22%;
  background: color-mix(in srgb, var(--color-primary) 40%, #ffffff);
  opacity: 0.4;
  animation-duration: 19s;
  animation-delay: -8s;
}
@keyframes statsBlobFloat {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(46px, -34px) scale(1.12) rotate(8deg);
  }
  66% {
    transform: translate(-28px, 30px) scale(0.92) rotate(-6deg);
  }
  100% {
    transform: translate(24px, 18px) scale(1.05) rotate(4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stats-blob {
    animation: none;
  }
}
/* A faint grain/vignette keeps edges rich without hiding the colour. */
.stats-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    120% 120% at 50% 40%,
    transparent 55%,
    color-mix(in srgb, var(--color-background-dark) 70%, transparent) 100%
  );
}
/* Section title sits on dark bg */
.stats .section-title h2,
.stats .section-title p {
  color: #fff;
}
.stats .section-title p {
  opacity: 0.85;
}
.stats > .container {
  position: relative;
  z-index: 1;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.75rem;
  margin-top: 2.75rem;
  max-width: 1100px;
  margin-inline: auto;
}
/* Borderless, transparent cards — just the numbers floating on the dark bg */
.stat-card {
  position: relative;
  text-align: center;
  padding: 1.25rem 1rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: none;
  border-color: transparent;
}
.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  margin-bottom: 0.4rem;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.35s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.stat-card:hover .stat-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(255, 255, 255, 0.18);
}
.stat-icon svg {
  width: 26px;
  height: 26px;
}
.stat-value-wrap {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
  letter-spacing: -1px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.stat-prefix,
.stat-suffix {
  color: #fff;
  opacity: 0.75;
  font-size: 0.6em;
  font-weight: 700;
}
.stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
@media (max-width: 540px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
  .stat-card {
    padding: 1rem 0.5rem;
  }
  .stat-icon {
    width: 48px;
    height: 48px;
  }
  .stat-icon svg {
    width: 22px;
    height: 22px;
  }
}
/* ==================================================================
   MULTI-SLIDE GALLERY
================================================================== */
.slider-section {
  background: var(--color-background);
}
.slider {
  position: relative;
  margin: 0 auto;
  padding: 0 4rem;
}
.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.slider-track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.slider-slide {
  flex: 0 0 calc(100% / var(--slides-visible, 3));
  padding: 0 8px;
  box-sizing: border-box;
}
.slider-slide-inner {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-background-soft);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}
.slider-slide-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(0, 0, 0, 0.45) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}
.slider-slide-inner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.slider-slide-inner:hover::after {
  opacity: 1;
}
.slider-slide-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.slider-slide-inner:hover img {
  transform: scale(1.06);
}
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-card-background);
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
  width: 50px;
  height: 50px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
  z-index: 2;
}
.slider-arrow:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.06);
}
.slider-arrow.prev {
  left: 0;
}
.slider-arrow.next {
  right: 0;
}
html[dir="rtl"] .slider-arrow.prev {
  left: auto;
  right: 0;
}
html[dir="rtl"] .slider-arrow.next {
  right: auto;
  left: 0;
}
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.75rem;
}
.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-border);
  border: 0;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    width 0.3s ease;
}
.slider-dot.active {
  background: var(--color-primary);
  width: 28px;
}
@media (max-width: 768px) {
  .slider {
    padding: 0 2.5rem;
  }
  .slider-arrow {
    width: 40px;
    height: 40px;
  }
}
@media (max-width: 480px) {
  .slider {
    padding: 0 0.25rem;
  }
  .slider-arrow {
    width: 36px;
    height: 36px;
  }
  .slider-arrow.prev {
    left: -4px;
  }
  .slider-arrow.next {
    right: -4px;
  }
  html[dir="rtl"] .slider-arrow.prev {
    left: auto;
    right: -4px;
  }
  html[dir="rtl"] .slider-arrow.next {
    right: auto;
    left: -4px;
  }
}
/* ==================================================================
   BRANDS
================================================================== */
.brands {
  background: var(--color-background-soft);
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.brand-item {
  background: var(--color-card-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  min-height: 130px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}
.brand-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}
.brand-item img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(60%);
  opacity: 0.85;
  transition:
    filter 0.3s ease,
    opacity 0.3s ease;
}
.brand-item:hover img {
  filter: grayscale(0);
  opacity: 1;
}
.brand-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
/* ==================================================================
   PARALLAX COMPANY NAME
================================================================== */
.parallax-company {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Same primary-derived gradient backdrop as the Statistics section, with the
     shared .stats-blob floating blobs rendered inside it. */
  background:
    radial-gradient(
      1100px 560px at 12% 12%,
      color-mix(in srgb, var(--color-primary) 42%, transparent),
      transparent 62%
    ),
    radial-gradient(
      950px 520px at 88% 90%,
      color-mix(in srgb, var(--color-primary) 30%, transparent),
      transparent 60%
    ),
    linear-gradient(
      155deg,
      color-mix(in srgb, var(--color-primary) 32%, var(--color-background-dark)),
      color-mix(in srgb, var(--color-primary) 12%, var(--color-background-dark)) 55%,
      var(--color-background-dark)
    );
  color: var(--color-text-light);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
@media (max-width: 768px) {
  .parallax-company {
    min-height: 50vh;
  }
}
/* Faint vignette to deepen the edges (matches the stats overlay). */
.parallax-company .overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    120% 120% at 50% 40%,
    transparent 55%,
    color-mix(in srgb, var(--color-background-dark) 70%, transparent) 100%
  );
}
.parallax-company .content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
}
.parallax-company h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 5.5rem);
  color: var(--color-text-light);
  margin: 0 0 0.75rem;
  letter-spacing: 3px;
}
.parallax-company p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  opacity: 0.95;
  margin: 0;
}
/* ==================================================================
   CONTACT
================================================================== */
.contact {
  background: var(--color-background);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: stretch;
}
.contact-map {
  width: 100%;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  min-height: 460px;
}
.contact-info {
  background: var(--color-card-background);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
@media (max-width: 700px) {
  .contact-info {
    padding: 1.5rem;
  }
}
.contact-info h3 {
  margin: 0 0 0.5rem;
  font-size: 1.6rem;
}
.contact-info .subtitle {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-detail:last-of-type {
  border-bottom: 0;
  margin-bottom: 1.25rem;
}
.contact-detail .icon-circle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 999px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-detail .icon-circle svg {
  width: 20px;
  height: 20px;
}
.contact-detail .label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contact-detail .value {
  font-weight: 600;
  color: var(--color-text);
  word-break: break-word;
  display: block;
}
.contact-detail .value + .value {
  margin-top: 0.2rem;
}
.contact-detail a.value {
  text-decoration: none;
  transition: color 0.25s ease;
}
.contact-detail a.value:hover {
  color: var(--color-primary);
}
.contact-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: auto;
}
.contact-buttons .btn {
  width: 100%;
  padding: 0.78rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.contact-buttons .btn-direction {
  grid-column: 1 / -1;
}
/* Soft, elegant contact action buttons. They share a neutral surface
   and reveal a colored accent on hover, keeping the section calm. */
.contact-buttons .btn-soft {
  background: var(--color-background-soft);
  color: var(--color-text);
  border: 0;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.04),
    0 6px 18px -12px rgba(15, 23, 42, 0.18);
}
.contact-buttons .btn-soft .btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--color-primary);
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}
.contact-buttons .btn-soft:hover {
  background: #fff;
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(0, 0, 0, 0.28);
}
.contact-buttons .btn-soft.is-whatsapp .btn-ico {
  color: var(--color-whatsapp);
}
.contact-buttons .btn-soft.is-whatsapp:hover {
  background: var(--color-whatsapp);
  color: #fff;
}
.contact-buttons .btn-soft.is-whatsapp:hover .btn-ico {
  color: #fff;
}
.contact-buttons .btn-soft.is-waze .btn-ico {
  color: #33ccff;
}
.contact-buttons .btn-soft.is-waze:hover {
  background: #33ccff;
  color: #fff;
}
.contact-buttons .btn-soft.is-waze:hover .btn-ico {
  color: #fff;
}
.contact-buttons .btn-soft.is-maps .btn-ico {
  color: #4285f4;
}
.contact-buttons .btn-soft.is-maps:hover {
  background: #4285f4;
  color: #fff;
}
.contact-buttons .btn-soft.is-maps:hover .btn-ico {
  color: #fff;
}
@media (max-width: 960px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .contact-map,
  .contact-map iframe {
    min-height: 350px;
  }
}
@media (max-width: 480px) {
  .contact-buttons {
    grid-template-columns: 1fr;
  }
}
/* ==================================================================
   SCROLL-TO-TOP BUTTON
================================================================== */
.scroll-top {
  position: fixed;
  bottom: 24px; /* same distance from the bottom as the WhatsApp float */
  /* Always on the physical right on desktop (even in RTL). Mobile re-centers below. */
  right: 28px;
  inset-inline-end: auto;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 89;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.4);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}
.scroll-top svg {
  width: 22px;
  height: 22px;
}
@media (max-width: 600px) {
  .scroll-top {
    bottom: 24px;
    right: auto;
    inset-inline-end: auto;
    left: 50%;
    transform: translate(-50%, 14px);
    width: 44px;
    height: 44px;
  }
  .scroll-top.visible {
    transform: translate(-50%, 0);
  }
  .scroll-top:hover {
    transform: translate(-50%, -2px);
  }
}
/* ==================================================================
   WHATSAPP FLOATING BUTTON
================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--color-whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
}
.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid var(--color-whatsapp);
  opacity: 0.5;
  animation: pulseRing 2.2s ease-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.6);
}
@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
/* ==================================================================
   FOOTER
================================================================== */
footer.site-footer {
  background: var(--color-background-dark);
  color: #cbd5e1;
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.footer-col h4 {
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 1.25rem;
  position: relative;
  padding-bottom: 0.6rem;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 36px;
  height: 2px;
  background: var(--color-primary);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.footer-brand img {
  height: 54px;
  width: auto;
}
.footer-brand strong {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
}
.footer-col p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0 0 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.55rem;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition:
    color 0.25s ease,
    padding 0.25s ease;
  font-size: 0.95rem;
  display: inline-block;
}
.footer-links a::before {
  content: "\203A"; /* › */
  display: inline-block;
  margin-inline-end: 8px;
  color: var(--color-primary);
  transition: transform 0.25s ease;
}
html[dir="rtl"] .footer-links a::before {
  content: "\203A"; /* › in RTL too — same glyph, no flip */
}
.footer-links a:hover {
  color: #fff;
  padding-inline-start: 4px;
}
.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
  color: #94a3b8;
}
.footer-contact-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  color: var(--color-primary);
}
.footer-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
}
.footer-contact-item a:hover {
  color: #fff;
}
.social-icons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
  text-decoration: none;
}
.social-icons a svg {
  width: 18px;
  height: 18px;
}
.social-icons a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.4rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.footer-bottom strong {
  color: #fff;
}
/* Language switcher inside the footer */
.footer-lang {
  margin-bottom: 0.5rem;
}
.footer-lang .lang-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.footer-lang .lang-btn:hover {
  background: var(--color-primary);
  color: #fff;
}
.footer-credit {
  font-size: 0.85rem;
  color: #94a3b8;
}
.footer-credit a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition:
    color 0.25s ease,
    border-color 0.25s ease;
}
.footer-credit a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* ==================================================================
   SCROLL REVEAL ANIMATION (with fade-out on scroll up)
================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.left {
  transform: translateX(-30px);
}
.reveal.right {
  transform: translateX(30px);
}
.reveal.left.visible,
.reveal.right.visible {
  transform: translateX(0);
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-content > * {
  animation: fadeUp 1s ease both;
}
.hero-content > *:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-content > *:nth-child(2) {
  animation-delay: 0.3s;
}
.hero-content > *:nth-child(3) {
  animation-delay: 0.5s;
}
.hero-content > *:nth-child(4) {
  animation-delay: 0.7s;
}
/* RTL polish — directional chevron is handled via content swap above */
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
  html {
    scroll-behavior: auto;
  }
}
