:root {
  --oil: #071017;
  --panel: #101b24;
  --ink: #111820;
  --muted: #5f6c76;
  --line: #d9dee3;
  --paper: #ffffff;
  --soft: #f4f6f7;
  --gold: #c9972f;
  --flame: #ff3036;
  --brand-blue: #1457b8;
  --shadow: 0 18px 46px rgba(7, 16, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body[dir="rtl"] {
  font-family: Tahoma, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 3px solid var(--flame);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
}

.brand-logo,
.brand-fallback {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
}

.brand-fallback {
  display: none;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(145deg, var(--flame), var(--gold));
}

.brand-text strong,
.brand-text small {
  display: block;
}

.brand-text strong {
  font-size: 0.86rem;
  line-height: 1.2;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a,
.language-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.site-nav a:hover,
.language-button {
  background: rgba(255, 48, 54, 0.12);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(110deg, rgba(7, 16, 23, 0.98), rgba(7, 16, 23, 0.76)),
    radial-gradient(circle at 76% 24%, rgba(20, 87, 184, 0.34), transparent 33%),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px),
    var(--oil);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background:
    linear-gradient(155deg, transparent 0 56%, rgba(201, 151, 47, 0.45) 56% 57%, transparent 57%),
    linear-gradient(24deg, transparent 0 67%, rgba(255, 255, 255, 0.2) 67% 68%, transparent 68%),
    radial-gradient(circle at 18% 78%, rgba(255, 48, 54, 0.48), transparent 18%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(290px, 0.88fr);
  gap: 58px;
  align-items: center;
  padding: 82px 0;
}

.kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(2.35rem, 5vw, 5.1rem);
  line-height: 1.03;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.14;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-copy p {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
}

.button-primary {
  color: var(--oil);
  background: var(--gold);
}

.button-secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.hero-card {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 26px);
  box-shadow: var(--shadow);
}

.hero-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 23, 0.08), rgba(7, 16, 23, 0.9));
}

.hero-card-caption {
  position: relative;
  z-index: 1;
  padding: 30px;
}

.hero-card.image-missing {
  padding: 30px;
}

.hero-card.image-missing::after,
.hero-card.image-missing img {
  display: none;
}

.hero-card.image-missing .hero-card-caption {
  padding: 0;
}

.hero-card-caption > span {
  color: var(--gold);
  font-weight: 800;
}

.hero-card-caption > strong {
  display: block;
  margin-top: 10px;
  font-size: 1.35rem;
  line-height: 1.3;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.metric-row div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.metric-row b,
.metric-row small {
  display: block;
}

.metric-row small {
  color: rgba(255, 255, 255, 0.68);
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--soft);
}

.section-split,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
}

.section-split p,
.text-block p,
.experience-list p,
.services-grid p,
.value-grid p,
.contact-copy p {
  color: var(--muted);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.value-grid,
.services-grid,
.experience-list {
  display: grid;
  gap: 22px;
}

.value-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.experience-list {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 36px;
}

.value-grid article,
.services-grid article,
.experience-list article,
.contact-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17, 24, 32, 0.07);
}

.services-grid article span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--flame);
  font-weight: 800;
}

.experience-list article {
  border-top: 5px solid var(--gold);
}

.media-section {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(7, 16, 23, 0.96), rgba(16, 27, 36, 0.96)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 18px);
}

.media-section .section-split p {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: 250px;
  gap: 18px;
  margin-top: 36px;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(20, 87, 184, 0.5), rgba(255, 48, 54, 0.35)),
    var(--panel);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.gallery-grid .gallery-main {
  grid-row: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.035);
}

.gallery-grid figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1;
  padding: 10px 12px;
  border-radius: 6px;
  color: #fff;
  background: rgba(7, 16, 23, 0.72);
  font-weight: 800;
}

body[dir="rtl"] .gallery-grid figcaption {
  text-align: right;
}

.gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(7, 16, 23, 0.62));
  pointer-events: none;
}

.gallery-grid figure.image-missing::before {
  content: "Add image to assets/images";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  font-weight: 800;
}

body[dir="rtl"] .gallery-grid figure.image-missing::before {
  content: "أضف الصورة داخل assets/images";
}

.gallery-grid figure.image-missing img {
  display: none;
}

.contact-section {
  padding: 88px 0;
  color: #fff;
  background: var(--oil);
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.74);
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.contact-details span {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.contact-details em {
  color: rgba(255, 255, 255, 0.68);
  font-style: normal;
}

.contact-form {
  display: grid;
  gap: 16px;
  color: var(--ink);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form small {
  color: var(--muted);
}

.site-footer {
  padding: 34px 0;
  color: rgba(255, 255, 255, 0.76);
  background: #050a0e;
}

.site-footer strong {
  color: #fff;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 940px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .language-button {
    justify-content: flex-start;
  }

  body[dir="rtl"] .site-nav a,
  body[dir="rtl"] .language-button {
    justify-content: flex-end;
  }

  .hero-layout,
  .section-split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-card {
    min-height: 260px;
  }

  .value-grid,
  .services-grid,
  .experience-list,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 260px;
  }

  .gallery-grid .gallery-main {
    grid-row: span 1;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    min-width: 0;
  }

  .brand-text strong {
    max-width: 190px;
    font-size: 0.76rem;
  }

  .brand-text small {
    display: none;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .section,
  .contact-section {
    padding: 62px 0;
  }

  .value-grid article,
  .services-grid article,
  .experience-list article,
  .contact-form,
  .hero-card {
    padding: 24px;
  }

  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}
