:root {
  --bg-dark: #f8fafc; /* Crisp Light Slate Background */
  --bg-card: #ffffff; /* Pure White Card Containers */
  --bg-card-hover: #ffffff; /* Hover White */
  --border-glass: #e2e8f0; /* Crisp Clean Border */
  --border-gold: #f59e0b; /* Safety Amber Accent */
  --primary-amber: #f59e0b; /* Safety Amber */
  --primary-amber-bright: #d97706; /* Deep Amber Text */
  --accent-blue: #0284c7; /* Water Cyan Accent */
  --signal-red: #dc2626; /* Pulse Red */
  --text-main: #0f172a; /* Deep Slate Text */
  --text-muted: #475569; /* Slate Muted Text */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-md: 14px;
  --shadow-glass: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  position: relative;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  body {
    padding-bottom: 70px; /* Space for mobile sticky call bar ONLY on mobile */
  }
}

a {
  color: var(--primary-amber-bright);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--accent-blue);
}

img, video, iframe, object, embed {
  max-width: 100% !important;
  height: auto;
  display: block;
}

/* 1. Live Dispatcher Ticker Bar (.emergency-bar) */
.emergency-bar {
  background: linear-gradient(90deg, #dc2626, #ef4444, #dc2626);
  border-bottom: 1px solid rgba(220, 38, 38, 0.5);
  color: #ffffff;
  padding: 8px 12px;
  font-weight: 800;
  font-size: clamp(0.72rem, 3.2vw, 0.9rem);
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.35);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.emergency-bar .ticker-mobile {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.emergency-bar .ticker-desktop {
  display: none;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .emergency-bar .ticker-mobile {
    display: none;
  }
  .emergency-bar .ticker-desktop {
    display: block;
  }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ffffff;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
  animation: pulse-ring 1.5s infinite;
  vertical-align: middle;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.8);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Header & Nav */
.header-main {
  background: #ffffff;
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  width: 100%;
  max-width: 100vw;
  position: relative;
  z-index: 1001;
  box-sizing: border-box;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.brand-logo {
  font-size: clamp(0.9rem, 3.8vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-logo span {
  color: var(--primary-amber-bright);
}

.nav-links {
  display: none;
  gap: 20px;
  align-items: center;
}

@media (min-width: 850px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  color: #334155;
  font-weight: 700;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-amber-bright);
}

/* Desktop Call Button vs Mobile Controls */
.desktop-call-btn {
  display: none;
}

@media (min-width: 769px) {
  .desktop-call-btn {
    display: inline-flex;
  }
}

.btn-header-call {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  font-weight: 900;
  padding: 10px 20px;
  border-radius: 10px;
  white-space: nowrap;
  font-size: 0.98rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  flex-shrink: 0;
}

.btn-header-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.55);
  background: #0f172a;
  color: #ffffff !important;
}

.mobile-header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 769px) {
  .mobile-header-controls {
    display: none;
  }
}

.mobile-quick-call {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  font-weight: 900;
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
}

.mobile-menu-toggle {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-toggle:hover, .mobile-menu-toggle.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

/* Mobile Dropdown Navigation Drawer */
.mobile-dropdown-menu {
  display: none;
  background: #ffffff;
  border-bottom: 3px solid var(--primary-amber);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  padding: 16px 20px 24px;
  width: 100%;
  box-sizing: border-box;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 999;
}

.mobile-dropdown-menu.active {
  display: block;
  animation: fadeInDown 0.2s ease forwards;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.mobile-nav-links a {
  color: #0f172a;
  font-weight: 800;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: block;
}

.mobile-nav-links a:hover {
  background: #fff7ed;
  color: var(--primary-amber-bright);
  border-color: #fde68a;
}

/* 2. Bright Hero Section */
.hero-section {
  padding: 36px 16px 32px;
  text-align: center;
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 60%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-glass);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 70px 20px 60px;
  }
}

.hero-container {
  max-width: 1050px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  box-sizing: border-box;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff7ed;
  border: 1px solid #fde68a;
  color: #b45309;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: clamp(0.7rem, 2.7vw, 0.88rem);
  font-weight: 800;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
  max-width: 100%;
  text-align: center;
}

.status-badge .pulse-dot {
  background-color: #dc2626;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(1.7rem, 5.8vw, 3.8rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  color: #0f172a;
  word-break: break-word;
}

.hero-title span {
  color: #d97706;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 3.5vw, 1.25rem);
  color: #475569;
  max-width: 820px;
  margin: 0 auto 24px;
  line-height: 1.55;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  font-weight: 900;
  font-size: clamp(0.88rem, 3.4vw, 1.35rem);
  padding: 14px 20px;
  border-radius: 10px;
  white-space: nowrap;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.4);
  transition: all 0.25s ease;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .btn-hero-cta {
    padding: 17px 36px;
    border-radius: 12px;
  }
}

.btn-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(217, 119, 6, 0.6);
  background: #0f172a;
  color: #ffffff !important;
}

/* 3. Symmetrical 4-Column Services Grid (.grid-services) */
.services-section {
  padding: 36px 16px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .services-section {
    padding: 60px 20px;
  }
}

.section-title {
  font-size: clamp(1.45rem, 4.2vw, 2.6rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  color: #0f172a;
  line-height: 1.25;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: clamp(0.88rem, 2.8vw, 1.1rem);
  margin-bottom: 28px;
}

.grid-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 600px) {
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-services {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-top: 4px solid var(--primary-amber);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.service-card:hover {
  background: #ffffff;
  border-color: var(--primary-amber-bright);
  border-top-color: var(--primary-amber-bright);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}

.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #0f172a;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.urgency-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(251, 191, 36, 0.6);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.card-icon {
  font-size: 1.5rem;
}

.card-title,
.card-title a {
  font-size: 1.12rem;
  font-weight: 800;
  color: #0f172a !important;
  line-height: 1.3;
  text-decoration: none;
}

.card-title a:hover {
  color: var(--primary-amber-bright) !important;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.5;
}

.btn-card-call {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  font-weight: 900;
  font-size: clamp(0.72rem, 1.1vw, 0.88rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 10px 8px;
  border-radius: 8px;
  text-align: center;
  display: block;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.btn-card-call:hover {
  background: #0f172a;
  color: #ffffff !important;
}

/* Responsive Pricing Table vs Mobile Pricing Cards */
.pricing-table-desktop {
  display: none;
}

.pricing-cards-mobile {
  display: block;
  margin: 20px 0;
  width: 100%;
}

@media (min-width: 768px) {
  .pricing-table-desktop {
    display: block;
  }
  .pricing-cards-mobile {
    display: none;
  }
}

/* Article Layout & Responsive Stacking (.article-layout-grid) */
.article-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .article-layout-grid {
    grid-template-columns: 2.5fr 1fr;
    padding: 40px 20px;
    gap: 36px;
  }
}

.main-content {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  box-shadow: var(--shadow-glass);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 768px) {
  .main-content {
    padding: 36px 30px;
  }
}

.main-content h2 {
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 900;
  color: #0f172a;
  margin: 28px 0 16px;
  border-left: 4px solid var(--primary-amber);
  padding-left: 12px;
  line-height: 1.25;
}

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

.main-content h3 {
  font-size: clamp(1.12rem, 3vw, 1.35rem);
  font-weight: 800;
  color: var(--primary-amber-bright);
  margin: 22px 0 12px;
}

.main-content p {
  color: #334155;
  font-size: 0.98rem;
  margin-bottom: 16px;
  line-height: 1.65;
}

.main-content ul, .main-content ol {
  margin: 0 0 20px 20px;
  color: #334155;
}

.main-content li {
  margin-bottom: 8px;
}

/* Sidebar Widgets */
.sidebar-sticky {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .sidebar-sticky {
    position: sticky;
    top: 80px;
  }
}

.widget-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  box-shadow: var(--shadow-glass);
  width: 100%;
  box-sizing: border-box;
}

.widget-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Lead Form Styling */
.leadslytic-form-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.leadslytic-form-container input,
.leadslytic-form-container select,
.leadslytic-form-container textarea {
  width: 100%;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #0f172a;
  font-family: inherit;
  font-size: 0.92rem;
  box-sizing: border-box;
}

.leadslytic-form-container input:focus,
.leadslytic-form-container select:focus,
.leadslytic-form-container textarea:focus {
  outline: none;
  border-color: var(--primary-amber);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.25);
  background: #ffffff;
}

.btn-form-submit {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 900;
  padding: 14px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.25s ease;
}

.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.5);
  background: #0f172a;
}

/* Glass Accordion FAQ System */
.faq-section {
  margin: 32px 0;
  width: 100%;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
  width: 100%;
}

.faq-card[open] {
  background: #ffffff;
  border-color: var(--primary-amber);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.faq-summary {
  padding: 14px 16px;
  font-weight: 800;
  font-size: 0.98rem;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  line-height: 1.35;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-q-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--primary-amber-bright);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-gold);
  white-space: nowrap;
  flex-shrink: 0;
}

.faq-chevron {
  transition: transform 0.25s ease;
  color: var(--primary-amber-bright);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.faq-card[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 16px 16px;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.6;
  border-top: 1px solid #f1f5f9;
  margin-top: 6px;
  padding-top: 12px;
}

/* Grids & Cards */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0;
  width: 100%;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 20px 0;
  width: 100%;
}

@media (min-width: 480px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.04);
  width: 100%;
  box-sizing: border-box;
}

.info-card h4 {
  color: #0f172a;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
  color: #475569;
}

/* Fixed Mobile Sticky Call Bar (.mobile-sticky-bar) */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  padding: 12px 16px;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.25);
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

@media (min-width: 769px) {
  .mobile-sticky-bar {
    display: none;
  }
}

.btn-mobile-call {
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(0.92rem, 3.8vw, 1.15rem);
  white-space: nowrap;
  display: block;
  width: 100%;
  text-align: center;
}

/* Breadcrumb Styling */
.breadcrumbs-container ol li a:hover {
  color: var(--primary-amber) !important;
  text-decoration: underline;
}

/* Trust Badges & Human Touch Highlights */
.trust-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

.trust-pill {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Footer */
.footer-main {
  background: #0f172a;
  border-top: 1px solid #1e293b;
  padding: 45px 16px 30px;
  color: #94a3b8;
  font-size: 0.9rem;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .footer-main {
    padding-bottom: 90px;
  }
}

.footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 2fr 1fr 1fr;
    padding: 60px 20px 40px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .brand-logo {
  color: #ffffff;
}

.footer-main a {
  color: #94a3b8;
}

.footer-main a:hover {
  color: #fbbf24;
}

.footer-bottom {
  max-width: 1240px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.84rem;
}
