/* Turn4 hub — shopturn4.com
   Dark, restrained, one brand system across niches. */

:root {
  --bg: #0e1113;
  --panel: #16191c;
  --panel-edge: #262b2f;
  --text: #f2f4f3;
  --muted: #9aa3a8;
  --green: #1fae62;   /* Turn4 brand green (from the Turn4 Diesel mark) */
  --red: #e0322c;     /* Outlaw race red */
  --amber: #d97706;   /* Outdoors */
  --teal: #0e9594;    /* Health + Fitness */
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--panel-edge);
  background: #0b0d0f;
}

.header-inner {
  padding-top: 22px;
  padding-bottom: 22px;
}

.wordmark { display: flex; flex-direction: column; gap: 2px; }

.wordmark-text {
  font-size: 2.4rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text);
}

.wordmark-num { color: var(--green); }

.wordmark-tag {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero { padding: 48px 0 8px; text-align: center; }

.hero h1 {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-sub { margin: 0; color: var(--muted); font-size: 1rem; }

/* ---------- Store tiles ---------- */

.stores { padding: 32px 0 8px; }

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tile {
  display: flex;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  min-height: 148px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.tile:hover, a.tile:focus-visible {
  border-color: #3d444a;
  transform: translateY(-2px);
  outline: none;
}

.tile-accent { flex: 0 0 8px; }
.tile-diesel  .tile-accent { background: var(--green); }
.tile-outlaw  .tile-accent { background: var(--red); }
.tile-outdoors .tile-accent { background: var(--amber); }
.tile-health  .tile-accent { background: var(--teal); }

.tile-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  min-width: 0;
}

.tile-name { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }

.tile-desc { color: var(--muted); font-size: 0.98rem; flex: 1; }

.tile-cta { font-weight: 700; font-size: 0.95rem; margin-top: 4px; }
.tile-diesel  .tile-cta { color: var(--green); }
.tile-outlaw  .tile-cta { color: #f0564f; }
.tile-outdoors .tile-cta { color: #e8930c; }
.tile-cta-soon { color: var(--muted); }

.badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 9px;
  border: 1px solid var(--teal);
  border-radius: 999px;
  color: #37c4c3;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tile.is-soon { opacity: 0.75; cursor: default; }

/* ---------- Reps line ---------- */

.reps-line {
  margin: 30px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--panel-edge);
  background: #0b0d0f;
  padding: 22px 0 30px;
}

.footer-line {
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-line a { color: var(--muted); text-decoration: underline; }
.footer-line a:hover { color: var(--text); }

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .tile-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 36px 0 4px; }
  .hero h1 { font-size: 1.6rem; }
  .wordmark-text { font-size: 2rem; }
  .tile { min-height: 0; }
  .tile-body { padding: 20px 18px 18px; }
}
