/* ==========================================================================
   NY Plumbing — Lower East Side, Manhattan
   Premium Editorial Design & Ultra-Fast Loading Stylesheet
   ========================================================================== */

:root {
  --primary-color: #10243A;      /* Deep Navy */
  --primary-dark: #0A1827;       /* Dark Navy */
  --accent-color: #F4B740;       /* Bright Gold/Amber Call Accent */
  --accent-hover: #E0A22D;       /* Warm Accent Hover */
  --accent-text: #0A1827;        /* Contrast Text on Accent Button */
  --text-dark: #263445;          /* High-Contrast Body Text */
  --text-muted: #5C6F84;         /* Subdued Secondary Text */
  --light-bg: #F4F7FA;           /* Light Editorial Neutral */
  --border-color: #E2E8F0;       /* Crisp Border */
  --white: #FFFFFF;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --max-width: 1180px;
}

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

html {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 70px; /* Room for mobile sticky call bar */
}

@media (min-width: 901px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: #1D5897;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: #0A1827;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  color: var(--primary-color);
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.015em;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 2.75rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

ul, ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

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

.section {
  padding: 3.5rem 0;
}

@media (min-width: 901px) {
  .section {
    padding: 4.5rem 0;
  }
}

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.65rem 1.25rem;
  z-index: 999;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.65rem;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, transform 0.1s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  min-height: 44px;
  line-height: 1.2;
}

.btn:active {
  transform: translateY(1px);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--accent-text) !important;
  text-decoration: none !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--accent-text) !important;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white) !important;
  text-decoration: none !important;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-full {
  width: 100%;
}

/* Sticky Mobile Call Bar */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-dark);
  padding: 0.65rem 1rem;
  z-index: 900;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
}

@media (min-width: 901px) {
  .mobile-call-bar {
    display: none;
  }
}

/* Header & Navigation */
.site-header {
  background-color: var(--primary-color);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 72px;
}

.site-logo {
  display: flex;
  flex-direction: column;
}

.logo-link {
  color: var(--white);
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.logo-link:hover {
  color: var(--white);
}

.logo-location {
  font-size: 0.72rem;
  color: #9FB2C8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Main Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.65rem;
  margin: 0;
  padding: 0;
}

.main-nav li {
  margin: 0;
  position: relative;
}

.nav-link {
  color: #E2EAF2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 1.25rem 0;
  display: inline-block;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  font-weight: 600;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-trigger {
  background: transparent;
  border: none;
  color: #E2EAF2;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem 0;
  font-family: inherit;
  line-height: 1;
  transition: color 0.15s ease;
}

.dropdown-trigger:hover,
.dropdown.open .dropdown-trigger {
  color: var(--white);
}

.dropdown-arrow {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  display: none !important;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-dark);
  min-width: 290px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-top: none;
  z-index: 250;
  padding: 0.5rem 0;
  list-style: none;
}

@media (min-width: 901px) {
  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    display: block !important;
  }
  .dropdown:hover .dropdown-arrow,
  .dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
  }
  .dropdown:hover .dropdown-trigger {
    color: var(--white);
  }
}

@media (max-width: 900px) {
  .dropdown.open .dropdown-menu {
    display: block !important;
    position: static;
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: none;
    border: none;
    padding-left: 1rem;
    min-width: 100%;
  }
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu a.active {
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-weight: 600;
}

.header-cta {
  display: none;
}

@media (min-width: 1024px) {
  .header-cta {
    display: block;
  }
}

/* Mobile Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--primary-color);
    padding: 1rem 1.25rem 2rem;
    border-bottom: 2px solid var(--accent-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  }

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

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .main-nav li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link, .dropdown-trigger {
    width: 100%;
    padding: 0.85rem 0;
    justify-content: space-between;
  }
}

/* Hero Section */
.hero {
  background-color: var(--light-bg);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

@media (min-width: 901px) {
  .hero {
    padding: 4.5rem 0;
  }
}

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

@media (min-width: 901px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 1.75rem;
}

.hero-image-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(16, 36, 58, 0.12);
  background: #E2E8F0;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* Badges */
.badge {
  display: inline-block;
  background-color: #E2ECF7;
  color: #10243A;
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
}

/* Safety Notice Card */
.safety-banner {
  background: #FFF5F5;
  border-left: 5px solid #E53E3E;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.safety-banner h3 {
  color: #9B1C1C;
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.safety-banner p {
  color: #4A1D1D;
  margin-bottom: 0;
}

/* Editorial Content Layouts */
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .content-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.editorial-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.editorial-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.callout-box {
  background: #EDF4FB;
  border-left: 4px solid var(--primary-color);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout-box p:last-child {
  margin-bottom: 0;
}

/* Process Steps */
.process-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: step-counter;
}

.process-item {
  position: relative;
  padding-left: 3.5rem;
  margin-bottom: 2rem;
}

.process-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(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.process-item h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Contextual Call Banner */
.call-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  margin: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .call-banner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.call-banner h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.call-banner p {
  color: #D3DFEE;
  margin: 0;
  max-width: 600px;
}

/* FAQ Accordion */
.faq-section {
  margin: 3rem 0;
}

.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
}

.faq-question:hover {
  color: #0A1827;
}

.faq-icon {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
  color: #5C6F84;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--primary-color);
}

.faq-answer {
  display: none;
  padding-top: 1rem;
  color: var(--text-dark);
}

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

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

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

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

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

.site-footer p {
  color: #94A3B8;
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.65rem;
}

.site-footer a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #64748B;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}
