/* ==========================================================================
   TORSIONCRAFT THEME - HYPER-FAST PERFORMANCE CSS
   Engineered for 100/100 Google PageSpeed, Zero Render-Blocking, Mobile-First
   ========================================================================== */

:root {
  --primary: #0f2744;          /* Deep Industrial Navy - Trust & Authority */
  --primary-light: #1e3a5f;
  --primary-dark: #09182b;
  --accent: #e65100;           /* High-Vis Safety Amber/Orange - Primary CTA */
  --accent-hover: #cf4500;
  --accent-light: #fff3e0;
  --danger: #b71c1c;           /* Emergency Alert Red */
  --danger-light: #ffebee;
  --success: #1b5e20;
  --success-light: #e8f5e9;
  --surface: #ffffff;
  --background: #f8fafc;
  --surface-alt: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 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);
  --radius: 8px;
  --radius-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--background);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 72px; /* Space for Mobile Sticky Call Bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--accent);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   TOP ALERT / EMERGENCY BANNER
   ========================================================================== */
.alert-bar {
  background: var(--danger);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 0;
  text-align: center;
}
.alert-bar strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   NAVIGATION / HEADER
   ========================================================================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 4px rgba(15,39,68,0.25);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.brand-tagline {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.dispatch-badge {
  display: none;
  flex-direction: column;
  text-align: right;
}
@media (min-width: 640px) {
  .dispatch-badge {
    display: flex;
  }
}
.dispatch-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  text-transform: uppercase;
}
.dispatch-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.9; }
}
.dispatch-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

.btn-header-call {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(230,81,0,0.3);
  transition: all 0.2s ease;
}
.btn-header-call:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(230,81,0,0.4);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumb-nav {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb-list li+li::before {
  content: "/";
  color: var(--border-dark);
}
.breadcrumb-list a {
  color: var(--text-muted);
}
.breadcrumb-list a:hover {
  color: var(--primary);
  text-decoration: underline;
}
.breadcrumb-list .current {
  color: var(--text-main);
  font-weight: 600;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0f2744 0%, #1e3a5f 100%);
  color: #ffffff;
  padding: 48px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.05;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  position: relative;
  z-index: 1;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.9fr;
    align-items: center;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
@media (min-width: 768px) {
  .hero-title {
    font-size: 2.9rem;
  }
}
.hero-title span {
  color: #fbbf24;
}
.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin-bottom: 24px;
  max-width: 620px;
}

.hero-trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 32px;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
}
.hero-trust-item svg {
  color: #22c55e;
  flex-shrink: 0;
}

/* HERO DISPATCH CARD */
.hero-card {
  background: #ffffff;
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.1);
  text-align: center;
}
.hero-card-tag {
  display: inline-block;
  background: var(--danger-light);
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.hero-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}
.hero-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.call-cta-btn {
  background: var(--accent);
  color: #ffffff !important;
  font-size: 1.35rem;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 6px 16px rgba(230,81,0,0.35);
  transition: all 0.2s ease;
  margin-bottom: 14px;
  text-decoration: none;
}
.call-cta-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(230,81,0,0.45);
}
.call-cta-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* ==========================================================================
   SAFETY WARNING BOX (CRITICAL LOCAL AUTHORITY)
   ========================================================================== */
.safety-warning-banner {
  background: var(--danger-light);
  border-left: 6px solid var(--danger);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 36px 0;
  box-shadow: var(--shadow-sm);
}
.warning-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--danger);
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.warning-body {
  font-size: 0.95rem;
  color: #7f1d1d;
  line-height: 1.6;
}
.warning-body strong {
  color: #991b1b;
}

/* ==========================================================================
   MAIN CONTENT LAYOUT (2-COLUMN ARCHITECTURE)
   ========================================================================== */
.main-wrapper {
  padding: 48px 0;
}
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 992px) {
  .content-grid {
    grid-template-columns: 2.1fr 1fr;
  }
}

.article-content h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.article-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 24px;
  margin-bottom: 12px;
}
.article-content p {
  font-size: 1.025rem;
  color: #334155;
  line-height: 1.75;
  margin-bottom: 18px;
}
.article-content ul, .article-content ol {
  margin: 18px 0 24px 22px;
  color: #334155;
}
.article-content li {
  margin-bottom: 10px;
  line-height: 1.65;
}

/* HYPER-LOCAL WEATHER & DATA STATS CARD */
.local-stats-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}
.local-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.local-stats-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.stat-item {
  background: var(--surface-alt);
  padding: 14px;
  border-radius: var(--radius);
  text-align: center;
}
.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}
.stat-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

/* COMPARISON TABLE: TORSION VS EXTENSION */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
table.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  text-align: left;
}
table.specs-table th {
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  padding: 14px 18px;
}
table.specs-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: #334155;
}
table.specs-table tr:nth-child(even) td {
  background: var(--surface-alt);
}
table.specs-table .highlight {
  font-weight: 700;
  color: var(--success);
}

/* PROCESS WORKFLOW STEPS */
.process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 28px 0;
}
@media (min-width: 640px) {
  .process-list {
    grid-template-columns: 1fr 1fr;
  }
}
.process-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.process-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}
.process-step-num {
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.process-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.process-card-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* FAQ ACCORDION (100% PURE CSS / ZERO JS REQUIRED) */
.faq-section {
  margin: 48px 0;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-summary {
  padding: 18px 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
details[open] .faq-summary::after {
  content: "−";
}
details[open] .faq-summary {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.faq-content {
  padding: 18px 22px;
  color: #334155;
  font-size: 0.975rem;
  line-height: 1.7;
}

/* ==========================================================================
   SIDEBAR COMPONENTS
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.sidebar-widget {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.fast-check-list {
  list-style: none;
}
.fast-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.925rem;
  color: #334155;
  margin-bottom: 12px;
}
.fast-check-list svg {
  color: #22c55e;
  margin-top: 3px;
  flex-shrink: 0;
}

.sidebar-sticky-box {
  background: linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  position: sticky;
  top: 96px;
}

/* ==========================================================================
   NEARBY CITIES & INTERNAL LINKING GRID
   ========================================================================== */
.nearby-cities-section {
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.city-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.city-pill-link {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-light);
  text-align: center;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}
.city-pill-link:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--primary-dark);
  color: #94a3b8;
  padding: 56px 0 24px;
  border-top: 4px solid var(--accent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
.footer-brand-title {
  color: #ffffff;
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 340px;
}
.footer-col-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}
.footer-links a:hover {
  color: #ffffff;
}
.footer-nap {
  font-size: 0.9rem;
  line-height: 1.7;
}
.footer-nap strong {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  font-size: 0.8rem;
  text-align: center;
  color: #64748b;
}

/* ==========================================================================
   MOBILE STICKY CLICK-TO-CALL BAR
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
  border-top: 2px solid var(--accent);
  padding: 10px 16px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}
.sticky-bar-info {
  display: flex;
  flex-direction: column;
}
.sticky-bar-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--danger);
  text-transform: uppercase;
}
.sticky-bar-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}
.sticky-call-btn {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 8px rgba(230,81,0,0.3);
  text-decoration: none;
}
