/* Automotive Workshop - base stylesheet
   Modern, high-performance styling. Dark mode, vibrant accents.
*/

:root {
  /* surfaces */
  --bg-dark: #0f1115;
  --bg-darker: #08090a;
  --card: #181a1f;
  --card-hover: #22252b;
  
  /* text */
  --text-main: #f1f3f5;
  --text-muted: #868e96;
  
  /* accent */
  --accent: #ff4d00;
  --accent-hover: #e04400;
  --accent-light: rgba(255, 77, 0, 0.15);

  /* lines */
  --rule: #2a2d35;
  --rule-strong: #3b3f4a;

  --font-display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Roboto", "Segoe UI", sans-serif;

  --measure: 72ch;
  --page-max: 1280px;
  --page-wide: 1500px;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);

  --radius: 8px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --transition: 300ms var(--ease);
}

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

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

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.08rem);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 2rem + 4vw, 5rem); }
h2 { font-size: clamp(2rem, 1.5rem + 3vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; color: var(--text-muted); }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 50ch;
}

/* ---------- layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--wide { max-width: var(--page-wide); }
.wrap--narrow { max-width: 800px; }

.section { padding-block: clamp(4rem, 5vw, 8rem); }
.section--tight { padding-block: clamp(3rem, 4vw, 5rem); }
.section--darker { background: var(--bg-darker); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 1rem;
  display: block;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 1.2rem 2.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 77, 0, 0.3); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); box-shadow: none; }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transition: all var(--transition);
}
.site-header[data-stuck="true"] { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.02em;
}
.brandmark span { color: var(--accent); }
.brandmark svg { width: 32px; height: 32px; fill: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2vw, 2.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-darker);
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 5vw, 6rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.site-footer h4 { margin-bottom: 1.5rem; font-size: 1.1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8rem; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* forms */
.field { display: grid; gap: 0.6rem; margin-bottom: 1.5rem; }
.field label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-main);
}
.field input, .field textarea, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--rule-strong);
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius);
  transition: all var(--transition);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-light);
}
.field textarea { min-height: 150px; resize: vertical; }

/* reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
