/* FairBrakes Detroit — Mobile-First Styles */
:root {
  --blue: #1a73e8;
  --blue-dark: #0d47a1;
  --blue-light: #e8f0fe;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f4;
  --gray-300: #dadce0;
  --gray-600: #5f6368;
  --gray-800: #3c4043;
  --gray-900: #202124;
  --green: #0d9453;
  --green-light: #e6f4ea;
  --orange: #e8710a;
  --shadow: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.15);
  --radius: 12px;
  --max-width: 1100px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

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

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

/* ============ NAV ============ */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-300);
  position: sticky; top: 0; z-index: 100;
  padding: 0 20px;
}
.nav-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700; color: var(--blue);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--gray-800); font-size: .95rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-links .nav-phone {
  color: var(--blue); font-weight: 700; font-size: 1rem;
}
.nav-cta {
  background: var(--blue); color: var(--white) !important; padding: 10px 20px;
  border-radius: 8px; font-weight: 600; transition: background .2s;
}
.nav-cta:hover { background: var(--blue-dark); color: var(--white) !important; }

.hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
}
.hamburger svg { width: 28px; height: 28px; color: var(--gray-800); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white); text-align: center;
  padding: 60px 20px 70px;
}
.hero h1 {
  font-size: 2.5rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 12px;
}
.hero .price-tag {
  display: inline-block; background: var(--white); color: var(--blue);
  font-size: 1.5rem; font-weight: 800; padding: 8px 24px;
  border-radius: 50px; margin-bottom: 16px;
}
.hero p {
  font-size: 1.2rem; opacity: .92; max-width: 500px; margin: 0 auto 32px;
  line-height: 1.5;
}
.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: 10px; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; border: none; transition: all .2s; min-height: 52px;
  text-decoration: none; gap: 8px;
}
.btn-white { background: var(--white); color: var(--blue); }
.btn-white:hover { background: var(--gray-100); color: var(--blue); }
.btn-outline {
  background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-blue:hover { background: var(--blue-dark); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #0b7d46; color: var(--white); }

/* ============ SECTIONS ============ */
section { padding: 60px 20px; }
.section-gray { background: var(--gray-50); }

.section-title {
  text-align: center; font-size: 1.8rem; font-weight: 700;
  margin-bottom: 12px; color: var(--gray-900);
}
.section-subtitle {
  text-align: center; font-size: 1.05rem; color: var(--gray-600);
  max-width: 550px; margin: 0 auto 40px;
}

/* ============ HOW IT WORKS ============ */
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; max-width: var(--max-width); margin: 0 auto;
}
.step {
  text-align: center; padding: 32px 20px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.step-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--blue-light); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.step-icon svg { width: 32px; height: 32px; color: var(--blue); }
.step-number {
  display: inline-block; background: var(--blue); color: var(--white);
  width: 28px; height: 28px; border-radius: 50%; font-weight: 700;
  font-size: .85rem; line-height: 28px; margin-bottom: 8px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--gray-600); font-size: .95rem; }

/* ============ TRUST CARDS ============ */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px; max-width: var(--max-width); margin: 0 auto;
}
.trust-card {
  padding: 28px 24px; border-radius: var(--radius);
  border: 1px solid var(--gray-300); text-align: center;
  transition: box-shadow .2s;
}
.trust-card:hover { box-shadow: var(--shadow-lg); }
.trust-card svg { width: 40px; height: 40px; color: var(--blue); margin-bottom: 12px; }
.trust-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.trust-card p { color: var(--gray-600); font-size: .9rem; }

/* ============ SERVICE AREA ============ */
.area-content {
  max-width: var(--max-width); margin: 0 auto;
  text-align: center;
}
.area-badge {
  display: inline-block; background: var(--green-light); color: var(--green);
  padding: 8px 20px; border-radius: 50px; font-weight: 600;
  font-size: .95rem; margin-bottom: 16px;
}
.area-neighborhoods {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin-top: 16px;
}
.area-neighborhoods span {
  background: var(--gray-100); padding: 6px 14px; border-radius: 20px;
  font-size: .9rem; color: var(--gray-800);
}

/* ============ REVIEWS ============ */
.reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: var(--max-width); margin: 0 auto;
}
.review-card {
  background: var(--white); padding: 28px; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.review-stars { color: #f9ab00; font-size: 1.2rem; margin-bottom: 10px; }
.review-card p { color: var(--gray-800); font-size: .95rem; margin-bottom: 12px; font-style: italic; }
.review-author { font-weight: 600; font-size: .9rem; color: var(--gray-600); }

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--blue); color: var(--white); text-align: center;
  padding: 48px 20px;
}
.cta-banner h2 { font-size: 1.6rem; margin-bottom: 8px; }
.cta-banner p { opacity: .9; margin-bottom: 24px; font-size: 1.05rem; }

/* ============ FOOTER ============ */
.footer {
  background: var(--gray-900); color: var(--gray-300); padding: 40px 20px;
}
.footer-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.footer h4 { color: var(--white); margin-bottom: 12px; font-size: 1rem; }
.footer p, .footer a { font-size: .9rem; color: var(--gray-300); }
.footer a:hover { color: var(--white); }
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer-bottom {
  max-width: var(--max-width); margin: 24px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  text-align: center; font-size: .85rem;
}

/* ============ STICKY MOBILE CTA ============ */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--blue); padding: 12px 20px; z-index: 99;
  box-shadow: 0 -2px 10px rgba(0,0,0,.15);
}
.mobile-cta a {
  display: block; text-align: center; color: var(--white);
  font-weight: 700; font-size: 1.1rem; padding: 4px 0;
}
.mobile-cta-spacer { display: none; height: 56px; }

/* ============ ABOUT PAGE ============ */
.about-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white); padding: 48px 20px; text-align: center;
}
.about-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.about-hero p { font-size: 1.1rem; opacity: .9; }
.about-content {
  max-width: 700px; margin: 0 auto; padding: 40px 20px;
}
.about-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--gray-900); }
.about-content p { color: var(--gray-800); margin-bottom: 16px; font-size: 1rem; line-height: 1.7; }
.about-content ul { margin: 0 0 16px 20px; }
.about-content li { color: var(--gray-800); margin-bottom: 8px; line-height: 1.6; }

/* ============ FAQ PAGE ============ */
.faq-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white); padding: 48px 20px; text-align: center;
}
.faq-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.faq-list { max-width: 700px; margin: 0 auto; padding: 40px 20px; }
.faq-item {
  border-bottom: 1px solid var(--gray-300); padding: 0;
}
.faq-question {
  width: 100%; background: none; border: none; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 1.05rem; font-weight: 600;
  color: var(--gray-900); text-align: left; line-height: 1.4;
}
.faq-question::after {
  content: '+'; font-size: 1.5rem; color: var(--blue); font-weight: 300;
  transition: transform .2s; flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.faq-answer-inner {
  padding: 0 0 20px; color: var(--gray-600); font-size: .95rem; line-height: 1.7;
}

/* ============ BOOK PAGE ============ */
.book-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white); padding: 48px 20px; text-align: center;
}
.book-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.book-hero p { opacity: .9; font-size: 1.1rem; }
.book-content { max-width: 700px; margin: 0 auto; padding: 40px 20px; }
.book-card {
  background: var(--gray-50); padding: 32px; border-radius: var(--radius);
  text-align: center; border: 2px dashed var(--gray-300);
}
.book-card h2 { font-size: 1.3rem; margin-bottom: 12px; }
.book-card p { color: var(--gray-600); margin-bottom: 20px; }
.book-info-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 32px;
}
.book-info-card {
  background: var(--white); padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: left;
}
.book-info-card h3 { font-size: 1rem; margin-bottom: 8px; color: var(--gray-900); }
.book-info-card p { font-size: .9rem; color: var(--gray-600); }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 98; padding: 20px;
}
.mobile-menu.active { display: block; }
.mobile-menu a {
  display: block; padding: 16px 0; font-size: 1.1rem; font-weight: 500;
  color: var(--gray-800); border-bottom: 1px solid var(--gray-100);
}
.mobile-menu .nav-phone { color: var(--blue); font-weight: 700; font-size: 1.2rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero h1 { font-size: 1.8rem; }
  .hero .price-tag { font-size: 1.2rem; }
  .hero p { font-size: 1rem; }
  .btn { padding: 14px 24px; font-size: 1rem; width: 100%; }
  .hero-buttons { flex-direction: column; max-width: 320px; margin: 0 auto; }
  .section-title { font-size: 1.5rem; }
  .mobile-cta { display: block; }
  .mobile-cta-spacer { display: block; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .hero h1 { font-size: 2.2rem; }
}
