/* ====================================
   VUAE - Site chrome (tokens, nav, footer)
   Shared by the marketing pages and the warranty portal.
   ==================================== */

:root {
  --ink: #0a0b0d;
  --ink-2: #121417;
  --ink-3: #1b1e22;
  --bone: #eeece7;
  --bone-2: #f7f6f3;
  --white: #ffffff;
  --red: #d3121c;
  --line: rgba(255, 255, 255, 0.14);
  --line-dark: rgba(10, 11, 13, 0.14);
  --mute: rgba(255, 255, 255, 0.62);
  --mute-dark: rgba(10, 11, 13, 0.62);
  --gutter: clamp(20px, 4vw, 64px);
  --nav-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- Navigation ---- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  font-family: var(--font);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.site-nav.is-scrolled,
.site-nav.is-open {
  background: rgba(10, 11, 13, 0.86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.site-nav__logo { justify-self: start; display: block; line-height: 0; }
.site-nav__logo img { height: 20px; width: auto; display: block; max-width: none; }

.site-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__links a,
.site-nav__cta {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.site-nav__links a {
  position: relative;
  padding: 8px 0;
  opacity: 0.72;
  transition: opacity 0.2s;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] { opacity: 1; }
.site-nav__links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
}

.site-nav__divider {
  width: 1px;
  height: 14px;
  background: var(--line);
}

.site-nav__right { justify-self: end; display: flex; align-items: center; gap: 16px; }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.site-nav__cta:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

.site-nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.site-nav__toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.site-nav__toggle span:nth-child(1) { top: 18px; }
.site-nav__toggle span:nth-child(2) { top: 26px; }
.site-nav.is-open .site-nav__toggle span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.site-nav.is-open .site-nav__toggle span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .site-nav { grid-template-columns: 1fr auto; }
  .site-nav__toggle { display: block; }
  .site-nav__right .site-nav__cta { display: none; }

  .site-nav__links {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    height: calc(100dvh - var(--nav-h));
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-content: start;
    gap: 8px;
    padding: 16px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    background: var(--ink);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s var(--ease), visibility 0.25s;
  }
  .site-nav.is-open .site-nav__links { visibility: visible; opacity: 1; }
  .site-nav__links::before {
    content: 'Bikes';
    grid-column: 1 / -1;
    margin-bottom: 4px;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--mute);
  }
  .site-nav__links a { opacity: 1; }
  .site-nav__links a[aria-current="page"]::after { display: none; }
  .site-nav__divider { display: none; }

  /* Bikes: photo cards */
  .site-nav__links li:nth-child(-n+6) { grid-column: span 3; }
  .site-nav__links li:nth-child(-n+6) a {
    display: block;
    padding: 0 12px 11px;
    background: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .site-nav__links li:nth-child(-n+6) a::before {
    content: '';
    position: static;
    display: block;
    width: calc(100% + 24px);
    height: auto;
    aspect-ratio: 3 / 2;
    margin: 0 -12px 11px;
    background: #fff center / cover no-repeat;
    opacity: 1;
    transform: none;
  }
  .site-nav__links li:nth-child(-n+6) a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
  /* Set only once the menu has been opened, so closed menus download no photos */
  .site-nav.was-opened a[href="/bikes/reem"]::before { background-image: url('/static/img/bikes/nav-reem-360.webp'); }
  .site-nav.was-opened a[href="/bikes/liwa"]::before { background-image: url('/static/img/bikes/nav-liwa-360.webp'); }
  .site-nav.was-opened a[href="/bikes/etihad"]::before { background-image: url('/static/img/bikes/nav-etihad-360.webp'); }
  .site-nav.was-opened a[href="/bikes/ghaf"]::before { background-image: url('/static/img/bikes/nav-ghaf-360.webp'); }
  .site-nav.was-opened a[href="/bikes/mira"]::before { background-image: url('/static/img/bikes/nav-mira-360.webp'); }
  .site-nav.was-opened a[href="/bikes/dune"]::before { background-image: url('/static/img/bikes/nav-dune-360.webp'); }

  /* Journal, About, Warranty: compact row */
  .site-nav__links li:nth-child(n+8):nth-child(-n+10) {
    grid-column: span 2;
    margin-top: 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .site-nav__links li:nth-child(n+8):nth-child(-n+10) a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .site-nav__links li:nth-child(n+8):nth-child(-n+10) a[aria-current="page"] { color: var(--mute); }

  /* Shop: primary action */
  .site-nav__links li.site-nav__mobile-only { grid-column: 1 / -1; margin-top: 8px; }
  .site-nav__links li.site-nav__mobile-only a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0;
    background: var(--white);
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }
  .site-nav__links li.site-nav__mobile-only a[aria-current="page"] { color: var(--ink); }
}
@media (min-width: 600px) and (max-width: 960px) {
  .site-nav__links li:nth-child(-n+6) { grid-column: span 2; }
}

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  padding: clamp(56px, 6vw, 88px) var(--gutter) 28px;
  border-top: 1px solid var(--line);
}

.site-footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: clamp(48px, 6vw, 80px);
}

.site-footer__brand img { display: block; height: 28px; width: auto; max-width: none; margin-left: -5px; }

.site-footer__tag {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 20px 0 0;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px clamp(48px, 7vw, 120px);
}

.site-footer__col h2 {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 18px;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li + li { margin-top: 10px; }
.site-footer__col a { color: var(--white); font-size: 15px; text-decoration: none; transition: color 0.2s; }
.site-footer__col a:hover { color: var(--mute); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--mute);
}

@media (max-width: 760px) {
  .site-footer { padding-top: 36px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .site-footer__top { flex-direction: column; gap: 28px; padding-bottom: 28px; }
  .site-footer__brand { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .site-footer__brand img { height: 24px; }
  .site-footer__tag { margin: 0; font-size: 11px; }
  .site-footer__cols { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .site-footer__col h2 { margin-bottom: 10px; }
  .site-footer__col li + li { margin-top: 0; }
  .site-footer__col a { display: flex; align-items: center; min-height: 38px; }

  /* Bikes: compact tiles across the full width */
  .site-footer__col:first-child { grid-column: 1 / -1; }
  .site-footer__col:first-child h2 { margin-bottom: 12px; }
  .site-footer__col:first-child ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .site-footer__col:first-child a {
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .site-footer__col:first-child li:last-child { grid-column: 1 / -1; }
  .site-footer__col:first-child li:last-child a { background: var(--white); border-color: var(--white); color: var(--ink); }

  .site-footer__base { flex-direction: column; gap: 4px; padding-top: 18px; }
}

/* "Shop" lives in the CTA on desktop and in the list on mobile */
@media (min-width: 961px) { .site-nav__mobile-only { display: none; } }
