/* ==========================================================================
   NY PLUMBING — MURRAY HILL (QUEENS), NY
   Shared Production Stylesheet (Vanilla CSS)
   ========================================================================== */

:root {
  --primary-navy: #0f2744;
  --primary-dark: #09182b;
  --primary-light: #1b3d66;
  --accent-orange: #d94e16;
  --accent-hover: #b83d0d;
  --accent-gold: #f59e0b;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --danger: #b91c1c;
  --success: #15803d;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1200px;
  --header-height: 76px;
  --mobile-bar-height: 64px;
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --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);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.12);
  
  --transition: all 0.2s ease-in-out;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-white);
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: var(--mobile-bar-height);
}

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

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

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

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

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

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

h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

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

p {
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

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

li {
  margin-bottom: 0.5rem;
}

/* Accessibility Focus States */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--accent-orange);
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 10000;
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  background-color: var(--primary-navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo:hover, .brand-logo:focus {
  color: var(--accent-gold);
}

.brand-subtext {
  font-size: 0.8rem;
  color: #94a3b8;
  font-weight: 500;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
}

.nav-toggle-icon {
  width: 22px;
  height: 2px;
  background-color: #fff;
  position: relative;
  transition: var(--transition);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2px;
  background-color: #fff;
  left: 0;
  transition: var(--transition);
}

.nav-toggle-icon::before {
  top: -7px;
}

.nav-toggle-icon::after {
  bottom: -7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background-color: transparent;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary-dark);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
}

.site-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-link {
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link:focus {
  color: var(--accent-gold);
}

/* Dropdown */
.nav-item-dropdown {
  position: relative;
}

.dropdown-trigger {
  background: none;
  border: none;
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0;
  text-align: left;
}

.dropdown-trigger::after {
  content: "▾";
  font-size: 0.9rem;
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.dropdown-trigger[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  list-style: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 2px solid rgba(255,255,255,0.15);
}

.dropdown-menu.is-active {
  display: flex;
}

.dropdown-menu a {
  color: #cbd5e1;
  font-size: 0.95rem;
  text-decoration: none;
}

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

/* Header Action Call Button (Exactly 1) */
.header-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--accent-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  min-height: 44px;
}

.header-cta-btn:hover, .header-cta-btn:focus {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Desktop Navigation Layout */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
  
  .site-nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
    padding: 0;
    overflow-y: visible;
    display: flex;
    align-items: center;
  }
  
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.95rem;
    padding: 0.25rem 0;
  }
  
  .dropdown-trigger {
    font-size: 0.95rem;
    padding: 0.25rem 0;
  }
  
  .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background-color: var(--primary-dark);
    padding: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    border-left: none;
    border: 1px solid rgba(255,255,255,0.1);
  }
  
  .nav-item-dropdown:hover .dropdown-menu,
  .nav-item-dropdown:focus-within .dropdown-menu {
    display: flex;
  }
}

/* ==========================================================================
   Page Layout & Container
   ========================================================================== */

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

/* Breadcrumbs */
.breadcrumbs {
  background-color: var(--bg-alt);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

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

.breadcrumbs li + li::before {
  content: "/";
  color: var(--text-light);
  margin-right: 0.5rem;
}

.breadcrumbs a {
  color: var(--primary-navy);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-muted);
  font-weight: 600;
}

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

.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3.5rem 2.5rem;
  }
}

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

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

.hero-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-title {
  color: #fff;
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }
}

.hero-intro {
  font-size: 1.1rem;
  color: #e2e8f0;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--accent-orange);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 48px;
  box-shadow: 0 4px 12px rgba(217, 78, 22, 0.35);
  transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(217, 78, 22, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Frame and image styling */
.hero-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255, 255, 255, 0.15);
  background-color: var(--primary-dark);
}

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

.hero-caption {
  font-size: 0.8rem;
  color: #cbd5e1;
  text-align: center;
  padding: 0.5rem;
  background: rgba(15, 39, 68, 0.85);
}

/* Visual layout for service single image */
.media-content-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2rem 0;
  align-items: center;
}

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

.media-image-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
}

.media-image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Content Sections, Cards, and Utilities
   ========================================================================== */

.content-section {
  margin-bottom: 3rem;
}

.lead-paragraph {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.info-banner {
  background-color: var(--bg-alt);
  border-left: 4px solid var(--primary-light);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
}

.warning-banner {
  background-color: #fff7ed;
  border-left: 4px solid var(--accent-orange);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
}

.warning-banner strong {
  color: var(--accent-hover);
}

.danger-banner {
  background-color: #fef2f2;
  border-left: 4px solid var(--danger);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.75rem 0;
}

.danger-banner strong {
  color: var(--danger);
}

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

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

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

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

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.card-title {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

/* Process Steps */
.step-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--primary-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.15rem;
}

.step-content p {
  margin-bottom: 0;
}

/* In-Content Call to Action Panel */
.cta-panel {
  background: linear-gradient(135deg, var(--primary-navy) 0%, var(--primary-light) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-panel h2, .cta-panel h3 {
  color: #fff;
  border: none;
  margin-top: 0;
  padding: 0;
}

.cta-panel p {
  color: #e2e8f0;
  max-width: 650px;
  margin: 0.75rem auto 1.5rem auto;
  font-size: 1.05rem;
}

.cta-panel .btn-primary {
  font-size: 1.15rem;
  padding: 0.9rem 2rem;
}

/* FAQ Accordion / Section */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1.15rem;
  color: var(--primary-navy);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

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

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

.site-footer {
  background-color: var(--primary-dark);
  color: #cbd5e1;
  padding: 3.5rem 1.25rem 2rem 1.25rem;
  margin-top: auto;
  border-top: 3px solid var(--accent-orange);
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  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.5fr 1fr 1fr 1.2fr;
  }
}

.footer-title {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

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

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
}

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

.footer-contact-info p {
  color: #94a3b8;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-orange);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.5rem;
  transition: var(--transition);
}

.footer-call-btn:hover, .footer-call-btn:focus {
  background-color: var(--accent-hover);
  color: #fff;
}

.footer-privacy-note {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 1rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  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-bottom a {
  color: #94a3b8;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: #fff;
}

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

.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary-dark);
  padding: 0.6rem 1rem;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.2);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 2px solid var(--accent-orange);
  padding-bottom: max(0.6rem, env(safe-area-inset-bottom));
}

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

.mobile-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: var(--accent-orange);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  width: 100%;
  max-width: 400px;
  min-height: 44px;
}

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

/* Print Styles */
@media print {
  .site-header, .mobile-call-bar, .cta-panel, .btn-primary, .btn-secondary {
    display: none !important;
  }
  body {
    padding-bottom: 0;
    color: #000;
    background: #fff;
  }
}
