/* ==========================================================================
   FreeMan Auto & Performance — Design Tokens
   Palette:  --black #0b0b0c   --charcoal #17181a   --steel-light #e7e6e2
             --steel-mid #97968f   --red #c8102e   --red-dark #5c0a17
             --warm-white #f4f2ee
   Type:     Display  = "Teko"           (tall, condensed, gauge-cluster feel)
             Body     = "Barlow"         (road-sign heritage, humanist grotesque)
             Utility  = "JetBrains Mono" (spec labels, data, eyebrows)
   Signature: the "tach-sweep" — a rev-gauge arc with a redline zone, used as
              the recurring section divider / underline motif throughout.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Teko:wght@400;500;600;700&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,600&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --black: #0b0b0c;
  --charcoal: #17181a;
  --charcoal-2: #202124;
  --steel-light: #e7e6e2;
  --steel-mid: #97968f;
  --steel-line: #3a3a3d;
  --red: #c8102e;
  --red-bright: #e8253f;
  --red-dark: #5c0a17;
  --warm-white: #f4f2ee;

  --font-display: 'Teko', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1180px;
  --edge: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Subtle asphalt/grain texture across the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.02), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255,255,255,0.015), transparent 45%);
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0;
  color: var(--steel-light);
}

p { margin: 0 0 1rem; color: var(--steel-mid); }
p:last-child { margin-bottom: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--edge);
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------
   Eyebrow / flanking-dash label — echoes the logo's "= TEXT =" treatment
   -------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 0.9rem;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  flex: 0 0 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red));
}
.eyebrow::after { background: linear-gradient(90deg, var(--red), transparent); }

/* --------------------------------------------------------------------
   Tach-sweep divider — the signature element.
   A rev-gauge arc with tick marks and a redline zone, used between
   sections instead of a plain rule.
   -------------------------------------------------------------------- */
.tach-sweep {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  color: var(--steel-line);
}
.tach-sweep .redline { stroke: var(--red); }
.tach-sweep .needle-dot { fill: var(--red-bright); }

.section-divider {
  max-width: 320px;
  margin: 0 auto;
  padding: 2.5rem 0;
  opacity: 0.85;
}

/* --------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.6rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: var(--warm-white);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.35);
}
.btn-primary:hover { background: linear-gradient(180deg, var(--red-bright), var(--red-bright)); }
.btn-outline {
  background: transparent;
  border-color: var(--steel-line);
  color: var(--steel-light);
}
.btn-outline:hover { border-color: var(--steel-mid); }

/* --------------------------------------------------------------------
   Header
   -------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 12, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel-line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.site-logo img { height: 40px; width: auto; }
.site-logo { display: flex; align-items: center; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel-mid);
  transition: color 0.15s ease;
  position: relative;
  padding-bottom: 4px;
}
.main-nav a:hover { color: var(--steel-light); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.phone-link {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--steel-light);
  text-decoration: none;
  letter-spacing: 0.03em;
}
@media (min-width: 640px) { .phone-link { display: inline-flex; align-items: center; gap: 0.4rem; } }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--steel-line);
  border-radius: 3px;
  width: 42px;
  height: 42px;
  color: var(--steel-light);
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--black); flex-direction: column; align-items: flex-start; padding: 2rem var(--edge); transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.5rem; width: 100%; }
  .main-nav ul a { font-size: 1.1rem; }
  .header-cta { display: none; }
  .main-nav .mobile-cta { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; width: 100%; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* --------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(200,16,46,0.16), transparent 60%),
    var(--black);
  border-bottom: 1px solid var(--steel-line);
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--charcoal));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.75rem;
}
.hero-logo { max-width: 560px; width: 100%; margin: 0 auto 0.5rem; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  max-width: 16ch;
}
.hero h1 span { color: var(--red-bright); }
.hero-sub {
  font-size: 1.15rem;
  max-width: 46ch;
  color: var(--steel-mid);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: center;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-mid);
}
.hero-badges span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-badges span::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 8px var(--red-bright);
}

/* --------------------------------------------------------------------
   Generic section spacing
   -------------------------------------------------------------------- */
section { padding: 5rem 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.section-head p { margin-top: 1rem; font-size: 1.05rem; }

.alt-bg { background: var(--charcoal); border-top: 1px solid var(--steel-line); border-bottom: 1px solid var(--steel-line); }

/* --------------------------------------------------------------------
   Services
   -------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: linear-gradient(180deg, var(--charcoal-2), var(--charcoal));
  border: 1px solid var(--steel-line);
  border-radius: 6px;
  padding: 1.9rem 1.7rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--red); transform: translateY(-3px); }
.service-icon {
  width: 42px; height: 42px;
  margin-bottom: 1.1rem;
  color: var(--red-bright);
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}
.service-card p { font-size: 0.95rem; }
.service-note {
  margin-top: 2.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--steel-mid);
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
.service-note strong { color: var(--steel-light); font-weight: 600; }

/* --------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--steel-line);
  cursor: pointer;
  background: var(--charcoal-2);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
}

.gallery-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border: 1px dashed var(--steel-line);
  border-radius: 6px;
  color: var(--steel-mid);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.gallery-empty strong { display: block; color: var(--steel-light); font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; margin-bottom: 0.5rem; letter-spacing: 0.03em; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 6, 7, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 4px; border: 1px solid var(--steel-line); }
.lightbox-cap {
  position: absolute;
  bottom: 2rem; left: 0; right: 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel-mid);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--steel-line);
  background: rgba(255,255,255,0.03);
  color: var(--steel-light);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* --------------------------------------------------------------------
   About
   -------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 780px) { .about-grid { grid-template-columns: 1fr; } }
.about-copy h2 { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 1.2rem; }
.about-copy p { font-size: 1.02rem; }
.about-copy p + p { margin-top: 1rem; }
.about-signoff {
  margin-top: 1.6rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--steel-light);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.about-signoff span { color: var(--red-bright); }

.hours-card {
  background: linear-gradient(180deg, var(--charcoal-2), var(--charcoal));
  border: 1px solid var(--steel-line);
  border-radius: 8px;
  padding: 2rem;
}
.hours-card .eyebrow { justify-content: center; }
.hours-card h3 { text-align: center; font-size: 1.9rem; margin-bottom: 0.8rem; }
.hours-card p { text-align: center; }
.hours-card .fine { margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; text-align: center; color: var(--steel-mid); opacity: 0.8; }

/* --------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.1rem; }
.contact-info-list li { display: flex; align-items: center; gap: 0.85rem; }
.contact-info-list svg { width: 22px; height: 22px; color: var(--red-bright); flex-shrink: 0; }
.contact-info-list a { text-decoration: none; color: var(--steel-light); font-family: var(--font-mono); font-size: 0.95rem; }
.contact-info-list a:hover { color: var(--red-bright); }

.social-row { display: flex; gap: 0.9rem; margin-top: 2rem; }
.social-row a {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--steel-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--steel-light);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-row a:hover { border-color: var(--red); color: var(--red-bright); transform: translateY(-2px); }
.social-row svg { width: 20px; height: 20px; }

.contact-form {
  background: linear-gradient(180deg, var(--charcoal-2), var(--charcoal));
  border: 1px solid var(--steel-line);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }
.contact-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel-mid);
  margin-bottom: 0.4rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--black);
  border: 1px solid var(--steel-line);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  color: var(--warm-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--red); outline: none; }
.contact-form .btn { align-self: flex-start; margin-top: 0.4rem; border: none; }
.form-note { font-family: var(--font-mono); font-size: 0.7rem; color: var(--steel-mid); opacity: 0.75; }
.form-status { font-family: var(--font-mono); font-size: 0.85rem; min-height: 1.2em; }
.form-status.ok { color: #4fbf6b; }
.form-status.err { color: var(--red-bright); }

/* --------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--steel-line);
  padding: 3rem 0 2rem;
  background: var(--black);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
}
.footer-logo img { height: 52px; width: auto; }
.footer-links { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel-mid);
}
.footer-links a:hover { color: var(--steel-light); }
.footer-bottom {
  border-top: 1px solid var(--steel-line);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel-mid);
  opacity: 0.8;
}
