/*
 * ShieldWise v10 City Page Modules
 * Shared CSS for all v10 .sw-* classes referenced in city-page-builder-v10.md.
 * Brand: dark navy (#1a3c6e) + golden accent (#d4af37) on light section backgrounds,
 * matching existing site (style.min.css, style456.css, county-hero.css).
 * Bootstrap 4.5.2 compatible. Mobile-first. No JS dependency.
 */

/* ---------- 1. Breadcrumb ---------- */
.sw-breadcrumb {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
  padding: 12px 0;
  font-size: 0.95rem;
}
.sw-breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0 15px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.sw-breadcrumb li {
  display: inline;
}
.sw-breadcrumb li + li::before {
  content: "›";
  color: #999;
  padding: 0 8px;
}
.sw-breadcrumb a {
  color: #1a3c6e;
  text-decoration: none;
  font-weight: 500;
}
.sw-breadcrumb a:hover { text-decoration: underline; }
.sw-breadcrumb li[aria-current="page"] { color: #555; }

/* ---------- 2. Stat grid ---------- */
.sw-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
  padding: 0 15px;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
.sw-stat-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-left: 4px solid #d4af37;
  border-radius: 8px;
  padding: 22px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.sw-stat-card .sw-stat-num {
  display: block;
  color: #1a3c6e;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.sw-stat-card .sw-stat-label {
  display: block;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.4;
}
.sw-stat-card .sw-src { display: block; margin-top: 8px; font-size: 0.8rem; }

/* ---------- 3. Local context table ---------- */
.sw-local-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}
.sw-local-table thead {
  background: #1a3c6e;
  color: #fff;
}
.sw-local-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
}
.sw-local-table td {
  padding: 14px 16px;
  border-top: 1px solid #eee;
  color: #444;
  line-height: 1.6;
  vertical-align: top;
}
.sw-local-table tbody tr:nth-child(even) { background: #f8f9fa; }
@media (max-width: 640px) {
  .sw-local-table thead { display: none; }
  .sw-local-table tr {
    display: block;
    margin-bottom: 16px;
    border-top: 1px solid #eee;
  }
  .sw-local-table td {
    display: block;
    border-top: none;
    padding: 8px 16px;
  }
  .sw-local-table td:first-child {
    font-weight: 700;
    color: #1a3c6e;
    padding-top: 14px;
  }
}

/* ---------- 4. Pull quote (Hamoon operational quote) ---------- */
.sw-pullquote {
  background: #f8f9fa;
  border-left: 4px solid #1a3c6e;
  border-radius: 0 8px 8px 0;
  margin: 30px 0;
  padding: 22px 26px;
  font-style: normal;
  color: #2a2a2a;
  font-size: 1.08rem;
  line-height: 1.7;
}
.sw-pullquote p { margin: 0 0 12px 0; }
.sw-pullquote footer,
.sw-pullquote cite {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
  font-style: normal;
  font-weight: 600;
}
.sw-pullquote cite::before { content: "— "; }

/* ---------- 5. Why-hire trust block ---------- */
.sw-why-hire {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin: 30px 0;
}
.sw-why-hire h2,
.sw-why-hire h3 {
  color: #1a3c6e;
  margin-bottom: 18px;
  font-weight: 700;
}
.sw-why-hire ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sw-why-hire-item {
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  color: #444;
  line-height: 1.65;
}
.sw-why-hire-item:last-child { border-bottom: none; }
.sw-why-hire-item::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 14px;
  color: #28a745;
  font-weight: 700;
  font-size: 1.15rem;
}

/* ---------- 6. Service cards ---------- */
.sw-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.sw-service-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border-top: 3px solid #d4af37;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sw-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.sw-service-card h3 {
  color: #1a3c6e;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.sw-service-card p { color: #555; line-height: 1.65; margin: 0 0 10px 0; font-size: 0.95rem; }
.sw-service-card a {
  display: inline-block;
  margin-top: 8px;
  color: #1a3c6e;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}
.sw-service-card a:hover { color: #d4af37; text-decoration: underline; }

/* ---------- 7. FAQ accordion ---------- */
.sw-faq-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}
.sw-faq-item summary {
  padding: 16px 22px;
  cursor: pointer;
  font-weight: 600;
  color: #1a3c6e;
  list-style: none;
  position: relative;
  padding-right: 50px;
  outline: none;
}
.sw-faq-item summary::-webkit-details-marker { display: none; }
.sw-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: #d4af37;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.sw-faq-item[open] summary::after { content: "−"; }
.sw-faq-item summary:focus-visible { box-shadow: inset 0 0 0 2px #d4af37; }
.sw-faq-item .sw-faq-answer {
  padding: 0 22px 18px 22px;
  color: #444;
  line-height: 1.7;
  font-size: 0.97rem;
}

/* ---------- 8. Callout (compliance + service-area honesty) ---------- */
.sw-callout {
  background: #fff8e1;
  border-left: 4px solid #d4af37;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 24px 0;
  color: #5a4a1a;
  line-height: 1.7;
  font-size: 0.97rem;
}
.sw-callout strong { color: #1a3c6e; }
.sw-callout a { color: #1a3c6e; font-weight: 600; }
.sw-callout--alert {
  background: #fdecea;
  border-left-color: #d32f2f;
  color: #5a1a1a;
}

/* ---------- 9. Nearby cities ---------- */
.sw-nearby-cities {
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  margin: 30px 0;
}
.sw-nearby-cities h2,
.sw-nearby-cities h3 {
  color: #1a3c6e;
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 700;
}
.sw-nearby-cities ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.sw-nearby-cities li {
  padding: 10px 14px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #1a3c6e;
  font-size: 0.95rem;
  line-height: 1.5;
}
.sw-nearby-cities li a {
  color: #1a3c6e;
  font-weight: 700;
  text-decoration: none;
}
.sw-nearby-cities li a:hover { color: #d4af37; }
.sw-nearby-cities li .sw-nearby-note {
  display: block;
  color: #666;
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 2px;
}

/* ---------- 10. Blog links ---------- */
.sw-blog-links {
  padding: 30px;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2f7 100%);
  border-radius: 12px;
  margin: 30px 0;
}
.sw-blog-links h2,
.sw-blog-links h3 {
  color: #1a3c6e;
  font-size: 1.4rem;
  margin-bottom: 18px;
  font-weight: 700;
}
.sw-blog-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.sw-blog-links li {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border-top: 3px solid #d4af37;
}
.sw-blog-links li a {
  display: block;
  color: #1a3c6e;
  font-weight: 700;
  font-size: 1.02rem;
  text-decoration: none;
  margin-bottom: 6px;
}
.sw-blog-links li a:hover { color: #d4af37; }
.sw-blog-links li p {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 8px 0;
}
.sw-blog-links li .sw-read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a3c6e;
}

/* ---------- 11. Last-updated stamp ---------- */
.sw-last-updated {
  text-align: center;
  color: #777;
  font-size: 0.88rem;
  margin: 18px 0 0 0;
  font-style: italic;
}

/* ---------- 12. Inline source citation ---------- */
.sw-src {
  font-size: 0.82rem;
  color: #777;
  margin-left: 4px;
}
.sw-src a {
  color: #1a3c6e;
  text-decoration: underline;
  text-decoration-color: rgba(26,60,110,0.3);
}
.sw-src a:hover { text-decoration-color: #d4af37; }

/* ---------- 13. Generic v10 section wrapper ---------- */
.sw-section {
  padding: 50px 0;
}
.sw-section .container { max-width: 1140px; }
.sw-section h2 {
  color: #1a3c6e;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ---------- 14. Compliance bar (used in callouts) ---------- */
.sw-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  padding: 14px 18px;
  background: #1a3c6e;
  color: #fff;
  border-radius: 8px;
}
.sw-bar strong { color: #d4af37; }
.sw-bar a { color: #d4af37; text-decoration: underline; }

/* ---------- 15. Responsive tweaks ---------- */
@media (max-width: 768px) {
  .sw-stat-card { padding: 18px 16px; }
  .sw-stat-card .sw-stat-num { font-size: 1.6rem; }
  .sw-why-hire { padding: 22px; }
  .sw-nearby-cities, .sw-blog-links { padding: 22px; }
}

/* ---------- 16. cw-dir — city directory pill grid (county hub pages) ---------- */
.cw-dir {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.cw-dir a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.4;
  background: var(--cw-deep, #0b3040);
  color: var(--cw-accent-soft, #e8c86a);
  text-decoration: none;
  border: 1px solid var(--cw-brand, #2e7d32);
  transition: background .18s, color .18s;
}
.cw-dir a:hover {
  background: var(--cw-brand, #2e7d32);
  color: #fff;
}
