/* ============================================================
   A7 RENT — Design Tokens
   European luxury / exotic car rental
   Aesthetic: racing red on near-black — sporty, futuristic, expensive
   ============================================================ */

:root {
  /* ---- Core surfaces (near-black, very slightly cool) ---- */
  --ink-900: oklch(0.13 0.006 264);   /* page background          */
  --ink-850: oklch(0.16 0.006 264);   /* raised panels            */
  --ink-800: oklch(0.19 0.007 264);   /* cards                    */
  --ink-700: oklch(0.24 0.008 264);   /* card hover / borders hi  */
  --line:    oklch(0.30 0.008 264 / 0.55);  /* hairlines          */
  --line-soft: oklch(0.30 0.008 264 / 0.25);

  /* ---- Text ---- */
  --fg:        oklch(0.97 0 0);        /* primary text            */
  --fg-muted:  oklch(0.74 0.004 264);  /* secondary               */
  --fg-faint:  oklch(0.55 0.006 264);  /* tertiary / captions     */

  /* ---- Racing red accent + harmonics (shared C/L, vary hue) ---- */
  --red:       oklch(0.62 0.235 25);   /* primary racing red      */
  --red-bright:oklch(0.68 0.230 28);   /* hover / glow            */
  --red-deep:  oklch(0.50 0.190 25);   /* pressed                 */
  --ember:     oklch(0.68 0.180 55);   /* warm secondary accent   */

  /* ---- Glows ---- */
  --glow-red: 0 0 0 1px oklch(0.62 0.235 25 / 0.5), 0 8px 40px oklch(0.62 0.235 25 / 0.35);

  /* ---- Type ---- */
  --font-display: "Saira", "Arial Narrow", sans-serif;       /* sporty, condensed-ish display */
  --font-sans:    "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  /* ---- Radii ---- */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* ---- Spacing rhythm ---- */
  --pad: clamp(24px, 5vw, 96px);

  /* ---- Easing ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ============================================================
   Reusable primitives (used across pages)
   ============================================================ */

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

.m1-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.m1-eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--red);
}

/* Striped image placeholder — drop real photography here later */
.m1-photo {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      -45deg,
      oklch(0.20 0.007 264) 0 2px,
      oklch(0.16 0.006 264) 2px 11px
    );
  display: flex;
  align-items: center;
  justify-content: center;
}
.m1-photo::after {
  content: attr(data-label);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: oklch(0.13 0.006 264 / 0.7);
  backdrop-filter: blur(2px);
  text-align: center;
  max-width: 80%;
}

/* Primary button */
.m1-btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  color: white;
  background: var(--red);
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.2s var(--ease-out);
  text-decoration: none;
}
.m1-btn:hover { background: var(--red-bright); box-shadow: var(--glow-red); transform: translateY(-1px); }
.m1-btn:active { background: var(--red-deep); transform: translateY(0); }

.m1-btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--fg);
}
.m1-btn--ghost:hover { background: var(--ink-800); border-color: var(--fg-faint); box-shadow: none; }

/* =========================================================
   PAGE TRANSITIONS
   body starts hidden once JS confirms support (.pt-ready),
   rises in on .pt-in, fades out on .pt-out. No-JS = visible.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  html.pt-ready body {
    opacity: 0;
    transform: translateY(28px);
  }
  html.pt-ready.pt-in body {
    opacity: 1;
    transform: none;
    transition: opacity 1.4s var(--ease-out) 0.12s, transform 1.5s var(--ease-out) 0.12s;
  }
  html.pt-ready.pt-out body {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.32s var(--ease-in-out), transform 0.32s var(--ease-in-out);
  }
}
