/* ============================================
   BumperRepair.us — First Place Finishes
   Clean, lightweight, SEO-optimized static site
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0B1D33;
  --navy-light: #142d4f;
  --gold: #D4A843;
  --gold-light: #e8c76a;
  --white: #FFFFFF;
  --off-white: #F7F5F0;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --green: #16a34a;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --max-width: 1120px;
  --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Libre Baskerville', Georgia, serif; color: var(--navy); line-height: 1.3; }
h1 { font-size: clamp(1.875rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
p { margin-bottom: 16px; color: var(--gray-600); }

/* --- Header --- */
.site-header {
  background: var(--navy);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius);
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--white);
  margin: 5px 0; transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 80px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 40%;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,168,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,168,67,0.15); color: var(--gold);
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600;
  margin-bottom: 20px; letter-spacing: 0.03em;
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 32px; max-width: 520px; }

.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 56px 0 60px;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; border: none;
  transition: all var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* --- Sections --- */
.section { padding: 72px 0; }
.section-alt { background: var(--off-white); }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 48px; }

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px 28px;
  transition: all var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }

.service-icon {
  width: 48px; height: 48px;
  background: rgba(212,168,67,0.12);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 16px;
}
.service-card h3 a { color: var(--navy); }
.service-card h3 a:hover { color: var(--gold); }
.service-card p { font-size: 0.93rem; color: var(--gray-600); margin-bottom: 16px; }
.service-link { color: var(--gold); font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 4px; }
.service-link:hover { gap: 8px; }

/* --- Benefits / Why Choose --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.benefit-item { text-align: center; padding: 24px 16px; }
.benefit-icon {
  width: 56px; height: 56px; margin: 0 auto 16px;
  background: rgba(212,168,67,0.1); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}

/* --- Process Steps --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}
.process-step { text-align: center; padding: 24px 16px; position: relative; }
.step-number {
  width: 40px; height: 40px; margin: 0 auto 16px;
  background: var(--navy); color: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; font-family: 'Libre Baskerville', serif;
}

/* --- Reviews --- */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.review-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: 12px; padding: 28px;
}
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.review-text { font-size: 0.93rem; color: var(--gray-600); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.review-author { font-weight: 700; font-size: 0.875rem; color: var(--navy); }

/* --- CTA Banner --- */
.cta-banner {
  background: var(--navy);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.7); margin-bottom: 28px; }
.cta-banner .btn { margin: 0 8px; }

/* --- Content page body --- */
.content-body {
  padding: 64px 0;
}
.content-body .container { max-width: 780px; }
.content-body h2 { margin-top: 40px; margin-bottom: 16px; }
.content-body h3 { margin-top: 28px; }
.content-body p { font-size: 1rem; line-height: 1.75; }
.content-body ul {
  list-style: none; margin: 0 0 24px; padding: 0;
}
.content-body ul li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--gray-600);
}
.content-body ul li::before {
  content: '✓';
  position: absolute; left: 0; top: 8px;
  color: var(--green); font-weight: 700;
}

/* --- Damage Types Grid (What We Fix) --- */
.damage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.damage-card {
  background: var(--off-white);
  border-radius: 12px;
  padding: 28px;
  border-left: 4px solid var(--gold);
}
.damage-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.damage-card p { font-size: 0.9rem; margin-bottom: 0; }

/* --- FAQ --- */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}
.faq-question {
  font-family: 'Libre Baskerville', serif;
  font-weight: 700; font-size: 1.05rem;
  color: var(--navy); margin-bottom: 8px;
  cursor: pointer;
}
.faq-answer { color: var(--gray-600); font-size: 0.95rem; line-height: 1.7; }

/* --- Contact Form --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { margin-bottom: 16px; }
.contact-detail { display: flex; gap: 12px; margin-bottom: 20px; align-items: flex-start; }
.contact-detail-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: rgba(212,168,67,0.1); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-detail strong { display: block; color: var(--navy); font-size: 0.875rem; margin-bottom: 2px; }
.contact-detail span { color: var(--gray-600); font-size: 0.9rem; }

.contact-form label { display: block; font-weight: 600; font-size: 0.875rem; color: var(--navy); margin-bottom: 6px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.95rem; font-family: 'DM Sans', sans-serif;
  margin-bottom: 16px;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  padding: 48px 0 24px;
  color: rgba(255,255,255,0.6);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand { font-family: 'Libre Baskerville', serif; font-size: 1.1rem; color: var(--white); font-weight: 700; margin-bottom: 12px; }
.footer-desc { font-size: 0.875rem; line-height: 1.6; max-width: 320px; }
.footer-heading { color: var(--gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; margin-bottom: 16px; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer ul a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.site-footer ul a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.8rem;
}

/* --- Mobile Sticky CTA Footer --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--navy);
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
}
.sticky-cta-inner {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.sticky-cta a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
  transition: all var(--transition);
}
.sticky-cta-text {
  background: var(--gold);
  color: var(--navy);
}
.sticky-cta-call {
  background: var(--green);
  color: var(--white);
}
.sticky-cta a:active { transform: scale(0.97); }

/* --- Photo CTA Callout Box --- */
.photo-cta {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
  text-align: center;
}
.photo-cta h3 {
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.photo-cta p {
  color: var(--gray-600);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.photo-cta .btn { margin: 0 6px; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 80px; }
  .nav-links { 
    display: none; 
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    padding: 24px; gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0 56px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
