/*
Theme Name: Soucek Racing
Description: Custom motorsport theme for soucekracing.com - hero-driven homepage, driver hero cards, and a sponsor profile system.
Version: 1.0
Author: Soucek Racing
*/

:root {
  --bg: #0d0d0d;
  --bg-alt: #161616;
  --card: #1e1e1e;
  --accent: #e03131;
  --accent-dim: rgba(224, 49, 49, 0.15);
  --text: #f2f2f2;
  --muted: #b0b0b0;
  --faint: #8a8a8a;
  --border: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  margin: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}

.site-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.site-logo span { color: var(--accent); }

.site-logo-image img {
  max-height: 48px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.main-nav li {
  position: relative;
  display: flex;
  align-items: center;
}

.main-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus { color: var(--text); }

/* Dropdown submenus (Appearance > Menus sub-items) */
.main-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  flex-direction: column;
  gap: 0;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 0;
  margin-top: 12px;
  display: none;
  z-index: 20;
}

.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu {
  display: flex;
}

.main-nav .sub-menu a {
  display: block;
  padding: 9px 16px;
  white-space: nowrap;
}

.main-nav .sub-menu a:hover { background: var(--card); }

.main-nav li.menu-item-has-children > a::after {
  content: '\25BE';
  margin-left: 5px;
  font-size: 10px;
}

.main-nav a:hover { color: var(--text); }

/* Hero */
.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  overflow: hidden;
  background-color: #0a0a0a;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  transition: opacity 1.2s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.15) 65%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.hero-dots {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 20px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--accent);
}

.hero-eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 16px;
  line-height: 1.1;
}

.hero-content h1 .highlight { color: var(--accent); }

.hero-cta {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 4px;
}

/* Schedule strip */
.schedule-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  background: var(--bg-alt);
}

.schedule-strip .event {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
}

.event .date { color: var(--accent); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.event .name { font-size: 1.15rem; text-transform: uppercase; margin-top: 4px; }
.event .venue { color: var(--muted); font-size: 13px; margin-top: 2px; }

.schedule-footer {
  text-align: center;
  padding: 16px;
  font-size: 13px;
}

.schedule-footer a { color: var(--accent); font-weight: 600; }

/* Section headings */
.section {
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Page banner (archive headers) */
.page-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 24px;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.page-banner-sub {
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0;
}

/* Sponsor tier grouping */
.tier-heading {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

/* Title sponsor spotlight */
.sponsor-spotlight {
  position: relative;
  display: block;
  min-height: 280px;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #161616;
}

.sponsor-spotlight-overlay {
  position: relative;
  height: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.35) 70%);
}

.sponsor-tier-title {
  align-self: flex-start;
  margin-bottom: auto;
}

.sponsor-spotlight-body {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
}

.sponsor-spotlight-logo {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.sponsor-spotlight-name {
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* Driver hero cards */
.driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.driver-card {
  position: relative;
  height: 340px;
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #1a1a1a;
}

.driver-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92), transparent 60%);
}

.driver-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 20px;
}

.driver-tag {
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.driver-name { font-size: 1.4rem; text-transform: uppercase; margin: 4px 0 2px; }
.driver-class { color: var(--muted); font-size: 13px; }

/* News teasers */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.news-card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
}

.news-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #222;
}

.news-body { padding: 16px; }
.news-cat { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; }
.news-title { font-size: 1.1rem; margin: 6px 0; text-transform: uppercase; }
.news-meta { color: var(--faint); font-size: 12px; }

/* Sponsor row (compact, homepage) */
.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px 24px;
  filter: grayscale(1);
  opacity: 0.8;
}

.sponsor-row img { max-height: 48px; }

/* Sponsor archive grid */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.sponsor-card {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sponsor-logo {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.sponsor-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.sponsor-name { font-size: 1rem; font-weight: 600; text-transform: uppercase; }

.sponsor-tier {
  background: var(--accent-dim);
  color: #ff8787;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
}

.sponsor-blurb { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.sponsor-link { color: var(--accent); font-size: 13px; font-weight: 600; }

/* Single sponsor / driver pages */
.single-hero {
  padding: 60px 24px 40px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.single-hero img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: var(--card);
}

.single-hero h1 { font-size: 2.2rem; text-transform: uppercase; margin: 0 0 6px; }
.single-hero .subtitle { color: var(--muted); font-size: 14px; }

.single-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 60px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.single-body p { margin: 0 0 1.2em; }

/* Blog / archive */
.post-list { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.post-list article { border-bottom: 1px solid var(--border); padding: 24px 0; }
.post-list h2 { text-transform: uppercase; font-size: 1.4rem; margin: 0 0 8px; }
.post-list .news-meta { margin-bottom: 10px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--faint);
  font-size: 13px;
}
