/* Washington Plumbing - Design System & Modern Responsive Stylesheet */
:root {
  --primary: #0f2744;
  --primary-dark: #0a1b30;
  --primary-light: #1e3a5f;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-bright: #38bdf8;
  --emergency: #dc2626;
  --emergency-hover: #b91c1c;
  --success: #16a34a;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1200px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.08);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

/* Top Urgency Bar */
.top-bar {
  background: var(--primary-dark);
  color: #e2e8f0;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.top-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #38bdf8;
  font-weight: 600;
}

.top-bar-badge::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.top-bar-phone {
  color: #ffffff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.top-bar-phone:hover {
  color: var(--accent-bright);
  text-decoration: none;
}

/* Header & Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.logo:hover {
  text-decoration: none;
  color: var(--primary);
}

.logo span {
  color: var(--accent);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  color: var(--text);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--accent);
  background: var(--surface-alt);
}

.nav-desktop .phone-btn {
  margin-left: 0.75rem;
}

/* Phone Buttons & CTAs */
.phone-btn {
  background: var(--accent);
  color: #ffffff !important;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.phone-btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(2, 132, 199, 0.35);
  transform: translateY(-1px);
}

.phone-btn.emergency {
  background: var(--emergency);
  box-shadow: 0 2px 4px rgba(220, 38, 38, 0.3);
}

.phone-btn.emergency:hover {
  background: var(--emergency-hover);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.4);
}

.phone-btn.large {
  padding: 1rem 2rem;
  font-size: 1.15rem;
  border-radius: var(--radius);
}

.phone-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: block;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* Mobile Menu Drawer */
.mobile-menu {
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--surface);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu a {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 4.5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-bright);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

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

/* Breadcrumbs */
.breadcrumbs-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.breadcrumbs {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

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

.breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.breadcrumbs span.separator {
  color: #94a3b8;
}

.breadcrumbs span.current {
  color: var(--text);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--surface-alt);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Content Blocks for Detail Pages */
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.content-main {
  background: var(--surface);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.content-main h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.25rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #f1f5f9;
}

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

.content-main h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-light);
  margin: 1.75rem 0 0.75rem;
}

.content-main p {
  margin-bottom: 1.25rem;
  font-size: 1.025rem;
  color: #334155;
}

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

.content-main li {
  margin-bottom: 0.6rem;
  color: #334155;
  font-size: 1.025rem;
}

.content-main li strong {
  color: var(--primary);
}

/* Callout Box */
.callout {
  background: #eff6ff;
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
}

.callout p {
  margin-bottom: 0;
  color: #1e3a8a;
  font-weight: 500;
}

/* Grid Components */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.service-card h3 a {
  color: var(--primary);
  text-decoration: none;
}

.service-card h3 a:hover {
  color: var(--accent);
}

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

.service-card .card-link {
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Location Cards */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.location-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.location-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.location-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.location-card h3 a {
  color: var(--primary);
}

.location-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  margin-bottom: 0.75rem;
}

/* FAQ Accordion / List */
.faq-section {
  margin-top: 2.5rem;
}

.faq-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  padding: 1.25rem;
}

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

.faq-answer {
  color: #334155;
  font-size: 1rem;
  margin-bottom: 0;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  padding: 3rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  color: #ffffff !important;
  font-size: 2rem;
  margin-bottom: 0.75rem !important;
  border-bottom: none !important;
}

.cta-box p {
  color: #e2e8f0 !important;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.75rem !important;
}

/* Trust / Feature Badges */
.trust-badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.trust-item {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
}

.trust-item strong {
  display: block;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

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

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

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.6rem;
}

.footer-col a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.2s ease;
}

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

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

/* Sticky Mobile CTA */
.sticky-mobile-cta {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--emergency);
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 90;
  text-decoration: none;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.sticky-mobile-cta:hover {
  background: var(--emergency-hover);
  color: #ffffff;
  text-decoration: none;
}

/* Responsive Media Queries */
@media (min-width: 640px) {
  .location-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-badges {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .hero h1 {
    font-size: 3.25rem;
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  }
  .sticky-mobile-cta {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  body {
    padding-bottom: 60px; /* offset for sticky cta */
  }
}

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