/* ============================================================
   Dahab Auto's, Goes
   base.css  ::  reset, shared utilities, version switch
   Nothing here carries either version's art direction.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #0B0B0C;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
  padding: 0;
}
ol, ul { list-style: none; }

table { border-collapse: collapse; width: 100%; }

::selection { background: #C69E3C; color: #0B0B0C; }

/* ---------- utilities ---------- */

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -140%);
  z-index: 999;
  padding: 12px 22px;
  background: #C69E3C;
  color: #0B0B0C;
  font: 600 14px/1 system-ui, sans-serif;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: transform .22s ease;
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- version containers ---------- */

.version[hidden] { display: none !important; }

/* ---------- version switch ---------- */

.vswitch {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px 5px 12px;
  border-radius: 999px;
  background: rgba(16,16,18,.82);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, monospace;
}

.vswitch__label {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.44);
  padding-right: 4px;
}

.vswitch__btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.vswitch__btn:hover { color: #fff; }
.vswitch__btn[aria-pressed="true"] {
  background: #F2EFE9;
  color: #101012;
}
.vswitch__btn:focus-visible {
  outline: 2px solid #C69E3C;
  outline-offset: 2px;
}

@media (max-width: 560px) {
  .vswitch { right: 10px; bottom: 10px; padding: 4px 5px 4px 10px; }
  .vswitch__label { display: none; }
  .vswitch__btn { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
