/* Saudi market content and responsive presentation, September 2026. */

/* A stable dark surface keeps navigation readable over the skyline. */
.site-header {
  background: rgba(21, 22, 21, .88);
  border-bottom-color: rgba(242, 239, 232, .16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.main-nav a {
  opacity: 1;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.lang-link,
.menu-toggle {
  min-width: 44px;
  min-height: 44px;
}

.site-header a:focus-visible,
.menu-toggle:focus-visible,
.hero a:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 5px;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Put the offer and the next action together. */
.hero {
  min-height: min(960px, 100svh);
  align-items: center;
}

.hero-media::after {
  background: linear-gradient(180deg, rgba(8, 9, 8, .48), rgba(8, 9, 8, .5));
}

.hero-content {
  padding: 170px 0 90px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.hero-copy {
  min-width: 0;
  max-width: 1080px;
}

.hero h1,
html[lang="ar"] .hero h1 {
  margin: 22px 0 24px;
  max-width: 100%;
  font-size: clamp(48px, 5.6vw, 88px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.025em;
}

html[lang="ar"] .hero h1 {
  line-height: 1.3;
  letter-spacing: -.015em;
}

.hero h1 span {
  display: block;
}

.hero-lead {
  max-width: 750px;
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.8;
  color: var(--paper);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: 32px;
}

.hero-primary {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 36px;
  min-height: 56px;
  padding: 13px 24px;
  background: var(--paper);
  border: 1px solid var(--paper);
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease;
}

.hero-primary:hover {
  background: #dacbb3;
  border-color: #dacbb3;
}

.hero-cta {
  min-height: 48px;
  font-size: 16px;
}

.scroll-mark {
  display: none;
}

/* Secondary copy should be as easy to read as the primary paragraphs. */
.intro-copy {
  margin-top: 28px;
}

.intro-copy .mini,
.step p,
.contexts-head p {
  font-size: 16px;
  line-height: 1.8;
  color: #595b54;
}

.service-desc {
  font-size: 16px;
  line-height: 1.8;
  color: #d2d0c8;
}

.services .section-head p,
.split-content p {
  color: #d2d0c8;
}

.service-item {
  grid-template-columns: 60px minmax(0, 1fr) minmax(0, 1fr) 32px;
}

.service-title {
  font-size: clamp(26px, 2.5vw, 40px);
  line-height: 1.4;
}

.services .section-head > *,
.intro-grid > *,
.approach-grid > *,
.contexts-head > * {
  min-width: 0;
}

.contexts-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(28px, 5vw, 80px);
}

.contexts h2 {
  line-height: 1.18;
}

html[lang="ar"] .contexts h2 {
  line-height: 1.3;
}

.context-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.context-card,
.context-card.small {
  min-height: 0;
  max-height: none;
  aspect-ratio: 1 / 1.08;
}

.context-card img {
  object-position: 50% center;
}

.context-card::after {
  background: linear-gradient(180deg, transparent 42%, rgba(8, 9, 8, .8));
}

.context-card .meta {
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.context-card .meta strong {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.4;
}

.context-card .meta span,
html[lang="ar"] .context-card .meta span {
  font: inherit;
  font-size: 15px;
  letter-spacing: 0;
  opacity: 1;
  line-height: 1.65;
}

.visual-note {
  margin: 16px 0 0;
  color: #595b54;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1020px) {
  .hero-content {
    padding: 150px 0 72px;
  }

  .site-header .main-nav.open {
    background: #151615;
  }

  .site-header .main-nav.open a {
    font-size: 17px;
    min-height: 56px;
  }

  .service-item {
    grid-template-columns: 42px minmax(0, 1fr) 28px;
  }

  .service-desc {
    grid-column: 2 / 4;
    grid-row: 2;
    margin: 0;
    padding: 0;
  }

  .service-icon {
    grid-row: 1;
  }

  .contexts-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .contexts-head p {
    margin: 0;
    max-width: 680px;
  }
}

@media (min-width: 1021px) and (max-width: 1180px) {
  .site-header .main-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header .main-nav.open {
    display: flex;
    position: fixed;
    inset-inline: 0;
    top: 92px;
    max-height: calc(100svh - 92px);
    width: 100%;
    padding: 10px 5vw 22px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: none;
    background: #151615;
  }
  .site-header.scrolled .main-nav.open {
    top: 74px;
    max-height: calc(100svh - 74px);
  }
  .site-header .main-nav.open a {
    min-height: 56px;
    font-size: 17px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line-light);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 0;
    align-items: flex-start;
  }

  .hero-content {
    padding: 116px 0 54px;
  }

  .hero h1,
  html[lang="ar"] .hero h1 {
    font-size: clamp(34px, 8.8vw, 48px);
    margin: 20px 0 22px;
    letter-spacing: -.015em;
    line-height: 1.15;
  }

  html[lang="ar"] .hero h1 {
    line-height: 1.35;
  }

  .hero-lead {
    font-size: 17px;
    line-height: 1.8;
  }

  .hero-buttons {
    gap: 16px 24px;
    margin-top: 28px;
  }

  .hero-primary {
    min-height: 52px;
    padding: 12px 20px;
    font-size: 16px;
    gap: 24px;
  }

  .hero-cta {
    font-size: 15px;
    gap: 12px;
  }

  .hero-cta .arrow {
    width: 36px;
    height: 36px;
  }

  .intro-copy {
    margin-top: 22px;
  }

  .intro-copy .mini,
  .contexts-head p,
  .service-desc,
  .step p,
  .services .section-head p,
  .split-content p {
    font-size: 16px;
    line-height: 1.8;
  }

  .service-item {
    grid-template-columns: 30px minmax(0, 1fr) 22px;
    gap: 12px;
  }

  .service-title {
    font-size: 23px;
  }

  .service-num,
  .step b {
    font-size: 12px;
  }

  .service-item:hover {
    padding-inline: 0;
  }

  .context-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .context-card,
  .context-card.small {
    aspect-ratio: 1 / 1.04;
  }

  .context-card .meta {
    inset-inline: 20px;
    bottom: 20px;
  }

  .split-foot {
    font-size: 14px;
    color: #c7c5bd;
  }
}

@media (max-width: 380px) {
  .hero-primary {
    width: 100%;
  }
}

/* Hover-only brand accent for the desktop header links shown in the design.
   It expands once from the centre and stays in place while hovered. */
@media (min-width: 1181px) and (hover: hover) and (pointer: fine) {
  .site-header .main-nav > a {
    position: relative;
    display: inline-flex;
  }

  .site-header .main-nav > a::after {
    content: "";
    position: absolute;
    /* Use the physical center so RTL's inline-start does not offset the line. */
    left: 50%;
    inset-block-end: 3px;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: var(--bronze);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    opacity: 0;
    transition: transform .34s var(--ease), opacity .2s ease;
    pointer-events: none;
  }

  .site-header .main-nav > a:hover::after {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
}
