:root {
  --bg-color: #F4F6F7;
  --surface-color: #FFFFFF;
  --primary-color: #27485D;
  --accent-color: #5FAEC1;
  --sec-accent-color: #8CBBC7;
  --dark-color: #1E252B;
  --highlight-color: #D58A46;
  --border-color: #DDE4E6;
  --muted-text: #6C767B;
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  --border-radius: 4px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--accent-color);
}

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

/* Typography */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
p { margin-bottom: var(--spacing-sm); }
.muted { color: var(--muted-text); font-size: 0.9rem; }

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(244, 246, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

header.scrolled {
  background-color: var(--surface-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: -0.5px;
  position: relative;
  text-decoration: none;
  transition: var(--transition);
}

.brand-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.brand-logo:hover .brand-icon {
  transform: scale(1.05) rotate(2deg);
}

.brand-text {
  display: flex;
  align-items: baseline;
}

.brand-ext {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2563EB;
}

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

.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--primary-color);
}

.main-nav a:hover {
  color: var(--accent-color);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--surface-color) !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color) !important;
  border: 1px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  transition: var(--transition);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--surface-color) !important;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: var(--spacing-lg) 0;
}

.bg-surface { background-color: var(--surface-color); }
.bg-dark { background-color: var(--primary-color); color: var(--surface-color); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark p { color: var(--surface-color); }

/* Hero Section */
.hero {
  padding-top: 8rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(to bottom right, var(--surface-color), var(--bg-color));
}

.hero-content {
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--muted-text);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Interactive Vehicle Care Finder */
.care-finder {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.finder-tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-color);
  background: var(--bg-color);
}

.finder-tab {
  padding: 1.5rem;
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: transparent;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  transition: var(--transition);
}

.finder-tab:last-child { border-bottom: none; }
.finder-tab:hover { background: var(--surface-color); }
.finder-tab.active {
  background: var(--surface-color);
  border-left: 4px solid var(--highlight-color);
  color: var(--dark-color);
}

.finder-content {
  padding: 2rem;
}

.finder-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}

.finder-panel.active {
  display: block;
}

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

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--spacing-md); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--spacing-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--spacing-md); }

/* Technical Callout / Log Card */
.tech-card {
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-color);
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-step {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-step::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--surface-color);
  border: 4px solid var(--accent-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -8px; }

.timeline-content {
  padding: 1.5rem;
  background-color: var(--surface-color);
  position: relative;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

/* Process Diagram */
.process-diagram {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
}

.step-number {
  background: var(--primary-color);
  color: var(--surface-color);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  flex-shrink: 0;
}

.process-arrow {
  text-align: center;
  color: var(--accent-color);
  font-size: 1.5rem;
}

/* Accordion (FAQ) */
.accordion {
  border-bottom: 1px solid var(--border-color);
}
.accordion-item {
  border-top: 1px solid var(--border-color);
}
.accordion-header {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-header::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: var(--transition);
}
.accordion-header.active::after {
  content: '−';
}
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion-content-inner {
  padding-bottom: 1.5rem;
  color: var(--muted-text);
}

/* Contact Form */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-color);
}
.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-main);
  background: var(--bg-color);
}
.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  background: var(--surface-color);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Legal Pages Typography */
.legal-content h2 { margin-top: 2rem; }
.legal-content p, .legal-content ul { margin-bottom: 1rem; color: var(--dark-color); }
.legal-content ul { padding-left: 2rem; }

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--surface-color);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  transform: translateY(100%);
  transition: transform 0.5s ease;
}
#cookie-banner.show { transform: translateY(0); }
.cookie-text { flex: 1; }
.cookie-actions { display: flex; gap: 1rem; }

/* Cookie Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(30, 37, 43, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal-content {
  background: var(--surface-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px; height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: var(--border-color);
  transition: .4s;
  border-radius: 24px;
}
.slider:before {
  position: absolute; content: "";
  height: 16px; width: 16px;
  left: 4px; bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}
input:checked + .slider { background-color: var(--accent-color); }
input:checked + .slider:before { transform: translateX(26px); }
input:disabled + .slider { opacity: 0.5; cursor: not-allowed; }

/* Footer */
footer {
  background: var(--dark-color);
  color: var(--surface-color);
  padding: 4rem 0 2rem;
  border-top: 4px solid var(--primary-color);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: var(--highlight-color);
  margin-bottom: 1.5rem;
}
.footer-col ul {
  list-style: none;
}
.footer-col ul li {
  margin-bottom: 0.75rem;
}
.footer-col ul li a {
  color: var(--muted-text);
}
.footer-col ul li a:hover {
  color: var(--surface-color);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--muted-text);
  font-size: 0.9rem;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .hero-content h1 { font-size: 3rem; }
}
@media (max-width: 992px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline::after { left: 31px; }
  .timeline-step { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-step.right { left: 0; }
  .timeline-step.left::after, .timeline-step.right::after { left: 23px; }
  .care-finder { grid-template-columns: 1fr; }
  .finder-tabs { flex-direction: row; border-right: none; border-bottom: 1px solid var(--border-color); overflow-x: auto; }
  .finder-tab { flex: 1; text-align: center; white-space: nowrap; }
  .finder-tab.active { border-left: none; border-bottom: 4px solid var(--highlight-color); }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: var(--surface-color);
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  .main-nav.show { display: flex; }
  .mobile-menu-toggle { display: block; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  #cookie-banner { flex-direction: column; text-align: center; }
  .cookie-actions { flex-wrap: wrap; justify-content: center; }
}
@media (max-width: 576px) {
  .hero { padding-top: 6rem; }
  .btn-primary, .btn-outline { width: 100%; margin-bottom: 0.5rem; }
  .finder-content { padding: 1rem; }
}
@media (max-width: 420px) {
  .brand-logo { font-size: 1.2rem; }
  section { padding: var(--spacing-md) 0; }
}