:root {
  --bg: #ffffff;
  --surface: #f4f7fb;
  --ink: #112135;
  --ink-soft: #3c4e66;
  --navy: #0f2742;
  --navy-2: #16385f;
  --gold: #b79558;
  --gold-soft: rgba(183, 149, 88, 0.2);
  --border: #d5ddea;
  --shadow: 0 14px 38px rgba(9, 29, 53, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: min(1160px, calc(100% - 3rem));
  --section-space: clamp(4.5rem, 8vw, 7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  direction: rtl;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

h1,
h2,
h3,
.brand-ar,
[lang="ar"] {
  font-family: "Tajawal", "Segoe UI", sans-serif;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset-inline-start: 1rem;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transform: translateY(-140%);
  transition: transform 0.2s ease;
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 39, 66, 0.08);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: 0 0 auto;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), #d0b27c 54%, #7e6230);
  position: relative;
  box-shadow: inset 0 2px 8px rgba(255, 255, 255, 0.5), 0 6px 14px rgba(52, 39, 12, 0.2);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-left-color: transparent;
  border-radius: 50%;
}

.brand-text {
  display: grid;
  gap: 0.15rem;
}

.brand-ar {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--navy);
}

.brand-en {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.site-nav {
  margin-inline: auto;
}

.nav-close {
  display: none;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.05rem;
  flex-wrap: nowrap;
}

.site-nav a {
  font-size: 0.86rem;
  color: #26415f;
  font-weight: 700;
  padding: 0.56rem 0.72rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--navy);
  background: rgba(15, 39, 66, 0.07);
  transform: translateY(-1px);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(15, 39, 66, 0.18);
  box-shadow: 0 10px 24px rgba(15, 39, 66, 0.2);
  transition: background-color 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #194a7a;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(15, 39, 66, 0.2);
  background: rgba(255, 255, 255, 0.95);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  display: block;
  margin: 3px 0;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(9, 20, 37, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease;
  z-index: 68;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

body.nav-open {
  overflow: hidden;
}

.hero {
  position: relative;
  min-height: 96vh;
  color: #fff;
  overflow: clip;
}

.hero-media,
.hero-video,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: saturate(0.9) contrast(1.05);
}

.hero-overlay {
  background:
    linear-gradient(120deg, rgba(8, 18, 32, 0.85), rgba(15, 39, 66, 0.58) 38%, rgba(15, 39, 66, 0.82)),
    radial-gradient(circle at 70% 22%, rgba(183, 149, 88, 0.26), transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding-block: clamp(4.6rem, 7.5vw, 6.4rem) 2.2rem;
  padding-inline: clamp(0.9rem, 3.6vw, 2.6rem);
  max-width: min(100%, 1120px);
}

.eyebrow {
  letter-spacing: 0.04em;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

h1 {
  margin: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 24ch;
}

h1 span:first-child {
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  color: #f3e4c7;
  line-height: 1.2;
}

h1 span:last-child {
  font-size: clamp(1.75rem, 4.2vw, 3.2rem);
  line-height: 1.12;
}

.hero-subtitle {
  max-width: 72ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 0.45rem;
}

@media (min-width: 1150px) {
  .hero-content {
    padding-inline: 2.8rem 2.2rem;
  }
}

.phone-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.hero-subtitle span {
  color: #f0e3c9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.78rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: #1c2230;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #cfaf78;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: #fff;
}

.section {
  padding-block: var(--section-space);
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-kicker {
  margin: 0 0 0.75rem;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  color: var(--navy-2);
  font-weight: 700;
}

.section-title {
  margin: 0 0 1.8rem;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  line-height: 1.15;
  color: var(--navy);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  align-items: start;
}

.text-content p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-card {
  background: linear-gradient(145deg, #f8fafe, #edf2f8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(15, 39, 66, 0.08);
}

.stat-card strong {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stat-card span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.services {
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(15, 39, 66, 0.04), rgba(183, 149, 88, 0.08));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.info-card:hover::before {
  opacity: 1;
}

.info-card h3,
.info-card p {
  position: relative;
}

.info-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.16rem;
  line-height: 1.3;
  color: var(--navy);
}

.info-card p {
  margin: 0;
  color: var(--ink-soft);
}

.why-us {
  background: linear-gradient(180deg, #f9fbff 0%, #ffffff 100%);
}

.products {
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 39, 66, 0.08);
}

.products-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.products-table th,
.products-table td {
  padding: 0.9rem 0.85rem;
  text-align: right;
  border-bottom: 1px solid #e6edf7;
  color: var(--ink);
}

.products-table th {
  background: #f2f7ff;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.products-table td {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.products-table tbody tr:hover {
  background: #fbfdff;
}

.products-table tbody tr:last-child td {
  border-bottom: 0;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  border: 1px solid var(--border);
  border-right: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  background: #fff;
  color: var(--ink-soft);
}

.feature-list strong {
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 195px;
  gap: 0.7rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #dfe6f2;
}

.gallery-item:is(.wide) {
  grid-column: span 2;
}

.gallery-item:is(.tall) {
  grid-row: span 2;
}

.gallery-item img,
.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
  transform: scale(1.04);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 20, 37, 0.52));
}

.process {
  background: #f6f9fd;
}

.process-line {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.process-line li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(13, 32, 58, 0.06);
}

.process-line span {
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.process-line h3 {
  margin: 0.35rem 0 0.45rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.process-line p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: start;
}

.contact h2 {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
}

.contact p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-card {
  margin: 0;
  background: var(--navy);
  color: #f4f7ff;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.contact-card p {
  color: inherit;
  margin: 0 0 0.62rem;
}

.contact-card strong {
  color: #e4c88f;
}

.contact-card a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  background: #0b2038;
  color: #e6edf8;
  padding-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 1rem;
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-weight: 700;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.site-footer a {
  color: #f3dbaa;
}

.footer-bottom {
  margin-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 0 1.3rem;
  font-size: 0.86rem;
  color: #b9c7da;
}

.reveal,
.reveal-card,
.reveal-step,
.gallery-item {
  opacity: 0;
  transform: translateY(18px);
}

@media (max-width: 1050px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-line {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 830px) {
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    z-index: 72;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    margin: 0;
    background: #ffffff;
    border-left: 1px solid var(--border);
    box-shadow: -18px 0 42px rgba(9, 29, 53, 0.24);
    padding: 1.1rem 1rem 1.2rem;
    transform: translateX(100%);
    opacity: 1;
    transition: transform 0.3s ease;
    z-index: 71;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
  }

  .site-nav.open {
    transform: translateX(0);
  }

  .nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d7e0ee;
    border-radius: 10px;
    background: #f6f9ff;
    color: var(--navy);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    margin-inline-start: auto;
  }

  .site-nav ul {
    padding: 0;
    display: grid;
    gap: 0.28rem;
    width: 100%;
  }

  .site-nav a {
    border-radius: 10px;
    padding: 0.75rem 0.85rem;
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 800;
    border: 1px solid transparent;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: #f4f8ff;
    border-color: #d9e4f3;
    transform: none;
  }

  .split-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 170px;
  }

  .hero {
    min-height: 90vh;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(1160px, calc(100% - 1.35rem));
  }

  .cards-grid,
  .stats-grid,
  .gallery-grid,
  .process-line {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 220px;
  }

  .gallery-item:is(.wide),
  .gallery-item:is(.tall) {
    grid-column: auto;
    grid-row: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .products-table {
    min-width: 620px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-card,
  .reveal-step,
  .gallery-item {
    opacity: 1;
    transform: none;
  }
}
