/* ==========================================================================
   Brooklyn Heights Boiler Repair — Custom Style System (Namespace: bh-)
   ========================================================================== */

:root {
  --bh-navy: #0C1B2A;
  --bh-navy-light: #162B42;
  --bh-navy-dark: #07101B;
  --bh-charcoal: #1F2937;
  --bh-slate: #475569;
  --bh-slate-light: #64748B;
  --bh-border: #E2E8F0;
  --bh-bg-light: #F8FAFC;
  --bh-bg-alt: #F1F5F9;
  --bh-white: #FFFFFF;
  --bh-accent: #C2410C;        /* Rich Flame Terracotta Amber */
  --bh-accent-hover: #9A3412;
  --bh-accent-bright: #EA580C;
  --bh-accent-light: #FFEDD5;
  --bh-warning-bg: #FEF3C7;
  --bh-warning-border: #F59E0B;
  --bh-warning-text: #92400E;
  --bh-alert-bg: #FEE2E2;
  --bh-alert-border: #EF4444;
  --bh-alert-text: #991B1B;
  --bh-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bh-radius-sm: 6px;
  --bh-radius-md: 10px;
  --bh-radius-lg: 16px;
  --bh-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --bh-shadow-md: 0 4px 12px -2px rgba(12,27,42,0.08), 0 2px 6px -1px rgba(12,27,42,0.04);
  --bh-shadow-lg: 0 12px 24px -4px rgba(12,27,42,0.12), 0 4px 8px -2px rgba(12,27,42,0.06);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--bh-font-main);
  color: var(--bh-charcoal);
  background-color: var(--bh-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--bh-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--bh-accent-hover);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--bh-navy);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }

p {
  margin-bottom: 1.25rem;
}

.bh-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.bh-container-narrow {
  max-width: 860px;
}

/* ==========================================================================
   Utility Classes & Buttons
   ========================================================================== */
.bh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--bh-radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 48px;
  cursor: pointer;
}

.bh-btn-primary {
  background-color: var(--bh-accent);
  color: var(--bh-white) !important;
  box-shadow: 0 4px 14px rgba(194, 65, 12, 0.35);
}

.bh-btn-primary:hover {
  background-color: var(--bh-accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
}

.bh-btn-secondary {
  background-color: var(--bh-navy);
  color: var(--bh-white) !important;
}

.bh-btn-secondary:hover {
  background-color: var(--bh-navy-light);
  text-decoration: none;
}

.bh-btn-light {
  background-color: var(--bh-white);
  color: var(--bh-navy) !important;
  border: 1px solid var(--bh-border);
}

.bh-btn-light:hover {
  background-color: var(--bh-bg-alt);
  text-decoration: none;
}

.bh-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.bh-header {
  background-color: var(--bh-white);
  border-bottom: 1px solid var(--bh-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--bh-shadow-sm);
}

.bh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
}

.bh-logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--bh-navy);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
}

.bh-logo-badge {
  background-color: var(--bh-navy);
  color: var(--bh-white);
  padding: 0.35rem 0.5rem;
  border-radius: var(--bh-radius-sm);
  display: inline-flex;
}

.bh-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.bh-nav-link {
  color: var(--bh-charcoal);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.bh-nav-link:hover,
.bh-nav-link.active {
  color: var(--bh-accent);
  text-decoration: none;
}

/* Services Dropdown */
.bh-has-dropdown {
  position: relative;
}

.bh-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 280px;
  background-color: var(--bh-white);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  box-shadow: var(--bh-shadow-lg);
  padding: 0.5rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s ease;
  z-index: 1100;
}

.bh-has-dropdown:hover .bh-dropdown-menu,
.bh-has-dropdown:focus-within .bh-dropdown-menu,
.bh-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.bh-dropdown-item a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.2rem;
  color: var(--bh-charcoal);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease;
}

.bh-dropdown-item a:hover {
  background-color: var(--bh-bg-light);
  color: var(--bh-accent);
}

.bh-header-cta {
  display: flex;
  align-items: center;
}

.bh-header-phone {
  background-color: var(--bh-accent);
  color: var(--bh-white) !important;
  padding: 0.6rem 1.15rem;
  border-radius: var(--bh-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  min-height: 44px;
}

.bh-header-phone:hover {
  background-color: var(--bh-accent-hover);
  text-decoration: none;
}

.bh-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--bh-navy);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.bh-hero {
  background: linear-gradient(135deg, #0C1B2A 0%, #162B42 100%);
  color: var(--bh-white);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.bh-hero h1 {
  color: var(--bh-white);
  margin-bottom: 1.25rem;
}

.bh-hero-sub {
  font-size: 1.15rem;
  color: #CBD5E1;
  max-width: 620px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.bh-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.bh-hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.bh-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
}

.bh-badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #E2E8F0;
  font-size: 0.9rem;
  font-weight: 500;
}

.bh-hero-image-wrap {
  position: relative;
  border-radius: var(--bh-radius-lg);
  overflow: hidden;
  box-shadow: var(--bh-shadow-lg);
  border: 1px solid rgba(255,255,255,0.12);
}

.bh-hero-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Breadcrumbs */
.bh-breadcrumbs {
  background-color: var(--bh-bg-light);
  border-bottom: 1px solid var(--bh-border);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}

.bh-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  gap: 0.5rem;
}

.bh-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bh-slate);
}

.bh-breadcrumbs a {
  color: var(--bh-slate-light);
}

.bh-breadcrumbs a:hover {
  color: var(--bh-accent);
}

.bh-breadcrumbs [aria-current="page"] {
  color: var(--bh-navy);
  font-weight: 600;
}

/* Inner Page Header */
.bh-page-header {
  background: linear-gradient(135deg, #0C1B2A 0%, #162B42 100%);
  color: var(--bh-white);
  padding: 3rem 0;
}

.bh-page-header h1 {
  color: var(--bh-white);
  margin-bottom: 0.75rem;
}

.bh-page-header p {
  color: #CBD5E1;
  font-size: 1.1rem;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Content Sections
   ========================================================================== */
.bh-section {
  padding: 4rem 0;
}

.bh-section-alt {
  background-color: var(--bh-bg-light);
}

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

.bh-tagline {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bh-accent);
  margin-bottom: 0.5rem;
}

.bh-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.bh-card {
  background-color: var(--bh-white);
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  padding: 2rem;
  box-shadow: var(--bh-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.bh-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bh-shadow-md);
}

.bh-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--bh-radius-sm);
  background-color: var(--bh-accent-light);
  color: var(--bh-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.bh-card h3 {
  margin-bottom: 0.75rem;
}

.bh-card p {
  color: var(--bh-slate);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.bh-card-link {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Alert Banners */
.bh-alert-box {
  background-color: var(--bh-alert-bg);
  border-left: 4px solid var(--bh-alert-border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--bh-radius-sm);
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bh-alert-box h4 {
  color: var(--bh-alert-text);
  margin-bottom: 0.25rem;
}

.bh-alert-box p {
  color: #7F1D1D;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.bh-notice-box {
  background-color: var(--bh-warning-bg);
  border-left: 4px solid var(--bh-warning-border);
  padding: 1.25rem 1.5rem;
  border-radius: var(--bh-radius-sm);
  margin: 2rem 0;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bh-notice-box h4 {
  color: var(--bh-warning-text);
  margin-bottom: 0.25rem;
}

.bh-notice-box p {
  color: #78350F;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Service Page Media Framing */
.bh-featured-media {
  border-radius: var(--bh-radius-lg);
  overflow: hidden;
  box-shadow: var(--bh-shadow-md);
  border: 1px solid var(--bh-border);
  margin-bottom: 2rem;
}

.bh-featured-media img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

/* Numbered Step List */
.bh-steps {
  list-style: none;
  counter-reset: step-counter;
  margin: 2rem 0;
}

.bh-step-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 1.75rem;
}

.bh-step-item::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--bh-navy);
  color: var(--bh-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

/* FAQ Accordion */
.bh-faq-list {
  max-width: 840px;
  margin: 0 auto;
}

.bh-faq-item {
  border: 1px solid var(--bh-border);
  border-radius: var(--bh-radius-md);
  margin-bottom: 1rem;
  background-color: var(--bh-white);
  overflow: hidden;
}

.bh-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bh-navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
}

.bh-faq-q:hover {
  background-color: var(--bh-bg-light);
}

.bh-faq-a {
  padding: 0 1.5rem 1.25rem;
  color: var(--bh-slate);
  font-size: 0.95rem;
  line-height: 1.6;
}

.bh-faq-a p:last-child {
  margin-bottom: 0;
}

/* CTA Strip */
.bh-cta-strip {
  background: linear-gradient(135deg, #0C1B2A 0%, #162B42 100%);
  color: var(--bh-white);
  padding: 3.5rem 0;
  text-align: center;
}

.bh-cta-strip h2 {
  color: var(--bh-white);
  margin-bottom: 0.75rem;
}

.bh-cta-strip p {
  color: #CBD5E1;
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bh-footer {
  background-color: var(--bh-navy-dark);
  color: #94A3B8;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.bh-footer h4 {
  color: var(--bh-white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.bh-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.bh-footer-links {
  list-style: none;
}

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

.bh-footer-links a {
  color: #CBD5E1;
  text-decoration: none;
}

.bh-footer-links a:hover {
  color: var(--bh-accent-bright);
}

.bh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.bh-footer-bottom a {
  color: #CBD5E1;
}

.bh-footer-bottom a:hover {
  color: var(--bh-white);
}

/* ==========================================================================
   Sticky Mobile Call Bar
   ========================================================================== */
.bh-sticky-call-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bh-navy);
  padding: 0.75rem 1rem;
  z-index: 999;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
}

.bh-sticky-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--bh-accent);
  color: var(--bh-white) !important;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--bh-radius-md);
  text-decoration: none;
  width: 100%;
  min-height: 48px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .bh-header-cta {
    display: none;
  }

  .bh-nav-toggle {
    display: block;
  }

  .bh-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bh-white);
    border-bottom: 1px solid var(--bh-border);
    box-shadow: var(--bh-shadow-lg);
    padding: 1.5rem;
  }

  .bh-nav-menu.active {
    display: block;
  }

  .bh-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .bh-dropdown-menu {
    position: static;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    display: none;
  }

  .bh-dropdown-menu.show {
    display: block;
  }

  .bh-hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .bh-grid-2 {
    grid-template-columns: 1fr;
  }

  .bh-grid-3 {
    grid-template-columns: 1fr;
  }

  .bh-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bh-sticky-call-bar {
    display: block;
  }

  body {
    padding-bottom: 64px; /* Space for sticky call bar */
  }
}

@media (max-width: 600px) {
  .bh-footer-grid {
    grid-template-columns: 1fr;
  }

  .bh-hero {
    padding: 2.5rem 0 2rem;
  }

  .bh-section {
    padding: 2.5rem 0;
  }
}
