/* ==========================================================================
   Washington Plumbing - Sammamish, WA
   Modern, Ultra-Fast, Responsive Stylesheet & Design System
   ========================================================================== */

:root {
  --primary: #0f2744;
  --primary-dark: #0a1b30;
  --primary-light: #1e3a5f;
  --accent: #0284c7;
  --accent-hover: #0369a1;
  --accent-bright: #38bdf8;
  --emergency: #dc2626;
  --emergency-hover: #b91c1c;
  --emergency-glow: rgba(220, 38, 38, 0.35);
  --success: #16a34a;
  --background: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1160px;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.06);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.06);
}

*, *::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;
  padding-bottom: 72px; /* clearance for sticky mobile call bar */
}

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

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;
}

.content-container {
  max-width: 920px;
  margin: 0 auto;
}

/* ==========================================================================
   TOP BAR (Direct Dispatch Bar)
   ========================================================================== */
.top-bar {
  background: var(--primary-dark);
  color: #e2e8f0;
  padding: 0.55rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.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.45rem;
  color: #38bdf8;
  font-weight: 600;
  font-size: 0.85rem;
}

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

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

.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: 1000;
  box-shadow: var(--shadow-sm);
}

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

.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.2rem;
}

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

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

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.5rem;
  color: var(--primary);
  transition: background 0.2s ease;
}

.menu-toggle:hover {
  background: var(--surface-alt);
}

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

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

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

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

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

/* ==========================================================================
   BUTTONS & CALL-TO-ACTION (CTA)
   ========================================================================== */
.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 cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  line-height: 1.2;
}

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

.phone-btn.emergency {
  background: var(--emergency);
  box-shadow: 0 3px 6px var(--emergency-glow);
}

.phone-btn.emergency:hover {
  background: var(--emergency-hover);
  box-shadow: 0 6px 14px var(--emergency-glow);
  transform: translateY(-2px);
  color: #ffffff !important;
  text-decoration: none;
}

.phone-btn.large {
  padding: 0.95rem 1.85rem;
  font-size: 1.1rem;
  border-radius: var(--radius);
}

.phone-btn.secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
}

.phone-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #ffffff;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.phone-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  padding: 4rem 0 3.75rem;
  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% 15%, rgba(2, 132, 199, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.95rem;
  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;
  color: #ffffff;
}

.hero p {
  font-size: 1.125rem;
  color: #cbd5e1;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.65;
}

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

/* ==========================================================================
   TRUST BAR (Under Hero)
   ========================================================================== */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: -1.75rem;
  position: relative;
  z-index: 10;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--primary);
  justify-content: center;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #dcfce7;
  color: var(--success);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

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

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

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

/* ==========================================================================
   PAGE SECTIONS & TYPOGRAPHY
   ========================================================================== */
.section {
  padding: 3.5rem 0;
}

.section.pt-0 {
  padding-top: 2.25rem;
}

.content-container h1 {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #334155;
  background: var(--surface);
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.content-container h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

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

.content-container p {
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.7;
}

.content-container ul,
.content-container ol {
  margin: 0 0 1.75rem 1.5rem;
}

.content-container li {
  margin-bottom: 0.65rem;
  font-size: 1.025rem;
  color: #334155;
  line-height: 1.6;
}

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

/* ==========================================================================
   CALLOUT BOXES (Lead Generation CTA Cards)
   ========================================================================== */
.callout-box,
.card.callout-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
  border: 1px solid #bfdbfe;
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.callout-box h2,
.callout-box h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin: 0;
  font-weight: 700;
}

.callout-box p {
  color: #334155;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  max-width: 680px;
}

.callout-box .phone-btn {
  margin-top: 0.35rem;
}

.my-4 {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

.mt-4 {
  margin-top: 2.5rem !important;
}

/* ==========================================================================
   FEATURES / SERVICES / NEIGHBORHOOD GRIDS
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0 2.5rem;
}

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

.feature-item:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.feature-item h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.feature-item h4 a {
  color: var(--primary);
}

.feature-item h4 a:hover {
  color: var(--accent);
}

.feature-item p {
  font-size: 0.975rem;
  color: #475569;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.faq-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.faq-item p {
  font-size: 1rem;
  color: #475569;
  margin-bottom: 0;
  line-height: 1.65;
}

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

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

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

.footer-grid p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
  color: #cbd5e1;
}

.footer-grid a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.925rem;
  display: block;
  margin-bottom: 0.55rem;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.75rem;
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

/* ==========================================================================
   STICKY MOBILE CALL BAR (Bottom Tapper)
   ========================================================================== */
.mobile-call-bar {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--emergency);
  z-index: 9999;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.25);
}

.mobile-call-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none !important;
  line-height: 1.2;
}

.mobile-call-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

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

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .hero h1 {
    font-size: 3.15rem;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
