:root {
  --navy-950: #031026;
  --navy-900: #051a3a;
  --navy-800: #082657;
  --navy-700: #0d346e;
  --gold-500: #c9902f;
  --gold-400: #e0ad4a;
  --gold-300: #f1cf83;
  --ink: #122247;
  --text: #ffffff;
  --muted: #d8dfec;
  --soft: #f6f7fa;
  --line: #dde3ed;
  --shadow: 0 18px 55px rgba(2, 13, 31, 0.18);
  --radius: 8px;
  --font: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--soft);
}

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

img,
svg {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 12px clamp(20px, 5vw, 58px);
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(3, 16, 38, 0.98), rgba(5, 26, 58, 0.96)),
    radial-gradient(circle at 80% 0%, rgba(201, 144, 47, 0.22), transparent 24rem);
  box-shadow: 0 10px 34px rgba(1, 8, 19, 0.24);
  backdrop-filter: blur(18px);
}

.brand-logo {
  display: grid;
  width: 140px;
  height: 58px;
  place-items: center;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 54px);
  font-weight: 800;
}

.main-nav a {
  position: relative;
  padding: 12px 0;
  color: rgba(255, 255, 255, 0.9);
  transition: color 180ms ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  content: "";
  background: var(--gold-500);
  transition: width 180ms ease;
}

.main-nav a:hover,
.main-nav .active {
  color: #ffffff;
}

.main-nav a:hover::after,
.main-nav .active::after {
  width: 100%;
}

.quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 12px 30px rgba(201, 144, 47, 0.28);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.92fr);
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  direction: ltr;
  background:
    linear-gradient(90deg, rgba(3, 16, 38, 0.04) 0 48%, rgba(5, 26, 58, 0.98) 48% 100%),
    linear-gradient(135deg, var(--navy-900), var(--navy-800));
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 42px),
    linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 42px);
  opacity: 0.65;
}

.hero-media,
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-media {
  min-height: 560px;
}

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

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 54%, rgba(5, 26, 58, 0.54) 83%, rgba(5, 26, 58, 0.96)),
    linear-gradient(0deg, rgba(3, 16, 38, 0.25), transparent 45%);
}

.gold-zigzag {
  position: absolute;
  top: 0;
  right: -34px;
  width: 150px;
  height: 100%;
  clip-path: polygon(68% 0, 100% 0, 52% 33%, 100% 66%, 68% 100%, 36% 100%, 78% 66%, 36% 33%);
  background: linear-gradient(180deg, var(--gold-500), var(--gold-400));
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.24));
}

.hero-content {
  align-self: center;
  max-width: 640px;
  padding: 64px clamp(28px, 6vw, 80px) 64px 42px;
  direction: rtl;
}

.eyebrow,
.section-kicker,
.section-title p {
  margin: 0 0 12px;
  color: var(--gold-300);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-lead {
  margin: 22px 0 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.65;
}

.hero-copy {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.95;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 16px 36px rgba(201, 144, 47, 0.28);
}

.button.secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.06);
}

.button.secondary:hover {
  border-color: var(--gold-400);
  background: rgba(224, 173, 74, 0.12);
}

.feature-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: min(1120px, calc(100% - 40px));
  margin: -52px auto 0;
  overflow: hidden;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature-strip article {
  min-height: 154px;
  padding: 24px 22px;
  text-align: center;
  border-left: 1px solid var(--line);
}

.feature-strip article:last-child {
  border-left: 0;
}

.icon-box,
.service-icon {
  display: grid;
  place-items: center;
  color: var(--navy-800);
}

.icon-box {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
}

.icon-box svg,
.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-strip h2 {
  margin: 0 0 8px;
  color: var(--navy-800);
  font-size: 1.05rem;
}

.feature-strip p {
  margin: 0;
  color: #4d5b75;
  line-height: 1.7;
}

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

.section-title {
  margin-bottom: 26px;
  text-align: center;
}

.section-title h2,
.about-content h2 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  direction: rtl;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 278px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 18% 0%, rgba(224, 173, 74, 0.16), transparent 11rem);
  box-shadow: 0 12px 35px rgba(2, 13, 31, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 144, 47, 0.44);
  box-shadow: var(--shadow);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-top: 28px;
}

.service-number {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 10px 22px rgba(201, 144, 47, 0.24);
  direction: ltr;
}

.service-card h3 {
  margin: 0 0 8px;
  color: var(--navy-800);
  font-size: 1.14rem;
}

.service-card p,
.about-content p {
  margin: 0;
  color: #526079;
  line-height: 1.75;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 70px);
  margin-top: 72px;
  padding: 34px clamp(20px, 5vw, 58px);
  background: #ffffff;
  direction: ltr;
}

.about-content {
  direction: rtl;
}

.about-image {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  border-radius: var(--radius);
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
}

.about-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(5, 26, 58, 0.18));
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.values span {
  padding: 10px 16px;
  border: 1px solid rgba(201, 144, 47, 0.32);
  border-radius: 999px;
  color: var(--navy-800);
  font-weight: 900;
  background: rgba(201, 144, 47, 0.08);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(20px, 5vw, 58px);
  color: #ffffff;
  background: var(--navy-950);
}

.footer-brand {
  display: grid;
  width: 140px;
  height: 58px;
  place-items: center;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ffffff;
}

.footer-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 24px;
  color: rgba(255, 255, 255, 0.78);
  direction: ltr;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    background: var(--navy-900);
  }

  .hero-media {
    min-height: 330px;
    order: 2;
  }

  .hero-content {
    padding: 56px 28px 34px;
  }

  .gold-zigzag {
    display: none;
  }

  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-strip article:nth-child(2) {
    border-left: 0;
  }

  .about-band {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 680px) {
  .site-header {
    min-height: 76px;
    padding: 10px 16px;
  }

  .brand-logo,
  .footer-brand {
    width: 118px;
    height: 50px;
  }

  .quote-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .hero-lead {
    font-size: 1.2rem;
  }

  .hero-actions,
  .button,
  .cta-actions {
    width: 100%;
  }

  .button {
    padding: 0 16px;
  }

  .feature-strip,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    margin-top: -24px;
  }

  .feature-strip article,
  .feature-strip article:nth-child(2) {
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-strip article:last-child {
    border-bottom: 0;
  }

  .service-card {
    grid-template-columns: 48px 1fr;
    padding: 20px;
  }

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

  .footer-info {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
