:root {
  color-scheme: dark;
  --ground: #17120E;
  --surface: #211A14;
  --accent: #C9A24B;
  --accent-deep: #8C6D2F;
  --highlight: #D84B35;
  --text: #F3EDE3;
  --muted: #A89E8F;
  --surface-2: #2A211A;
  --line: rgba(201, 162, 75, 0.18);
  --ink-on-accent: #1A1406;
  --display: "El Messiri", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --radius: 22px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.25; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }

/* Skip link */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--ink-on-accent);
  border-radius: 10px;
  text-decoration: none;
  transform: translateY(-120%);
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { transform: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: var(--body);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 44px;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-wa { background: var(--accent); color: var(--ink-on-accent); box-shadow: 0 8px 20px -12px rgba(0, 0, 0, 0.55); }
.btn-wa:hover { transform: translateY(-2px); background: #D4B05A; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px rgba(243, 237, 227, 0.35); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }

/* Header */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: rgba(23, 18, 14, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 24px; line-height: 1.1; }
.brand-name small { display: block; font-family: var(--body); font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 2px; }
.top nav { display: flex; gap: 26px; font-weight: 500; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.top nav a:hover { color: var(--accent); }
.top .btn { padding: 10px 18px; font-size: 15px; }

/* Mobile menu */
.menu-btn {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}
.menu-btn svg { width: 28px; height: 28px; }
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(23, 18, 14, 0.98);
  z-index: 60;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--display);
  font-size: 28px;
  text-decoration: none;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-close {
  position: absolute;
  top: 20px;
  left: 20px;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  min-height: 44px;
  min-width: 44px;
}
.mobile-nav-close svg { width: 32px; height: 32px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../img/stock/services-7601069.jpg");
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(23, 18, 14, 0.7) 0%, rgba(23, 18, 14, 0.85) 100%);
  z-index: 1;
}
.hero .wrap { position: relative; z-index: 2; padding-block: 80px; }
.hero-content { max-width: 700px; }
.hero-brand {
  font-family: var(--display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); margin-bottom: 16px; }
.hero h1 .accent { color: var(--accent); }
.hero-lead { font-size: 20px; color: var(--text); opacity: 0.9; max-width: 34em; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
section.block { padding-block: 96px; }
.sec-head { margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 10px; }
.sec-head p { color: var(--muted); max-width: 30em; margin-top: 12px; }

/* Product categories */
.categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.category-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(243, 237, 227, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
  transform-style: preserve-3d;
  text-decoration: none;
  color: inherit;
  display: block;
}
.category-card:hover { border-color: var(--line); }
.category-img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.category-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.category-card:hover .category-img img { transform: scale(1.05); }
.category-body { padding: 24px; }
.category-body h3 { font-size: 26px; margin-bottom: 8px; }
.category-body p { color: var(--muted); font-size: 15.5px; }

/* Trust signals */
.trust { background: var(--surface); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.trust-item { padding: 30px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.trust-item + .trust-item { border-inline-start: 1px solid var(--line); }
.trust-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; color: var(--accent); margin-bottom: 4px; }
.trust-icon svg { width: 24px; height: 24px; }
.trust-item strong { font-size: 17px; font-weight: 600; }
.trust-item span { font-size: 14px; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { font-size: clamp(34px, 4.4vw, 54px); margin-top: 10px; }
.about-lead { margin-top: 18px; color: var(--text); opacity: 0.9; font-size: 18px; max-width: 32em; }
.about p { color: var(--muted); margin-top: 16px; }

/* Promotional banner */
.promo {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  background: #B83324;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 400px;
}
.promo-copy { padding: 56px 52px; display: flex; flex-direction: column; justify-content: center; gap: 18px; position: relative; z-index: 1; }
.promo h2 { font-size: clamp(36px, 4.6vw, 58px); }
.promo p { font-size: 18px; max-width: 30em; color: #FFFFFF; }
.promo .btn-wa { background: var(--text); color: #5A1709; box-shadow: none; align-self: flex-start; }
.promo .btn-wa:hover { background: #fff; }
.promo-img { position: relative; }
.promo-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, transparent 60%, #B83324); }
.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-weight: 700;
  font-size: 15px;
  color: #FFFFFF;
  width: fit-content;
}

/* Installment partners */
.partners { padding-block: 40px; overflow: hidden; }
.partners-label { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.logo-loop { display: flex; gap: 40px; width: max-content; animation: marquee 30s linear infinite; }
.logo-loop:hover { animation-play-state: paused; }
.logo-loop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.logo-loop-item svg { width: 24px; height: 24px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Final CTA */
.final { text-align: center; padding-block: 96px 110px; position: relative; overflow: hidden; }
.final::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  translate: -50% -50%;
  width: 900px;
  max-width: 140vw;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(201, 162, 75, 0.14), transparent 70%);
  pointer-events: none;
}
.final .wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final h2 { font-size: clamp(38px, 5.4vw, 68px); }
.final h2 span { color: var(--accent); }
.final p { color: var(--muted); font-size: 18px; max-width: 32em; }
.phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.phone-num {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 42px);
  letter-spacing: 0.04em;
  color: var(--text);
  direction: ltr;
  unicode-bidi: isolate;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  padding-inline: 12px;
  user-select: all;
}
.copy-btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 18px;
  font: 600 15px var(--body);
  background: var(--surface-2);
  color: var(--text);
  transition: background 0.2s;
  min-height: 44px;
}
.copy-btn:hover { background: #3A2E22; }
.final .hero-cta { justify-content: center; margin-top: 8px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* Floating WhatsApp */
.fab {
  position: fixed;
  z-index: 50;
  left: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s;
}
.fab:hover { transform: scale(1.07); }
.fab svg { width: 32px; height: 32px; }

/* Reveal styles - scoped under html.mo */
html.mo [data-rv]:not(.in) {
  opacity: 0;
  transform: translateY(24px);
}
html.mo [data-rv] {
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* SplitText hero words */
.hero-word { display: inline-block; }
html.mo .hero-word:not(.revealed) { opacity: 0; transform: translateY(0.6em); }
html.mo .hero-word { transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
html.mo .hero-word.revealed { opacity: 1; transform: none; }

/* Touch action on interactive controls */
a, button, .btn, .fab, .menu-btn, .copy-btn, .mobile-nav a { touch-action: manipulation; }

/* Responsive */
@media (max-width: 960px) {
  .categories { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-item:nth-child(4) { border-inline-start: 0; }
  .trust-item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .promo { grid-template-columns: 1fr; }
  .promo-img { height: 280px; order: -1; }
  .promo-img::after { background: linear-gradient(to bottom, transparent 55%, #B83324); }
  .promo-copy { padding: 32px 26px 40px; }
}

@media (max-width: 880px) {
  .top nav { display: none; }
  .menu-btn { display: flex; }
}

@media (max-width: 767px) {
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(23, 18, 14, 0.35) 0%, rgba(23, 18, 14, 0.62) 100%);
  }
}

@media (max-width: 620px) {
  .categories { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  section.block { padding-block: 68px; }
  .hero h1 { font-size: clamp(40px, 10vw, 56px); }
  .hero-lead { font-size: 17px; }
}

@media (max-width: 440px) {
  .top .btn span { display: none; }
  .top .btn { padding: 10px 12px; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .logo-loop { animation: none; }
  .hero-word { opacity: 1; transform: none; }
}

/* Selection, scrollbar, etc. */
::selection { background: var(--accent); color: var(--ink-on-accent); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--accent-deep); border-radius: 5px; }
html { accent-color: var(--accent); }
