/* MODERN TECH SYSTEM RESET & VARIABLES */
:root {
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --text-dark: #0b132b;
  --text-muted: #475569;
  --color-primary: #ff5a00; /* Safety Orange Accent */
  --color-secondary: #00f0ff; /* Tech Cyan Variant */
  --color-dark-panel: #1e293b;
  --border-light: #e2e8f0;
  --radius-m: 8px;
  --radius-l: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-main);
}

/* BUTTON COMPONENTS */
.btn {
  display: inline-block;
  padding: 12px 24px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-m);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}
.btn-primary {
  background-color: var(--color-primary);
  color: white;
}
.btn-primary:hover {
  background-color: #e04f00;
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--bg-alt);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background-color: var(--border-light);
}
.btn-block {
  display: block;
  width: 100%;
}

/* UTILITY LAYOUT CONTAINERS */
.section-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 80px 20px;
}
.section-container.small-width { max-width: 650px; }
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 15px;
  letter-spacing: -0.025em;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* GLOBAL HEADER NAVIGATION */
.main-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
}
.header-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-dark);
}
.logo span { color: var(--color-primary); }
.nav-links a {
  margin-right: 25px;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-dark); }

/* HERO SECTION */
.hero-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-main) 100%);
  overflow: hidden;
}
.hero-container {
  display: flex;
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 20px;
  align-items: center;
  gap: 40px;
}
.hero-content { flex: 1; }
.hero-content .eyebrow {
  display: block;
  text-transform: uppercase;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}
.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}
.hero-actions .btn { margin-right: 15px; }
.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}
.abstract-truck-graphic {
  font-size: 8rem;
  background: var(--bg-alt);
  padding: 40px;
  border-radius: var(--radius-l);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  position: relative;
}

/* INTERACTIVE ENGINE GRIDS */
.quote-section { background-color: var(--bg-alt); }
.calculator-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: var(--radius-l);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.input-group { margin-bottom: 30px; }
.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 12px;
}
.highlight-text { color: var(--color-primary); font-weight: 700; }
input[type="range"] {
  width: 100%;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.input-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 5px;
}
.checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.checkbox-wrapper input {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}
.checkbox-wrapper label span { color: var(--text-muted); font-size: 0.9rem; }
input[type="date"] {
  padding: 10px;
  border-radius: var(--radius-m);
  border: 1px solid var(--border-light);
  width: 100%;
  font-family: inherit;
}

/* CALCULATOR DISPLAY */
.calc-display-card {
  background-color: var(--color-dark-panel);
  color: white;
  padding: 40px;
  border-radius: var(--radius-l);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.calc-display-card h3 { font-size: 1.25rem; font-weight: 500; opacity: 0.9; }
.price-container { margin: 20px 0; display: flex; align-items: flex-start; }
.price-container .currency { font-size: 2rem; font-weight: 700; margin-top: 5px; color: var(--color-secondary); }
#total-price-render { font-size: 4.5rem; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.price-disclaimer { font-size: 0.85rem; opacity: 0.7; margin-bottom: 30px; line-height: 1.4; }

/* SERVICE CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  background: white;
  border: 1px solid var(--border-light);
  padding: 40px;
  border-radius: var(--radius-l);
  transition: var(--transition);
  position: relative;
}
.service-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); }
.service-card.featured { border: 2px solid var(--color-primary); }
.service-card .badge {
  position: absolute;
  top: 15px; right: 15px;
  background-color: var(--color-primary);
  color: white; font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 20px;
}
.card-icon { font-size: 2.5rem; display: block; margin-bottom: 15px; }
.service-card h3 { margin-bottom: 10px; }
.service-card .metric { font-weight: 700; color: var(--color-primary); margin-bottom: 15px; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; }
.service-card ul { list-style: none; border-top: 1px solid var(--border-light); padding-top: 20px; }
.service-card ul li { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-muted); position: relative; padding-left: 20px; }
.service-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--color-primary); font-weight: bold; }

/* TRUST CHECKLIST */
.grid-two-columns { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.trust-item { margin-bottom: 30px; }
.trust-item h4 { font-size: 1.2rem; margin-bottom: 8px; }
.trust-item p { color: var(--text-muted); line-height: 1.5; }

/* LEAD INTAKE FORM */
.lead-form { background: var(--bg-alt); padding: 40px; border-radius: var(--radius-l); border: 1px solid var(--border-light); }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-group { flex: 1; display: flex; flex-direction: column; }
.form-group label { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.form-group input { padding: 12px; border-radius: var(--radius-m); border: 1px solid var(--border-light); font-family: inherit; font-size: 1rem; }

/* NOTIFICATIONS & MESSAGES */
.alert-text { font-size: 0.85rem; margin-top: 8px; font-weight: 600; }
.peak-warning { color: #d9534f; }
.weekday-success { color: #2e7d32; }

/* FOOTER */
.main-footer { text-align: center; padding: 40px; border-top: 1px solid var(--border-light); font-size: 0.9rem; color: var(--text-muted); }

/* MOBILE RESPONSIVE TUNE-UPS */
@media (max-width: 768px) {
  .hero-container, .calculator-grid, .grid-two-columns, .form-row {
    flex-direction: column;
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .hero-content h1 { font-size: 2.5rem; }
}
/* 1. DEFINE DARK MODE COLOR MAPS (Add this right below your existing :root block) */
[data-theme="dark"] {
  --bg-main: #0b132b;          /* Dark Navy Blue */
  --bg-alt: #1c2541;           /* Lighter Navy Surface */
  --text-dark: #f8fafc;        /* Stark White Text */
  --text-muted: #94a3b8;       /* Muted Grey Text */
  --color-dark-panel: #0b132b; /* Invert the price panel to blend or drop */
  --border-light: #334155;     /* Darker borders */
}

/* 2. STYLE THE TOGGLE BUTTON (Add this down near your other header/button styles) */
.theme-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border-light);
  font-size: 1.25rem;
  padding: 8px 12px;
  border-radius: var(--radius-m);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-btn:hover {
  background: var(--border-light);
  transform: scale(1.05);
}

/* 3. OPTIONAL TWEAK FOR BETTER VISUALS IN DARK MODE */
[data-theme="dark"] .calculator-grid,
[data-theme="dark"] .service-card {
  background: var(--bg-alt); /* Ensure cards use dark surface blocks */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
[data-theme="dark"] .main-header {
  background: rgba(11, 19, 43, 0.9); /* Dark semi-transparent blur header */
}
