/* =============================================================================
   TUNINGCOMPANY.AT - Automotive Dark Theme
   Racing-inspired: Dark base, Red/Orange accents, Bold typography
   ============================================================================= */

:root {
  --bg-body: #0a0a0f;
  --bg-header: #0d0d14;
  --bg-card: #12121c;
  --bg-section: #16162a;
  --bg-input: #1a1a2e;
  --accent: #e63946;
  --accent-hover: #ff4757;
  --accent-orange: #ff6b35;
  --accent-gradient: linear-gradient(135deg, #e63946, #ff6b35);
  --text: #d4d4e0;
  --text-bright: #f0f0f8;
  --text-muted: #8888a0;
  --text-heading: #ffffff;
  --border: #222238;
  --border-light: #2a2a48;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --radius: 8px;
  --max-width: 1100px;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Montserrat', 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text);
  line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

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

/* =============================================================================
   HEADER
   ============================================================================= */
.site-header {
  background: var(--bg-header);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-heading);
}
.logo span { color: var(--accent); }
.logo a { color: inherit; }
.logo a:hover { color: inherit; }

/* Main Navigation */
.main-nav { display: flex; gap: 0; align-items: center; }
.main-nav a {
  color: var(--text);
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: all 0.2s;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--text-heading);
  background: rgba(230,57,70,0.15);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero {
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 1.5rem 3rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-meta-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-meta-item .icon { color: var(--accent); }

.hero-description {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 700px;
}

/* Breadcrumb */
.breadcrumb {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb a { color: var(--text-muted); flex-shrink: 0; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 0.5rem; flex-shrink: 0; }

/* =============================================================================
   MAIN CONTENT
   ============================================================================= */
.content-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
}

.content-main { min-width: 0; }

.content-main p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.content-main strong { color: var(--text-bright); }
.content-main em { color: var(--accent-orange); font-style: normal; }

.content-main ul, .content-main ol {
  margin: 1rem 0 1.5rem 1.5rem;
}
.content-main li {
  margin-bottom: 0.5rem;
  color: var(--text);
}
.content-main li::marker { color: var(--accent); }

/* Headings */
.content-main h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
  position: relative;
}

.content-main h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-orange);
  margin: 2rem 0 0.8rem;
}

.content-main h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin: 1.5rem 0 0.6rem;
}

/* Tables */
.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}
.content-main th {
  background: var(--bg-section);
  color: var(--text-heading);
  padding: 0.8rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--accent);
}
.content-main td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.content-main tr:last-child td { border-bottom: none; }
.content-main tr:hover td { background: rgba(230,57,70,0.05); }

/* =============================================================================
   FAQ SECTION
   ============================================================================= */
.faq-section {
  margin: 3rem 0;
}
.faq-section h2 { margin-top: 0; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.faq-question {
  padding: 1rem 1.5rem;
  font-weight: 600;
  color: var(--text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(230,57,70,0.08); }
.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.2rem;
  color: var(--text);
  line-height: 1.7;
  display: none;
}
.faq-item.open .faq-answer { display: block; }

/* =============================================================================
   CONCLUSION / CTA
   ============================================================================= */
.conclusion-box {
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 3rem 0;
}
.conclusion-box h2 {
  border-bottom: none;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.cta-button {
  display: inline-block;
  background: var(--accent-gradient);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(230,57,70,0.3);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,57,70,0.4);
  color: #fff;
}

/* =============================================================================
   SIDEBAR
   ============================================================================= */
.sidebar {}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.sidebar-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s;
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { color: var(--accent); padding-left: 0.5rem; }
.sidebar-nav a.active { color: var(--accent); font-weight: 600; }

/* Provider Box */
.provider-box {
  border-color: var(--accent);
}
.provider-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.provider-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.provider-item:last-child { border-bottom: none; }
.provider-item a {
  font-size: 0.9rem;
  font-weight: 500;
}
.provider-city {
  font-size: 0.75rem;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: 0.5rem;
}

/* Legacy contact-box kept for reference */
.contact-box-legacy {
  background: var(--accent-gradient);
  border: none;
  text-align: center;
}
.contact-box-legacy h3 { color: #fff; border-bottom-color: rgba(255,255,255,0.3); }
.contact-box-legacy p { color: rgba(255,255,255,0.9); font-size: 0.9rem; margin-bottom: 0.5rem; }
.contact-box-legacy .phone {
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  display: block;
  margin: 1rem 0;
}
.contact-box-legacy .btn-contact {
  display: inline-block;
  background: #fff;
  color: var(--accent);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
}
.contact-box-legacy .btn-contact:hover { background: var(--text-bright); }

/* =============================================================================
   FOOTER
   ============================================================================= */
.site-footer {
  background: var(--bg-header);
  border-top: 3px solid var(--accent);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.footer-links h4 {
  color: var(--text-heading);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.3rem 0;
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* =============================================================================
   HOMEPAGE SPECIFIC
   ============================================================================= */
.home-hero {
  padding: 4rem 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-section) 0%, #0d0d14 50%, var(--bg-body) 100%);
  border-bottom: 1px solid var(--border);
}
.home-hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.home-hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: border-color 0.3s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.service-card h3 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.service-card .card-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 900px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar { order: -1; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 768px) {
  .header-inner { height: 60px; }
  .logo { font-size: 1.2rem; letter-spacing: 2px; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--bg-header);
    border-bottom: 2px solid var(--accent);
    padding: 1rem;
    box-shadow: var(--shadow);
  }
  .menu-toggle { display: block; }
  .hero h1, .home-hero h1 { font-size: 1.8rem; }
  .content-main h2 { font-size: 1.35rem; }
  .services-grid { grid-template-columns: 1fr; }
}

/* =============================================================================
   SCHEMA / ACCESSIBILITY
   ============================================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

::selection {
  background: var(--accent);
  color: #fff;
}
