/* ============================================
   OKC Mobile Mechanic — Service Page Animations
   Shared animations, stats, comparison tables,
   photo grids, and enhanced components
   ============================================ */

/* --- Animated Stats Bar --- */
.stats-bar {
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(243, 121, 32, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 3.2rem;
  font-weight: 900;
  color: #f37920;
  line-height: 1;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-number .counter {
  display: inline;
}

.stat-number .stat-suffix {
  font-size: 1.8rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --- Mobile vs Shop Comparison --- */
.comparison-section {
  padding: 5rem 0;
  background: #fff;
}

.comparison-table {
  max-width: 900px;
  margin: 3rem auto 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 20px 50px rgba(15, 23, 42, 0.08);
}

.comparison-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: #1a1a2e;
  color: #fff;
}

.comparison-header > div {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
}

.comparison-header > div:first-child {
  text-align: left;
}

.comparison-header .header-mobile {
  background: #f37920;
  color: #fff;
}

.comparison-header .header-shop {
  background: #374151;
  color: #e5e7eb;
}

.comparison-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.comparison-row:hover {
  background: #f8fafc;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row > div {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.comparison-row > div:first-child {
  justify-content: flex-start;
  font-weight: 500;
  color: #1e293b;
}

.comparison-check {
  width: 28px;
  height: 28px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-check svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.comparison-x {
  width: 28px;
  height: 28px;
  background: #ef4444;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-x svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.comparison-neutral {
  color: #9ca3af;
  font-size: 0.85rem;
}

/* --- Consequence / "What Happens If You Wait" Section --- */
.consequence-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
}

.consequence-timeline {
  max-width: 720px;
  margin: 3rem auto 0;
  position: relative;
}

.consequence-timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #fbbf24 0%, #f37920 40%, #ef4444 100%);
}

.consequence-item {
  position: relative;
  padding-left: 80px;
  margin-bottom: 2.5rem;
}

.consequence-item:last-child {
  margin-bottom: 0;
}

.consequence-dot {
  position: absolute;
  left: 18px;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.85rem;
  color: #fff;
  z-index: 1;
}

.consequence-dot.warn-low {
  background: #fbbf24;
}

.consequence-dot.warn-mid {
  background: #f37920;
}

.consequence-dot.warn-high {
  background: #ef4444;
}

.consequence-item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: #0f172a;
}

.consequence-item p {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.consequence-cost {
  display: inline-block;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.4rem;
}

/* --- Photo Grid --- */
.photo-section {
  padding: 5rem 0;
  background: #f8f9fb;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.photo-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: #fff;
}

.photo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.photo-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-card:hover .photo-card-img {
  transform: scale(1.08);
}

.photo-card-img-wrap {
  overflow: hidden;
  position: relative;
}

.photo-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.3));
  pointer-events: none;
}

.photo-card-caption {
  padding: 1.25rem;
}

.photo-card-caption h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #0f172a;
}

.photo-card-caption p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* --- Related Services --- */
.related-section {
  padding: 5rem 0;
  background: #f8f9fb;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.related-card {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: #0f172a;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: block;
}

.related-card:hover {
  border-color: #f37920;
  transform: translateY(-6px);
  box-shadow: 0 15px 35px rgba(243, 121, 32, 0.12);
}

.related-card-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #fff1e6 0%, #ffe0c7 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.related-card-icon svg {
  width: 32px;
  height: 32px;
  color: #f37920;
}

.related-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.related-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.related-card .related-arrow {
  display: inline-block;
  margin-top: 1rem;
  color: #f37920;
  font-weight: 700;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.related-card:hover .related-arrow {
  transform: translateX(6px);
}

/* --- Enhanced Pull Quote --- */
.pull-quote {
  max-width: 780px;
  margin: 3rem auto;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, #fff7ed 0%, #fff 100%);
  border-left: 5px solid #f37920;
  border-radius: 0 16px 16px 0;
  position: relative;
}

.pull-quote::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  font-size: 4rem;
  color: #f37920;
  opacity: 0.2;
  font-family: Georgia, serif;
  line-height: 1;
}

.pull-quote p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #1e293b;
  font-style: italic;
  margin: 0;
}

.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
}

/* --- Highlight Box --- */
.highlight-box {
  background: linear-gradient(135deg, #1a1a2e 0%, #252544 100%);
  color: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(243, 121, 32, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.highlight-box > * {
  position: relative;
  z-index: 1;
}

.highlight-box h3 {
  color: #f37920;
  margin-bottom: 0.75rem;
}

.highlight-box p {
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
}

/* --- Icon List (inline icons with text) --- */
.icon-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.icon-list li:last-child {
  border-bottom: none;
}

.icon-list-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fff1e6, #ffe0c7);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-list-icon svg {
  width: 22px;
  height: 22px;
  color: #f37920;
}

.icon-list-text h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: #0f172a;
}

.icon-list-text p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* --- Vehicle Makes Grid --- */
.makes-section {
  padding: 3rem 0;
  background: #fff;
}

.makes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.make-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: #f8f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.3s ease;
}

.make-tag:hover {
  border-color: #f37920;
  background: #fff7ed;
  color: #f37920;
}

/* --- Staggered fade-in animation --- */
.stagger-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-in:nth-child(6) { transition-delay: 0.5s; }
.stagger-in:nth-child(7) { transition-delay: 0.6s; }
.stagger-in:nth-child(8) { transition-delay: 0.7s; }

/* --- Pulse glow animation --- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 121, 32, 0.4); }
  50% { box-shadow: 0 0 20px 10px rgba(243, 121, 32, 0.15); }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* --- Float animation for hero SVGs --- */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-float {
  animation: heroFloat 6s ease-in-out infinite;
}

/* --- Gradient shimmer for backgrounds --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-bg {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(243, 121, 32, 0.05) 25%,
    rgba(243, 121, 32, 0.1) 50%,
    rgba(243, 121, 32, 0.05) 75%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 8s ease-in-out infinite;
}

/* --- Counter number animation --- */
@keyframes countUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.counter-animate {
  animation: countUp 0.6s ease-out forwards;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-item {
    border-right: none;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.08);
  }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .comparison-header > div,
  .comparison-row > div {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }
  .consequence-item {
    padding-left: 65px;
  }
  .pull-quote {
    padding: 2rem;
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
  }
  .stat-item:last-child {
    border-bottom: none;
  }
  .stat-number {
    font-size: 2.5rem;
  }
  .comparison-header,
  .comparison-row {
    grid-template-columns: 1.2fr 1fr 1fr;
    font-size: 0.8rem;
  }
  .photo-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pull-quote {
    padding: 1.5rem;
  }
  .pull-quote p {
    font-size: 1.05rem;
  }
}


/* ============================================
   POLISH — Consistent section patterns
   ============================================ */

/* --- Section header pattern (centered h2 + accent + subtitle) --- */
.section-center {
  text-align: center;
}

.section-center h2 {
  margin-bottom: 0.5rem;
}

.section-center .accent-line {
  margin: 0 auto 1rem;
}

.section-center .section-subtitle {
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Consistent section padding --- */
.service-section {
  padding: 5rem 0;
}

.service-section.bg-white { background: #fff; }
.service-section.bg-light { background: #f8f9fb; }
.service-section.bg-gradient { background: linear-gradient(180deg, #f8f9fb 0%, #fff 100%); }
.service-section.bg-dark { background: #1a1a2e; color: #fff; }

/* --- Educational two-column layout --- */
.edu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}

/* --- Brake pad type cards --- */
/* --- Global SVG safety — prevent unconstrained SVGs --- */
.expect-icon svg,
.related-card-icon svg,
.check-list li svg,
.icon-list-icon svg,
.why-card-icon svg {
  max-width: 32px;
  max-height: 32px;
}

.pad-type-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #f37920;
  padding: 1.5rem 1.75rem;
  border-radius: 0 12px 12px 0;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pad-type-card:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.pad-type-card:last-child {
  margin-bottom: 0;
}

.pad-type-card h4 {
  color: #0f172a;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pad-type-card p {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.pad-type-card.type-ceramic { border-left-color: #f37920; }
.pad-type-card.type-semi { border-left-color: #6b7280; }
.pad-type-card.type-organic { border-left-color: #fbbf24; }

/* --- "What to Expect" step cards --- */
.expect-steps {
  display: grid;
  gap: 0;
}

.expect-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.expect-step:last-child {
  border-bottom: none;
}

.expect-icon {
  width: 48px;
  height: 48px;
  background: #f37920;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.expect-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.expect-step h4 {
  margin-bottom: 0.25rem;
  color: #0f172a;
  font-size: 1rem;
}

.expect-step p {
  color: #64748b;
  margin: 0;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* --- Vehicle type cards (colored top border) --- */
.vehicle-card.type-sedan { border-top-color: #3b82f6; }
.vehicle-card.type-truck { border-top-color: #10b981; }
.vehicle-card.type-suv { border-top-color: #f37920; }
.vehicle-card.type-euro { border-top-color: #8b5cf6; }

.vehicle-card .symptom-icon.icon-blue { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.vehicle-card .symptom-icon.icon-blue svg { color: #3b82f6; }
.vehicle-card .symptom-icon.icon-green { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.vehicle-card .symptom-icon.icon-green svg { color: #10b981; }
.vehicle-card .symptom-icon.icon-orange { background: linear-gradient(135deg, #fff1e6, #ffe0c7); }
.vehicle-card .symptom-icon.icon-orange svg { color: #f37920; }
.vehicle-card .symptom-icon.icon-purple { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.vehicle-card .symptom-icon.icon-purple svg { color: #8b5cf6; }

/* --- Map section two-column --- */
.map-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.map-grid .map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Checklist (simple inline checks) --- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.check-list li {
  padding: 0.5rem 0;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.check-list li svg {
  width: 20px;
  height: 20px;
  color: #f37920;
  flex-shrink: 0;
}

/* --- Edu section text column --- */
.edu-text h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.edu-text p {
  color: #334155;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.edu-text h3.sub-heading {
  font-size: 1.2rem;
  margin: 2rem 0 1rem;
}

/* --- Responsive for new components --- */
@media (max-width: 900px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .map-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .expect-step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .pad-type-card {
    padding: 1rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .consequence-item {
    padding-left: 55px;
  }

  .consequence-timeline::before {
    left: 20px;
  }

  .consequence-dot {
    left: 8px;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  .comparison-header > div:first-child,
  .comparison-row > div:first-child {
    font-size: 0.75rem;
  }

  .service-hero-badges {
    flex-direction: column;
    gap: 0.75rem;
  }

  .highlight-box {
    padding: 1.5rem;
  }

  .section-center h2,
  .edu-text h3 {
    font-size: 1.4rem;
  }
}

/* --- Grid utility: 2x2 with mobile fallback --- */
.grid-2x2 {
  grid-template-columns: repeat(2, 1fr) !important;
}

@media (max-width: 560px) {
  .grid-2x2 {
    grid-template-columns: 1fr !important;
  }
}
