/* Plumber800 Global Design System */
:root {
  --primary: #0f172a;        /* Authoritative Navy Slate */
  --primary-dark: #020617;
  --secondary: #0284c7;      /* Clear Plumbing Blue */
  --secondary-hover: #0369a1;
  --accent: #ef4444;         /* High-Contrast Conversion Red/Coral */
  --accent-hover: #dc2626;
  --bg-light: #f8fafc;
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --max-w: 1240px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--secondary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Utility Bar */
.top-bar {
  background: var(--primary);
  color: #94a3b8;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 1px solid #1e293b;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left span {
  margin-right: 18px;
}

.top-bar-right a {
  color: #cbd5e1;
  margin-left: 18px;
  text-decoration: none;
}

.top-bar-right a:hover {
  color: #ffffff;
}

/* Main Header */
.main-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: #334155;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--secondary);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-phone {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transition: all 0.2s ease;
}

.btn-phone:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

/* Floating Pill CTA (Inside content & global persistent conversion hook) */
.floating-pill-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 8px 18px 8px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.5), 0 8px 16px -4px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.floating-pill-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -4px rgba(15, 23, 42, 0.65), 0 10px 20px -4px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

.pill-badge {
  background: var(--accent);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.pill-text-block {
  display: flex;
  flex-direction: column;
}

.pill-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #38bdf8;
  font-weight: 700;
}

.pill-phone {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

/* In-Content Callout CTA */
.content-cta-box {
  background: #ffffff;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.content-cta-info h3 {
  font-size: 19px;
  color: var(--primary);
  margin-bottom: 4px;
}

.content-cta-info p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.content-cta-btn {
  background: var(--accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 14px rgba(239, 68, 68, 0.25);
}

.content-cta-btn:hover {
  background: var(--accent-hover);
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #091e3a 0%, #034674 100%);
  color: #ffffff;
  padding: 56px 0 72px 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-tagline {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-lead {
  font-size: 18px;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #f1f5f9;
  font-weight: 500;
}

.badge-check {
  color: #38bdf8;
  font-weight: bold;
}

/* Hero Search Component */
.search-card-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.input-field-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-field-group input, .input-field-group select {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--text-main);
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.input-field-group input:focus, .input-field-group select:focus {
  border-color: var(--secondary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #64748b;
  pointer-events: none;
  font-size: 16px;
}

.btn-search {
  height: 52px;
  padding: 0 28px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-search:hover {
  background: var(--accent-hover);
}

.hero-visual-col {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255, 255, 255, 0.15);
}

/* Service Grid Section */
.section-py {
  padding: 64px 0;
}

.section-title-wrap {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px auto;
}

.section-subtitle {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.section-title {
  font-size: 34px;
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

.service-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  border-color: var(--secondary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-icon-img {
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
}

.service-card h4 {
  font-size: 17px;
  color: var(--primary);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.service-card-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--secondary);
  margin-top: auto;
}

/* Network Map Feature Section */
.network-section {
  background: #0f172a;
  color: #ffffff;
}

.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.network-content h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.network-content p {
  color: #94a3b8;
  font-size: 16px;
  margin-bottom: 24px;
}

.network-feature-list {
  list-style: none;
  margin-bottom: 32px;
}

.network-feature-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  color: #e2e8f0;
  font-size: 15px;
}

.network-feature-list li span.dot {
  color: #38bdf8;
  font-size: 18px;
}

/* State Directory Grid */
.state-selector-bar {
  background: #ffffff;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.state-selector-bar input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
}

.states-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.state-item-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.state-item-card:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-sm);
}

.state-code-badge {
  font-size: 11px;
  font-weight: 800;
  background: #eff6ff;
  color: #0369a1;
  padding: 3px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.state-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.state-subdomain-link {
  font-size: 12px;
  color: var(--secondary);
  word-break: break-all;
  margin-bottom: 8px;
}

.state-status-pill {
  font-size: 11.5px;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

/* Results / Contractor Cards */
.provider-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  transition: border-color 0.2s ease;
}

.provider-card:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-sm);
}

.provider-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.provider-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 12px;
}

.provider-services-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.service-mini-pill {
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

.provider-action-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}

.btn-primary-card {
  background: var(--accent);
  color: #ffffff !important;
  text-align: center;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
}

.btn-outline-card {
  border: 1px solid var(--border);
  color: var(--primary) !important;
  text-align: center;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}

/* Informational & Cost Content Blocks */
.content-article {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  margin-bottom: 32px;
}

.content-article h1 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.content-article h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.content-article h3 {
  font-size: 18px;
  color: #0369a1;
  margin: 20px 0 8px 0;
}

.content-article p {
  margin-bottom: 16px;
  color: #334155;
  font-size: 15.5px;
}

.content-article ul, .content-article ol {
  margin-left: 24px;
  margin-bottom: 20px;
  color: #334155;
}

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

.table-responsive {
  overflow-x: auto;
  margin: 24px 0;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.custom-table th {
  background: #f1f5f9;
  padding: 12px 16px;
  border-bottom: 2px solid var(--border);
  color: var(--primary);
  font-weight: 700;
}

.custom-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 14px 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

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

.breadcrumbs span.sep {
  margin: 0 8px;
  color: #cbd5e1;
}

/* Disclaimer & Notice Blocks */
.trust-disclosure-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 32px 0;
  font-size: 13.5px;
  color: #475569;
}

.trust-disclosure-box strong {
  color: var(--primary);
}

/* Footer */
.main-footer {
  background: #090d16;
  color: #94a3b8;
  padding: 64px 0 24px 0;
  border-top: 1px solid #1e293b;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-col h5 {
  color: #f1f5f9;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: #94a3b8;
  font-size: 14px;
}

.footer-col ul li a:hover {
  color: #38bdf8;
}

.footer-newsletter input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13.5px;
  margin-bottom: 8px;
}

.footer-newsletter button {
  width: 100%;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .service-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .states-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  .header-inner {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
    gap: 14px;
  }
  .nav-menu {
    display: none; /* Accessible mobile drawer toggle in JS */
  }
  .search-form {
    grid-template-columns: 1fr;
  }
  .states-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 32px;
  }
  .network-grid {
    grid-template-columns: 1fr;
  }
  .content-cta-box {
    flex-direction: column;
    text-align: center;
  }
  .provider-card {
    grid-template-columns: 1fr;
  }
}
