/* ==========================================================================
   NY PLUMBING — DONGAN HILLS, STATEN ISLAND
   Visual Identity: Deep Atlantic Slate Navy (#0C1F38) & Warm Amber Flame (#D97706)
   Clean, modern, accessible, mobile-first design system
   ========================================================================== */

:root {
  --dgh-navy-dark: #071224;
  --dgh-navy: #0C1F38;
  --dgh-slate: #1E3A5F;
  --dgh-slate-light: #64748B;
  --dgh-white: #FFFFFF;
  --dgh-bg-alt: #F8FAFC;
  --dgh-bg-card: #FFFFFF;
  --dgh-accent: #D97706;
  --dgh-accent-hover: #B45309;
  --dgh-accent-light: rgba(217, 119, 6, 0.12);
  --dgh-accent-glow: rgba(217, 119, 6, 0.25);
  --dgh-text: #0F172A;
  --dgh-text-muted: #64748B;
  --dgh-border: #E2E8F0;
  --dgh-card-border: #CBD5E1;
  --dgh-shadow-sm: 0 1px 3px rgba(12, 31, 56, 0.08);
  --dgh-shadow-md: 0 4px 14px rgba(12, 31, 56, 0.10);
  --dgh-shadow-lg: 0 10px 30px rgba(12, 31, 56, 0.15);
  --dgh-radius: 8px;
  --dgh-radius-lg: 12px;
  --dgh-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --dgh-container: 1200px;
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dgh-text);
  background-color: var(--dgh-white);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--dgh-transition);
}

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

.dgh-container {
  width: 100%;
  max-width: var(--dgh-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation Bar */
.dgh-header {
  background-color: var(--dgh-navy);
  color: var(--dgh-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.dgh-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  gap: 1rem;
}

/* Brand Standard */
.dgh-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.dgh-brand-logo {
  width: 40px;
  height: 40px;
  min-width: 40px;
  color: var(--dgh-accent);
  stroke: var(--dgh-accent);
}

.dgh-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  white-space: nowrap;
}

.dgh-brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.dgh-brand-tagline {
  font-size: 0.75rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Desktop Navigation Menu */
.dgh-nav-menu {
  display: flex;
  align-items: center;
}

.dgh-nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

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

.dgh-nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #E2E8F0;
  padding: 0.65rem 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

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

/* Dropdown Menu (Desktop & Mobile) */
.dgh-dropdown {
  position: relative;
}

.dgh-dropdown-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.dgh-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--dgh-slate);
  min-width: 300px;
  border-radius: var(--dgh-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  list-style: none;
  padding: 0.75rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1050;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin: 0;
}

/* Desktop Hover & Focus states */
@media (min-width: 992px) {
  .dgh-dropdown:hover .dgh-dropdown-menu,
  .dgh-dropdown:focus-within .dgh-dropdown-menu,
  .dgh-dropdown-menu.desktop-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .dgh-dropdown:hover .dgh-dropdown-icon {
    transform: rotate(180deg);
  }
}

.dgh-dropdown-menu li {
  list-style: none;
}

.dgh-dropdown-link {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #F1F5F9;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.dgh-dropdown-link:hover,
.dgh-dropdown-link.active {
  background-color: rgba(217, 119, 6, 0.2);
  color: var(--dgh-accent);
}

/* Mobile Nav Toggle Button */
.dgh-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: #FFFFFF;
}

.dgh-nav-toggle svg {
  width: 28px;
  height: 28px;
  color: #FFFFFF;
}

/* Header Action & Buttons */
.dgh-nav-cta {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.dgh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--dgh-radius);
  transition: var(--dgh-transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.dgh-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.dgh-btn-primary {
  background-color: var(--dgh-accent);
  color: #FFFFFF;
  box-shadow: 0 3px 8px var(--dgh-accent-glow);
}

.dgh-btn-primary:hover {
  background-color: var(--dgh-accent-hover);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.dgh-btn-accent {
  background-color: var(--dgh-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--dgh-accent-glow);
}

.dgh-btn-accent:hover {
  background-color: var(--dgh-accent-hover);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.dgh-btn-outline {
  border: 2px solid var(--dgh-accent);
  color: var(--dgh-accent);
  background: transparent;
}

.dgh-btn-outline:hover {
  background: var(--dgh-accent);
  color: #FFFFFF;
}

.dgh-btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.1rem;
}

/* Breadcrumbs Bar */
.dgh-breadcrumb-wrapper {
  background-color: var(--dgh-bg-alt);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--dgh-border);
  font-size: 0.875rem;
}

.dgh-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--dgh-text-muted);
}

.dgh-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--dgh-text-muted);
}

.dgh-breadcrumbs a svg {
  width: 16px;
  height: 16px;
}

.dgh-breadcrumbs a:hover {
  color: var(--dgh-navy);
  text-decoration: underline;
}

.dgh-breadcrumb-separator {
  color: var(--dgh-border);
}

.dgh-breadcrumb-current {
  color: var(--dgh-text);
  font-weight: 600;
}

/* Inner Page Header Hero */
.dgh-page-header {
  background: linear-gradient(135deg, var(--dgh-navy-dark) 0%, var(--dgh-navy) 60%, var(--dgh-slate) 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 3rem;
  position: relative;
}

.dgh-page-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.dgh-page-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #CBD5E1;
  max-width: 820px;
}

/* Homepage Hero Section */
.dgh-hero {
  background: linear-gradient(135deg, var(--dgh-navy-dark) 0%, var(--dgh-navy) 60%, var(--dgh-slate) 100%);
  color: #FFFFFF;
  padding: 4rem 0 3.5rem;
  position: relative;
}

.dgh-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.dgh-hero-content {
  max-width: 680px;
}

.dgh-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(217, 119, 6, 0.18);
  border: 1px solid rgba(217, 119, 6, 0.4);
  color: var(--dgh-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.dgh-hero-badge svg {
  width: 16px;
  height: 16px;
}

.dgh-hero-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.dgh-hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #CBD5E1;
  margin-bottom: 2rem;
}

.dgh-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.dgh-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #E2E8F0;
  font-weight: 600;
}

.dgh-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--dgh-accent);
}

.dgh-hero-visual {
  display: flex;
  justify-content: center;
}

.dgh-hero-img-wrapper {
  border-radius: var(--dgh-radius-lg);
  overflow: hidden;
  box-shadow: var(--dgh-shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background-color: var(--dgh-navy);
  width: 100%;
}

.dgh-hero-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* General Sections */
.dgh-section {
  padding: 4.5rem 0;
}

.dgh-section-sm {
  padding: 2.5rem 0;
}

.dgh-bg-alt {
  background-color: var(--dgh-bg-alt);
}

.dgh-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem;
}

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

.dgh-section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--dgh-navy);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.dgh-section-lead {
  font-size: 1.05rem;
  color: var(--dgh-text-muted);
}

/* Grids */
.dgh-grid {
  display: grid;
  gap: 2rem;
}

.dgh-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

.dgh-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Two-Column Inner Content Layout (Body + Sidebar) */
.dgh-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: start;
}

.dgh-content-layout h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dgh-navy);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.dgh-content-layout h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dgh-navy);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.dgh-content-layout p {
  margin-bottom: 1.25rem;
  color: var(--dgh-text);
  line-height: 1.7;
}

.dgh-content-layout ul, 
.dgh-content-layout ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  line-height: 1.65;
}

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

/* Sidebar Standard */
.dgh-sidebar {
  position: sticky;
  top: 95px;
}

.dgh-sidebar-card {
  background: var(--dgh-white);
  border: 1px solid var(--dgh-border);
  border-radius: var(--dgh-radius);
  padding: 1.75rem;
  box-shadow: var(--dgh-shadow-md);
}

.dgh-sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dgh-navy);
  margin-bottom: 0.75rem;
}

/* Feature Lists */
.dgh-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.dgh-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.dgh-feature-list li svg {
  width: 20px;
  height: 20px;
  color: var(--dgh-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Service & Generic Cards */
.dgh-card {
  background-color: var(--dgh-white);
  border: 1px solid var(--dgh-card-border);
  border-radius: var(--dgh-radius);
  padding: 1.75rem;
  transition: var(--dgh-transition);
  box-shadow: var(--dgh-shadow-sm);
  display: flex;
  flex-direction: column;
}

.dgh-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--dgh-shadow-md);
  border-color: #94A3B8;
}

.dgh-card-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  color: var(--dgh-accent);
  background-color: var(--dgh-navy);
  padding: 11px;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dgh-card-icon svg {
  width: 24px;
  height: 24px;
}

.dgh-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dgh-navy);
  margin-bottom: 0.75rem;
}

.dgh-card-text {
  font-size: 0.95rem;
  color: var(--dgh-text);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Diagnostic Steps Grid */
.dgh-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.dgh-step-card {
  background: var(--dgh-white);
  border: 1px solid var(--dgh-border);
  border-radius: var(--dgh-radius);
  padding: 1.5rem;
  position: relative;
  box-shadow: var(--dgh-shadow-sm);
}

.dgh-step-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: #E2E8F0;
  line-height: 1;
}

.dgh-step-icon {
  width: 40px;
  height: 40px;
  background-color: var(--dgh-accent-light);
  color: var(--dgh-accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.dgh-step-icon svg {
  width: 22px;
  height: 22px;
}

.dgh-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dgh-navy);
  margin-bottom: 0.5rem;
}

.dgh-step-desc {
  font-size: 0.9rem;
  color: var(--dgh-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* FAQ Accordion */
.dgh-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.dgh-faq-item {
  background: var(--dgh-white);
  border: 1px solid var(--dgh-border);
  border-radius: var(--dgh-radius);
  overflow: hidden;
}

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

.dgh-faq-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--dgh-accent);
  transition: transform 0.2s ease;
}

.dgh-faq-question[aria-expanded="true"] .dgh-faq-icon {
  transform: rotate(180deg);
}

.dgh-faq-answer {
  border-top: 1px solid var(--dgh-border);
}

.dgh-faq-answer-inner {
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  color: var(--dgh-text);
  line-height: 1.6;
}

/* Footer Section */
.dgh-footer {
  background-color: var(--dgh-navy-dark);
  color: #CBD5E1;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--dgh-accent);
  margin-top: auto;
}

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

.dgh-footer-title {
  font-size: 1.1rem;
  color: #FFFFFF;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.dgh-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dgh-footer-links li a {
  color: #94A3B8;
  font-size: 0.9rem;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.dgh-footer-links li a:hover {
  color: var(--dgh-accent);
  transform: translateX(3px);
}

.dgh-footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: #64748B;
  text-align: center;
}

.dgh-footer-bottom a {
  color: var(--dgh-accent);
  font-weight: 600;
}

.dgh-footer-bottom a:hover {
  text-decoration: underline;
}

/* Mobile Sticky Call Bar */
.dgh-sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dgh-navy-dark);
  padding: 0.75rem 1rem;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  border-top: 2px solid var(--dgh-accent);
}

.dgh-sticky-call .dgh-btn {
  width: 100%;
}

/* Responsive Media Queries */
@media (max-width: 991px) {
  .dgh-nav-toggle {
    display: flex;
  }

  .dgh-nav-menu {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background-color: var(--dgh-navy);
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
    display: none;
    z-index: 999;
  }

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

  .dgh-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }

  .dgh-nav-item {
    width: 100%;
  }

  .dgh-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(255, 255, 255, 0.05);
    width: 100%;
    margin-top: 0.5rem;
    display: none;
  }

  .dgh-dropdown-menu.mobile-open {
    display: block;
  }

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

  .dgh-content-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .dgh-sidebar {
    position: static;
  }

  .dgh-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .dgh-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 767px) {
  .dgh-nav-cta {
    display: none;
  }

  .dgh-steps-grid {
    grid-template-columns: 1fr;
  }

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

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

  .dgh-sticky-call {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }

  .dgh-hero {
    padding: 2.75rem 0 2rem;
  }
}
