/* Redline Racing Alliance website styles */

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #05070b;
  color: #f5f5f5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: #060911;
  border-bottom: 2px solid #e10600;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  height: 60px;
  width: auto;
}

.brand-text h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tagline {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: #cfd3df;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.nav-list a {
  color: #f5f5f5;
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nav-list a:hover {
  background: #e10600;
  border-color: #ff2d1a;
}

.hero {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(5,7,11,0.9), rgba(20,24,36,0.9)),
    url('hero_bg.png') center/cover no-repeat;
}

.hero-overlay {
  padding: 3rem 1.5rem;
  max-width: 800px;
}

.hero h2 {
  margin: 0 0 0.75rem;
  font-size: 2.1rem;
}

.hero-tagline {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  color: #cfd3df;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.content {
  max-width: 1000px;
  width: 100%;
  margin: 1.75rem auto 2.5rem;
  padding: 0 1.25rem;
}

.page-title {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  border-left: 4px solid #e10600;
  padding-left: 0.75rem;
}

.card {
  background: #0b0f18;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.card h2, .card h3 {
  margin-top: 0;
}

.grid.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #1a2133;
}

th {
  text-align: left;
  background: #101626;
  color: #f5f5f5;
  font-weight: 600;
}

tr:nth-child(even) td {
  background: #080c14;
}

.button {
  display: inline-block;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}

.button.primary {
  background: #e10600;
  color: #fff;
  border-color: #ff2d1a;
}

.button.primary:hover {
  background: #ff2d1a;
}

.button.secondary {
  background: transparent;
  color: #f5f5f5;
  border-color: #cfd3df;
}

.button.secondary:hover {
  background: #cfd3df;
  color: #05070b;
}

.social-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
}

.social-list li {
  margin-bottom: 0.35rem;
}

.iframe-wrapper iframe {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #000;
}

.site-footer {
  background: #060911;
  color: #cfd3df;
  text-align: center;
  padding: 1rem;
  margin-top: auto;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .grid.two-columns {
    grid-template-columns: 1fr;
  }

  .hero-overlay {
    padding: 2.25rem 1.25rem;
  }

  .hero h2 {
    font-size: 1.75rem;
  }
}
