:root {
  --ink: #121417;
  --graphite: #24272b;
  --muted: #6b7178;
  --line: #d9ddd8;
  --paper: #f7f8f4;
  --white: #ffffff;
  --teal: #0d7c80;
  --cedar: #247343;
  --red: #c91f2d;
  --gold: #d9a441;
  --sky: #d8edf2;
  --shadow: 0 22px 60px rgba(18, 20, 23, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Noto Kufi Arabic", "Inter", system-ui, sans-serif;
  line-height: 1.65;
  text-align: right;
}

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

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

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 50;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.en {
  direction: ltr;
  font-family: "Inter", system-ui, sans-serif;
  text-align: inherit;
  unicode-bidi: isolate;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(18, 20, 23, 0.08);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

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

.brand strong {
  font-size: 0.92rem;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 32px);
  color: var(--graphite);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav a {
  padding-block: 8px;
  border-bottom: 2px solid transparent;
  text-align: center;
}

.primary-nav a:hover {
  border-color: var(--red);
  color: var(--red);
}

.primary-nav .en {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 6px;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.nav-backdrop {
  display: none;
}

.header-action,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.header-action {
  padding: 0 16px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.84rem;
}

.header-action:hover,
.btn:hover {
  transform: translateY(-2px);
}

.header-action svg,
.btn svg,
.fact-card svg,
.service-rail svg,
.access-list svg,
.operation-alert svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.hero {
  position: relative;
  min-height: min(720px, 76vh);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-media.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(18, 20, 23, 0.78), rgba(18, 20, 23, 0.35) 44%, rgba(18, 20, 23, 0.72)),
    linear-gradient(0deg, rgba(18, 20, 23, 0.78), rgba(18, 20, 23, 0.08) 45%, rgba(18, 20, 23, 0.38));
}

.hero-content {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 104px 0 82px;
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.6rem, 6.2vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-en {
  margin: 8px 0 18px;
  font-size: clamp(1.05rem, 2vw, 1.65rem);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
}

.hero-copy {
  max-width: 820px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  padding: 0 18px;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--red);
  color: var(--white);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  backdrop-filter: blur(12px);
}

.hero-panel {
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  bottom: 28px;
  width: min(500px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel div {
  padding: 16px 14px;
  border-inline-start: 1px solid var(--line);
}

.hero-panel div:first-child {
  border-inline-start: 0;
}

.panel-label {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.hero-panel strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(0.95rem, 1.6vw, 1.25rem);
}

section {
  scroll-margin-top: 84px;
}

.status-band,
.info-section,
.services-section,
.timeline-section,
.media-section,
.location-section,
.faq-section,
.sources-section {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 54px);
}

.status-band {
  background: var(--white);
  padding-top: 24px;
}

.section-heading {
  width: min(1120px, 100%);
  margin: 0 auto 34px;
}

.section-heading.compact {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  line-height: 1.22;
  letter-spacing: 0;
}

.section-heading > .en {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.operation-alert {
  width: min(1120px, 100%);
  margin: 0 auto 22px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 8px;
  background: #fff7e6;
}

.operation-alert strong,
.operation-alert span {
  display: block;
}

.operation-alert span {
  margin-top: 3px;
  color: var(--muted);
}

.route-grid,
.fact-grid,
.photo-grid,
.video-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.route-grid {
  grid-template-columns: repeat(6, 1fr);
}

.route-card,
.fact-card,
.media-card,
.video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}

.route-card {
  min-height: 190px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.route-code {
  color: var(--teal);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.route-card h3,
.fact-card h3,
.service-rail h3,
.terminal-card h3,
.timeline h3,
.access-list h3,
.video-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.route-card p,
.fact-card p,
.service-rail p,
.terminal-card p,
.timeline p,
.access-list p,
.video-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-chip {
  align-self: start;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 800;
}

.status-chip.amber {
  background: #fff0cf;
  color: #76530e;
}

.status-chip.muted {
  background: #edf0ed;
  color: #555b60;
}

.info-section {
  background: var(--paper);
}

.fact-grid {
  grid-template-columns: repeat(4, 1fr);
}

.fact-card {
  padding: 22px;
  min-height: 280px;
}

.fact-card svg {
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: var(--red);
}

.services-section {
  background: var(--ink);
  color: var(--white);
}

.services-section .section-heading h2,
.services-section .section-heading > .en {
  color: var(--white);
}

.services-section .section-heading > .en,
.services-section .service-rail p,
.services-section .terminal-card p {
  color: rgba(255, 255, 255, 0.7);
}

.service-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 0.8fr;
  gap: 18px;
  align-items: stretch;
}

.service-rail {
  display: grid;
  gap: 12px;
}

.service-rail article,
.access-list article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.service-rail svg,
.access-list svg {
  color: var(--gold);
}

.terminal-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: linear-gradient(140deg, rgba(13, 124, 128, 0.86), rgba(36, 115, 67, 0.82));
}

.terminal-label {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.terminal-card strong {
  display: block;
  margin: 10px 0 14px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(3.5rem, 8vw, 6rem);
  line-height: 1;
}

.timeline-section {
  background: var(--white);
}

.timeline {
  position: relative;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.timeline article {
  min-height: 260px;
  padding: 22px;
  border-block-start: 5px solid var(--cedar);
  border-radius: 8px;
  background: var(--paper);
}

.timeline span {
  display: block;
  margin-bottom: 28px;
  color: var(--red);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
}

.media-section {
  background: var(--paper);
}

.photo-grid {
  grid-template-columns: repeat(4, 1fr);
}

.media-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--sky);
}

.media-card figcaption {
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1;
  margin: 0;
  padding: 14px;
  font-size: 0.84rem;
}

.media-card a,
.source-list a {
  color: var(--teal);
  font-weight: 800;
}

.media-card.image-missing img {
  opacity: 0.1;
}

.video-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.video-card {
  padding: 14px;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ink);
}

.video-frame iframe,
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card h3 {
  margin-top: 14px;
}

.location-section {
  background: var(--white);
}

.location-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 18px;
}

.map-frame {
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--sky);
}

.access-list {
  display: grid;
  gap: 12px;
}

.access-list article {
  background: var(--paper);
  border-color: var(--line);
}

.access-list svg {
  color: var(--cedar);
}

.sources-section {
  background: #eef4f1;
}

.jobs-section {
  background: var(--white);
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 54px);
}

.jobs-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #eef8f9;
}

.jobs-content svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--teal);
}

.jobs-content strong {
  display: block;
  color: var(--ink);
}

.jobs-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.jobs-content span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.promo-section {
  background: #faf6ef;
  padding: clamp(58px, 8vw, 96px) clamp(18px, 4vw, 54px);
}

.promo-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: #fffcf2;
}

.promo-content svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  color: var(--gold);
}

.promo-content strong {
  display: block;
  color: var(--ink);
}

.promo-content p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.promo-content span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.promo-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(217, 164, 65, 0.3);
}

.promo-contact svg {
  width: 18px;
  height: 18px;
}

.promo-contact span {
  font-size: 0.9rem;
}

.promo-contact a {
  color: var(--teal);
  font-weight: 700;
}

.promo-contact a:hover {
  text-decoration: underline;
}

.faq-section {
  background: var(--white);
}

.faq-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  min-height: 64px;
  padding: 18px 20px;
  color: var(--ink);
  font-weight: 800;
  list-style-position: inside;
}

.faq-item summary::marker {
  color: var(--teal);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.source-list {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-list a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(13, 124, 128, 0.2);
  border-radius: 6px;
  background: var(--white);
  font-size: 0.86rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px clamp(18px, 4vw, 54px);
  background: var(--ink);
  color: var(--white);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span,
.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.86rem;
}

@media (max-width: 1120px) {
  .route-grid,
  .fact-grid,
  .photo-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }
}

@media (max-width: 760px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
    grid-template-columns: 1fr auto auto;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 0.78rem;
  }

  .brand small {
    display: none;
  }

  .header-action span {
    display: none;
  }

  .header-action {
    width: 44px;
    padding: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .primary-nav {
    display: none;
    position: absolute;
    inset-inline-start: 0;
    top: 100%;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 16px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a:last-child {
    border-bottom: none;
  }

  .nav-backdrop {
    display: none;
  }

  .hero {
    min-height: 680px;
  }

  .hero-content {
    width: calc(100% - 32px);
    padding: 58px 0 178px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11.5vw, 3rem);
  }

  .hero-copy {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-panel {
    right: 16px;
    left: 16px;
    bottom: 12px;
    width: auto;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel div {
    padding: 10px;
  }

  .hero-panel div:nth-child(3) {
    border-inline-start: 0;
    border-block-start: 1px solid var(--line);
  }

  .hero-panel div:nth-child(4) {
    border-block-start: 1px solid var(--line);
  }

  .route-grid,
  .fact-grid,
  .photo-grid,
  .video-grid,
  .faq-grid,
  .timeline,
  .service-layout,
  .location-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 160px;
  }

  .fact-card,
  .timeline article {
    min-height: auto;
  }

  .service-rail article,
  .access-list article {
    grid-template-columns: 34px 1fr;
    padding: 16px;
  }

  .terminal-card strong {
    font-size: 4rem;
  }

  .map-frame {
    min-height: 380px;
  }

  .site-footer {
    text-align: right;
  }
}
