/**
 * NY Plumbing — Oakwood, Staten Island, NYC
 * Master Stylesheet (.ow- namespace)
 * Maritime Slate & Heating Ember Theme
 */

:root {
  --ow-primary: #0a2540;
  --ow-primary-dark: #06192c;
  --ow-primary-light: #163e67;
  --ow-accent-cyan: #0284c7;
  --ow-accent-cyan-light: #e0f2fe;
  --ow-cta: #ea580c;
  --ow-cta-hover: #c2410c;
  --ow-text: #1e293b;
  --ow-text-muted: #64748b;
  --ow-text-light: #94a3b8;
  --ow-bg: #f8fafc;
  --ow-bg-white: #ffffff;
  --ow-bg-subtle: #f1f5f9;
  --ow-border: #e2e8f0;
  --ow-border-strong: #cbd5e1;
  --ow-footer-bg: #041221;
  --ow-footer-text: #cbd5e1;
  --ow-radius-sm: 6px;
  --ow-radius-md: 10px;
  --ow-radius-lg: 16px;
  --ow-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --ow-shadow-md: 0 4px 12px -2px rgba(10, 37, 64, 0.08), 0 2px 6px -1px rgba(10, 37, 64, 0.04);
  --ow-shadow-lg: 0 12px 28px -4px rgba(10, 37, 64, 0.12), 0 4px 12px -2px rgba(10, 37, 64, 0.06);
  --ow-transition: all 0.2s ease-in-out;
  --ow-max-w: 1200px;
}

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

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--ow-text);
  background-color: var(--ow-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  padding-bottom: 70px;
}

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

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

a {
  color: var(--ow-accent-cyan);
  text-decoration: none;
  transition: var(--ow-transition);
}

a:hover {
  color: var(--ow-cta);
  text-decoration: underline;
}

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

h1 { font-size: 2.25rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

@media (min-width: 768px) {
  h1 { font-size: 2.85rem; }
  h2 { font-size: 2.15rem; }
}

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

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

.ow-section {
  padding: 4rem 0;
}

.ow-section-light {
  background-color: var(--ow-bg-white);
}

.ow-section-subtle {
  background-color: var(--ow-bg-subtle);
}

.ow-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.ow-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

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

.ow-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

/* Top Information Bar */
.ow-topbar {
  background-color: var(--ow-primary-dark);
  color: #e2e8f0;
  font-size: 0.85rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ow-topbar .ow-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ow-topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ow-topbar-item svg {
  color: var(--ow-cta);
}

/* Header & Navigation */
.ow-header {
  background-color: var(--ow-bg-white);
  border-bottom: 1px solid var(--ow-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.04);
}

.ow-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.ow-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
}

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

.ow-brand-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ow-accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Desktop Navigation */
.ow-nav-desktop {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .ow-nav-desktop {
    display: flex;
  }
}

.ow-nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ow-text);
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none !important;
}

.ow-nav-link:hover,
.ow-nav-link[aria-current="page"] {
  color: var(--ow-accent-cyan);
}

.ow-dropdown-parent {
  position: relative;
}

.ow-dropdown-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ow-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
  transition: var(--ow-transition);
}

.ow-dropdown-btn:hover,
.ow-dropdown-parent:hover .ow-dropdown-btn {
  color: var(--ow-accent-cyan);
}

.ow-dropdown-menu {
  position: absolute;
  top: 100%;
  left: -20px;
  width: 290px;
  background-color: var(--ow-bg-white);
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius-md);
  box-shadow: var(--ow-shadow-lg);
  padding: 0.75rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--ow-transition);
  z-index: 1050;
}

.ow-dropdown-parent:hover .ow-dropdown-menu,
.ow-dropdown-parent:focus-within .ow-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ow-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ow-text);
  text-decoration: none !important;
  transition: var(--ow-transition);
}

.ow-dropdown-link svg {
  color: var(--ow-accent-cyan);
  flex-shrink: 0;
}

.ow-dropdown-link:hover {
  background-color: var(--ow-bg-subtle);
  color: var(--ow-accent-cyan);
  padding-left: 1.45rem;
}

.ow-dropdown-link[aria-current="page"] {
  color: var(--ow-accent-cyan);
  font-weight: 700;
  background-color: var(--ow-accent-cyan-light);
}

/* Header Action Call Button */
.ow-nav-phone {
  display: none;
}

@media (min-width: 992px) {
  .ow-nav-phone {
    display: flex;
  }
}

/* Buttons */
.ow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  padding: 0.75rem 1.4rem;
  border-radius: var(--ow-radius-sm);
  transition: var(--ow-transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  text-decoration: none !important;
}

.ow-btn-primary {
  background-color: var(--ow-cta);
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.35);
}

.ow-btn-primary:hover {
  background-color: var(--ow-cta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.45);
}

.ow-btn-outline {
  background-color: transparent;
  border-color: var(--ow-accent-cyan);
  color: var(--ow-accent-cyan) !important;
}

.ow-btn-outline:hover {
  background-color: var(--ow-accent-cyan);
  color: #ffffff !important;
}

.ow-btn-lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.1rem;
}

.ow-btn-block {
  width: 100%;
}

/* Mobile Hamburger Toggle */
.ow-menu-toggle {
  display: flex;
  background: none;
  border: none;
  color: var(--ow-primary);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 992px) {
  .ow-menu-toggle {
    display: none;
  }
}

/* Mobile Navigation Drawer */
.ow-mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--ow-bg-white);
  z-index: 2000;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.ow-mobile-drawer.is-open {
  right: 0;
}

.ow-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--ow-border);
}

.ow-drawer-close {
  background: none;
  border: none;
  color: var(--ow-text);
  cursor: pointer;
  padding: 0.4rem;
}

.ow-drawer-nav {
  list-style: none;
}

.ow-drawer-link {
  display: block;
  padding: 0.65rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ow-primary);
  border-bottom: 1px solid var(--ow-border);
  text-decoration: none !important;
}

.ow-drawer-link:hover {
  color: var(--ow-accent-cyan);
}

.ow-drawer-sublinks {
  list-style: none;
  padding-left: 0.75rem;
  margin-bottom: 0.5rem;
}

.ow-drawer-sublinks a {
  display: block;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: var(--ow-text-muted);
  text-decoration: none !important;
}

.ow-drawer-sublinks a:hover {
  color: var(--ow-accent-cyan);
}

.ow-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
  z-index: 1990;
  opacity: 0;
  visibility: hidden;
  transition: var(--ow-transition);
}

.ow-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* Breadcrumbs */
.ow-breadcrumb {
  background-color: var(--ow-bg-subtle);
  padding: 0.65rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--ow-border);
}

.ow-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  list-style: none;
}

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

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

.ow-breadcrumb li[aria-current="page"] {
  color: var(--ow-primary);
  font-weight: 600;
}

/* Hero Section */
.ow-hero {
  background: linear-gradient(135deg, #0a2540 0%, #0d365f 100%);
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.ow-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.15) 0%, rgba(10, 37, 64, 0) 70%);
  pointer-events: none;
}

.ow-hero-content {
  position: relative;
  z-index: 2;
}

.ow-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(2, 132, 199, 0.4);
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.ow-hero h1,
.ow-hero-title {
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.ow-hero p,
.ow-hero-desc {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 680px;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.ow-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ow-hero-media {
  position: relative;
  border-radius: var(--ow-radius-lg);
  overflow: hidden;
  box-shadow: var(--ow-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ow-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ow-hero-media:hover img {
  transform: scale(1.02);
}

.ow-hero-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 37, 64, 0.95), rgba(10, 37, 64, 0.1));
  padding: 1.25rem 1.5rem 1rem;
  color: #ffffff;
  font-size: 0.88rem;
}

/* Service Cards */
.ow-card {
  background-color: var(--ow-bg-white);
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius-md);
  padding: 1.85rem;
  box-shadow: var(--ow-shadow-sm);
  transition: var(--ow-transition);
  display: flex;
  flex-direction: column;
}

.ow-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ow-shadow-md);
  border-color: var(--ow-accent-cyan);
}

.ow-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--ow-radius-sm);
  background-color: var(--ow-accent-cyan-light);
  color: var(--ow-accent-cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.ow-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.ow-card p {
  color: var(--ow-text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.25rem;
}

.ow-card-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ow-accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none !important;
}

.ow-card-link:hover {
  color: var(--ow-cta);
}

/* Dark Card & Alert Modules */
.ow-card-dark {
  background: var(--ow-primary);
  color: #ffffff;
  border-radius: var(--ow-radius-md);
  padding: 2.25rem;
  box-shadow: var(--ow-shadow-md);
}

.ow-callout {
  background-color: var(--ow-bg-subtle);
  border-left: 4px solid var(--ow-cta);
  padding: 1.75rem;
  border-radius: 0 var(--ow-radius-sm) var(--ow-radius-sm) 0;
  margin: 2rem 0;
}

.ow-cta-banner {
  background: linear-gradient(135deg, var(--ow-primary) 0%, #0d3b66 100%);
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: var(--ow-radius-lg);
  text-align: center;
  margin: 3.5rem 0;
  box-shadow: var(--ow-shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ow-cta-banner h2 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.ow-cta-banner p {
  color: #cbd5e1;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

/* Accordion FAQ Component */
.ow-faq-item {
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius-sm);
  background-color: var(--ow-bg-white);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: var(--ow-transition);
}

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

.ow-faq-question:hover {
  color: var(--ow-accent-cyan);
}

.ow-faq-question svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
  color: var(--ow-accent-cyan);
}

.ow-faq-item.is-expanded .ow-faq-question svg {
  transform: rotate(180deg);
}

.ow-faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--ow-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.ow-faq-answer[hidden] {
  display: none;
}

/* Image Framing */
.ow-image-frame {
  border-radius: var(--ow-radius-lg);
  overflow: hidden;
  box-shadow: var(--ow-shadow-lg);
  border: 1px solid var(--ow-border);
}

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

/* Prose & Typography Container */
.ow-prose {
  font-size: 1.05rem;
  line-height: 1.75;
}

.ow-prose p {
  margin-bottom: 1.35rem;
}

.ow-prose ul, .ow-prose ol {
  margin-bottom: 1.35rem;
  padding-left: 1.5rem;
}

.ow-prose li {
  margin-bottom: 0.5rem;
}

/* Sticky Mobile Call Bar */
.ow-mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--ow-bg-white);
  border-top: 1px solid var(--ow-border);
  padding: 0.75rem 1rem;
  z-index: 1000;
  box-shadow: 0 -3px 10px rgba(0, 0, 0, 0.08);
}

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

/* High-Contrast Footer */
.ow-footer {
  background-color: var(--ow-footer-bg);
  color: var(--ow-footer-text);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ow-footer h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.ow-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--ow-cta);
}

.ow-footer p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.ow-footer-links {
  list-style: none;
}

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

.ow-footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--ow-transition);
}

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

.ow-footer-bottom {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.82rem;
  color: #64748b;
}

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

.ow-footer-partner a {
  color: #ffffff;
  font-weight: 700;
}
