/* ==========================================================================
   NY Plumbing — Upper East Side, Manhattan
   Design System & Master Stylesheet
   ========================================================================== */

:root {
  --color-primary-navy: #0b1f3a;
  --color-navy-dark: #071324;
  --color-navy-light: #16365c;
  --color-accent-amber: #d97706;
  --color-accent-hover: #b45309;
  --color-accent-light: #fef3c7;
  --color-emergency-red: #dc2626;
  --color-text-main: #1f2937;
  --color-text-muted: #4b5563;
  --color-text-light: #6b7280;
  --color-bg-white: #ffffff;
  --color-bg-neutral: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --max-width: 1200px;
  --header-height: 80px;
}

/* Reset & Base */
*, *::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-family);
  color: var(--color-text-main);
  background-color: var(--color-bg-neutral);
  line-height: 1.65;
  padding-bottom: 70px;
}

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

a {
  color: var(--color-navy-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

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

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

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

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); margin-top: 1.5rem; }

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

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 10px;
  background: var(--color-accent-amber);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top 0.2s;
}
.skip-link:focus { top: 10px; }

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

/* Top Utility Header */
.top-notice-bar {
  background-color: var(--color-navy-dark);
  color: #e2e8f0;
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-notice-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge-location {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #cbd5e1;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--color-primary-navy), var(--color-navy-light));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

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

.brand-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary-navy);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

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

/* Navigation */
.main-nav { display: none; }
@media (min-width: 992px) {
  .main-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }
}

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

.nav-item { position: relative; }

.nav-link {
  color: var(--color-primary-navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover, .nav-link:focus { color: var(--color-accent-amber); }
.nav-link.active {
  color: var(--color-accent-amber);
  border-bottom: 2px solid var(--color-accent-amber);
}

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 270px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0;
  list-style: none;
  display: none;
  z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-link {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: all 0.15s ease;
}

.dropdown-link:hover, .dropdown-link:focus {
  background-color: var(--color-bg-neutral);
  color: var(--color-navy-light);
  padding-left: 1.5rem;
}
.dropdown-menu li:last-child .dropdown-link { border-bottom: none; }

/* Exactly 1 Header Phone Button */
.header-cta { display: none; }
@media (min-width: 992px) {
  .header-cta {
    display: flex;
    align-items: center;
  }
}

.btn-header-call {
  background-color: var(--color-accent-amber);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.25);
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn-header-call:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mobile Toggle & Drawer */
.mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
}
@media (min-width: 992px) { .mobile-toggle { display: none; } }

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary-navy);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  padding: 1.5rem;
  overflow-y: auto;
  z-index: 999;
  border-top: 1px solid var(--color-border);
}
.mobile-drawer.open { display: block; }

.mobile-menu-list { list-style: none; padding: 0; margin: 0 0 1.5rem 0; }
.mobile-menu-item { border-bottom: 1px solid var(--color-border-subtle); }
.mobile-menu-link {
  display: block;
  padding: 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-navy);
  text-decoration: none;
}
.mobile-submenu { list-style: none; padding: 0 0 0.5rem 1rem; }
.mobile-sub-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

/* Breadcrumbs */
.breadcrumb-nav {
  background: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  font-size: 0.875rem;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}
.breadcrumb-item { display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb-item::after { content: "/"; color: var(--color-text-light); }
.breadcrumb-item:last-child::after { content: ""; }
.breadcrumb-item a { color: var(--color-navy-light); text-decoration: none; }
.breadcrumb-item.current { color: var(--color-text-muted); font-weight: 500; }

/* Hero Section (Homepage: 1 Image) */
.hero-section {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg-neutral) 100%);
  padding: 2.5rem 0 3.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-accent-light);
  color: var(--color-accent-hover);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.btn-primary-call {
  background-color: var(--color-accent-amber);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(217, 119, 6, 0.25);
  transition: all 0.15s ease;
}
.btn-primary-call:hover {
  background-color: var(--color-accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(217, 119, 6, 0.3);
}

.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
  background-color: var(--color-primary-navy);
}

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

/* Featured Service Page Image (Full-width edge-to-edge responsive view) */
.service-featured-image-wrap {
  width: 100%;
  margin: 2.25rem 0 2.75rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: var(--color-primary-navy);
}

.service-featured-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

@media (min-width: 992px) {
  .service-featured-image-wrap img {
    aspect-ratio: 21 / 9;
    max-height: 480px;
  }
}

/* Inner Page Hero (Text-Only Header for Inner Pages) */
.inner-hero {
  background: linear-gradient(180deg, var(--color-primary-navy) 0%, var(--color-navy-dark) 100%);
  color: #ffffff;
  padding: 3rem 0;
  margin-bottom: 2rem;
}
.inner-hero h1 { color: #ffffff; margin-bottom: 0.75rem; }
.inner-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  max-width: 800px;
  margin-bottom: 1.25rem;
}

/* Sections & Layout */
.section-pad { padding: 3.5rem 0; }
.section-bg-white {
  background-color: var(--color-bg-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.content-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

/* Callouts & Cards */
.callout-box {
  background: #ffffff;
  border-left: 4px solid var(--color-navy-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem;
  margin: 1.75rem 0;
  box-shadow: var(--shadow-sm);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.callout-danger {
  background: #fff5f5;
  border-left: 4px solid var(--color-emergency-red);
  border-top: 1px solid #fed7d7;
  border-right: 1px solid #fed7d7;
  border-bottom: 1px solid #fed7d7;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.card h3 { margin-top: 0; font-size: 1.2rem; }

/* Mid-Page CTA */
.mid-page-cta {
  background: linear-gradient(135deg, var(--color-primary-navy), var(--color-navy-dark));
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.mid-page-cta h2, .mid-page-cta h3 { color: #ffffff; margin-top: 0; }
.mid-page-cta p { color: #cbd5e1; max-width: 650px; margin: 0 auto 1.5rem auto; }

/* FAQs */
.faq-block { margin-top: 2.5rem; }
.faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}
.faq-question { font-size: 1.1rem; font-weight: 700; color: var(--color-primary-navy); margin-bottom: 0.5rem; }
.faq-answer { color: var(--color-text-muted); margin-bottom: 0; }

/* Footer */
.site-footer {
  background-color: var(--color-navy-dark);
  color: #cbd5e1;
  padding: 3.5rem 0 1.5rem 0;
  border-top: 3px solid var(--color-accent-amber);
  font-size: 0.925rem;
}
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #ffffff; text-decoration: underline; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }

.footer-col h3 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-contact-info p { margin-bottom: 0.5rem; }

.footer-call-btn {
  display: inline-block;
  background-color: var(--color-accent-amber);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-top: 0.75rem;
  text-decoration: none !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}
.footer-legal-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary-navy);
  padding: 0.65rem 1rem;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 2px solid var(--color-accent-amber);
}
@media (min-width: 992px) { .mobile-sticky-bar { display: none; } }

.sticky-label { color: #ffffff; font-size: 0.825rem; line-height: 1.2; }
.sticky-label strong { display: block; font-size: 0.95rem; color: var(--color-accent-amber); }

.btn-sticky-call {
  background-color: var(--color-accent-amber);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}
