/*
Theme Name: StuntRide
Theme URI: https://stuntride.co.za
Description: Dark, modern single-page splash site for the StuntRide street stunt-ride group. Riding etiquette & rules.
Author: StuntRide
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: stuntride
*/

/* ---------- Tokens ---------- */
:root {
  --bg:        #0D0D0D;
  --bg-2:      #121214;
  --card:      #161618;
  --card-edge: #232327;
  --text:      #e9e9ec;
  --muted:     #9a9aa2;
  --accent:    #ff1a2e;
  --accent-dk: #c8101f;
  --radius:    14px;
  --maxw:      980px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}
.hero__inner { padding: 0; display: flex; justify-content: center; }
.hero__banner {
  width: 100%;
  min-width: 450px;
  max-width: 1000px;
  flex: 0 0 auto;
}

/* ---------- Sections ---------- */
.rules { padding: 28px 0 24px; margin-top: -80px; position: relative; z-index: 1; }
@media (min-width: 721px) { .rules { margin-top: -120px; } }
.rules__head { text-align: center; margin-bottom: 42px; }
.rules__head h2 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin: 0 0 10px;
}
.rules__head h2 span { color: var(--accent); }
.rules__head p { color: var(--muted); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 720px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--card-edge);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--accent-dk); transform: translateY(-2px); }
.card__num {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.card h3 {
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.22rem;
  margin: 6px 0 16px;
}
.card ul { list-style: none; margin: 0; padding: 0; }
.card li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
  color: #d2d2d8;
  font-size: 0.97rem;
}
.card li:last-child { margin-bottom: 0; }
.card li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 8px; height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(255,26,46,0.6);
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 56px;
  border-top: 1px solid var(--card-edge);
  padding: 30px 0 44px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.foot strong { color: var(--text); font-family: "Oswald", sans-serif; letter-spacing: 0.05em; }
.foot .safe { color: var(--accent); font-family: "Oswald", sans-serif; text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem; }
.foot__powered { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }
.foot__powered a { color: var(--text); font-weight: 600; }
.foot__powered a:hover { color: var(--accent); }
