/**
 * FuelPartsDB — Unified Modern Design System
 * Deep blue professional aesthetic for industrial diesel parts
 */
/* ============================================================
   1. CSS Variables - Design Tokens
   ============================================================ */


:root {/* Primary Deep Blue Palette
     NOTE: these are overridden by legacy.css, which loads later and is the
     authoritative definition. Kept in sync to avoid two different navies.
     Source of truth: legacy.css :root */
/* Accent Colors */
/* Backgrounds */
/* Text Colors */
/* Borders */
/* Status Colors */
/* Shadows */
/* Typography */
/* Spacing */
/* Border Radius */
/* Transitions */
/* Layout */












  --primary: #1a3a5c;
  --primary-dark: #0f2440;
  --primary-light: #234b73;
  --primary-accent: #234b73;


  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fbbf24;


  --bg-main: #f4f7fb;
  --bg-white: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;


  --text-primary: #1a2a3a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;


  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-dark: #94a3b8;


  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --info: #3b82f6;
  --info-light: #dbeafe;


  --shadow-xs: 0 1px 2px rgba(15, 36, 64, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 36, 64, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 36, 64, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 36, 64, 0.12);
  --shadow-xl: 0 16px 48px rgba(15, 36, 64, 0.16);


  --font-sans: 'Inter Variable', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Barlow Condensed', 'Roboto Slab', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;


  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;


  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;


  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s ease;


  --container-max: 1280px;
  --header-height: 70px;
}
/* ============================================================
   2. Reset & Base Styles
   ============================================================ */


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-main);
  min-height: 100vh;
}

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

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--primary);
  }
}
/* ============================================================
   3. Typography Scale
   ============================================================ */


h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
/* ============================================================
   4. Layout Components
   ============================================================ */


.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.site-main {
  min-height: calc(100vh - var(--header-height));
}
/* Grid System */


.grid {
  display: grid;
  gap: var(--space-lg);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

@media (max-width: 1024px) {
}

@media (max-width: 640px) {
  .container { padding: 0 var(--space-md); }
}
/* ============================================================
   5. Hero Sections
   ============================================================ */


.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-inverse);
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

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

.hero-description {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
/* Hero Stats */


.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
}

@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
}
/* ============================================================
   6. Cards
   ============================================================ */


.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
/* Feature Card */
/* ============================================================
   7. Buttons
   ============================================================ */



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-inverse);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--primary-dark);
    color: var(--text-inverse);
  }
}
/* `.btn-accent` and `.btn-accent:hover` removed here — orphaned by the
   enquiry-flow removal (commit 0a24569). Third and last copy of this class
   across the codebase; all three are now gone. Verified 0 hits in built HTML. */


.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover {
    background: var(--primary);
    color: var(--text-inverse);
  }
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8125rem;
}
/* ============================================================
   8. Form Elements
   ============================================================ */
/* ============================================================
   9. Badges & Tags
   ============================================================ */



.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* Emission Badges */


.emission-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.emission-badge.euro-3 {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.emission-badge.euro-4 {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.emission-badge.euro-5 {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
/* ============================================================
   11. Section Styles
   ============================================================ */


.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}
/* ============================================================
   12. Page Header / Breadcrumbs
   ============================================================ */


.breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--space-md);
  position: relative;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
}

@media (hover: hover) and (pointer: fine) {
  .breadcrumb a:hover {
    color: var(--accent);
  }
}
/* ============================================================
   13. Footer Styles
   ============================================================ */


.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: var(--space-md);
}

/* `.footer-logo .accent` removed — Footer.astro renders `logo-accent` /
   `logo-db`, which are styled in the component's own scope. */

.footer-tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 300px;
}

.footer-col .footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

@media (hover: hover) and (pointer: fine) {
  .footer-links a:hover {
    color: var(--accent);
  }
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   15. Animations
   ============================================================ */


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
/* Staggered animations */
/* ============================================================
   16. Utility Classes
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   17. Responsive Utilities
   ============================================================ */




@media (max-width: 1024px) {
  :root {
    --space-lg: 20px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
