/* Racelive - Main Stylesheet */

:root {
  --primary: #e63000;
  --primary-dark: #b82500;
  --dark: #111827;
  --dark-alt: #1f2937;
  --mid: #374151;
  --light-text: #d1d5db;
  --muted: #9ca3af;
  --white: #ffffff;
  --section-bg: #f9fafb;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.7;
}

/* ── Navigation ────────────────────────────────────────── */

nav {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 60%, #2d1a00 100%);
  color: var(--white);
  padding: 7rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(230,48,0,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero-label {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.15rem;
  color: var(--light-text);
  max-width: 620px;
  margin: 0 auto 2.25rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(230,48,0,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  margin-left: 0.75rem;
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}

/* ── Section Shared Styles ─────────────────────────────── */

section {
  padding: 5rem 1.5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark);
}

.section-intro {
  color: var(--mid);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ── Feature Cards ─────────────────────────────────────── */

.features {
  background: var(--section-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-top: 4px solid var(--primary);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--dark);
}

.card p {
  color: var(--mid);
  font-size: 0.95rem;
}

/* ── Detail Sections ───────────────────────────────────── */

.detail-section .detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.detail-section .detail-block:last-child {
  margin-bottom: 0;
}

.detail-block.reverse {
  direction: rtl;
}

.detail-block.reverse > * {
  direction: ltr;
}

.detail-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--dark);
}

.detail-text p {
  color: var(--mid);
  margin-bottom: 1rem;
}

.detail-text ul {
  list-style: none;
  padding: 0;
}

.detail-text ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--mid);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.detail-text ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.detail-visual {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
  border-radius: 0.75rem;
  padding: 2.5rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-visual::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 160px;
  height: 160px;
  background: rgba(230,48,0,0.2);
  border-radius: 50%;
}

.detail-visual .visual-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
}

.detail-visual h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.detail-visual p {
  font-size: 0.9rem;
  color: var(--light-text);
}

/* ── Stats Bar ─────────────────────────────────────────── */

.stats-bar {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
}

.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

/* ── CTA Banner ────────────────────────────────────────── */

.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 4rem 1.5rem;
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.75rem;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* ── Contact Page ──────────────────────────────────────── */

.contact-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
  color: var(--white);
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.contact-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 900;
}

.contact-hero p {
  color: var(--light-text);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0.75rem auto 0;
}

.contact-section {
  background: var(--section-bg);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.info-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--white);
}

.info-item h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.info-item p,
.info-item a {
  color: var(--dark);
  font-size: 0.97rem;
  text-decoration: none;
}

.info-item a:hover {
  color: var(--primary);
}

.about-box {
  background: var(--dark);
  color: var(--white);
  border-radius: 0.75rem;
  padding: 1.75rem;
  margin-top: 2rem;
}

.about-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.about-box p {
  font-size: 0.95rem;
  color: var(--light-text);
  line-height: 1.6;
}

/* ── Contact Form ──────────────────────────────────────── */

.contact-form-wrap {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.contact-form-wrap h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 0.4rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--dark);
  transition: border-color 0.2s;
  background: #fafafa;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

/* ── Footer ────────────────────────────────────────────── */

footer {
  background: var(--dark);
  color: var(--muted);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
}

footer a {
  color: var(--light-text);
  text-decoration: none;
}

footer a:hover {
  color: var(--primary);
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 768px) {
  .detail-section .detail-block,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .detail-block.reverse {
    direction: ltr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 1.25rem;
  }

  section {
    padding: 3.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .btn-outline {
    display: none;
  }
}
