/* RENDER PATHS: phone (<600px) one column + sticky Call/Text bar; 600-899px two-up CTA row, 3-col areas; 900px+ no call bar, 4-col areas. CSS only, no JS layout switching.
   Shared styles for TJ's Plumbing service and area pages (homepage keeps its own inline styles).
   Layout: one column on phones; the two-up CTA row and area grid widen at 600px and 900px.
   Mobile-only: the sticky Call / Text bar at the bottom (hidden at 900px and up). */
:root {
  --white: #ffffff; --off-white: #f5f5f7; --charcoal: #1d1d1f; --mid: #6e6e73; --light: #a1a1a6;
  --accent: #0071e3; --accent-hover: #0077ed; --green: #34c759; --border: #d2d2d7; --border-light: #e8e8ed;
  --radius: 18px; --radius-sm: 12px;
  --font: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--white); color: var(--charcoal); -webkit-font-smoothing: antialiased; font-size: 17px; line-height: 1.6; }
a { color: var(--accent); }
a, button, summary { touch-action: manipulation; }
.skip-link { position: absolute; top: -100px; left: 16px; background: var(--accent); color: #fff; padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; font-weight: 600; z-index: 9999; text-decoration: none; }
.skip-link:focus { top: 16px; }

.topbar {
  position: sticky; top: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  min-height: 56px; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.08);
}
@supports (backdrop-filter: blur(1px)) {
  .topbar { background: rgba(255,255,255,0.9); backdrop-filter: saturate(180%) blur(20px); }
}
.topbar-logo { font-weight: 600; color: var(--charcoal); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.topbar-actions { display: flex; gap: 14px; }
.topbar-actions a { min-height: 44px; min-width: 56px; justify-content: center; display: inline-flex; align-items: center; font-size: 16px; font-weight: 600; text-decoration: none; }

.crumbs { max-width: 760px; margin: 20px auto 0; padding: 0 20px; font-size: 14px; color: var(--mid); }
.crumbs a { color: var(--mid); display: inline-flex; min-height: 44px; min-width: 56px; align-items: center; }

.page { max-width: 760px; margin: 0 auto; padding: 8px 20px 64px; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h1 { font-size: clamp(32px, 6vw, 48px); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px; }
h2 { font-size: clamp(24px, 4vw, 30px); line-height: 1.2; letter-spacing: -0.02em; margin: 44px 0 12px; }
.lead { font-size: 20px; color: var(--mid); margin-bottom: 24px; }
p { margin-bottom: 14px; }
ul.list { padding-left: 22px; margin-bottom: 14px; }
ul.list li { margin-bottom: 8px; }
ul.list li a, .legal a { display: inline-flex; align-items: center; min-height: 44px; }
.center { justify-content: center; }
.legal h2 { font-size: 20px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--mid); }

.cta-row { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 8px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: 980px; font-size: 17px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border: 1.5px solid var(--accent); color: var(--accent); background: transparent; }
.btn:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 8px; font-size: 14px; color: var(--mid); }
.badges span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 8px; vertical-align: middle; }

.callout { background: var(--off-white); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 24px; margin: 28px 0; }
.callout h2 { margin-top: 0; }

.faq { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--border-light); }
.faq details:last-child { border-bottom: none; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; min-height: 44px; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 20px 16px; color: var(--mid); }

.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; list-style: none; margin-top: 12px; }
.areas li { padding: 4px 0; font-size: 14px; color: var(--mid); }

.more { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; }
.more a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; text-decoration: none; }

.band { background: var(--charcoal); color: #fff; text-align: center; padding: 56px 20px; }
.band h2 { margin-top: 0; color: #fff; }
.band p { color: rgba(255,255,255,0.7); }
.band .btn-secondary { color: #fff; border-color: #fff; }

footer { background: #000; color: rgba(255,255,255,0.6); font-size: 14px; padding: 32px max(20px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
footer .wrap { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
footer a { color: rgba(255,255,255,0.8); min-height: 44px; min-width: 48px; display: inline-flex; align-items: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 0 18px; }

/* Mobile-only sticky call bar */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px max(12px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: #fff; border-top: 1px solid var(--border);
}
.callbar .btn { min-height: 48px; padding: 10px 12px; font-size: 16px; }

@media (min-width: 600px) {
  .cta-row { flex-direction: row; }
  .areas { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .callbar { display: none; }
  footer { padding-bottom: 40px; }
  .areas { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
footer .footer-name { color: #fff; }
