/* ==========================================================================
   NY Plumbing — Richmond Hill, Queens
   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 > ul > 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:hover .dropdown-trigger,
.dropdown.open .dropdown-trigger {
  color: var(--white);
}

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

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

.dropdown-menu,
.main-nav .dropdown-menu {
  display: none;
  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,
  .main-nav .dropdown:hover .dropdown-menu,
  .main-nav .dropdown.open .dropdown-menu {
    display: block;
  }
}

@media (max-width: 900px) {
  .dropdown-menu,
  .main-nav .dropdown-menu {
    display: none;
  }

  .dropdown.open .dropdown-menu,
  .main-nav .dropdown.open .dropdown-menu {
    display: block;
    position: static;
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0.5rem 1rem;
    min-width: 100%;
  }
}

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

.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #C8D7E6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

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

/* Mobile Hamburger Toggle */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--white);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

  .header-cta {
    display: none;
  }

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

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

  .main-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

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

  .nav-link, .dropdown-trigger {
    padding: 0.9rem 1.25rem;
    width: 100%;
    justify-content: space-between;
    font-size: 1.05rem;
  }
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--white);
  padding: 3.5rem 0 4rem;
  position: relative;
}

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

@media (min-width: 901px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
  }
}

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

.hero-tagline {
  display: inline-block;
  background-color: rgba(244, 183, 64, 0.15);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  border: 1px solid rgba(244, 183, 64, 0.3);
}

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

.hero-subhead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #D3E0EE;
  margin-bottom: 1.75rem;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #9FB2C8;
}

.hero-trust span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #38A169;
  border-radius: 50%;
}

.hero-image-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 3px solid rgba(255, 255, 255, 0.1);
  background: #0D1E31;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4/3;
}

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

.breadcrumbs-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs-list li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.breadcrumbs-list a {
  color: var(--text-dark);
  text-decoration: none;
}

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

.breadcrumbs-separator {
  color: #94A3B8;
  font-size: 0.8rem;
}

/* Content Layout & Grids */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 901px) {
  .content-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 3.5rem;
  }
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #1A2E44;
  margin-bottom: 1.5rem;
}

/* Service Image Box */
.service-image-box {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  background-color: var(--white);
}

.service-image-box img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.image-caption {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  background-color: var(--light-bg);
  border-top: 1px solid var(--border-color);
  margin: 0;
}

/* Card Grids */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

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

.card {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card-title {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

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

.callout h3, .callout h4 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

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

.callout-warning {
  background-color: #FFF8E6;
  border-left-color: #D97706;
}

.callout-warning h3, .callout-warning h4 {
  color: #92400E;
}

.callout-emergency {
  background-color: #FEF2F2;
  border-left-color: #DC2626;
}

.callout-emergency h3, .callout-emergency h4 {
  color: #991B1B;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
  border-radius: var(--radius-md);
  margin: 3.5rem 0;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: #D3E0EE;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 1.75rem;
}

.phone-display {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--accent-color);
  text-decoration: none;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.phone-display:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.sidebar-widget h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--light-bg);
  padding-bottom: 0.65rem;
}

.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-links li {
  margin-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.65rem;
}

.sidebar-links li:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.sidebar-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  display: block;
}

.sidebar-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.sidebar-call-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: var(--white);
  text-align: center;
}

.sidebar-call-card h3 {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-call-card p {
  color: #D3E0EE;
  font-size: 0.95rem;
}

/* FAQ Accordions */
.faq-section {
  margin-top: 3.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: var(--light-bg);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-color);
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.faq-question:hover {
  background-color: #E7EEF5;
}

.faq-icon {
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

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

.faq-answer {
  display: none;
  padding: 1.25rem 1.5rem;
  color: var(--text-dark);
  line-height: 1.65;
  background-color: var(--white);
}

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

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

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

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

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

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

.footer-col h3, .footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.footer-col p {
  color: #A3B8CC;
  line-height: 1.6;
}

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

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

.footer-links a {
  color: #C8D7E6;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-phone-btn {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-color);
  text-decoration: none;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.footer-phone-btn:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.footer-service-area-text {
  font-size: 0.85rem;
  color: #8CA3BC;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.footer-bottom {
  background-color: #060F1A;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.825rem;
  color: #7990A6;
}

.footer-bottom-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

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

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-legal-links a {
  color: #9FB2C8;
  text-decoration: none;
}

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