/* ============================================================
   RAD Motor Group — Design System
   Deep red + black. Dark, dramatic, premium.
   ============================================================ */

:root {
  /* Brand palette */
  --rad-red: #B01217;          /* deep signature red */
  --rad-red-bright: #E11B22;   /* accent / hover */
  --rad-red-dark: #7A0C10;     /* pressed / shadow red */
  --black: #0B0B0C;            /* near-black base */
  --black-soft: #141416;       /* raised surfaces */
  --char: #1C1D20;             /* cards */
  --char-line: #2A2B2F;        /* hairline borders */
  --smoke: #8A8C92;            /* muted text */
  --silver: #C9CACE;           /* secondary text */
  --white: #F4F4F5;            /* primary text */
  --gold: #C9A24B;             /* subtle luxury accent */

  /* Typography */
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 4px;
  --radius-lg: 8px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.2s;
  --t-med: 0.4s;

  /* Shadow */
  --shadow: 0 18px 50px -20px rgba(0,0,0,0.8);
  --shadow-red: 0 14px 40px -18px rgba(176,18,23,0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--silver);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
p  { color: var(--silver); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--silver); }

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.78rem;
  color: var(--rad-red-bright);
  font-weight: 500;
  display: inline-block;
}
.eyebrow--gold { color: var(--gold); }
.text-red { color: var(--rad-red-bright); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.maxw-prose { max-width: 62ch; }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--rad-red); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary:hover { background: var(--rad-red-bright); }
.btn--ghost { border-color: var(--char-line); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--rad-red-bright); color: var(--rad-red-bright); }
.btn--light { background: var(--white); color: var(--black); }
.btn--light:hover { background: #fff; }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--lg { padding: 1.2rem 2.8rem; font-size: 1.1rem; letter-spacing: 0.14em; border-radius: var(--radius); }
.hero__actions .btn--lg { padding-top: 1.75rem; padding-bottom: 1.75rem; }
@media (max-width: 620px) { .btn--lg { width: 100%; justify-content: center; } }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  background: linear-gradient(180deg, rgba(11,11,12,0.92), rgba(11,11,12,0));
  transition: background var(--t-med) var(--ease), padding var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11,11,12,0.96);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--char-line);
  padding-block: 0.8rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__brand img { height: 46px; width: auto; transition: height var(--t-med) var(--ease); }
.nav.scrolled .nav__brand img { height: 40px; }
.nav__brand-text { font-family: var(--font-display); text-transform: uppercase; line-height: 1; }
.nav__brand-text strong { display: block; color: var(--white); font-size: 1.15rem; letter-spacing: 0.08em; }
.nav__brand-text span { display: block; color: var(--smoke); font-size: 0.62rem; letter-spacing: 0.34em; }

.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.1em; font-size: 0.88rem; color: var(--silver);
  position: relative; padding-block: 0.3rem; transition: color var(--t-fast) var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--rad-red-bright); transition: width var(--t-fast) var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--white); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }

.nav__cta { margin-left: 0.5rem; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav__toggle span { width: 26px; height: 2px; background: var(--white); transition: transform var(--t-fast) var(--ease), opacity var(--t-fast); }
.nav.open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 1.6rem; padding: 2rem 2.4rem;
    background: var(--black-soft); border-left: 1px solid var(--char-line);
    transform: translateX(100%); transition: transform var(--t-med) var(--ease);
  }
  .nav.open .nav__links { transform: translateX(0); }
  .nav__links a { font-size: 1.2rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 6rem; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,11,12,0.96) 28%, rgba(11,11,12,0.55) 70%, rgba(11,11,12,0.3)),
              linear-gradient(0deg, rgba(11,11,12,0.9), rgba(11,11,12,0.1));
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { margin-block: 1rem 1.3rem; }
.hero h1 .accent { color: var(--rad-red-bright); }
.hero .lead { max-width: 56ch; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  z-index: 1; color: var(--smoke); font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; font-family: var(--font-display);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero__scroll::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--rad-red-bright), transparent); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Hero logo splash (homepage entry) */
.hero--logo { text-align: center; }
.hero--logo .hero__inner { max-width: 940px; margin-inline: auto; }
.hero--logo .hero__bg::after {
  background: linear-gradient(0deg, rgba(11,11,12,0.94), rgba(11,11,12,0.5)),
              radial-gradient(circle at 50% 40%, rgba(11,11,12,0.3), rgba(11,11,12,0.85));
}
.hero__logo {
  width: clamp(260px, 46vw, 580px);
  margin: 0 auto 1.4rem;
  filter: drop-shadow(0 26px 70px rgba(0,0,0,0.9));
  animation: heroLogoIn 1.1s var(--ease) both;
}
@keyframes heroLogoIn { from { opacity: 0; transform: translateY(24px) scale(0.94); } to { opacity: 1; transform: none; } }
.hero--logo .hero h1, .hero--logo h1 { margin-top: 0; }
.hero--logo .lead { margin-inline: auto; }
.hero--logo .hero__actions { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .hero__logo { animation: none; } }

/* ---------- Section heading ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin-block: 0.8rem 1rem; }

/* ---------- Divisions (split) ---------- */
.divisions { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
@media (max-width: 860px) { .divisions { grid-template-columns: 1fr; } }
.division {
  position: relative; display: flex; align-items: flex-end;
  padding: clamp(2rem, 4vw, 3.5rem); overflow: hidden; min-height: 50vh;
}
.division__bg { position: absolute; inset: 0; z-index: 0; transition: transform 0.9s var(--ease); }
.division__bg img { width: 100%; height: 100%; object-fit: cover; }
.division__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,12,0.95) 8%, rgba(11,11,12,0.45) 60%, rgba(11,11,12,0.25)); transition: background var(--t-med); }
.division:hover .division__bg { transform: scale(1.06); }
.division--designs:hover .division__bg::after { background: linear-gradient(0deg, rgba(11,11,12,0.95) 8%, rgba(201,162,75,0.16) 70%, rgba(11,11,12,0.2)); }
.division--fleet:hover .division__bg::after { background: linear-gradient(0deg, rgba(11,11,12,0.95) 8%, rgba(176,18,23,0.22) 70%, rgba(11,11,12,0.2)); }
.division__content { position: relative; z-index: 1; max-width: 460px; }
.division__content h3 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-block: 0.6rem 0.8rem; }
.division__content p { margin-bottom: 1.4rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--char); border: 1px solid var(--char-line);
  border-radius: var(--radius-lg); padding: clamp(1.6rem, 2.6vw, 2.2rem);
  transition: transform var(--t-med) var(--ease), border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  height: 100%;
}
.card:hover { transform: translateY(-6px); border-color: var(--rad-red-dark); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: var(--radius); background: rgba(176,18,23,0.12);
  color: var(--rad-red-bright); margin-bottom: 1.2rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.96rem; }

/* ---------- Service list ---------- */
.svc-list { display: grid; gap: 0.9rem; }
.svc-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.3rem; background: var(--black-soft);
  border: 1px solid var(--char-line); border-left: 3px solid var(--rad-red);
  border-radius: var(--radius); transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.svc-item:hover { background: var(--char); transform: translateX(4px); border-left-color: var(--rad-red-bright); }
.svc-item h4 { font-size: 1.05rem; margin-bottom: 0.2rem; color: var(--white); }
.svc-item p { font-size: 0.9rem; color: var(--smoke); }
.svc-item .check { color: var(--rad-red-bright); flex-shrink: 0; margin-top: 2px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2,1fr); } }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem,5vw,3.6rem); color: var(--white); line-height: 1; }
.stat__num .text-red { color: var(--rad-red-bright); }
.stat__label { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--smoke); margin-top: 0.5rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4/3; border: 1px solid var(--char-line);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1.2rem 1rem;
  background: linear-gradient(0deg, rgba(11,11,12,0.92), transparent);
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--white); font-size: 0.95rem;
  transform: translateY(8px); opacity: 0; transition: all var(--t-med) var(--ease);
}
.gallery__item:hover figcaption { transform: translateY(0); opacity: 1; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--rad-red-dark), var(--black) 70%);
  border-block: 1px solid var(--char-line);
}
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { max-width: 18ch; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; color: var(--silver); }
.field input, .field select, .field textarea {
  background: var(--black); border: 1px solid var(--char-line); color: var(--white);
  padding: 0.85rem 1rem; border-radius: var(--radius); font-family: var(--font-body); font-size: 0.98rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--rad-red-bright); box-shadow: 0 0 0 3px rgba(176,18,23,0.2);
}
.field textarea { resize: vertical; min-height: 140px; }
.form__note { font-size: 0.82rem; color: var(--smoke); }

/* ---------- Contact info ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-item { display: flex; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--char-line); }
.info-item:last-child { border-bottom: 0; }
.info-item .ico { color: var(--rad-red-bright); flex-shrink: 0; }
.info-item h4 { font-size: 1rem; color: var(--white); margin-bottom: 0.2rem; }
.info-item p, .info-item a { color: var(--silver); font-size: 0.95rem; }
.info-item a:hover { color: var(--rad-red-bright); }

/* ---------- Footer ---------- */
.footer { background: var(--black-soft); border-top: 1px solid var(--char-line); padding-block: clamp(3rem,5vw,4rem) 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { height: 54px; margin-bottom: 1rem; }
.footer__brand p { font-size: 0.92rem; max-width: 34ch; }
.footer h4 { font-size: 0.9rem; letter-spacing: 0.16em; color: var(--white); margin-bottom: 1.1rem; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { font-size: 0.92rem; color: var(--smoke); transition: color var(--t-fast); }
.footer ul a:hover { color: var(--rad-red-bright); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; border-top: 1px solid var(--char-line); font-size: 0.82rem; color: var(--smoke); }
.footer__social { display: flex; gap: 0.8rem; }
.footer__social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--char-line); border-radius: var(--radius); color: var(--silver); transition: all var(--t-fast); }
.footer__social a:hover { border-color: var(--rad-red-bright); color: var(--rad-red-bright); transform: translateY(-2px); }

/* ---------- Page header (interior) ---------- */
.page-head { position: relative; padding-top: 9rem; padding-bottom: clamp(3rem,6vw,5rem); overflow: hidden; }
.page-head__bg { position: absolute; inset: 0; z-index: 0; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-head__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--black) 12%, rgba(11,11,12,0.6) 60%, rgba(11,11,12,0.4)); }
.page-head__inner { position: relative; z-index: 1; max-width: 760px; }
.page-head h1 { margin-block: 1rem 0.8rem; font-size: clamp(2.4rem,6vw,4.4rem); }
.breadcrumb { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--smoke); font-family: var(--font-display); }
.breadcrumb a:hover { color: var(--rad-red-bright); }

/* ---------- Utility surfaces ---------- */
.surface-soft { background: var(--black-soft); }
.surface-char { background: var(--char); }
.divider { height: 1px; background: var(--char-line); border: 0; }
.placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(45deg, #161618 0 14px, #131315 14px 28px);
  color: #3a3b40; font-family: var(--font-display); letter-spacing: 0.2em;
  text-transform: uppercase; font-size: 0.8rem; text-align: center; padding: 1rem;
}

/* Honeypot anti-spam field (visually hidden, off-screen) */
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Social links hidden until accounts are live (placeholders) */
.footer__social { display: none; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
