@font-face {
  font-family: 'Neue Regrade';
  src: url('../fonts/neue-regrade-variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Scene Arabic';
  src: url('../fonts/helvetica-arabic-roman.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --night: #0f1013;
  --night-2: #17191e;
  --coral: #00534c;
  --teal: #00534c;
  --teal-text: #3ddacc;
  --line: rgb(255 255 255 / 16%);
  --muted: #a9acb4;
  --muted-text: #a9acb4;
  --surface: #17191e;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--night);
  color: white;
  /* Scene Arabic stays in the stack so EN-page Arabic labels (e.g. العربية) render correctly */
  font-family: 'Neue Regrade', 'Scene Arabic', 'Helvetica Neue', Arial, sans-serif;
}
body.arabic,
:lang(ar),
[lang="ar"] {
  font-family: 'Scene Arabic', 'Neue Regrade', Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}
button, select, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button:focus-visible,
a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.content-shell,
.header-shell {
  width: min(calc(100% - 72px), 1420px);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.primary-button {
  min-height: 50px;
  padding: 0 24px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 750;
  background: var(--coral);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
}

.language-button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 7px;
  background: rgb(0 0 0 / 16%);
  color: white;
  cursor: pointer;
}

.language-button:hover {
  border-color: rgb(255 255 255 / 55%);
}

/* Landing header — matches new_design site-header + landing-header */
.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  color: white;
  background: rgb(15 16 19 / 94%);
  backdrop-filter: blur(10px);
}

.header-shell {
  min-height: 92px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.brand { display: inline-flex; align-items: center; }
.brand img { width: 148px; height: auto; display: block; }
.header-actions { display: flex; align-items: center; gap: 9px; }

.landing {
  flex: 1;
  padding-block: 128px 64px;
  background:
    radial-gradient(60% 45% at 50% 0%, rgb(0 83 76 / 30%), transparent 72%),
    var(--night);
}

.landing-inner {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.landing h1 {
  margin: 0;
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.landing-intro {
  max-width: 58ch;
  margin: 0;
  color: #b5b8bf;
  font-size: 16px;
  line-height: 1.6;
}

.continue-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: var(--teal-text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.branch-choice {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 18px;
  margin-top: 4px;
}

.switch-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 7px;
  background: rgb(0 0 0 / 16%);
  color: white;
  cursor: pointer;
  font-weight: 700;
}

.switch-button:hover {
  border-color: var(--teal-text);
  color: var(--teal-text);
}

.branch-cards {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 18px;
  text-align: start;
}

.branch-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: white;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.branch-card:hover {
  border-color: var(--teal-text);
  transform: translateY(-2px);
}

.branch-card-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.branch-card-photo .media-frame {
  width: 100%;
  height: 100%;
}

.branch-card-photo .media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.branch-card:hover .media-frame.is-loaded .media-img { transform: scale(1.03); }

.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #17191e;
}

.media-frame > img {
  display: block;
  width: 100%;
  height: 100%;
}

.media-shimmer {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, transparent 20%, rgb(61 218 204 / 10%) 45%, transparent 70%),
    linear-gradient(180deg, #1a1d24, #12141a 55%, #1a1d24);
  background-size: 200% 100%, 100% 100%;
  animation: mediaShimmer 1.25s linear infinite;
  pointer-events: none;
  transition: opacity .35s ease;
}

.media-frame.is-loaded .media-shimmer { opacity: 0; }

.media-img {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .4s ease, transform .45s ease;
}

.media-frame.is-loaded .media-img {
  opacity: 1;
  transform: none;
}

@keyframes mediaShimmer {
  0% { background-position: 100% 0, 0 0; }
  100% { background-position: -100% 0, 0 0; }
}

.branch-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px 24px 24px;
}

.branch-card .branch-logo {
  width: 168px;
  height: auto;
  margin: 0;
}

.branch-card-address {
  color: #c6c8ce;
  font-size: 14px;
  line-height: 1.5;
}

.branch-card-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.branch-card-formats i {
  padding: 4px 9px;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 999px;
  color: #d5d7dc;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.branch-card-cta {
  margin-top: auto;
  width: 100%;
  justify-content: space-between;
}

/* Thin Scene line arrow (design) */
.scene-arrow {
  flex: none;
  width: 22px;
  height: 11px;
  display: block;
  color: currentColor;
}

[dir="rtl"] .scene-arrow {
  transform: scaleX(-1);
}

.landing-note {
  max-width: 64ch;
  margin: 8px 0 0;
  color: var(--muted-text);
  font-size: 13px;
  line-height: 1.55;
}

.landing-app {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: var(--teal-text);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.store-badges a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 10px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 10px;
  background: #0b0c12;
  color: white;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

.store-badges a:hover {
  border-color: var(--coral);
  transform: translateY(-1px);
}

.store-badges svg { width: 24px; height: 24px; flex: 0 0 auto; }
.store-badges span { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.store-badges small { font-size: 9px; color: #b5b8bf; text-transform: uppercase; letter-spacing: .06em; }
.store-badges b { font-size: 13px; }

/* Landing footer — copyright left, social right (new_design shared landing) */
.site-footer {
  padding: 0 0 28px;
  background: #0b0c12;
  font-family: 'Neue Regrade', 'Scene Arabic', 'Helvetica Neue', Arial, sans-serif;
}

.site-footer button,
.site-footer a,
.site-footer span,
.site-footer strong,
.site-footer p,
.site-footer small,
.site-footer b {
  font-family: inherit;
}

.arabic .site-footer,
.arabic .site-footer button,
.arabic .site-footer a,
.arabic .site-footer span,
[lang="ar"] .site-footer,
[lang="ar"] .site-footer button,
[lang="ar"] .site-footer a,
[lang="ar"] .site-footer span {
  font-family: 'Scene Arabic', 'Neue Regrade', Arial, sans-serif;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #777a83;
  font-size: 12px;
}

.social-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 14px;
}

.social-links a {
  color: #777a83;
  text-decoration: none;
}

.social-links a:hover { color: var(--teal-text); }

.arabic .eyebrow,
[dir="rtl"] .eyebrow { letter-spacing: 0; }

.arabic .store-badges span,
[dir="rtl"] .store-badges span { line-height: 1.5; gap: 0; }

.arabic .store-badges small,
[dir="rtl"] .store-badges small {
  letter-spacing: 0;
  text-transform: none;
  font-size: 11px;
}

.arabic .landing-app,
[dir="rtl"] .landing-app {
  letter-spacing: 0;
  text-transform: none;
}

.language-button[lang="ar"] {
  font-family: 'Scene Arabic', 'Neue Regrade', Arial, sans-serif;
}

/* Tablet */
@media (max-width: 900px) {
  .content-shell,
  .header-shell { width: min(calc(100% - 34px), 1420px); }

  .header-shell { min-height: 78px; gap: 10px; }
  .brand img { width: 120px; }
  .language-button { min-height: 40px; font-size: 12px; }
  .landing { padding-block: 104px 48px; }
  .landing h1 { font-size: clamp(34px, 8vw, 52px); }
  .landing-intro { font-size: 15px; padding-inline: 4px; }
  .branch-cards { grid-template-columns: 1fr; gap: 14px; }
  .branch-card-body { padding: 18px; }
  .branch-card .branch-logo { width: 140px; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Phone */
@media (max-width: 640px) {
  .content-shell,
  .header-shell {
    width: min(calc(100% - 28px), 1420px);
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .header-shell {
    min-height: 64px;
    gap: 8px;
  }

  .brand img { width: 108px; }

  .language-button {
    min-height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .landing {
    padding-block: calc(88px + env(safe-area-inset-top)) 40px;
  }

  .landing-inner { gap: 14px; }

  .eyebrow {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .landing h1 {
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.02;
    max-width: 16ch;
  }

  .landing-intro {
    font-size: 14px;
    line-height: 1.55;
    max-width: 36ch;
  }

  .branch-choice {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .continue-link {
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
  }

  .switch-button {
    width: min(100%, 240px);
    min-height: 44px;
  }

  .branch-cards {
    gap: 12px;
    margin-top: 8px;
  }

  .branch-card {
    border-radius: 14px;
  }

  .branch-card:hover,
  .branch-card:hover .media-frame.is-loaded .media-img {
    transform: none;
  }

  .branch-card-photo { aspect-ratio: 16 / 10; }

  .branch-card-body {
    gap: 10px;
    padding: 16px;
  }

  .branch-card .branch-logo { width: 128px; }

  .branch-card-address { font-size: 13px; }

  .branch-card-formats { gap: 5px; justify-content: center; }

  .branch-card-formats i {
    padding: 3px 8px;
    font-size: 10px;
  }

  .branch-card-cta {
    min-height: 48px;
    padding: 0 14px;
    font-size: 13px;
    gap: 10px;
  }

  .branch-card-cta [data-cta-label] {
    text-align: start;
    line-height: 1.25;
  }

  .landing-note {
    font-size: 12px;
    max-width: 40ch;
    margin-top: 4px;
  }

  .landing-app {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .store-badges {
    justify-content: center;
    width: 100%;
  }

  .store-badges a {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    justify-content: center;
  }

  .site-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .footer-bottom {
    padding-top: 18px;
    font-size: 11px;
  }

  .social-links {
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .landing h1 { font-size: 28px; max-width: none; }
  .branch-card-cta { font-size: 12px; padding: 0 12px; }
  .store-badges {
    flex-direction: column;
  }
  .store-badges a { flex: 1 1 auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .media-img,
  .media-shimmer,
  .branch-card-photo .media-img {
    animation: none;
    transition: none;
  }
}
