/* ============================================================
   Moss Street Performance — styles
   ============================================================ */
:root {
  --bg: #0e0f12;
  --bg-2: #15171c;
  --surface: #1b1e25;
  --line: #2a2e38;
  --text: #e9ecf1;
  --muted: #a3abb8;
  --accent: #e63329;        /* performance red */
  --accent-2: #ff6a3d;      /* warm orange */
  --accent-dark: #b81f17;
  --light: #f5f6f8;
  --light-text: #1a1c20;
  --radius: 12px;
  --maxw: 1140px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.4px;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); text-transform: uppercase; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.center { text-align: center; margin-top: 2.5rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  margin: 0 0 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.92rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.12s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-ghost-dark { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost-dark:hover { border-color: var(--accent-2); color: var(--accent-2); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 18, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 108px;
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-logo { height: 92px; width: auto; display: block; }
.footer-logo { height: 110px; margin-bottom: 0.5rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  border-radius: 8px;
  letter-spacing: 1px;
  font-size: 1rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.15rem; text-transform: uppercase; }
.brand-sub {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-2);
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a {
  color: var(--muted);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.95rem;
}
.site-nav a:hover, .site-nav a.active { color: #fff; text-decoration: none; }
.site-nav a.active { color: var(--accent-2); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--text);
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(120% 120% at 70% 10%, rgba(230, 51, 41, 0.22), transparent 55%),
    linear-gradient(180deg, #0b0c0f 0%, #15171c 100%);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.025) 0 2px, transparent 2px 28px);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding-top: 3rem; padding-bottom: 3rem; }
.hero h1 { margin-bottom: 1rem; }
.hero-lead { font-size: 1.15rem; color: var(--muted); max-width: 600px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.8rem 0 2.5rem; }
.hero-stats {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  color: var(--accent-2);
  line-height: 1;
}
.hero-stats span { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-2); }
.section-light { background: var(--light); color: var(--light-text); }
.section-light .eyebrow { color: var(--accent); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; }
.section-light .section-sub { color: #5a606b; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.service-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  background: rgba(230, 51, 41, 0.12);
  color: var(--accent-2);
  border-radius: 10px;
  margin-bottom: 1.2rem;
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.about-strip .about-copy p { color: var(--muted); }
.photo-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(230, 51, 41, 0.25), rgba(255, 106, 61, 0.1)),
    repeating-linear-gradient(45deg, #1d2028 0 12px, #20242d 12px 24px);
  border: 1px solid var(--line);
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.25rem;
}
.photo-placeholder.tall { aspect-ratio: 3 / 4; }
.photo-placeholder span { font-family: 'Oswald', sans-serif; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 1px; }
.photo-placeholder small { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 0.7rem; }

/* ---------- Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.value {
  padding: 1.75rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.value h3 { color: var(--accent-2); }
.value p { color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: start;
}
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.steps li { display: flex; gap: 1.1rem; margin-bottom: 1.6rem; }
.step-num {
  flex: none;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
}
.steps h3 { margin-bottom: 0.2rem; }
.steps p { color: #5a606b; margin: 0; }
.quote-aside {
  background: var(--bg-2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  position: sticky;
  top: 124px;
}
.quote-aside h3 { color: #fff; }
.quote-aside p { color: var(--muted); }
.quote-call { display: block; margin-top: 1rem; text-align: center; color: var(--muted); }

/* ---------- Page hero ---------- */
.page-hero {
  padding: 4rem 0 3rem;
  background:
    radial-gradient(100% 120% at 80% 0%, rgba(230, 51, 41, 0.18), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.page-hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 640px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.gi-1 { background: repeating-linear-gradient(45deg, #1d2028 0 14px, #232733 14px 28px); }
.gi-2 { background: linear-gradient(135deg, #2a1714, #3a1d18); }
.gi-3 { background: linear-gradient(135deg, #181c26, #20283a); }
.gi-4 { background: linear-gradient(135deg, #241c12, #2e2415); }
.gallery-tag {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  background: var(--accent);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}
.gallery-item figcaption {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
}
.gallery-note { text-align: center; color: var(--muted); margin-top: 2rem; font-size: 0.9rem; }
.gallery-note code { background: var(--surface); padding: 0.15rem 0.4rem; border-radius: 4px; color: var(--accent-2); }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--accent-dark), var(--accent)); }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 1.25rem;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; margin: 0; }
.cta p { color: rgba(255, 255, 255, 0.9); margin: 0.5rem 0 0; }
.cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: var(--accent-dark); border-color: #fff; }
.cta .btn-primary:hover { background: #f0f0f0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.field { margin-bottom: 1.2rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.9rem; }
.field label span { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 51, 41, 0.18);
}
.field .invalid { border-color: var(--accent); }
.err { color: #ff8a7a; font-size: 0.82rem; margin-top: 0.3rem; display: block; }
.form-fineprint { color: var(--muted); font-size: 0.82rem; margin: 1rem 0 0; text-align: center; }

.alert { padding: 1.25rem 1.5rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-success { background: rgba(40, 167, 69, 0.12); border: 1px solid rgba(40, 167, 69, 0.4); }
.alert-success h3 { color: #5fd17a; }
.alert-error { background: rgba(230, 51, 41, 0.12); border: 1px solid rgba(230, 51, 41, 0.4); color: #ff8a7a; }

.contact-info { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.contact-info h3 { color: var(--accent-2); margin-top: 1.5rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-list, .hours-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 1rem; display: flex; flex-direction: column; }
.ci-label { text-transform: uppercase; letter-spacing: 1px; font-size: 0.72rem; color: var(--muted); }
.hours-list li { display: flex; justify-content: space-between; padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.hours-list li:last-child { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0b0e; border-top: 1px solid var(--line); padding: 3.5rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand { margin-bottom: 1rem; }
.footer-tag { color: var(--accent-2); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.footer-owner { color: var(--muted); font-size: 0.9rem; }
.footer-col h4 { text-transform: uppercase; letter-spacing: 1px; font-size: 0.95rem; color: #fff; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 0.55rem; color: var(--muted); font-size: 0.92rem; display: flex; justify-content: space-between; gap: 1rem; }
.footer-list a { color: var(--muted); }
.footer-list a:hover { color: var(--accent-2); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--line);
  color: #6b727e;
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }

.error-page { text-align: center; padding: 3rem 0; }
.error-page .eyebrow { font-size: 1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .brand-logo { height: 68px; }
  .header-inner { min-height: 88px; }
  .site-nav {
    position: fixed;
    inset: 88px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.28s ease;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 0.75rem; }
  .about-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
