﻿/* FIX Hero v3: RTL, performance-friendly video hero */

@font-face {
  font-family: "LBC";
  src: url("/fonts/LBC.woff2") format("woff2"), local("LBC"), local("LBC Bold");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "DIN-Alt";
  src: url("/fonts/DIN-Alt.woff2") format("woff2"), local("DIN"), local("DIN Next"), local("DIN Next LT Arabic");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

@font-face {
  font-family: "DIN";
  src: url("/fonts/DIN-Alt.woff2") format("woff2"), local("DIN"), local("DIN Next"), local("DIN Next LT Arabic");
  font-display: swap;
  font-style: normal;
  font-weight: 400 700;
}

:root {
  --fix-red: #d11b1b;
  --fix-deep-red: #b71616;
  --fix-blue: #0a61c9;
  --fix-white: #ffffff;
  --fix-dark: #0b0b0b;
  --glass-bg: rgba(18, 18, 18, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --radius-md: 14px;
  --fw-bold: 800;
  --bg-overlay: rgba(0, 0, 0, 0.52);
  --card-bg: rgba(18, 18, 18, 0.55);
  --muted: #bdbdbd;
  --glass-blur: 8px;
}

body {
  overflow-x: hidden;
}

.site-header {
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header .logo img {
  transition: transform 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 6px 16px rgba(15, 18, 32, 0.1) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-header.scrolled .logo img {
  transform: scale(0.9);
}

.hero.hero-fix {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: right;
  color: var(--fix-white);
  padding: 90px 20px 34px;
  isolation: isolate;
}

.hero.hero-fix::before {
  content: none !important;
}

.hero.hero-fix::after {
  content: none;
}

.hero.hero-fix .hero-media.hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.48) 58%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
  z-index: 2;
}

[dir="rtl"] .hero.hero-fix .hero-media.hero-video-wrap::after {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.48) 58%, rgba(0, 0, 0, 0.4) 100%);
}

.hero.hero-fix .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-video-wrap {
  position: relative;
  overflow: hidden;
}

.hero.hero-fix .hero-mobile-media,
.hero.hero-fix .hero2 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero.hero-fix .hero-mobile-media {
  display: none;
}

.hero.hero-fix .hero-mobile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero.hero-fix.hero--video-fallback .hero2 {
  display: none !important;
}

.hero.hero-fix.hero--video-fallback .hero-mobile-media {
  display: block;
}

.hero.hero-fix .hero2 {
  object-fit: cover;
  width: 100%;
  height: 100%;
  transform: scale(1.05);
  will-change: transform;
  filter: saturate(0.68) contrast(0.95) brightness(0.9);
}

.hero.hero-fix .hero-mobile-media img {
  filter: saturate(0.72) contrast(0.95) brightness(0.92);
}

.hero.hero-fix .hero-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 540px);
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 0 auto;
  text-align: right;
}

.hero.hero-fix .hero-content {
  max-width: 540px;
  width: min(100%, 540px);
  margin-left: auto;
  padding: 72px 24px;
  box-sizing: border-box;
}

.hero.hero-fix .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.96);
  font-family: "DIN", "DIN Next LT Arabic", "Cairo", "Noto Kufi Arabic", sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

.hero.hero-fix .hero-title {
  margin: 0;
  color: #fff;
  font-family: "LBC", "DIN-Alt", "DIN", "Cairo", "Noto Kufi Arabic", sans-serif;
  font-size: 44px;
  line-height: 1.06;
  font-weight: var(--fw-bold);
  letter-spacing: -0.5px;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.hero.hero-fix .hero-title .hero-title-line {
  display: block;
}

.hero.hero-fix .hero-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  border-radius: 999px;
  margin: 14px 0 0 auto;
  background: linear-gradient(90deg, var(--fix-red), var(--fix-blue));
}

.hero.hero-fix .hero-sub {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-family: "DIN-Alt", "DIN", "Cairo", "Noto Kufi Arabic", sans-serif;
  font-size: 18px;
  line-height: 1.4;
  max-width: 44ch;
  text-align: right;
}

.hero.hero-fix .hero-ctas {
  width: min(100%, 420px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.hero.hero-fix .hero-ctas .cta-button {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "DIN-Alt", "DIN", "Cairo", "Noto Kufi Arabic", sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  padding: 12px 20px;
}

.hero.hero-fix .btn-primary {
  background: linear-gradient(180deg, var(--fix-red), var(--fix-deep-red));
  color: #fff;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 6px 20px rgba(209, 27, 27, 0.18), inset 0 -3px 0 rgba(0, 0, 0, 0.08);
}

.hero.hero-fix .btn-primary:hover,
.hero.hero-fix .btn-primary:focus-visible {
  background: linear-gradient(180deg, #c01818, #a71313);
  box-shadow: 0 10px 24px rgba(209, 27, 27, 0.24), inset 0 -3px 0 rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.hero.hero-fix .btn-cta {
  background: var(--fix-red);
  border: none;
}

.hero.hero-fix .btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  box-shadow: none;
}

.hero.hero-fix .btn-outline:hover,
.hero.hero-fix .btn-outline:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.hero.hero-fix .hero-features {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hero.hero-fix .hero-feature {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 0;
  padding: 0 !important;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  font-family: "DIN-Alt", "DIN", "Cairo", "Noto Kufi Arabic", sans-serif;
}

.hero.hero-fix .hero-feature i {
  width: 20px;
  text-align: center;
  color: #fff;
}

.hero.hero-fix .hero-feature:nth-child(1) i {
  color: #dce9ff;
}

.hero.hero-fix .hero-feature:nth-child(2) i {
  color: #ffd8d8;
}

.hero.hero-fix .hero-feature:nth-child(3) i {
  color: #d4f3ff;
}

.hero.hero-fix .hero-feature:nth-child(4) i {
  color: #ffe7bf;
}

.hero.hero-fix .hero-mini-logos {
  width: min(100%, 360px);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  direction: rtl;
}

.hero.hero-fix .hero-mini-logo {
  width: 100%;
  max-width: 86px;
  height: 24px;
  object-fit: contain;
  margin-inline-start: 0;
  filter: grayscale(1) saturate(0) brightness(1.05) contrast(0.95);
  opacity: 0.86;
  transform: none;
  box-shadow: none;
  border: 0;
  background: transparent;
  padding: 0;
  transition: opacity 0.25s ease;
}

.hero.hero-fix .hero-mini-logo:first-child {
  margin-inline-start: 0;
}

.hero.hero-fix .cta-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.42);
  outline-offset: 2px;
}

/* Problem Cards: image reveal behavior (desktop hover + mobile tap) */
.why-choose-us .card.problem-card {
  --reveal-speed: 460ms;
  --reveal-ease: cubic-bezier(.2, .9, .3, 1);
  min-height: 420px;
  position: relative;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #070707;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  isolation: isolate;
}

.why-choose-us .card.problem-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transform: scale(1);
  transition: transform var(--reveal-speed) var(--reveal-ease);
}

.why-choose-us .card.problem-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(200, 28, 28, 0.4);
  opacity: 0;
  transition: opacity var(--reveal-speed) ease;
  z-index: 1;
  pointer-events: none;
}

@supports ((backdrop-filter: blur(6px)) or (-webkit-backdrop-filter: blur(6px))) {
  .why-choose-us .card.problem-card::after {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }
}

.why-choose-us .card.problem-card .problem-card-head,
.why-choose-us .card.problem-card p {
  position: absolute;
  right: 18px;
  left: 18px;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--reveal-speed) ease,
    transform var(--reveal-speed) var(--reveal-ease);
  pointer-events: none;
}

.why-choose-us .card.problem-card .problem-card-head {
  bottom: 94px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}

.why-choose-us .card.problem-card .problem-card-head::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 92px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #ff2a2a, transparent);
  opacity: 0.85;
}

.why-choose-us .card.problem-card .problem-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 0, 0, 0.08);
  flex: 0 0 34px;
}

.why-choose-us .card.problem-card .problem-icon i {
  color: #ff2a2a;
  font-size: 14px;
}

.why-choose-us .card.problem-card h3,
.why-choose-us .card.problem-card .title {
  margin: 0;
  padding: 0;
  text-shadow: none;
  color: #ffffff;
  font-family: "LBC", "DIN-Alt", "DIN", "Cairo", "Noto Kufi Arabic", sans-serif;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  text-align: right;
}

.why-choose-us .card.problem-card p {
  bottom: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-shadow: none;
  text-align: right;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.7;
}

.why-choose-us .card.problem-card .desc,
.why-choose-us .card.problem-card .card-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(255, 255, 255, 0.85);
  font-family: "DIN-Alt", "DIN", "Cairo", "Noto Kufi Arabic", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  max-height: 3.4em;
}

.why-choose-us .card.problem-card .trust,
.why-choose-us .card.problem-card .card-reassurance {
  display: block;
  margin-top: 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: "DIN-Alt", "DIN", "Cairo", "Noto Kufi Arabic", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.why-choose-us .card.problem-card p::before,
.why-choose-us .card.problem-card p::after,
.why-choose-us .card.problem-card .frame-edge,
.why-choose-us .card.problem-card .card-cta {
  display: none !important;
}

.why-choose-us .card.problem-card:is(:hover, :focus-visible, :focus-within, .is-active)::after {
  opacity: 1;
}

.why-choose-us .card.problem-card:is(:hover, :focus-visible, :focus-within, .is-active) img {
  transform: scale(1.06);
}

.why-choose-us .card.problem-card:is(:hover, :focus-visible, :focus-within, .is-active) .problem-card-head,
.why-choose-us .card.problem-card:is(:hover, :focus-visible, :focus-within, .is-active) p {
  opacity: 1;
  transform: translateY(0);
}

.why-choose-us .card.problem-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px), (max-device-width: 768px), (prefers-reduced-motion: reduce) {
  .why-choose-us .card.problem-card::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .why-choose-us .card.problem-card img,
  .why-choose-us .card.problem-card::after,
  .why-choose-us .card.problem-card .problem-card-head,
  .why-choose-us .card.problem-card p {
    transition-duration: 1ms !important;
  }
}

@media (max-width: 767px) {
  .hero.hero-fix {
    min-height: 100svh !important;
    height: 100svh !important;
    padding-top: 90px !important;
  }

  .hero.hero-fix .hero-content {
    width: min(78%, 500px) !important;
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    align-items: flex-end !important;
    text-align: right !important;
    padding: 42px 24px 14px 6px !important;
    box-sizing: border-box;
    transform: translate(27px, -20px) !important;
  }

  .hero.hero-fix .hero-inner {
    width: min(78%, 500px) !important;
    max-width: 500px !important;
    margin: 0 0 0 auto !important;
    align-items: flex-end !important;
    text-align: right !important;
  }

  .hero.hero-fix .hero-eyebrow,
  .hero.hero-fix .hero-title,
  .hero.hero-fix .hero-sub,
  .hero.hero-fix .hero-ctas,
  .hero.hero-fix .hero-features,
  .hero.hero-fix .hero-mini-logos {
    align-self: flex-end;
    text-align: right !important;
  }

  .hero.hero-fix .hero-features,
  .hero.hero-fix .hero-mini-logos {
    align-items: flex-end;
  }

  .hero.hero-fix .hero-title {
    font-size: 32px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
  }

  .hero.hero-fix .hero-sub {
    font-size: 15px !important;
    line-height: 1.4 !important;
  }

  .hero.hero-fix .hero-title::after {
    width: 104px;
    height: 6px;
    margin-top: 10px;
  }

  .hero.hero-fix .btn-cta {
    padding: 12px 20px;
    font-size: 16px;
  }

  .hero.hero-fix .hero-features {
    margin-top: 18px;
    gap: 12px;
  }

  .hero.hero-fix .hero-mini-logos {
    margin-top: 16px;
    width: min(100%, 320px);
    gap: 8px;
  }

  .hero.hero-fix .hero-mini-logo {
    max-width: 72px;
    height: 22px;
  }

  .hero.hero-fix .hero2 {
    transform: none;
    will-change: auto;
  }

  .why-choose-us .card.problem-card {
    min-height: 300px;
  }

  .why-choose-us .card.problem-card .problem-card-head,
  .why-choose-us .card.problem-card p {
    right: 14px;
    left: 14px;
  }

  .why-choose-us .card.problem-card .problem-card-head {
    bottom: 86px;
  }

  .why-choose-us .card.problem-card h3,
  .why-choose-us .card.problem-card .title {
    font-size: 18px;
  }

  .why-choose-us .card.problem-card p {
    bottom: 14px;
    gap: 8px;
  }
}

@media (min-width: 992px) {
  .hero.hero-fix {
    padding-top: 112px;
    padding-bottom: 56px;
    padding-inline: max(20px, calc((100vw - 1200px) / 2));
  }

  .hero.hero-fix .hero-inner {
    width: min(100%, 540px);
    max-width: 540px;
  }

  .hero.hero-fix .hero-content {
    padding: 24px 0;
  }

  .hero.hero-fix .hero-title {
    font-size: 52px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.5px;
  }

  .hero.hero-fix .hero-sub {
    font-size: 18px;
    line-height: 1.4;
  }

  .hero.hero-fix .hero-ctas {
    width: auto;
    flex-direction: row;
    gap: 16px;
  }

  .hero.hero-fix .hero-ctas .cta-button {
    width: auto;
    min-height: 52px;
    padding: 14px 28px;
  }

  .hero.hero-fix .hero-features {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
  }

  .hero.hero-fix .hero-feature {
    font-size: 15px;
  }

  .hero.hero-fix .hero-mini-logos {
    width: min(100%, 390px);
    gap: 12px;
    margin-top: 16px;
  }

  .hero.hero-fix .hero-mini-logo {
    max-width: 94px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-fix .hero2,
  .hero.hero-fix .hero-ctas .cta-button {
    transform: none !important;
    transition: none !important;
  }
}
