@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&display=swap');

:root {
  --bg: #0b0b0b;
  --surface: #101010;
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;
  --header-height: 112px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(900px 500px at 18% 10%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 60%),
    radial-gradient(700px 420px at 80% 20%, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0) 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  text-align: right;
}

html[dir="rtl"] .section-title {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-title-line {
  justify-content: flex-end;
}

html[lang="ar"] .lang-en {
  display: none !important;
}

html[lang="en"] .lang-ar {
  display: none !important;
}

html[lang="ar"] .ltr {
  display: none !important;
}

html[lang="en"] .rtl {
  display: none !important;
}

html.splash-active,
html.splash-active body {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 11, 11, 0.78);
  backdrop-filter: blur(18px);
  color: rgba(255, 255, 255, 0.92);
  opacity: 1;
  transition: opacity 420ms ease, transform 420ms ease;
}

.splash.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.splash-inner {
  width: min(920px, 100%);
  text-align: center;
}

.splash-logo {
  display: block;
  width: min(820px, 92vw);
  max-height: 260px;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: invert(1) brightness(1.2) contrast(1.05);
  mix-blend-mode: screen;
}

.splash-title {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 40px);
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.96);
}

.splash-subtitle {
  margin: 10px 0 0;
  font-size: clamp(14px, 2.1vw, 18px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .splash {
    transition: none;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: calc(var(--header-height) + 12px);
  padding: 10px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  transform: translateY(-200%);
  transition: transform 160ms ease;
  z-index: 9999;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 100;
  width: 100%;
  min-height: var(--header-height);
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 11, 0.62);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 0;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: unset;
  flex: 0 1 auto;
}

.brand-mark {
  width: min(520px, 100%);
  height: auto;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 84px;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
  display: none;
  padding: 0;
  border-radius: 0;
  filter: invert(1) brightness(1.2) contrast(1.05);
  mix-blend-mode: screen;
}

.brand-mark.has-logo .brand-logo {
  display: block;
}

.brand-mark.has-logo {
  background: transparent;
  border: none;
  box-shadow: none;
}

.brand-mark svg,
.brand-mark .brand-mark-fallback {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-mark .logo-stroke {
  stroke: rgba(255, 255, 255, 0.92);
}

.brand-mark .logo-fill {
  fill: rgba(255, 255, 255, 0.92);
}

.brand-title {
  display: none;
}

.brand-title strong {
  font-size: 16px;
  font-weight: 700;
}

.brand-title span {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  flex: 0 1 auto;
  min-width: 0;
}

.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--border);
}

.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
  margin-inline-start: auto;
  min-width: 220px;
  flex: 0 0 auto;
}

.btn.menu-toggle {
  display: none;
  padding: 0;
  width: 44px;
  height: 44px;
}

.menu-icon {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    currentColor 0 2px,
    transparent 2px 6px,
    currentColor 6px 8px,
    transparent 8px 12px,
    currentColor 12px 14px
  );
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
  user-select: none;
  font-weight: 600;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn.primary {
  background: #ffffff;
  color: #000000;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn.primary:hover {
  background: rgba(255, 255, 255, 0.92);
}

.btn.ghost {
  background: transparent;
}

.main {
  padding: 34px 0 74px;
}

.hero {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(420px 240px at 20% 20%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 65%),
    radial-gradient(380px 240px at 85% 25%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: stretch;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.25;
}

.hero p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 58ch;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge {
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.26);
  padding: 18px;
  height: 100%;
  display: grid;
  gap: 10px;
}

.hero-card h3 {
  margin: 0;
  font-size: 16px;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}

.card {
  grid-column: span 6;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.card.third {
  grid-column: span 4;
}

.card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.22);
}

.card h2,
.card h3 {
  margin: 0 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .meta {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta span {
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.84);
  background: rgba(0, 0, 0, 0.24);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.section-title {
  margin: 40px 0 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-title h2 {
  margin: 0;
  font-size: 20px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.list {
  display: grid;
  gap: 12px;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
}

.list-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.list-item p {
  margin: 0;
  color: var(--muted);
}

.two-col {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.photo-grid {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(12, 1fr);
}

.photo-card {
  grid-column: span 3;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  min-height: 220px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
}

.photo-card.wide {
  grid-column: span 12;
  min-height: 300px;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.72));
  pointer-events: none;
}

.photo-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.9) contrast(1.15);
  transform: scale(1.01);
}

.photo-caption {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.62);
  padding: 10px 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.hero-spin {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.spin-logo {
  width: 210px;
  height: 210px;
  object-fit: contain;
  filter: invert(1) brightness(1.15) contrast(1.05);
  animation: brand-spin 18s linear infinite;
  will-change: transform;
}

@keyframes brand-spin {
  to {
    transform: rotate(360deg);
  }
}

.hero-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-title-line.lang-ar {
  flex-direction: row-reverse;
}

.hero-carousel {
  margin: 16px 0 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.hero-carousel-track {
  position: relative;
  height: clamp(240px, 30vw, 420px);
  background: transparent;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 520ms ease, transform 520ms ease;
  padding: 26px;
  filter: invert(1) brightness(1.2) contrast(1.05) drop-shadow(0 18px 60px rgba(0, 0, 0, 0.45));
  mix-blend-mode: screen;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-title-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: invert(1) brightness(1.15) contrast(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }

  .spin-logo,
  .brand-mark.has-logo .brand-logo {
    animation: none;
  }
}

.hero-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  filter: brightness(0.8) saturate(0.9) contrast(1.12);
}

.bilingual {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.ltr {
  direction: ltr;
  text-align: left;
}

.rtl {
  direction: rtl;
  text-align: right;
}

.bilingual h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.kicker {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.2px;
}

.contact-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  padding: 20px;
}

.contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row strong {
  font-weight: 700;
}

.contact-row span,
.contact-row a {
  color: var(--muted);
}

.map-embed {
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
}

.map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.22);
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}

.footer-links a:hover {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 900px) {
  :root {
    --header-height: 84px;
  }

  .site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
  }

  .main {
    padding: calc(34px + var(--header-height)) 0 74px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .card.third {
    grid-column: span 6;
  }

  .photo-card {
    grid-column: span 6;
  }

  .header-inner {
    flex-direction: row;
    align-items: center;
    padding: 8px 0;
    gap: 10px;
  }

  .nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    inset-inline: 12px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px;
    background: rgba(11, 11, 11, 0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    z-index: 130;
    max-height: calc(100vh - var(--header-height) - 16px);
    overflow: auto;
    backdrop-filter: blur(14px);
  }

  .actions {
    min-width: unset;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 8px;
  }

  .brand {
    min-width: unset;
    flex: 1 1 0;
    min-width: 0;
  }

  .actions a.btn {
    display: none;
  }

  .brand-mark {
    width: auto;
    max-width: min(360px, calc(100vw - 140px));
    height: auto;
    padding: 0;
    border-radius: 0;
  }

  .brand-logo {
    width: auto;
    height: 56px;
    max-width: 100%;
    border-radius: 0;
  }

  .brand-mark svg,
  .brand-mark .brand-mark-fallback {
    width: 30px;
    height: 30px;
  }

  .brand-title strong {
    font-size: 18px;
    line-height: 1.1;
  }

  .brand-title span {
    display: block;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 240px;
  }

  .btn.menu-toggle {
    display: inline-flex;
  }

  #langToggle {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 13px;
    line-height: 1;
  }

  html.nav-open .nav {
    display: flex;
  }
}

@media (max-width: 720px) {
  .map-embed iframe {
    height: 300px;
  }

  .spin-logo {
    width: 170px;
    height: 170px;
  }

  .hero-title-logo {
    width: 34px;
    height: 34px;
  }

  .card {
    grid-column: span 12;
  }

  .photo-card {
    grid-column: span 12;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .bilingual {
    grid-template-columns: 1fr;
  }
}
