/* ============================================================
   STG Automotive — global styles (mobile-first)
   Palette: charcoal / black, bold red, silver & white
   ============================================================ */

:root {
  --bg: #0b0b0d;
  --bg-2: #121215;
  --card: #17171b;
  --card-2: #1c1c21;
  --line: #2a2a31;
  --line-soft: #222228;
  --text: #f3f4f6;
  --muted: #a9adb8;
  --silver: #c9cdd6;
  --red: #e0102a;
  --red-bright: #ff2e44;
  --red-dark: #a50b20;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --max: 1120px;
  --header-h: 64px;
  --bottom-bar-h: 62px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.2rem; }

p { color: var(--muted); }

a { color: var(--red-bright); text-decoration: none; }
a:hover { color: #ff5566; }

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

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--red); color: #fff; padding: 0.6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; color: #fff; }

/* ---------------------------------------------------------- header --- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 1rem;
}

.brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.brand-logo { height: 54px; width: auto; display: block; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.site-nav { margin-left: auto; }
@media (max-width: 859px) { .brand-logo { height: 44px; } }

.nav-toggle {
  background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--silver); width: 44px; height: 40px; cursor: pointer;
  display: grid; place-items: center;
}
.nav-toggle:hover { border-color: var(--red); color: #fff; }
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav {
  display: none;
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: #0e0e11; border-bottom: 1px solid var(--line);
  padding: 0.5rem 1.25rem 1rem;
  flex-direction: column;
}
.site-nav.open { display: flex; }
.site-nav a {
  color: var(--text); font-weight: 600; padding: 0.75rem 0.25rem;
  border-bottom: 1px solid var(--line-soft); letter-spacing: 0.03em;
}
.site-nav a:last-child { border-bottom: none; }
.site-nav a[aria-current="page"] { color: var(--red-bright); }

.header-call {
  display: none;
  background: var(--red); color: #fff; font-weight: 700;
  padding: 0.55rem 1.1rem; border-radius: 9px; white-space: nowrap;
  letter-spacing: 0.02em; align-items: center; gap: 0.45rem;
  transition: background 0.2s, transform 0.2s;
}
.header-call:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); }
.header-call svg { width: 16px; height: 16px; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; background: none; border: none; padding: 0;
    flex-direction: row; gap: 1.4rem;
  }
  .site-nav a { border: none; padding: 0.25rem 0; font-size: 0.95rem; }
  .site-nav a:hover { color: var(--red-bright); }
  .header-call { display: inline-flex; }
}

/* --------------------------------------------------------- buttons --- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; letter-spacing: 0.03em; padding: 0.85rem 1.5rem;
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; font-size: 1rem; transition: transform 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
  text-transform: uppercase; font-family: inherit;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--silver); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: var(--red-bright); color: #fff; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------- mobile fixed call/book bar --- */

.mobile-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(14, 14, 17, 0.97); border-top: 1px solid var(--line);
  height: var(--bottom-bar-h);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.9rem;
}
.mobile-bar a svg { width: 18px; height: 18px; }
.mobile-bar .call { color: var(--silver); }
.mobile-bar .book { background: var(--red); color: #fff; }

@media (min-width: 860px) { .mobile-bar { display: none; } }

/* ---------------------------------------------------------- sections --- */

section { padding: 3.2rem 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line-soft); }

.eyebrow {
  color: var(--red-bright); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.22em; font-size: 0.72rem; margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--red); }

.section-head { max-width: 640px; margin-bottom: 2rem; }
.section-head p { margin-top: 0.6rem; }
.section-center { margin-inline: auto; text-align: center; }
.section-center .eyebrow { justify-content: center; }
.section-center .eyebrow::before { display: none; }

/* ------------------------------------------------------------- hero --- */

.hero {
  position: relative; padding: 4.5rem 0 4rem; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 11, 13, 0.72) 0%, rgba(11, 11, 13, 0.88) 70%, var(--bg) 100%),
    url('/img/hero-workshop.png') center 42% / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero .container { position: relative; }
.hero h1 { font-size: 2.9rem; margin: 0.4rem 0 0.8rem; }
.hero h1 .accent { color: var(--red-bright); }
.hero .lede { font-size: 1.08rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }

.open-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.9rem; font-size: 0.85rem; font-weight: 600; color: var(--silver);
  background: rgba(255, 255, 255, 0.03);
}
.open-badge .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #6c757d; flex: none;
}
.open-badge.is-open { border-color: rgba(46, 204, 113, 0.5); }
.open-badge.is-open .dot { background: #2ecc71; box-shadow: 0 0 8px rgba(46, 204, 113, 0.7); }
.open-badge.is-closed .dot { background: #e74c3c; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-top: 1.5rem;
  color: var(--muted); font-size: 0.92rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-meta svg { width: 15px; height: 15px; color: var(--red-bright); flex: none; }

/* --------------------------------------------------------- cards & grids --- */

.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3-lg { grid-template-columns: repeat(3, 1fr); } }

.card-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
}

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); transform: scaleY(0); transform-origin: top;
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: #3a3a44; box-shadow: var(--shadow); }
.card:hover::after { transform: scaleY(1); }

.card h3 { margin: 0.8rem 0 0.5rem; }
.card p { font-size: 0.95rem; }

.icon-wrap {
  width: 46px; height: 46px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(224, 16, 42, 0.12); border: 1px solid rgba(224, 16, 42, 0.35);
  color: var(--red-bright);
}
.icon-wrap svg { width: 24px; height: 24px; }

.card-link {
  display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem;
  font-weight: 700; font-size: 0.88rem; text-transform: uppercase; letter-spacing: 0.08em;
}
.card-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.card-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------- why us --- */

.why-list { display: grid; gap: 1rem; }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .why-list { grid-template-columns: repeat(4, 1fr); } }
.why-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.why-item p { font-size: 0.93rem; margin-top: 0.25rem; }

/* --------------------------------------------------------- vinyl feature --- */

.vinyl-feature {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(224, 16, 42, 0.22), transparent 65%),
    linear-gradient(135deg, #17171b, #101013);
  border: 1px solid var(--line);
  padding: 2.2rem 1.5rem;
  display: grid; gap: 1.5rem;
}
.vinyl-feature h2 { margin-bottom: 0.6rem; }
.vinyl-feature p { max-width: 620px; }
.vinyl-img { margin: 0; }
.vinyl-img img {
  width: 100%; height: 100%; min-height: 220px; object-fit: cover;
  border-radius: 10px; border: 1px solid var(--line); display: block;
}
.vinyl-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0 1.5rem; }
.chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem;
  font-size: 0.85rem; color: var(--silver); background: rgba(255,255,255,0.03);
}
@media (min-width: 860px) {
  .vinyl-feature { padding: 3rem; grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .vinyl-img img { height: 320px; }
}

/* --------------------------------------------------------- info strips --- */

.info-strip {
  display: grid; gap: 1.2rem;
}
@media (min-width: 760px) { .info-strip { grid-template-columns: repeat(3, 1fr); } }
.info-block h3 { font-size: 1rem; letter-spacing: 0.12em; color: var(--silver); margin-bottom: 0.7rem; }
.info-block ul { list-style: none; }
.info-block li { padding: 0.35rem 0; color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line-soft); }
.info-block li strong { color: var(--text); font-weight: 600; }
.info-block address { font-style: normal; color: var(--muted); line-height: 1.8; }
.info-block a { word-break: break-word; }

.hours-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* --------------------------------------------------------- page hero (inner pages) --- */

.page-hero {
  padding: 3rem 0 2.4rem;
  background:
    radial-gradient(700px 320px at 80% -20%, rgba(224, 16, 42, 0.14), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { font-size: 2.3rem; margin-top: 0.3rem; }
.page-hero .lede { max-width: 640px; margin-top: 0.7rem; }

/* --------------------------------------------------------- forms --- */

.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
}
@media (min-width: 760px) { .form-card { padding: 2.2rem; } }

.form-grid { display: grid; gap: 1.1rem; }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .full { grid-column: 1 / -1; }
}

.field label {
  display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 0.4rem;
  color: var(--silver); letter-spacing: 0.02em;
}
.field .req { color: var(--red-bright); }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 9px;
  padding: 0.75rem 0.9rem; font: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(224, 16, 42, 0.18);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .error-msg { display: none; color: #ff7b8a; font-size: 0.82rem; margin-top: 0.35rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff5566; }
.field.invalid .error-msg { display: block; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 9px; display: none; font-size: 0.92rem; }
.form-status.ok { display: block; background: rgba(46, 204, 113, 0.12); border: 1px solid rgba(46, 204, 113, 0.45); color: #b8ecd0; }
.form-status.err { display: block; background: rgba(224, 16, 42, 0.12); border: 1px solid rgba(224, 16, 42, 0.5); color: #ffc2c9; }
.form-status a { color: inherit; text-decoration: underline; }

/* --------------------------------------------------------- gallery --- */

.gallery { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  margin: 0; position: relative; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 12px; border: 1px solid var(--line);
  background: var(--card);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 0.85rem 0.7rem;
  background: linear-gradient(transparent, rgba(8, 8, 10, 0.92));
  font-weight: 700; font-size: 0.88rem; color: var(--silver); letter-spacing: 0.03em;
}

/* --------------------------------------------------------- about --- */

.about-figure { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about-figure img { width: 100%; }
.figure-caption { font-size: 0.8rem; color: var(--muted); padding: 0.7rem 1rem; background: var(--card); }

.approach-list { list-style: none; display: grid; gap: 1rem; counter-reset: step; }
.approach-list li {
  counter-increment: step; display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.2rem;
}
.approach-list li::before {
  content: counter(step, decimal-leading-zero);
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 1.5rem;
  color: var(--red-bright); line-height: 1.1; flex: none;
}
.approach-list h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.approach-list p { font-size: 0.92rem; }

/* --------------------------------------------------------- map --- */

.map-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 320px; border: 0; display: block; filter: grayscale(0.3) contrast(1.05); }

/* --------------------------------------------------------- footer --- */

.site-footer { background: #0a0a0c; border-top: 1px solid var(--line); padding: 2.8rem 0 calc(2rem + env(safe-area-inset-bottom)); margin-bottom: var(--bottom-bar-h); }
@media (min-width: 860px) { .site-footer { margin-bottom: 0; } }

.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .brand-logo { height: 40px; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.7rem; max-width: 320px; }
.site-footer h4 { color: var(--silver); font-size: 0.9rem; letter-spacing: 0.14em; margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; }
.site-footer li { padding: 0.2rem 0; color: var(--muted); font-size: 0.92rem; }
.site-footer li a { color: var(--muted); }
.site-footer li a:hover { color: var(--red-bright); }
.site-footer li strong { color: var(--text); font-weight: 600; }

.footer-bottom {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; justify-content: space-between;
  font-size: 0.8rem; color: #7c8089;
}
.placeholder-note { color: #7c8089; font-style: italic; }

/* --------------------------------------------------------- reveal animation --- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
