/* ==========================================================================
   NY PLUMBING - ST. ALBANS, QUEENS, NYC
   Design System & Master Stylesheet
   ========================================================================== */

:root {
  --primary-color: #0c1e3d;       /* Deep Navy */
  --primary-light: #162f5e;
  --primary-dark: #071226;
  --accent-color: #d97706;        /* High-contrast Warm Amber / Orange */
  --accent-hover: #b45309;
  --accent-focus: #f59e0b;
  --text-dark: #1e293b;           /* Slate 800 */
  --text-muted: #475569;          /* Slate 600 */
  --text-light: #64748b;          /* Slate 500 */
  --bg-light: #f8fafc;            /* Clean light grey */
  --bg-white: #ffffff;
  --border-color: #e2e8f0;        /* Subtle slate border */
  --border-dark: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --transition: all 0.25s ease-in-out;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
}

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

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

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.65;
  padding-bottom: 72px; /* Space for sticky mobile call bar */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.15rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-top: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.15rem;
}

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

li {
  margin-bottom: 0.45rem;
}

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

.narrow-container {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

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

.brand-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  cursor: pointer;
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 2px;
  background-color: var(--primary-color);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.2s ease, top 0.2s ease;
}

.hamburger-inner {
  top: 8px;
}

.hamburger-inner::before {
  content: "";
  top: -8px;
}

.hamburger-inner::after {
  content: "";
  top: 8px;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner {
  background-color: transparent;
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .hamburger-inner::after {
  top: 0;
  transform: rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
}

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

.nav-item {
  position: relative;
  margin: 0;
}

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

.nav-link:hover,
.nav-link.current-page {
  color: var(--accent-hover);
}

.has-dropdown {
  position: relative;
}

.dropdown-trigger {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.4rem;
}

.dropdown-trigger:hover,
.dropdown-trigger.active {
  color: var(--accent-hover);
}

.arrow-down {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1050;
}

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

.dropdown-link {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dropdown-link:hover,
.dropdown-link.current-page {
  background-color: var(--bg-light);
  color: var(--accent-hover);
}

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

.btn-call-header {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-color);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-call-header:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

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

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

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

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

  .nav-item {
    width: 100%;
  }

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

  .dropdown-menu {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--accent-color);
    padding-left: 0.75rem;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
  }

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

  .dropdown-link {
    padding: 0.45rem 0.5rem;
    font-size: 0.95rem;
  }

  .header-action {
    display: none; /* Desktop header button hides on mobile; fixed bottom bar takes over */
  }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs-container {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 0;
  font-size: 0.85rem;
}

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

.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: var(--border-dark);
  margin: 0 0.25rem;
}

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

/* ==========================================================================
   Hero Sections
   ========================================================================== */

.hero-section,
.service-hero-section {
  padding: 3rem 0;
  background-color: var(--bg-white);
}

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

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

.hero-badge {
  display: inline-block;
  background-color: rgba(217, 119, 6, 0.12);
  color: var(--accent-hover);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

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

/* Image Framing & Styling */
.image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(12, 30, 61, 0.14);
  border: 1px solid var(--border-color);
  background-color: var(--bg-light);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.65rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff !important;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--bg-light);
  color: var(--primary-color) !important;
  border: 1px solid var(--border-dark);
}

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

.btn-call-cta {
  background-color: var(--accent-color);
  color: #ffffff !important;
  font-size: 1.15rem;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.btn-call-cta:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Content Sections & Cards
   ========================================================================== */

.content-section {
  padding: 3rem 0;
}

.bg-light {
  background-color: var(--bg-light);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

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

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

.grid-4 {
  grid-template-columns: 1fr;
}

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

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

.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

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

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: #ffffff;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 0.85rem;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.75rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 800;
}

/* Call-to-action Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  border-top: 4px solid var(--accent-color);
}

.cta-banner h2 {
  color: #ffffff;
  margin-top: 0;
}

.cta-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0.75rem auto 1.75rem auto;
}

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

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.faq-question {
  padding: 1.15rem 1.4rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-color);
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  float: right;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent-color);
  font-weight: 700;
}

details[open] .faq-question::after {
  content: "−";
}

.faq-answer {
  padding: 0 1.4rem 1.25rem 1.4rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

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

.site-footer {
  background-color: var(--primary-dark);
  color: #94a3b8;
  padding: 3.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

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

.footer-heading {
  color: #ffffff;
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 1.15rem;
  letter-spacing: -0.01em;
}

.footer-text {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-phone, .footer-address {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

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

.footer-links a,
.footer-legal-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.phone-link {
  color: var(--accent-focus);
  font-weight: 700;
  text-decoration: none;
}

.footer-legal-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

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

.footer-bottom .disclaimer {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* ==========================================================================
   Mobile Fixed Call Bar
   ========================================================================== */

.mobile-call-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-call-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--bg-white);
    padding: 0.65rem 1rem;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border-color);
  }

  .mobile-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
  }

  .mobile-call-btn:hover {
    background-color: var(--accent-hover);
  }
}
