/* ==========================================================================
   BrokenSpring Direct LLC - Master Design System
   Emergency Crimson & Obsidian Anti-Footprint Palette (2026/2027)
   ========================================================================== */
:root {
  --primary: #dc2626;
  --primary-dark: #991b1b;
  --accent: #ea580c;
  --dark: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #334155;
  --text-muted: #64748b;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-emergency: #fecaca;
  --emergency-bg: #fef2f2;
  --success: #059669;
  --success-bg: #ecfdf5;
  --radius: 8px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.65;
  font-size: 16px;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Emergency Alert Bar */
.alert-bar {
  background: var(--dark);
  color: #fca5a5;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid var(--primary);
  letter-spacing: 0.5px;
}
.alert-bar strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

/* Site Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 18px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-logo:hover { text-decoration: none; }
.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 2px 4px rgba(220,38,38,0.3);
}
.brand-name {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--dark);
  letter-spacing: -0.5px;
  display: block;
  line-height: 1.1;
}
.brand-tagline {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}
.header-right { display: flex; align-items: center; gap: 24px; }
.dispatch-badge {
  text-align: right;
  display: flex;
  flex-direction: column;
}
.dispatch-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}
.dispatch-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.dispatch-time { font-size: 11px; color: var(--text-muted); font-weight: 600; }
.btn-header-call {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(220,38,38,0.25);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-header-call:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(220,38,38,0.35);
  text-decoration: none;
  color: #ffffff;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #020617 0%, #0f172a 60%, #1e1b4b 100%);
  color: #ffffff;
  padding: 64px 0 54px;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid var(--primary);
}
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 44px; align-items: center; }
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(220,38,38,0.15);
  border: 1px solid rgba(239,68,68,0.5);
  color: #fca5a5;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 18px;
  color: #ffffff;
  letter-spacing: -0.5px;
}
.hero-title span { color: #f87171; }
.hero-subtitle {
  font-size: 1.08rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 24px;
}
.hero-metrics {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-metric-item { display: flex; flex-direction: column; }
.hero-metric-val { font-size: 1.4rem; font-weight: 900; color: #f87171; }
.hero-metric-lbl { font-size: 11px; text-transform: uppercase; color: #94a3b8; font-weight: 700; }

.hero-card {
  background: #ffffff;
  color: var(--text-main);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  border-top: 5px solid var(--primary);
}
.hero-card h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 12px;
}
.hero-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.hero-card-features {
  list-style: none;
  margin-bottom: 24px;
}
.hero-card-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dark);
}
.hero-card-features li svg { color: var(--success); flex-shrink: 0; }
.call-cta-btn {
  display: block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  text-align: center;
  padding: 16px;
  font-size: 1.35rem;
  font-weight: 900;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(220,38,38,0.3);
  transition: transform 0.15s;
}
.call-cta-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
  text-decoration: none;
}
.call-subtext {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
  font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumbs-bar a { color: var(--text-muted); }
.breadcrumbs-bar a:hover { color: var(--primary); }
.breadcrumbs-bar span { margin: 0 8px; color: #cbd5e1; }

/* Main Wrapper & Content Grid */
.main-wrapper { padding: 56px 0 72px; }
.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 52px; }
.article-content h2 {
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--dark);
  margin: 40px 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
  line-height: 1.3;
}
.article-content h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin: 28px 0 12px;
}
.article-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}
.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px;
}
.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

/* Before and After Visual Module */
.before-after-module {
  margin: 40px 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.before-after-header {
  background: var(--dark);
  color: #ffffff;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.before-after-title {
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.before-after-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
}
.comparison-card {
  background: var(--bg-light);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.comparison-card.before-card { border-top: 4px solid var(--primary); }
.comparison-card.after-card { border-top: 4px solid var(--success); }
.comparison-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}
.comparison-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-label-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}
.before-badge { background: var(--primary); }
.after-badge { background: var(--success); }
.comparison-caption {
  padding: 16px;
  font-size: 13px;
  color: var(--text-main);
  line-height: 1.6;
}
.comparison-caption strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
  margin-bottom: 4px;
}

/* Callout Boxes */
.consumer-alert-box {
  background: var(--emergency-bg);
  border: 1px solid var(--border-emergency);
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  padding: 26px;
  margin: 32px 0;
}
.consumer-alert-box h3 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.engineering-box {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-left: 5px solid #0284c7;
  border-radius: 8px;
  padding: 26px;
  margin: 32px 0;
}
.engineering-box h3 {
  color: #0369a1;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 12px;
}

/* Tables */
.pricing-table-wrap { margin: 28px 0; overflow-x: auto; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}
.pricing-table th {
  background: var(--dark);
  color: #ffffff;
  padding: 14px 18px;
  text-align: left;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pricing-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:hover td { background: #fafafa; }
.price-tag {
  font-weight: 900;
  color: var(--primary);
  font-size: 1.15rem;
}

/* Contractor Photos */
.job-photo-figure {
  margin: 32px 0;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}
.job-photo-img { width: 100%; height: auto; display: block; }
.job-photo-caption {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}
.job-photo-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* Sidebar Widgets */
.sidebar-sticky { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-widget {
  background: #ffffff;
  border-radius: 10px;
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}
.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}
.widget-list { list-style: none; }
.widget-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
}
.widget-list li:last-child { border-bottom: none; }
.widget-list a { color: var(--text-main); font-weight: 600; }
.widget-list a:hover { color: var(--primary); }

/* Footer */
.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 64px 0 28px;
  margin-top: 80px;
  border-top: 4px solid var(--primary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
}
.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 20px;
}
.footer-nap {
  background: rgba(255,255,255,0.05);
  padding: 16px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.8;
  border-left: 3px solid var(--primary);
}
.footer-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; font-size: 14px; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  border-top: 2px solid var(--primary);
  padding: 10px 16px;
  z-index: 999;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
}
.sticky-bar-info { display: flex; flex-direction: column; }
.sticky-bar-text { color: #ffffff; font-weight: 800; font-size: 14px; }
.sticky-bar-time { color: #f87171; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.sticky-call-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-weight: 900;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media(max-width: 900px) {
  .hero-grid, .content-grid, .footer-grid { grid-template-columns: 1fr; }
  .before-after-grid { grid-template-columns: 1fr; }
  .sidebar-sticky { position: static; }
  .mobile-sticky-bar { display: flex; }
  body { padding-bottom: 64px; }
  .dispatch-badge { display: none; }
}
