/* Online Motorsport Academy — Website Styles */

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

/* Design Tokens */
:root {
  --bg:      hsl(220, 20%, 8%);
  --bg-alt:  hsl(220, 20%, 10%);
  --card:    hsl(220, 18%, 12%);
  --card-2:  hsl(220, 16%, 15%);
  --fg:      hsl(0, 0%, 98%);
  --fg-muted: hsl(220, 10%, 60%);
  --primary: hsl(0, 85%, 55%);
  --primary-dark: hsl(0, 75%, 35%);
  --gold:    hsl(45, 90%, 50%);
  --orange:  hsl(25, 95%, 55%);
  --border:  hsl(220, 15%, 22%);
  --gradient-racing: linear-gradient(135deg, hsl(0 85% 55%) 0%, hsl(0 75% 35%) 100%);
  --gradient-carbon: linear-gradient(180deg, hsl(220 20% 12%) 0%, hsl(220 20% 6%) 100%);
  --shadow-racing: 0 4px 24px -4px hsl(0 85% 55% / 0.35);
  --shadow-card: 0 2px 16px hsl(220 20% 3% / 0.6);
  --radius: 0.75rem;
  --nav-height: 64px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: hsl(220, 20%, 6% / 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 100;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.nav-logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.nav-logo-text span {
  display: block;
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-radius: calc(var(--radius) * 0.6);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--fg);
  background: var(--card);
  text-decoration: none;
}

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

.nav-cta {
  margin-left: 0.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: calc(var(--radius) * 0.75);
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-racing);
  color: #fff;
  box-shadow: var(--shadow-racing);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: hsl(0 85% 55% / 0.1); }

.btn-lg { padding: 0.85rem 2rem; font-size: 1.1rem; }

/* ── PAGE LAYOUT ── */
.page-content {
  padding-top: var(--nav-height);
}

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

section { padding: 5rem 0; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100svh - var(--nav-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../public/content/images/circuit-racing.png');
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.2) saturate(0.7);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    hsl(220 20% 8% / 0.95) 0%,
    hsl(220 20% 8% / 0.7) 55%,
    hsl(220 20% 8% / 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsl(0 85% 55% / 0.15);
  border: 1px solid hsl(0 85% 55% / 0.35);
  color: var(--primary);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.hero h1 em {
  font-style: normal;
  background: var(--gradient-racing);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── FEATURE STRIP ── */
.feature-strip {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}

.feature-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
}

.strip-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.strip-label {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

/* ── SECTION HEADINGS ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: hsl(0 85% 55% / 0.5); transform: translateY(-2px); }

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

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ── GRID LAYOUTS ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

/* ── ACCENT SECTION ── */
.accent-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── RED BANNER ── */
.red-banner {
  background: var(--gradient-racing);
  padding: 4rem 0;
  text-align: center;
}

.red-banner h2 { color: #fff; margin-bottom: 1rem; }
.red-banner p  { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.1rem; }

/* ── STAT BOXES ── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: hsl(0 85% 55% / 0.08);
  border: 1px solid hsl(0 85% 55% / 0.25);
  border-radius: var(--radius);
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ── STORE BUTTONS ── */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.85);
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--fg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.store-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-racing);
  text-decoration: none;
  color: var(--fg);
}

.store-btn-icon { font-size: 2rem; line-height: 1; }

.store-btn-text-small {
  display: block;
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.store-btn-text-big {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

/* ── FEATURE LIST ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--fg-muted);
  font-size: 1rem;
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 0.45em;
}

/* ── DIVIDER ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gradient-racing);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}

/* ── HERO IMAGE SIDE ── */
.app-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
}

.mockup-phone {
  width: 220px;
  aspect-ratio: 9/19;
  background: var(--card);
  border: 3px solid var(--border);
  border-radius: 2rem;
  box-shadow: 0 8px 40px hsl(0 85% 55% / 0.25), 0 2px 12px hsl(220 20% 3% / 0.7);
  overflow: hidden;
  position: relative;
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--gradient-carbon);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-racing);
}

.page-hero p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin-top: 0.75rem;
}

/* ── TEAM / ABOUT ── */
.team-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.team-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--gradient-racing);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

/* ── FOOTER ── */
.footer {
  background: hsl(220, 20%, 5%);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(2, 1fr);
  gap: 3rem;
}

.footer-brand p {
  color: var(--fg-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--fg-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); text-decoration: none; }

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom p {
  color: var(--fg-muted);
  font-size: 0.85rem;
}

/* ── RACING STRIPE ACCENT ── */
.stripe-accent {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--primary) 0px,
    var(--primary) 24px,
    var(--gold) 24px,
    var(--gold) 32px
  );
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta   { margin-left: auto; }

  .hero { min-height: auto; padding: 3rem 0 4rem; }
  .hero-overlay {
    background: linear-gradient(to bottom,
      hsl(220 20% 8% / 0.9) 0%,
      hsl(220 20% 8% / 0.75) 100%
    );
  }
  .hero h1 { font-size: 2rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }

  section { padding: 3rem 0; }
  .store-buttons { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .nav { padding: 0 1rem; }
  .container { padding: 0 1rem; }
}

/* ── CONTACT PAGE ── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
}

.contact-form-wrap {
  min-width: 0;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  padding: 1.5rem 1.75rem;
}

.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-info-card p {
  color: var(--fg-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-email-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  word-break: break-all;
}

/* ── FORM ELEMENTS ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.form-required {
  color: var(--primary);
}

.form-input {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 0.75);
  color: var(--fg);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0.7rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.form-input::placeholder {
  color: hsl(220, 10%, 40%);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsl(0 85% 55% / 0.15);
  outline: none;
}

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

.form-char-count {
  align-self: flex-end;
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

.contact-submit {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

.contact-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-alert {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: calc(var(--radius) * 0.75);
  font-size: 0.95rem;
  line-height: 1.5;
}

.form-alert-success {
  background: hsl(140 60% 30% / 0.2);
  border: 1px solid hsl(140 60% 40% / 0.4);
  color: hsl(140 60% 75%);
}

.form-alert-error {
  background: hsl(0 85% 55% / 0.12);
  border: 1px solid hsl(0 85% 55% / 0.35);
  color: hsl(0 85% 75%);
}

/* hCaptcha container alignment */
.h-captcha {
  display: inline-block;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .contact-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .contact-info-card {
    flex: 1 1 260px;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-sidebar {
    flex-direction: column;
  }
}
