/* ==========================================================================
   Restomods — Design System
   Premium dark editorial minimalism
   ========================================================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

/* --- Design Tokens --- */
:root {
  --bg: #0b0c0e;
  --bg-raised: #111214;
  --fg: #f3f2ee;
  --muted: #9a9990;
  --line: rgba(243, 242, 238, 0.12);
  --accent: rgba(243, 242, 238, 0.06);
  --max: 1080px;
  --pad: clamp(20px, 5vw, 48px);
  --radius: 4px;
  --transition: 0.3s ease;
}

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

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 500;
}

h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.lede {
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  max-width: 62ch;
  margin: 0 0 24px;
}

/* --- Links --- */
a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition);
}

a:hover {
  opacity: 0.8;
}

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

.link-underline:hover {
  text-decoration-color: var(--muted);
  opacity: 1;
}

/* --- Layout --- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --- Sections --- */
.section {
  padding: clamp(64px, 8vw, 120px) 0;
}

.section--border {
  border-top: 1px solid var(--line);
}

.section--narrow .container {
  max-width: 780px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.btn--primary:hover {
  background: var(--muted);
  border-color: var(--muted);
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: rgba(11, 12, 14, 0.78);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.nav a:hover {
  color: var(--fg);
  opacity: 1;
}

.menu-btn {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.menu-btn:hover {
  background: var(--accent);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 0 100px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 1200px 600px at 50% 40%, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 780px;
}

.hero__content h1 {
  margin-bottom: 24px;
}

.hero__content .lede {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
}

.hero__actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Editorial Grid --- */
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  margin-top: 48px;
}

.editorial-block h3 {
  margin-bottom: 12px;
}

.editorial-block p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* --- Vehicle Cards --- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.vehicle-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}

.vehicle-card:hover {
  border-color: rgba(243, 242, 238, 0.25);
}

.vehicle-card__image {
  aspect-ratio: 16 / 10;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vehicle-card__body {
  padding: 20px 24px;
}

.vehicle-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.vehicle-card__spec {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.vehicle-card__price {
  font-size: 15px;
  font-weight: 500;
}

/* --- Newsletter --- */
.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin-top: 24px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
}

.newsletter-form input[type="email"]::placeholder {
  color: var(--muted);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--muted);
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  color: var(--muted);
  font-size: 13px;
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer__nav a {
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color var(--transition);
}

.footer__nav a:hover {
  color: var(--fg);
  opacity: 1;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Menu Drawer --- */
.menu[hidden] {
  display: none;
}

.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.6);
}

.menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 92vw);
  background: rgba(11, 12, 14, 0.96);
  border-left: 1px solid var(--line);
  padding: 28px var(--pad);
  display: flex;
  flex-direction: column;
}

.menu__close {
  align-self: flex-end;
  font-family: inherit;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.menu__close:hover {
  background: var(--accent);
}

.menu__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 40px 0 auto;
}

.menu__links a {
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  transition: color var(--transition);
}

.menu__links a:hover {
  color: var(--muted);
  opacity: 1;
}

.menu__meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 40px;
}

/* --- Utility --- */
.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --- Placeholder page --- */
.page-placeholder {
  padding: clamp(80px, 10vw, 140px) 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav a {
    display: none;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .vehicle-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 60vh;
    padding: 100px 0 64px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer__nav {
    flex-direction: column;
    gap: 12px;
  }
}
