/* Express Battery Replacement - Design System */

/* ===== CSS RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height-body);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

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

ul, ol {
  list-style: none;
}

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand Colors */
  --color-primary: #11161B;
  --color-secondary: #ED1C24;
  --color-green: #39B54A;
  --color-green-dark: #0B9444;
  --color-orange: #F7941D;
  --color-yellow: #FFE86A;
  --color-text: #455361;
  --color-text-light: #6B7B8A;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-bg-light: #F5F5F5;
  --color-bg-dark: #1B1F27;
  --color-border: #E5E5E5;

  /* Typography */
  --font-primary: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-body: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  --font-size-4xl: 2.5rem;    /* 40px */
  --font-size-5xl: 3rem;      /* 48px */

  /* Font Weights */
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-body: 1.7;

  /* Spacing */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 1.5rem;   /* 24px */
  --spacing-lg: 2.5rem;   /* 40px */
  --spacing-xl: 4rem;     /* 64px */
  --spacing-2xl: 6rem;    /* 96px */

  /* Container */
  --container-max-width: 1280px;
  --container-padding: 1.5rem;

  /* Border Radius */
  --radius-sm: 0.5rem;    /* 8px */
  --radius-md: 0.75rem;   /* 12px */
  --radius-lg: 1rem;      /* 16px */
  --radius-xl: 1.25rem;   /* 20px */
  --radius-pill: 1.5rem;  /* 24px */
  --radius-round: 50%;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 1500;
  --z-tooltip: 2000;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-extrabold);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-sm);
}

p:last-child {
  margin-bottom: 0;
}

.text-green { color: var(--color-green); }
.text-red { color: var(--color-secondary); }
.text-orange { color: var(--color-orange); }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-text-light); }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

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

.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #c4171d;
}

.btn-success {
  background-color: var(--color-green);
  color: var(--color-white);
}

.btn-success:hover {
  background-color: var(--color-green-dark);
}

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

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

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

.btn-outline-light:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--font-size-lg);
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-sm);
}

.btn-block {
  width: 100%;
}

/* ===== CARDS ===== */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: var(--spacing-md);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* ===== BADGES ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-pill);
  color: var(--color-white);
}

.badge-green { background-color: var(--color-green); }
.badge-red { background-color: var(--color-secondary); }
.badge-orange { background-color: var(--color-orange); }
.badge-yellow { background-color: var(--color-yellow); color: var(--color-primary); }

/* ===== PHONE BADGES ===== */
.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  white-space: nowrap;
  transition: all var(--transition-normal);
}

.phone-badge:hover {
  transform: scale(1.02);
}

.phone-badge.green { background-color: var(--color-green); }
.phone-badge.orange { background-color: var(--color-orange); }
.phone-badge.red { background-color: var(--color-secondary); }

.phone-badge svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ===== ICONS ===== */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-sm { width: 1rem; height: 1rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-lg { width: 2rem; height: 2rem; }
.icon-xl { width: 3rem; height: 3rem; }

/* ===== BACKGROUNDS ===== */
.bg-primary { background-color: var(--color-primary); }
.bg-dark { background-color: var(--color-bg-dark); }
.bg-light { background-color: var(--color-bg-light); }
.bg-white { background-color: var(--color-white); }
.bg-green { background-color: var(--color-green); }
.bg-red { background-color: var(--color-secondary); }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.mt-0 { margin-top: 0; }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }

.py-sm { padding-top: var(--spacing-sm); padding-bottom: var(--spacing-sm); }
.py-md { padding-top: var(--spacing-md); padding-bottom: var(--spacing-md); }
.py-lg { padding-top: var(--spacing-lg); padding-bottom: var(--spacing-lg); }

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

/* ===== SEPARATORS ===== */
hr, .separator {
  width: 100%;
  height: 1px;
  border: 0;
  background-color: var(--color-border);
  margin: var(--spacing-lg) 0;
}

.separator-sm { margin: var(--spacing-sm) 0; }
.separator-md { margin: var(--spacing-md) 0; }
.separator-xl { margin: var(--spacing-xl) 0; }

/* Dark background separator support */
.bg-dark hr, .bg-dark .separator,
.site-footer hr, .site-footer .separator {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(57, 181, 74, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(57, 181, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(57, 181, 74, 0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out;
}
