/* Elevate Repair Buffalo — Shared Stylesheet */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c1c1c;
  background: #ffffff;
  line-height: 1.65;
}

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

a {
  color: #1a6cbf;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Site Header ───────────────────────────────────────────── */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e8edf3;
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a6cbf;
  letter-spacing: -0.02em;
}

.site-logo span {
  color: #1c1c1c;
}

.site-nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav a {
  font-size: 0.9rem;
  color: #444;
  font-weight: 500;
}

.site-nav a:hover {
  color: #1a6cbf;
  text-decoration: none;
}

/* ── Header Phone ──────────────────────────────────────────── */
.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a6cbf;
}

.header-phone:hover {
  color: #1559a0;
  text-decoration: none;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: #f0f6ff;
  border-bottom: 1px solid #dce8f7;
  padding: 64px 0 56px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: #1a6cbf;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #0f1f3d;
  max-width: 700px;
  margin: 0 auto 16px;
}

.hero p {
  font-size: 1.05rem;
  color: #4a5568;
  max-width: 560px;
  margin: 0 auto 28px;
}

.btn-primary {
  display: inline-block;
  background: #1a6cbf;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-primary:hover {
  background: #1559a0;
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  background: #fff;
  color: #1a6cbf;
  border: 2px solid #1a6cbf;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 6px;
  transition: background 0.15s ease;
}

.btn-secondary:hover {
  background: #f0f6ff;
  text-decoration: none;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Section Base ──────────────────────────────────────────── */
.section {
  padding: 56px 0;
}

.section-alt {
  background: #f8fafc;
  border-top: 1px solid #eaeff5;
  border-bottom: 1px solid #eaeff5;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f1f3d;
  margin-bottom: 10px;
  line-height: 1.25;
}

.section-sub {
  font-size: 1rem;
  color: #5a6a80;
  margin-bottom: 36px;
  max-width: 580px;
}

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

.card {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 10px;
  padding: 28px 24px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  border-color: #1a6cbf;
  box-shadow: 0 4px 16px rgba(26, 108, 191, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f1f3d;
  margin-bottom: 8px;
}

.card p {
  font-size: 0.93rem;
  color: #5a6a80;
  margin-bottom: 16px;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a6cbf;
}

/* ── Areas List ────────────────────────────────────────────── */
.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin-top: 24px;
}

.areas-list li {
  background: #fff;
  border: 1px solid #dce8f7;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: #334155;
}

/* ── About / Intro Block ───────────────────────────────────── */
.intro-block {
  max-width: 680px;
}

.intro-block p {
  color: #4a5568;
  margin-bottom: 16px;
}

/* ── Page Hero (interior pages) ───────────────────────────── */
.page-hero {
  background: #f0f6ff;
  border-bottom: 1px solid #dce8f7;
  padding: 48px 0 40px;
}

.page-hero .hero-eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #0f1f3d;
  line-height: 1.25;
  max-width: 620px;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  color: #4a5568;
  max-width: 520px;
}

/* ── Content Prose ─────────────────────────────────────────── */
.prose h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0f1f3d;
  margin-bottom: 10px;
  margin-top: 32px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  color: #4a5568;
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 20px;
  color: #4a5568;
  margin-bottom: 14px;
}

.prose ul li {
  margin-bottom: 6px;
}

/* ── Related Links ─────────────────────────────────────────── */
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.related-links a {
  display: inline-block;
  background: #f0f6ff;
  border: 1px solid #dce8f7;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a6cbf;
}

.related-links a:hover {
  background: #dce8f7;
  text-decoration: none;
}

/* ── Site Footer ───────────────────────────────────────────── */
.site-footer {
  background: #0f1f3d;
  color: #a8bbd4;
  padding: 40px 0 28px;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 0.88rem;
  margin-top: 8px;
  max-width: 280px;
}

.footer-brand .site-logo {
  color: #fff;
}

.footer-brand .site-logo span {
  color: #a8bbd4;
}

.footer-nav h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #e2eaf5;
  margin-bottom: 12px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: #a8bbd4;
}

.footer-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid #1e3560;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #6b839f;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}
