/* ==========================================================================
   NY PLUMBING — GREENWICH VILLAGE, MANHATTAN
   Clean, Editorial Design System: Deep Navy, Crisp White, Amber Accent
   ========================================================================== */

:root {
  --primary-navy: #10243A;
  --primary-dark: #0A1726;
  --primary-light: #1A3654;
  --accent-gold: #D97706;
  --accent-gold-hover: #B45309;
  --text-main: #1F2937;
  --text-muted: #4B5563;
  --bg-light: #F8FAFC;
  --bg-card: #FFFFFF;
  --border-subtle: #E2E8F0;
  --border-strong: #CBD5E1;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
  --transition: all 0.25s ease-in-out;
}

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

body {
  font-family: var(--font-family);
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.65;
  font-size: 1rem;
  padding-bottom: 72px; /* For sticky mobile call bar */
}

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

a {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

a:hover, a:focus {
  color: var(--accent-gold);
}

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

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

.logo-link {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-link:hover {
  color: #FBBF24;
}

.logo-location {
  font-size: 0.8rem;
  color: #94A3B8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.hamburger-bar {
  display: block;
  width: 24px;
  height: 3px;
  background-color: #FFFFFF;
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav ul {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.25rem;
  display: inline-block;
}

.nav-link:hover, .nav-link.active {
  color: #FBBF24;
}

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

.dropdown-trigger {
  background: transparent;
  border: none;
  color: #E2E8F0;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
}

.dropdown-trigger:hover, .dropdown-trigger:focus {
  color: #FBBF24;
}

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

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

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #FFFFFF;
  min-width: 260px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 0.5rem 0;
  z-index: 100;
  flex-direction: column;
  gap: 0 !important;
  border: 1px solid var(--border-subtle);
  list-style: none;
}

/* Desktop: display: none by default; only show when hovered or tapped */
@media (min-width: 1024px) {
  .dropdown:hover .dropdown-menu,
  .dropdown.open .dropdown-menu {
    display: flex;
  }
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  color: var(--text-main);
  padding: 0.65rem 1.25rem;
  display: block;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu a:hover, .dropdown-menu a.active {
  background-color: #F1F5F9;
  color: var(--primary-light);
}

.header-cta .btn {
  margin-left: 0.5rem;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  border: 2px solid transparent;
}

.btn-accent {
  background-color: var(--accent-gold);
  color: #FFFFFF;
}

.btn-accent:hover, .btn-accent:focus {
  background-color: var(--accent-gold-hover);
  color: #FFFFFF;
}

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

.btn-outline {
  border-color: #FFFFFF;
  color: #FFFFFF;
  background: transparent;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: #FFFFFF;
  padding: 3.5rem 0 3.5rem;
}

.hero-service {
  padding: 3rem 0;
}

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

.hero-tagline {
  color: #FBBF24;
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.hero-section h1 {
  font-size: 2.35rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #FFFFFF;
}

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

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

/* Emergency Safety Banner (Gas) */
.emergency-safety-banner {
  background-color: #FEF2F2;
  border-bottom: 2px solid #DC2626;
  padding: 1.25rem 0;
}

.safety-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.safety-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.safety-text h3 {
  color: #991B1B;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.safety-text p {
  color: #7F1D1D;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ==========================================================================
   Layout & Grid
   ========================================================================== */

.section {
  padding: 3.5rem 0;
}

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

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

.main-content h2 {
  font-size: 1.7rem;
  line-height: 1.3;
  color: var(--primary-navy);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.main-content h2:first-of-type {
  margin-top: 0;
}

.main-content h3 {
  font-size: 1.25rem;
  color: var(--primary-light);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.main-content p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-size: 1.025rem;
}

.main-content ul, .main-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.main-content li {
  margin-bottom: 0.65rem;
}

/* Single Service Image Box */
.service-image-box {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
}

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

.image-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0 !important;
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-subtle);
}

/* Callout Card & Banners */
.callout-card {
  background-color: #F1F5F9;
  border-left: 4px solid var(--accent-gold);
  padding: 1.5rem;
  border-radius: 0 6px 6px 0;
  margin: 2rem 0;
}

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

.callout-card p {
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: #FFFFFF;
  padding: 2.25rem;
  border-radius: 8px;
  margin: 2.5rem 0;
  text-align: center;
}

.cta-banner h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: #E2E8F0;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* FAQ Lists & Def Lists */
.faq-list dt {
  font-weight: 700;
  color: var(--primary-navy);
  margin-top: 1.25rem;
  font-size: 1.1rem;
}

.faq-list dd {
  margin-left: 0;
  margin-bottom: 1rem;
  color: var(--text-main);
}

/* FAQ Accordion */
.faq-accordion {
  margin: 1.5rem 0 2rem;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  background-color: #FFFFFF;
  overflow: hidden;
}

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

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

.faq-icon {
  font-size: 1.25rem;
  color: var(--accent-gold);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
}

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

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

/* Area Detail Cards (Service Areas page) */
.area-detail-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.area-detail-card h3 {
  margin-top: 0;
  color: var(--primary-navy);
  border-bottom: 2px solid #E2E8F0;
  padding-bottom: 0.5rem;
}

/* Service Mini Cards */
.service-links-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

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

.service-mini-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.25rem;
}

.service-mini-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.service-mini-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-box {
  background-color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.sidebar-box h3 {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-subtle);
}

.sidebar-box.contact-box {
  background-color: var(--primary-navy);
  color: #FFFFFF;
  border: none;
}

.sidebar-box.contact-box h3 {
  color: #FFFFFF;
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sidebar-box.contact-box p {
  color: #CBD5E1;
}

.phone-link {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  color: #FBBF24;
  text-decoration: none;
  margin: 0.75rem 0;
}

.phone-link:hover {
  color: #FDE68A;
}

.small-text {
  font-size: 0.85rem;
  color: #94A3B8;
}

.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.sidebar-nav a:hover, .sidebar-nav a.active {
  background-color: #F1F5F9;
  color: var(--primary-light);
  font-weight: 600;
}

/* ==========================================================================
   Sticky Mobile Call Bar
   ========================================================================== */

.mobile-call-bar {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  padding: 0.65rem 1rem;
  z-index: 999;
  box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.2);
}

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

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-gold);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.call-icon {
  font-size: 1.1rem;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  background-color: var(--primary-dark);
  color: #CBD5E1;
  padding: 3.5rem 0 0;
  font-size: 0.925rem;
}

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

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

.footer-title {
  color: #FFFFFF;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-phone a {
  color: #FBBF24;
  font-weight: 700;
  text-decoration: none;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.footer-links a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.footer-service-line {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  background-color: #060E18;
}

.footer-bottom-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.privacy-note {
  font-size: 0.8rem;
  color: #94A3B8;
  line-height: 1.5;
}

.copyright {
  font-size: 0.8rem;
  color: #64748B;
}

/* ==========================================================================
   Mobile Nav Responsiveness
   ========================================================================== */

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

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

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

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 1.25rem;
  }

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

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

  .dropdown-menu {
    display: none;
    position: static;
    background-color: rgba(0, 0, 0, 0.2);
    border: none;
    box-shadow: none;
    padding: 0.25rem 0 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .dropdown.open .dropdown-menu {
    display: flex;
  }

  .dropdown-menu a {
    color: #CBD5E1;
    padding: 0.5rem 0;
    font-size: 0.95rem;
  }

  .dropdown-menu a:hover, .dropdown-menu a.active {
    background: transparent;
    color: #FBBF24;
  }

  .header-cta {
    display: none;
  }
}
