/*
Theme Name: Autobahn Edge
Theme URI: https://example.com/autobahn-edge
Author: Codex
Author URI: https://example.com
Description: A modern, performance-focused WordPress theme built for automobile brands, dealerships, and studios.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autobahn-edge
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bg: #0b0b0b;
  --bg-2: #121212;
  --card: #151515;
  --card-strong: #1c1c1c;
  --text: #f5f5f5;
  --muted: #b9b9b9;
  --accent: #f5c400;
  --accent-2: #fff3a6;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --max: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(245, 196, 0, 0.18), transparent 45%),
    radial-gradient(circle at 20% 10%, rgba(255, 243, 166, 0.12), transparent 40%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle at 20% 20%, rgba(245, 196, 0, 0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(255, 243, 166, 0.16), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.08), transparent 45%);
  z-index: -2;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 55%);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(100% - 3rem, var(--max));
  margin: 0 auto;
}

.inventory-section .container {
  width: min(100% - 2rem, 1320px);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.75rem 1rem;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
  background: rgba(8, 8, 8, 0.88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.12em;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  width: 52px;
  height: auto;
  display: block;
}

.brand-text {
  color: var(--text);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.primary-menu ul,
.fallback-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-menu a {
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  position: relative;
  transition: color 0.2s ease;
}

.primary-menu a:hover,
.primary-menu a:focus {
  color: var(--text);
}

.primary-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: left;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.primary-menu a:hover::after,
.primary-menu a:focus::after {
  opacity: 1;
  transform: scaleX(1);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-switch a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a:focus,
.lang-switch a.active {
  color: var(--accent);
}

.hero {
  position: relative;
  padding: 4.5rem 0 2.5rem;
  overflow: hidden;
  scroll-margin-top: 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(245, 196, 0, 0.18), transparent 55%),
    linear-gradient(320deg, rgba(255, 243, 166, 0.12), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -20% 10% auto 10%;
  height: 260px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  filter: blur(20px);
  opacity: 0.7;
  pointer-events: none;
}

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 32rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b0b0b;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px rgba(245, 196, 0, 0.3);
}

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1rem 1.2rem;
  background: rgba(20, 27, 36, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.stat-number {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.08em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-panel {
  position: relative;
  padding: 2.2rem;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(20, 20, 20, 0.92), rgba(10, 10, 10, 0.78));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  min-height: 380px;
  backdrop-filter: blur(10px);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 1.5rem;
  border-radius: 16px;
  background: repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 18px);
  opacity: 0.4;
}

.hero-panel .panel-content {
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.65rem;
  color: var(--muted);
}

.section {
  padding: 3.2rem 0;
  position: relative;
  scroll-margin-top: 100px;
}

.section-title {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: 0.08em;
  margin: 0;
}

.section-title p {
  color: var(--muted);
  max-width: 38rem;
  margin: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: rgba(20, 20, 20, 0.9);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.6rem;
  position: relative;
  overflow: hidden;
  min-height: 180px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(8px);
}

.inventory-embed {
  padding: 0;
  min-height: 900px;
  overflow: auto;
  border-radius: 18px;
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.inventory-embed iframe,
.inventory-embed embed,
.inventory-embed object,
.inventory-embed img,
.inventory-embed .mobilede,
.inventory-embed .mobilede-inventory {
  width: 100%;
  min-height: 900px;
  height: 900px;
  border: 0;
  display: block;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(245, 196, 0, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--muted);
  margin: 0;
}

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

.specs {
  display: grid;
  gap: 1rem;
}

.spec {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, 0.8);
}

.spec span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.spec strong {
  font-weight: 600;
}

.angled {
  background: linear-gradient(145deg, rgba(15, 23, 32, 0.92), rgba(11, 15, 20, 0.98));
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.news-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(24, 24, 24, 0.9);
  display: grid;
  gap: 0.75rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(8px);
}

.news-card .meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.testimonial {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 61, 0, 0.12), rgba(0, 194, 255, 0.08));
}

.testimonial p {
  font-size: 1.05rem;
  margin: 0 0 1rem;
}

.cta {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(245, 196, 0, 0.18), rgba(255, 255, 255, 0.14));
  border: 1px solid var(--line);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.cta h2 {
  margin: 0 0 1rem;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 0.08em;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.footer-title {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1.2rem;
  color: var(--text);
}

.footer-links {
  display: grid;
  gap: 0.5rem;
}

.footer-links a,
.footer-links span {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--text);
}

.entry-content {
  color: var(--muted);
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: var(--text);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
}

.entry-content a {
  color: var(--accent);
}

.legal-card {
  background: var(--card-strong);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.9s ease forwards;
}

.reveal.delay-1 { animation-delay: 0.15s; }
.reveal.delay-2 { animation-delay: 0.3s; }
.reveal.delay-3 { animation-delay: 0.45s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 860px) {
  .primary-menu ul,
  .fallback-menu {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 760px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-group {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .primary-menu ul,
  .fallback-menu {
    justify-content: flex-start;
    gap: 1rem;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 2.8rem 0;
  }

  .inventory-embed {
    min-height: 700px;
  }

  .inventory-embed iframe,
  .inventory-embed embed,
  .inventory-embed object,
  .inventory-embed img,
  .inventory-embed .mobilede,
  .inventory-embed .mobilede-inventory {
    min-height: 700px;
    height: 700px;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-panel {
    min-height: 320px;
  }

  .card,
  .news-card {
    padding: 1.2rem;
  }
}
