/* ===== 24hr Locksmith Near Me — Static Site Stylesheet ===== */
/* Brand: Primary #E8311F, Secondary #162F62, Accent #1F3A5F */
/* Font: Inter via Google Fonts (loaded in HTML head) */
/* Border radius: 10px */

:root {
  --brand-red: #E8311F;
  --brand-dark: #162F62;
  --brand-accent: #1F3A5F;
  --brand-light: #f8fafc;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
  --max-width: 1100px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-accent); text-decoration: none; }
a:hover { color: var(--brand-red); }

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

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius);
  background: var(--brand-red);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
}
.logo-text { font-weight: 800; font-size: 20px; color: var(--brand-dark); }
.main-nav { display: flex; gap: 32px; }
.main-nav a { font-weight: 600; font-size: 14px; color: var(--text-muted); }
.main-nav a:hover { color: var(--brand-red); }
.header-call-btn {
  background: var(--brand-red);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.header-call-btn:hover { opacity: 0.9; color: #fff; }

/* ===== Hero ===== */
.hero {
  background: var(--brand-dark);
  color: #fff;
  padding: 64px 20px;
  text-align: center;
}
.hero-label {
  color: var(--brand-red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero p {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #94a3b8;
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand-red);
  color: #fff !important;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(232,49,31,0.3);
}
.hero-cta:hover { opacity: 0.9; color: #fff; }
.hero-badges {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 16px; margin-top: 24px; font-size: 14px; color: #94a3b8;
}
.hero-badges span::before { content: "✓ "; color: var(--brand-red); }

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section-alt { background: var(--brand-light); }
.section-dark { background: var(--brand-dark); color: #fff; }
.section-red { background: var(--brand-red); color: #fff; }
.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.section-dark .section-title { color: #fff; }
.section-subtitle { font-size: 18px; color: var(--text-muted); margin-bottom: 40px; }
.section-dark .section-subtitle { color: #94a3b8; }
.text-center { text-align: center; }

/* ===== Service Cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.service-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s;
}
.service-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: #fef2f2;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.service-card h3 { font-weight: 700; font-size: 18px; color: var(--brand-dark); margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--text-muted); }

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.section-dark .step h3 { color: #fff; }
.step p { font-size: 14px; color: var(--text-muted); }
.section-dark .step p { color: #94a3b8; }

/* ===== State Grid ===== */
.state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.state-link {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--brand-dark);
  transition: border-color 0.2s, color 0.2s;
}
.state-link:hover { border-color: var(--brand-red); color: var(--brand-red); }

/* ===== Features (Why Choose Us) ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.feature { text-align: center; }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature h3 { font-weight: 700; margin-bottom: 4px; }
.section-dark .feature h3 { color: #fff; }
.feature p { font-size: 14px; color: var(--text-muted); }
.section-dark .feature p { color: #94a3b8; }

/* ===== FAQ ===== */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--brand-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 20px 16px; font-size: 14px; color: var(--text-muted); }

/* ===== Article Content (city pages) ===== */
.article { max-width: 800px; margin: 0 auto; }
.article h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--brand-dark);
  margin: 40px 0 16px;
}
.article h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 24px 0 12px;
}
.article p { margin-bottom: 16px; color: var(--text); }
.article ul { margin: 0 0 16px 20px; }
.article ul li { margin-bottom: 8px; color: var(--text); }

/* Service blocks on city pages */
.service-block {
  border-left: 4px solid var(--brand-red);
  padding-left: 20px;
  margin-bottom: 20px;
}
.service-block h3 { margin-top: 0; }

/* Checklist */
.checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text);
}
.checklist-item::before {
  content: "✓";
  color: var(--brand-red);
  font-weight: 700;
}

/* Nearby cities */
.nearby-cities { display: flex; flex-wrap: wrap; gap: 12px; }
.nearby-city-link {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-size: 14px;
  color: var(--brand-dark);
}
.nearby-city-link:hover { border-color: var(--brand-red); color: var(--brand-red); }

/* ===== Final CTA ===== */
.cta-final {
  text-align: center;
  padding: 56px 20px;
}
.cta-final h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-final p { font-size: 18px; margin-bottom: 24px; opacity: 0.9; }
.cta-btn-light {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--brand-red) !important;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 18px;
}
.cta-btn-light:hover { background: #f1f5f9; }

/* ===== Footer ===== */
.site-footer {
  background: var(--brand-dark);
  color: #fff;
  padding: 48px 0 24px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-brand .logo-text { color: #fff; }
.footer-brand p { color: #94a3b8; font-size: 14px; margin-top: 12px; max-width: 250px; }
.footer-links h4 { font-weight: 700; margin-bottom: 12px; font-size: 14px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: #94a3b8; font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-phone a { color: var(--brand-red); font-size: 24px; font-weight: 700; }
.footer-phone p { color: #94a3b8; font-size: 14px; margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid #334155;
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  color: #64748b;
  font-size: 14px;
}

/* ===== Sticky Mobile Call Bar ===== */
#sticky-call {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 64px;
  text-decoration: none;
}
#sticky-call:active { background: #c62818; }
@media (max-width: 768px) {
  #sticky-call { display: flex; }
  body { padding-bottom: 64px; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-call-btn { padding: 8px 14px; font-size: 13px; }
  .hero { padding: 40px 20px; }
  .section { padding: 40px 0; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; gap: 24px; }
}

/* ===== Additional styles for WordPress content migration ===== */

/* Inline call button (replaces Themify Big Red Button shortcode) */
.inline-call-wrapper { text-align: center; margin: 28px 0; }
.inline-call-btn { display: inline-block; background: var(--brand-red); color: #fff !important; padding: 14px 36px; border-radius: 10px; font-size: 1.15rem; font-weight: 700; text-decoration: none !important; box-shadow: 0 4px 15px rgba(232,49,31,0.3); }
.inline-call-btn:hover { background: var(--brand-red-dark); }

/* Checkmark list items (replaces Themify SVG checkmarks) */
.article ul.checkmark-list { list-style: none; padding: 0; }
.article ul.checkmark-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.article ul.checkmark-list li::before { content: '✓'; position: absolute; left: 0; color: var(--brand-red); font-weight: 700; }

/* Clean up Themify remnants in content */
.article em[style*="background-color"] { background: var(--brand-red) !important; color: #fff !important; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-style: normal; font-size: 0.8rem; margin-right: 6px; }
.article svg { display: none; }

/* Breadcrumb */
.breadcrumb { padding: 12px 0; font-size: 0.9rem; color: var(--text-light); }
.breadcrumb a { color: var(--brand-accent); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 8px; color: var(--border); }

/* Table of contents for long articles */
.article-toc { background: var(--brand-light); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; margin: 24px 0; }
.article-toc h3 { margin-bottom: 12px; font-size: 1rem; }
.article-toc ul { list-style: none; padding: 0; }
.article-toc li { margin-bottom: 6px; }
.article-toc a { color: var(--brand-accent); text-decoration: none; font-size: 0.95rem; }
.article-toc a:hover { color: var(--brand-red); }

/* Content image sizing */
.article img { max-width: 100%; height: auto; border-radius: 8px; margin: 16px 0; }

/* 404 page */
.error-404 { text-align: center; padding: 80px 24px; }
.error-404 h1 { font-size: 3rem; color: var(--brand-dark); margin-bottom: 16px; }
.error-404 p { font-size: 1.2rem; color: var(--text-light); margin-bottom: 32px; }
