/* ============================================================
   site.css
   Version: v1.0.0001
   Shared design system for thetrackcoach.com public pages.
   Palette matches the existing SpinUp-scaffolded dark theme
   (--bg/--bg2/--card/--accent already used in index.php/terms.php/
   privacy.php) plus an orange highlight pulled from the live
   WordPress site's testimonials page.
   CHANGELOG:
   v1.0.0001 — Desktop hero tweak: wider/left-shifted inner container
               so hero text sits closer to the left edge on wide
               viewports; shifted background-position down to
               center the car vertically instead of cropping its
               lower body.
   v1.0.0000 — Initial build (WordPress -> PHP rebuild)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #0d0d0d;
  --bg2: #14161c;
  --card: #1a1c22;
  --card-border: #2a2d36;
  --text: #f5f6f8;
  --muted: #9a9ea8;
  --accent: #2f6bff;
  --accent-dark: #1f4fd1;
  --accent2: #e8703a;
  --border: #333;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

a { color: var(--accent); }

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar / nav ---------- */

.site-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.65), rgba(0,0,0,0));
}

.site-topbar.solid {
  background: var(--bg2);
  border-bottom: 1px solid var(--card-border);
  padding: 14px 32px;
}

.site-wordmark {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: #f0f1f4;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  border-color: var(--card-border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

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

.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 80%;
  padding: 140px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.55) 45%, rgba(0,0,0,0.25) 100%);
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: none;
  margin: 0;
  padding: 0 32px 0 10%;
}

.hero-content { max-width: 560px; }

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: #fff;
  margin-bottom: 20px;
}

.hero p {
  color: #dcdfe6;
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* ---------- Page banner (interior pages) ---------- */

.page-banner {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin-top: 0;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.page-banner h1 {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 2.2rem;
  text-align: center;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-alt { background: var(--bg2); }

.eyebrow {
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}

.section-heading {
  text-align: center;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-lead {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
  color: var(--muted);
}

/* ---------- Two-column layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 780px) {
  .split { grid-template-columns: 1fr; }
}

.split img { border-radius: 14px; }

.service-list {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
}

.service-list li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--card-border);
  position: relative;
}

.service-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
}

.stars { color: #f5b942; margin-bottom: 14px; letter-spacing: 2px; }

.testimonial-quote {
  color: #e4e6eb;
  font-size: 0.96rem;
  margin-bottom: 16px;
}

.testimonial-attr {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Coach profile ---------- */

.coach-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: center;
}

.coach-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

@media (max-width: 640px) {
  .coach-card { grid-template-columns: 1fr; text-align: center; }
  .coach-card img { width: 160px; margin: 0 auto; }
}

/* ---------- CTA banner ---------- */

.cta-banner {
  text-align: center;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  border-radius: 20px;
  padding: 56px 32px;
  margin: 0 24px;
}

.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.9); margin-bottom: 28px; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.6); color: #fff; }
.cta-banner .btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.form-field .req { color: var(--accent2); }

.form-field input,
.form-field textarea {
  background: #0f1115;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 10px;
}

.alert {
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
  font-size: 0.95rem;
}
.alert-success { background: rgba(63,180,116,0.12); border: 1px solid rgba(63,180,116,0.4); color: #7fe3a4; }
.alert-error { background: rgba(232,72,72,0.1); border: 1px solid rgba(232,72,72,0.4); color: #ff9a9a; }

/* honeypot field — hidden from real users, catches basic bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

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

.site-footer {
  background: #08090c;
  border-top: 1px solid var(--card-border);
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer-blurb { color: var(--muted); max-width: 440px; }

.social-row { display: flex; gap: 16px; margin-top: 20px; }
.social-row a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
}
.social-row a:hover { border-color: var(--accent); color: var(--accent); }

.footer-form .form-field { margin-bottom: 12px; }

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--muted); text-decoration: none; margin-left: 16px; }
.footer-bottom a:hover { color: var(--text); }
