/* Garage Door Pennsylvania
   Professional Statewide Local Contractor Design System */

:root {
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Restrained Contractor Color System */
  --navy-950:  #0a1526;
  --navy-900:  #0f2038;
  --navy-800:  #162c46;
  --navy-700:  #1e3a5f;
  --navy-600:  #2a4b78;

  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted:#64748b;
  --text-light:#94a3b8;

  --bg-page:   #f8fafc;
  --bg-card:   #ffffff;
  --bg-subtle: #f1f5f9;

  --border-light: #e2e8f0;
  --border-subtle:#cbd5e1;

  /* Restrained Action Accent */
  --accent-primary: #b45309;
  --accent-hover:   #92400e;
  --accent-light:   #fef3c7;

  --success: #15803d;
  --success-bg: #f0fdf4;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 10px -1px rgba(15, 23, 42, 0.08);

  --max-content-width: 1140px;
  --max-article-width: 760px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background-color: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--navy-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Top Utility Header (Removed) */
.top-utility-bar {
  display: none !important;
}

/* Main Site Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

/* Header Bottom Accent Line (Brand Navy to Gold/Amber) */
.header-accent-line {
  height: 3px;
  background: linear-gradient(90deg, #0a1526 0%, #1e3a5f 20%, #b45309 45%, #f59e0b 55%, #b45309 65%, #1e3a5f 85%, #0a1526 100%);
  width: 100%;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--navy-900);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.brand-logo:hover {
  opacity: 0.94;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}

.brand-symbol svg {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.22));
  transition: transform 0.2s ease;
}

.brand-logo:hover .brand-symbol svg {
  transform: translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1.1;
}

.brand-name-main {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--navy-900);
  letter-spacing: -0.025em;
}

.brand-name-state {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--amber-600);
  letter-spacing: -0.025em;
}

.brand-tagline {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--slate-500);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.2;
  margin-top: 2px;
}

.footer-brand-logo {
  margin-bottom: 12px;
}

.footer-brand-logo .brand-name-main {
  color: #f8fafc;
}

.footer-brand-logo .brand-name-state {
  color: #fbbf24;
}

.footer-brand-logo .brand-tagline {
  color: #94a3b8;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--navy-700);
  border-bottom-color: var(--navy-700);
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.dropdown-toggle:hover {
  color: var(--navy-700);
  border-bottom-color: var(--navy-700);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 260px;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 6px 12px -3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 0;
  z-index: 250;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  border-bottom: 1px solid var(--bg-subtle);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--bg-subtle);
  color: var(--navy-700);
}

.dropdown-menu-regions {
  min-width: 980px;
  max-width: 1060px;
  display: none;
  position: absolute;
  top: 100%;
  left: -300px;
  background: #ffffff;
  box-shadow: 0 20px 42px -6px rgba(15, 23, 42, 0.2), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  z-index: 250;
}

.nav-dropdown:hover .dropdown-menu-regions,
.nav-dropdown:focus-within .dropdown-menu-regions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.dropdown-region-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}

.dropdown-region-col:hover {
  z-index: 400;
}

.dropdown-region-title {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy-900);
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 2px solid var(--navy-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.city-nav-item {
  position: relative;
}

.city-nav-item.has-subnav:hover {
  z-index: 500;
}

.city-main-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
}

.city-main-link a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  flex: 1;
}

.city-nav-item:hover .city-main-link {
  background: var(--slate-100);
}

.city-nav-item:hover .city-main-link a {
  color: var(--navy-800);
  font-weight: 600;
}

.subnav-arrow {
  font-size: 0.68rem;
  color: var(--navy-600);
  font-weight: 700;
  margin-left: 4px;
}

.city-subnav-panel {
  display: none;
  position: absolute;
  top: -4px;
  left: calc(100% + 2px);
  min-width: 195px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 28px -2px rgba(15, 23, 42, 0.22), 0 4px 10px -2px rgba(15, 23, 42, 0.08);
  padding: 8px 10px;
  z-index: 600;
}

.city-subnav-panel::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12px;
  left: -12px;
}

/* For rightmost columns (4 and 5), fly out to the left to prevent viewport clipping */
.dropdown-region-col:nth-child(4) .city-subnav-panel,
.dropdown-region-col:nth-child(5) .city-subnav-panel {
  left: auto;
  right: calc(100% + 2px);
}

.dropdown-region-col:nth-child(4) .city-subnav-panel::before,
.dropdown-region-col:nth-child(5) .city-subnav-panel::before {
  left: auto;
  right: -12px;
}

.city-nav-item.has-subnav:hover .city-subnav-panel {
  display: block;
}

.city-subnav-heading {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-light);
}

.city-subnav-panel a {
  display: block;
  font-size: 0.78rem;
  color: var(--text-body);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.city-subnav-panel a:hover {
  background: var(--bg-subtle);
  color: var(--navy-900);
  font-weight: 600;
  transform: translateX(2px);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-700);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}

.phone-cta-button:hover {
  background: var(--navy-800);
  color: #ffffff;
  text-decoration: none;
}

.btn-town-search {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-town-search:hover {
  background: #e2e8f0;
}

.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px;
}

/* Breadcrumbs */
.breadcrumb-container {
  padding: 10px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.82rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.breadcrumb-nav a {
  color: var(--text-body);
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
  color: var(--navy-700);
}

.breadcrumb-nav .sep {
  color: var(--border-subtle);
}

.breadcrumb-nav .active {
  color: var(--text-dark);
  font-weight: 600;
}

/* Commercial Hero Section */
.contractor-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 42px 0 46px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-tag {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy-700);
}

.hero-tag.primary {
  background: #fef3c7;
  border-color: #fde68a;
  color: #92400e;
  font-weight: 700;
}

.hero-h1 {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

/* Matching Brand Accent Line in Hero */
.hero-heading-line {
  width: 68px;
  height: 3.5px;
  background: linear-gradient(90deg, #f59e0b 0%, #b45309 100%);
  border-radius: 2px;
  margin-bottom: 18px;
}

.hero-intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-body);
  margin-bottom: 20px;
}


.hero-intro p {
  margin-bottom: 12px;
}

.hero-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-primary-call:hover {
  background: var(--accent-hover);
  color: #ffffff;
  text-decoration: none;
}

.btn-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-secondary-link:hover {
  background: #e2e8f0;
  text-decoration: none;
}

/* Service Intake Card */
.contractor-contact-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-top: 3.5px solid var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 4px 14px -2px rgba(15, 23, 42, 0.06);
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-card-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.direct-call-box {
  margin: 0 0 16px 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-align: center;
}

.direct-call-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 4px;
}

.direct-call-number {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-800);
  text-decoration: none;
  display: block;
}

.direct-call-number:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

.contact-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.84rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.spec-label {
  color: var(--text-muted);
  font-weight: 500;
}

.spec-val {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}

.btn-hero-call-now {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--navy-900);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin: 12px 0 16px 0;
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.25);
  transition: all 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.btn-hero-call-now:hover {
  background: var(--navy-800);
  transform: translateY(-2px);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 22px -2px rgba(15, 23, 42, 0.35);
}

.live-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  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); }
}


.card-specs-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Contact Page Cards & Intake Form */
.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.intake-form-compact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-input {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-dark);
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
}

.compact-input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.compact-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy-900);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.compact-submit-btn:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

/* Pittsburgh 4-Services Grid */
.home-services-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

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

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

.service-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-700);
  background: var(--slate-100);
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  margin-bottom: 10px;
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--navy-700);
  margin-top: 12px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.service-card:hover .service-card-link {
  color: var(--navy-900);
  transform: translateX(3px);
}

/* Symptoms & Quick Identification Grid */
.symptoms-block {
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  padding: 36px 0;
}

.symptoms-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.symptoms-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.symptom-card {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.symptom-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.symptom-fix {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.45;
}

/* Main Layout Structure */
.content-layout-area {
  padding: 40px 0 60px 0;
}

.layout-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Editorial Body: Customer-First Commercial Typography */
.editorial-body {
  max-width: var(--max-article-width);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-body);
}

.editorial-body h2 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.editorial-body h3 {
  font-family: var(--font-heading);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-top: 24px;
  margin-bottom: 10px;
}

.editorial-body p {
  margin-bottom: 18px;
}

.editorial-body ul, .editorial-body ol {
  margin-bottom: 22px;
  padding-left: 24px;
}

.editorial-body li {
  margin-bottom: 8px;
}

.editorial-body strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Service Approach Block */
.service-approach-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin: 24px 0;
}

.approach-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 10px;
}

.approach-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.approach-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.approach-bullet {
  color: var(--navy-700);
  font-weight: 700;
}

/* Restrained Technical Physics Callout */
.technical-callout-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--navy-700);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 26px 0;
}

.callout-header {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.callout-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-body);
}

/* Restrained Pro-Tip Box */
.technician-note-box {
  background: var(--success-bg);
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 26px 0;
}

.note-header {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #14532d;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.note-content {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #166534;
}

/* Code Compliance Section */
.code-compliance-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 24px 0;
}

.code-compliance-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.code-compliance-item {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-body);
}

/* In-Content Conversion Banner */
.in-content-cta {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.in-content-cta-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.in-content-cta-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* External Authority References */
.authority-ref-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 28px 0;
}

.authority-ref-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.authority-ref-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
}

.authority-ref-list li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--navy-700);
  text-decoration: none;
  font-weight: 500;
}

.authority-ref-list li a:hover {
  background: #e2e8f0;
  text-decoration: underline;
}

/* FAQ Accordion */
.faq-block {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

.faq-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-row {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.faq-btn {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
}

.faq-btn:hover {
  color: var(--navy-700);
}

.faq-arrow-icon {
  color: var(--text-muted);
  transition: transform 0.15s ease;
}

.faq-row.active .faq-arrow-icon {
  transform: rotate(180deg);
  color: var(--navy-700);
}

.faq-answer {
  display: none;
  padding: 0 18px 16px 18px;
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
}

.faq-row.active .faq-answer {
  display: block;
}

/* Sidebar */
.contractor-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.sidebar-panel-heading {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-link-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-link-list li a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.sidebar-link-list li a:hover {
  background: var(--navy-700);
  color: #ffffff;
}

.sidebar-checklist {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-body);
}

.sidebar-checklist .check {
  color: var(--success);
  font-weight: 700;
}

/* Responsive Map Containers */
.sidebar-map-wrap {
  position: relative;
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-subtle);
  line-height: 0;
}

.sidebar-map-wrap iframe {
  display: block;
  width: 100%;
  border: 0;
}

.map-grid-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.map-frame-box {
  position: relative;
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-subtle);
  line-height: 0;
}

.map-frame-box iframe {
  display: block;
  width: 100%;
  border: 0;
}

@media (max-width: 860px) {
  .map-grid-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Sticky Mobile Bottom Bar */
.mobile-sticky-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--navy-950);
  color: #ffffff;
  padding: 10px 16px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  align-items: center;
  justify-content: space-between;
}

.mobile-call-label {
  font-size: 0.8rem;
  color: #cbd5e1;
}

.mobile-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

/* Homepage Services Grid */
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 22px;
  text-decoration: none;
  color: var(--text-body);
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--text-body);
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
}

.service-card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-body);
}

.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.step-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy-700);
  background: var(--bg-subtle);
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-body);
}

/* Regional Directory Grid */
.directory-section {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 56px 0;
}

.region-group {
  margin-bottom: 40px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.region-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}

.region-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-900);
}

.region-badge {
  background: var(--navy-700);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.03em;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.hub-block {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-block:hover {
  border-color: var(--navy-700);
  box-shadow: var(--shadow-sm);
}

.hub-block-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-light);
}

.hub-block-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hub-block-list li a {
  font-size: 0.82rem;
  color: var(--text-body);
  text-decoration: none;
}

.hub-block-list li a:hover {
  text-decoration: underline;
  color: var(--navy-700);
}

/* Site Footer */
.site-footer {
  background: var(--navy-950);
  color: #cbd5e1;
  padding: 44px 0 28px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-nav-list a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-nav-list a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-legal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: #64748b;
}

/* Modal Search */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 2000;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 16px;
}

.modal-overlay.open {
  display: flex;
}

.search-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  padding: 20px;
  box-shadow: var(--shadow-md);
}

.search-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.search-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-search-field {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 12px;
}

.modal-search-field:focus {
  outline: none;
  border-color: var(--navy-700);
}

.modal-results-scroll {
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-results-scroll li a {
  display: block;
  padding: 10px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
}

.modal-results-scroll li a:hover {
  background: var(--navy-700);
  color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .layout-two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contractor-sidebar {
    position: static;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Header mobile optimization */
  .site-header {
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  }

  .header-inner {
    height: 58px;
  }

  .brand-logo {
    gap: 8px;
    flex-shrink: 0;
  }

  .brand-symbol, .brand-symbol svg {
    width: 36px;
    height: 36px;
  }

  .brand-name-wrap {
    flex-wrap: nowrap;
    white-space: nowrap;
    gap: 5px;
  }

  .brand-name-main, .brand-name-state {
    font-size: clamp(0.92rem, 3.8vw, 1.05rem);
    white-space: nowrap;
  }

  .brand-tagline {
    display: none;
  }

  .header-nav {
    display: none;
  }

  .header-actions {
    gap: 8px;
    align-items: center;
  }

  .btn-town-search {
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .btn-town-search span {
    display: none;
  }

  .phone-cta-button {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
  }

  /* Breadcrumb compacting */
  .breadcrumb-container {
    padding: 6px 0;
    font-size: 0.74rem;
  }

  .breadcrumb-nav {
    gap: 5px;
  }

  /* Hero Section First View (Above-the-Fold) Optimization */
  .contractor-hero {
    padding: 18px 0 24px 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Reorder left hero column on mobile so Call Now button is IMMEDIATELY VISIBLE */
  .hero-grid > div:first-child {
    display: flex;
    flex-direction: column;
  }

  .hero-tag-row {
    order: 1;
    gap: 6px;
    margin-bottom: 8px;
  }

  .hero-tag {
    padding: 2px 7px;
    font-size: 0.72rem;
  }

  .hero-h1 {
    order: 2;
    font-size: 1.48rem;
    line-height: 1.22;
    margin-bottom: 6px;
  }

  .hero-heading-line {
    order: 3;
    margin: 6px 0 12px 0 !important;
    width: 48px !important;
    height: 3px !important;
  }

  /* Call Now & Action Buttons placed immediately after H1 */
  .hero-action-buttons {
    order: 4;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    margin-bottom: 14px;
  }

  .btn-primary-call {
    width: 100%;
    justify-content: center;
    font-size: 1.02rem;
    padding: 13px 18px;
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.25);
  }

  .btn-secondary-link {
    width: 100%;
    justify-content: center;
    font-size: 0.88rem;
    padding: 9px 14px;
  }

  /* Editorial intro paragraphs follow the CTA buttons */
  .hero-intro {
    order: 5;
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 8px;
  }

  .hero-intro p {
    margin-bottom: 8px;
  }

  /* Hero contact card on mobile */
  .contractor-contact-card {
    padding: 18px 16px;
  }

  .direct-call-number {
    font-size: 1.5rem;
  }

  /* Contact cards stack on mobile */
  .contact-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  /* Footer & Sticky Call Bar */
  .footer-columns {
    grid-template-columns: 1fr;
  }

  .mobile-sticky-call-bar {
    display: flex;
  }

  body {
    padding-bottom: 64px;
  }
}


