/* Washington Plumbing - Seattle Site Styles
   Mobile-first, performance-focused, accessible */

:root {
  --color-primary: #0b3d5c;
  --color-primary-dark: #072a40;
  --color-accent: #e85d04;
  --color-accent-hover: #d14f00;
  --color-text: #1a1a1a;
  --color-text-light: #444;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7fa;
  --color-border: #dde3ea;
  --color-success: #0d6b4c;
  --font-stack: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1120px;
  --header-height: 72px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(11, 61, 92, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--color-accent); }
a:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--color-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 10000;
  border-radius: var(--radius);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 12px;
}
.logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1.25;
  flex-shrink: 0;
}
.logo span { display: block; font-size: 0.75rem; font-weight: 400; opacity: 0.9; }
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none !important;
  white-space: nowrap;
  min-height: 44px;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--color-accent-hover); color: #fff !important; }
.header-cta:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
}
.nav-toggle:focus-visible { outline: 3px solid #fff; }

/* Navigation */
.main-nav { display: flex; align-items: center; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Mobile menu */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 999;
  }
  .main-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul {
    flex-direction: column;
    padding: 12px 16px 24px;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
  }
  .header-cta { font-size: 0.85rem; padding: 8px 12px; }
  .logo { font-size: 1rem; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 48px 16px 56px;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero .lead {
  font-size: 1.1rem;
  opacity: 0.95;
  margin: 0 0 28px;
  line-height: 1.5;
}
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 16px 28px;
  border-radius: var(--radius);
  text-decoration: none !important;
  min-height: 52px;
  box-shadow: 0 4px 14px rgba(232, 93, 4, 0.4);
  transition: background 0.2s, transform 0.15s;
}
.btn-call:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  color: #fff !important;
}
.btn-call:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn-call-secondary {
  background: transparent;
  border: 2px solid #fff;
  box-shadow: none;
  margin-left: 12px;
}
.btn-call-secondary:hover { background: rgba(255,255,255,0.15); }

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  padding: 48px 0;
}
.section-alt { background: var(--color-bg-alt); }
.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  color: var(--color-primary);
  margin: 0 0 16px;
  line-height: 1.3;
}
.section h3 {
  font-size: 1.2rem;
  color: var(--color-primary-dark);
  margin: 28px 0 10px;
}
.section p { margin: 0 0 16px; color: var(--color-text-light); }
.section ul, .section ol {
  margin: 0 0 16px;
  padding-left: 1.4em;
  color: var(--color-text-light);
}
.section li { margin-bottom: 8px; }

/* Breadcrumbs */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}
.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 6px;
  color: #999;
}
.breadcrumbs a { color: var(--color-primary); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--color-text); font-weight: 500; }

/* Cards / service grid */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 560px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}
.service-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(11, 61, 92, 0.12);
}
.service-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.service-card h3 a {
  color: var(--color-primary);
  text-decoration: none;
}
.service-card h3 a:hover { color: var(--color-accent); text-decoration: underline; }
.service-card p {
  font-size: 0.95rem;
  margin: 0 0 12px;
}
.service-card .card-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.service-card .card-link:hover { text-decoration: underline; }

/* CTA blocks */
.cta-block {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 36px 20px;
  border-radius: var(--radius);
  margin: 32px 0;
}
.cta-block h2, .cta-block h3 {
  color: #fff;
  margin: 0 0 12px;
}
.cta-block p {
  color: rgba(255,255,255,0.9);
  margin: 0 0 20px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.cta-emergency {
  background: linear-gradient(135deg, #8b1a1a 0%, #c0392b 100%);
}

/* FAQ */
.faq-list { margin: 24px 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: #fff;
}
.faq-item h3 {
  margin: 0;
  font-size: 1.05rem;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--color-primary);
}
.faq-item .faq-answer {
  padding: 0 18px 16px;
  color: var(--color-text-light);
}
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* Area list */
.area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
}
.area-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
}
.area-card h3 { margin-top: 0; }

/* Related services */
.related-services {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}
.related-services a {
  display: inline-block;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 500;
}
.related-services a:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
  font-size: 0.95rem;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-footer li { margin-bottom: 8px; }
.site-footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-phone {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-accent) !important;
  text-decoration: none !important;
  margin: 8px 0 12px;
}
.footer-phone:hover { color: #ff7a2e !important; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 32px auto 0;
  padding: 20px 16px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.footer-bottom a { color: rgba(255,255,255,0.8); }
.nearby-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
}
.nearby-links a { font-size: 0.9rem; }

/* Sticky mobile call bar */
.sticky-call {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-accent);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 1100;
  text-decoration: none !important;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.2);
  min-height: 52px;
  align-items: center;
  justify-content: center;
}
.sticky-call:hover { background: var(--color-accent-hover); color: #fff !important; }
@media (max-width: 768px) {
  .sticky-call { display: flex; }
  body { padding-bottom: 60px; }
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Prose content */
.prose { max-width: 720px; }
.prose h2:first-child { margin-top: 0; }

/* Two-column layout for service pages */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 280px;
  }
}
.sidebar-box {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}
.sidebar-box h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.sidebar-box ul { margin: 0; padding-left: 1.2em; }
.sidebar-box li { margin-bottom: 6px; font-size: 0.95rem; }

/* Table for comparison if needed */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}
th, td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
}
th { background: var(--color-bg-alt); color: var(--color-primary); }