/* ==========================================================================
   24/7 EMERGENCY PLUMBERS SERVICE - DESIGN SYSTEM & CSS UTILITIES
   Theme: High Urgency, Dark Glassmorphism, Red/Gold Warning System, High CTR
   ========================================================================== */

:root {
  --color-bg-dark: #0b0f19;
  --color-bg-card: rgba(22, 30, 49, 0.85);
  --color-bg-card-hover: rgba(30, 41, 67, 0.95);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-red: rgba(229, 62, 62, 0.4);
  
  --color-primary-red: #e53e3e;
  --color-primary-red-hover: #c53030;
  --color-red-glow: rgba(229, 62, 62, 0.5);
  
  --color-accent-gold: #f6ad55;
  --color-accent-amber: #dd6b20;
  
  --color-text-main: #f7fafc;
  --color-text-muted: #a0aec0;
  --color-text-dim: #718096;
  
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --radius: 12px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #fff;
}

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

/* ==========================================================================
   URGENCY BANNER & HEADER
   ========================================================================== */

.top-announcement {
  background: linear-gradient(90deg, #9b2c2c, #e53e3e, #9b2c2c);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-align: center;
  padding: 0.5rem 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 10px rgba(229, 62, 62, 0.4);
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #68d391;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(104, 211, 145, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(104, 211, 145, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(104, 211, 145, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(104, 211, 145, 0); }
}

header {
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.85rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* LOGO - CLEAN MOBILE ALIGNMENT */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

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

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-main {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.brand-sub {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-primary-red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-container {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: #fff;
}

.btn-header-call {
  background: linear-gradient(135deg, var(--color-primary-red), #c53030);
  color: #fff !important;
  font-weight: 800;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px var(--color-red-glow);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-header-call:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-red-glow);
}

/* ==========================================================================
   MOBILE MENU HAMBURGER & DRAWER
   ========================================================================== */

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger-bar {
  width: 26px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-toggle.active .hamburger-bar:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--color-primary-red);
    padding: 1.25rem 1rem;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  }

  .nav-container.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
  }

  .btn-header-call {
    justify-content: center;
    font-size: 1.05rem;
    padding: 0.85rem;
    margin-top: 0.25rem;
  }
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */

.hero-section {
  padding: 4rem 0 3rem;
  background: radial-gradient(circle at top center, rgba(229, 62, 62, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(229, 62, 62, 0.15);
  border: 1px solid var(--color-border-red);
  color: var(--color-primary-red);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, #fff 30%, var(--color-accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 800px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-cta-large {
  background: linear-gradient(135deg, var(--color-primary-red), #b91c1c);
  color: #fff !important;
  font-size: 1.25rem;
  font-weight: 900;
  padding: 1rem 2.25rem;
  border-radius: 10px;
  box-shadow: 0 8px 25px var(--color-red-glow);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-cta-large:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(229, 62, 62, 0.7);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 1rem 1.75rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   STATS BAR & METRICS
   ========================================================================== */

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0 0;
}

.metric-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}

.metric-value {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-accent-gold);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

/* ==========================================================================
   GRID LAYOUTS & CARDS
   ========================================================================== */

.section-block {
  padding: 3.5rem 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

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

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

@media (max-width: 480px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  background: var(--color-bg-card-hover);
  border-color: rgba(229, 62, 62, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.card-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
}

.card-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.card-link {
  color: var(--color-primary-red);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover {
  color: #fff;
}

/* ==========================================================================
   STATE & TOP CITY DISPATCH NETWORK CARDS
   ========================================================================== */

.state-hub-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1.15rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.state-hub-card:hover {
  border-color: var(--color-primary-red);
  background: rgba(26, 36, 60, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 62, 62, 0.25);
}

.state-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-city-badge {
  background: rgba(246, 173, 85, 0.15);
  border: 1px solid rgba(246, 173, 85, 0.3);
  color: var(--color-accent-gold);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   SILO LINK MATRIX BOX
   ========================================================================== */

.silo-matrix-container {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--color-border-red);
  border-radius: 16px;
  padding: 2rem;
  margin: 3rem 0;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.silo-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.silo-section {
  margin-bottom: 1.75rem;
}

.silo-section-label {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.silo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.silo-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.silo-tag:hover {
  background: rgba(229, 62, 62, 0.2);
  border-color: var(--color-primary-red);
  color: #fff;
}

/* ==========================================================================
   ARTICLE / CONTENT BODY
   ========================================================================== */

.article-content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 2rem 0;
  color: #e2e8f0;
}

.article-content h1 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.25rem;
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: #fff;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent-gold);
  margin: 1.5rem 0 0.75rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.5rem 1.75rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary-red);
  background: rgba(229, 62, 62, 0.1);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

/* ==========================================================================
   FOOTER & MOBILE STICKY CALL BAR
   ========================================================================== */

footer {
  background: #070a12;
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--color-text-muted);
}

.footer-col a:hover {
  color: var(--color-accent-gold);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
}

/* STICKY BOTTOM CALL BAR - HIDDEN ON DESKTOP, CLEAN & COMPACT ON MOBILE */
.mobile-sticky-callbar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-callbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(11, 15, 25, 0.98);
    backdrop-filter: blur(12px);
    border-top: 2px solid var(--color-primary-red);
    padding: 0.6rem 0.85rem;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.85);
  }

  .sticky-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .sticky-text {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--color-primary-red);
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    line-height: 1.2;
  }

  .sticky-subtext {
    font-size: 0.78rem;
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    line-height: 1.2;
  }

  .btn-sticky-call {
    background: linear-gradient(135deg, #e53e3e, #b91c1c);
    color: #fff !important;
    font-weight: 900;
    font-size: 0.92rem;
    padding: 0.55rem 1.1rem;
    border-radius: 8px;
    box-shadow: 0 0 15px var(--color-red-glow);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .btn-header-call { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
}
