/* ==========================================================
   DUBAI RIDERS — styles
   Change the palette here and the whole site follows.
   ========================================================== */
:root {
  --bg: #0B0B0D;          /* midnight black */
  --panel: #16171A;       /* asphalt */
  --accent: #FF4A1C;      /* ignition orange-red */
  --gold: #D4A84B;        /* desert gold */
  --text: #F4F1EA;        /* off-white */
  --muted: #9A9CA3;       /* steel grey */
  --line: rgba(244, 241, 234, 0.12);
  --error: #FF7A5C;

  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --header-h: 68px;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--accent); color: var(--bg); padding: .6rem 1rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .9rem 1.5rem;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  border: 2px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #FF6A42; }
.btn-ghost { border-color: var(--text); color: var(--text); }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: wait; }

.text-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--text); }

/* ---------- Wordmark (text logo until the real one is ready) ---------- */
.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display); font-style: italic; font-weight: 800;
  font-size: 1.85rem; letter-spacing: .02em; text-transform: uppercase;
}
.brand-accent { color: var(--accent); }
.brand-tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header .brand-name { font-size: 1.6rem; }
.site-header .brand-tag { display: none; }

.nav-toggle { background: none; border: 0; padding: .4rem; cursor: pointer; display: none; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.75rem; }
.site-nav li a { font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav li a:hover { border-bottom-color: var(--accent); }
.nav-cta { padding: .6rem 1.1rem; font-size: .95rem; }

@media (min-width: 1000px) { .site-header .brand-tag { display: block; } }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .25rem; }
  .site-nav li a { display: block; padding: .75rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(86svh, 780px);
  display: flex; align-items: center;
  padding: 4rem 0 9rem;
  background:
    radial-gradient(60% 70% at 85% 100%, rgba(255, 74, 28, .16), transparent 70%),
    var(--bg);
}
/* racing stripes */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; top: -20%; height: 150%;
  transform: rotate(18deg);
}
.hero::before { right: 9%; width: 22px; background: var(--accent); opacity: .85; }
.hero::after  { right: 5%; width: 6px;  background: var(--gold);   opacity: .8; }

.hero h1 {
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(3.3rem, 11.5vw, 9rem); line-height: .9; letter-spacing: -.005em;
  margin-bottom: 1.75rem;
}
.hero h1 span { display: block; animation: slide-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero h1 span + span { animation-delay: .12s; }
.hero h1 .outline { color: transparent; -webkit-text-stroke: 2px var(--text); }

.hero-lead { font-size: clamp(1.1rem, 2.4vw, 1.4rem); max-width: 34ch; color: var(--text); margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; }

.skyline {
  position: absolute; z-index: -1; bottom: 0; left: 50%;
  width: max(100%, 840px); height: auto;
  transform: translateX(-50%);
  opacity: .5;
}

@keyframes slide-in { from { opacity: 0; transform: translateX(-36px); } }

@media (max-width: 820px) {
  .hero::before, .hero::after { right: -2%; opacity: .45; }
  .hero::after { right: -6%; }
}

/* ---------- Promise band ---------- */
.band { border-block: 1px solid var(--line); background: var(--panel); }
.band-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.band-item { padding: 1.6rem 1.25rem; border-left: 1px solid var(--line); }
.band-item:nth-child(odd) { border-left: 0; padding-left: 0; }
.band-item:nth-child(n+3) { border-top: 1px solid var(--line); }
.band-item h3 {
  font-family: var(--display); font-style: italic; font-weight: 700;
  font-size: 1.65rem; line-height: 1.1; color: var(--text); margin-bottom: .25rem;
}
.band-item p { color: var(--muted); font-size: .95rem; line-height: 1.45; }

@media (min-width: 900px) {
  .band-grid { grid-template-columns: repeat(4, 1fr); }
  .band-item, .band-item:nth-child(odd), .band-item:nth-child(n+3) {
    padding: 2rem 1.75rem; border-top: 0; border-left: 1px solid var(--line);
  }
  .band-item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section--panel { background: var(--panel); border-block: 1px solid var(--line); }

.section-title {
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2.6rem, 6.5vw, 4.5rem); line-height: .95;
  margin-bottom: 1rem;
}
.section-intro { color: var(--muted); max-width: 46ch; margin-bottom: 2.25rem; }

/* ---------- Sold bikes ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.filters button {
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  padding: .45rem 1rem; cursor: pointer; font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: color .15s, border-color .15s, background-color .15s;
}
.filters button:hover { color: var(--text); border-color: var(--muted); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--bg); font-weight: 700; }

.bike-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 1rem; }
.bike-card {
  position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  aspect-ratio: 4 / 5; background: var(--panel);
  border: 1px solid var(--line); border-radius: 0; cursor: pointer; text-align: left;
}
.bike-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.bike-card:hover img { transform: scale(1.04); }
.bike-card::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(to top, rgba(11, 11, 13, .92), transparent);
  pointer-events: none;
}
.bike-meta { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: .9rem; display: flex; flex-direction: column; line-height: 1.25; }
.bike-meta strong { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.45rem; }
.bike-meta small { color: var(--muted); font-size: .85rem; }
.sold-tag {
  position: absolute; z-index: 1; top: .9rem; left: -.4rem;
  background: var(--gold); color: var(--bg);
  font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase;
  padding: .1rem 1rem .1rem .9rem;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.sold-cta { margin-top: 2rem; color: var(--muted); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: min(94vw, 640px); max-width: none; max-height: 96vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 5, 6, .93); backdrop-filter: blur(4px); }
.lb-figure { position: relative; margin: 0; background: var(--panel); border: 1px solid var(--line); }
.lb-figure img { width: 100%; height: auto; max-height: 74vh; object-fit: contain; background: #000; }
.lb-caption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: 1rem 1.1rem; }
.lb-caption strong { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 1.5rem; margin-right: .6rem; }
.lb-caption span { color: var(--muted); }
.lb-caption .btn { padding: .65rem 1.1rem; font-size: .95rem; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px;
  background: rgba(11, 11, 13, .75); border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
}
.lb-btn:hover { background: var(--accent); color: var(--bg); }
.lb-close { top: .75rem; right: .75rem; }
.lb-prev, .lb-next { top: calc(37vh - 22px); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }

/* ---------- About ---------- */
.about { display: grid; gap: 2rem; }
.about-body { max-width: 62ch; }
.about-body p + p { margin-top: 1.15rem; }
.about-body p { color: #CFCCC4; }
.about-body .about-lead { font-size: 1.3rem; line-height: 1.5; color: var(--text); }
.about-sign {
  margin-top: 2.5rem !important; padding-left: 1.25rem; border-left: 5px solid var(--accent);
  font-family: var(--display); font-style: italic; font-weight: 800; text-transform: uppercase;
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1; color: var(--text) !important;
}
@media (min-width: 900px) {
  .about { grid-template-columns: 1fr 1.7fr; gap: 4rem; align-items: start; }
  .about-title { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* ---------- Contact ---------- */
.contact { display: grid; gap: 3rem; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1.05fr; gap: 4.5rem; align-items: start; } }

.contact-list { display: grid; gap: .85rem; margin-bottom: 2rem; }
.contact-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem;
  border: 1px solid var(--line); border-radius: 2px; transition: border-color .15s;
}
.contact-list a:hover { border-color: var(--accent); }
.contact-list svg { flex: none; color: var(--accent); }
.contact-list span { display: flex; flex-direction: column; line-height: 1.3; }
.contact-list small { color: var(--muted); font-size: .95rem; }

.follow-label { font-weight: 700; margin-bottom: .75rem; }
.socials { display: flex; gap: .65rem; }
.socials a {
  display: grid; place-items: center; width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 2px; transition: color .15s, border-color .15s;
}
.socials a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--accent); padding: clamp(1.25rem, 3vw, 2rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .4rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: .8rem .9rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 2px;
  font: inherit; font-size: 1rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 74, 28, .25); }
.field input::placeholder, .field textarea::placeholder { color: #666971; }
.field .invalid { border-color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-form .btn { width: 100%; padding: 1rem; }
.form-status { margin-top: 1rem; min-height: 1.5em; font-size: .975rem; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: var(--error); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 0 5.5rem; }
.footer-inner { display: grid; gap: 1.75rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.footer-links > a:first-child { color: var(--muted); }
.footer-links > a:first-child:hover { color: var(--text); }
.footer-links .socials a { width: 40px; height: 40px; }
.copyright { color: var(--muted); font-size: .9rem; }
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .copyright { grid-column: 1 / -1; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 60; right: 1.1rem; bottom: 1.1rem;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.07); }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.turnstile { min-height: 65px; margin-bottom: 1.15rem; }