/* ==========================================================================
   TK Plumbing — site chrome (header, navigation, blog, utilities).
   Page bodies ship their own scoped CSS (.tkp3, .tkfoot-, etc.).
   ========================================================================== */
:root {
  --tk-blue: #256e92;
  --tk-blue-dark: #1a5272;
  --tk-navy: #0f2d44;
  --tk-orange: #f9b31b;
  --tk-orange-dark: #e09a00;
  --tk-text: #3e3e3e;
  --tk-muted: #6a6a6a;
  --tk-border: rgba(62, 62, 62, 0.15);
  --tk-bg-soft: #f4f8fb;
  --tk-radius: 8px;
  --tk-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--tk-text);
  background: #fff;
}
img { max-width: 100%; height: auto; }
a { color: var(--tk-blue); }

.tk-container { width: 100%; max-width: var(--tk-max); margin: 0 auto; padding: 0 16px; }
.tk-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tk-skip { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--tk-navy); color: #fff; padding: 10px 16px; }
.tk-skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------------------- header */
.tk-header { position: sticky; top: 0; z-index: 1000; background: #fff; }
.tk-topbar { background: var(--tk-blue); color: #fff; font-size: 14px; }
.tk-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.tk-topbar p { margin: 0; }
.tk-topbar a { color: #fff; text-decoration: none; }
.tk-topbar a:hover { text-decoration: underline; }
.tk-stars { color: var(--tk-orange); font-weight: 700; margin-left: 24px; }

.tk-mainbar { border-bottom: 1px solid rgba(62, 62, 62, 0.4); background: #fff; }
.tk-mainbar-inner { display: flex; align-items: center; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.tk-logo { flex: none; display: block; line-height: 0; }
.tk-logo img { max-height: 70px; width: auto; }

.tk-nav { flex: 1; display: flex; justify-content: flex-end; }
.tk-menu, .tk-sub { list-style: none; margin: 0; padding: 0; }
.tk-menu { display: flex; align-items: center; flex-wrap: wrap; }
.tk-nav-item { position: relative; display: flex; align-items: center; }
.tk-nav-item > a {
  display: block; padding: 10px; color: #000; text-decoration: none;
  font-family: 'Open Sans', sans-serif; font-size: 16px; white-space: nowrap;
}
.tk-nav-item > a:hover, .tk-nav-item.is-active > a { color: var(--tk-blue); }
.tk-sub-toggle { display: none; }
.has-sub > a::after {
  content: ''; display: inline-block; margin-left: 6px; vertical-align: 3px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0;
}
.tk-sub {
  position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff;
  box-shadow: 0 12px 32px rgba(15, 45, 68, 0.18); border-radius: 0 0 var(--tk-radius) var(--tk-radius);
  border-top: 3px solid var(--tk-blue); padding: 8px 0; max-height: 75vh; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .tk-sub, .has-sub:focus-within > .tk-sub, .has-sub.is-open > .tk-sub { opacity: 1; visibility: visible; transform: none; }
.tk-sub a { display: block; padding: 8px 18px; color: var(--tk-text); text-decoration: none; font-size: 15px; }
.tk-sub a:hover, .tk-sub a[aria-current] { background: var(--tk-bg-soft); color: var(--tk-blue); }

.tk-cta {
  flex: none; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.2;
  background: var(--tk-orange); color: #fff; text-decoration: none; font-weight: 700;
  padding: 10px 24px; border-radius: var(--tk-radius); transition: transform .15s, background .15s;
}
.tk-cta:hover { transform: scale(1.05); background: var(--tk-orange-dark); }
.tk-cta-phone { font-size: 13px; font-weight: 600; opacity: .95; }

.tk-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 10px; }
.tk-burger span { display: block; height: 3px; margin: 5px 0; background: var(--tk-navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.tk-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.tk-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tk-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1180px) {
  .tk-nav-item > a { padding: 10px 7px; font-size: 15px; }
}

@media (max-width: 1024px) {
  .tk-topbar-left, .tk-topbar-right { display: none; }
  .tk-topbar-inner { justify-content: center; text-align: center; }
  .tk-burger { display: block; }
  .tk-cta { padding: 8px 14px; }
  .tk-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none; background: #fff;
    border-top: 1px solid var(--tk-border); box-shadow: 0 16px 32px rgba(15, 45, 68, 0.18);
    max-height: calc(100vh - 140px); overflow-y: auto;
  }
  .tk-nav.is-open { display: block; }
  .tk-menu { flex-direction: column; align-items: stretch; padding: 8px 0; }
  .tk-nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--tk-border); }
  .tk-nav-item > a { flex: 1; padding: 14px 20px; font-size: 16px; }
  .has-sub > a::after { display: none; }
  .tk-sub-toggle {
    display: block; width: 52px; height: 48px; border: 0; background: transparent; cursor: pointer; position: relative;
  }
  .tk-sub-toggle span { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -7px 0 0 -5px;
    border-right: 2px solid var(--tk-navy); border-bottom: 2px solid var(--tk-navy); transform: rotate(45deg); transition: transform .2s; }
  .tk-sub-toggle[aria-expanded="true"] span { transform: rotate(-135deg); margin-top: -2px; }
  .tk-sub {
    position: static; width: 100%; display: none; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; background: var(--tk-bg-soft); max-height: none;
  }
  .has-sub:hover > .tk-sub, .has-sub:focus-within > .tk-sub { display: none; }
  .has-sub.is-open > .tk-sub { display: block; }
  .tk-sub a { padding: 12px 32px; }
  .tk-mainbar-inner { position: relative; }
}

@media (max-width: 600px) {
  .tk-topbar { font-size: 12px; }
  .tk-stars { display: block; margin: 2px 0 0; }
  .tk-logo img { max-height: 52px; }
  .tk-cta-phone { display: none; }
}

/* ---------------------------------------------------------------- blog */
.tk-blog-banner { background: linear-gradient(135deg, var(--tk-navy), var(--tk-blue)); color: #fff; padding: 48px 0 40px; }
.tk-type-post .tk-blog-banner { padding: 28px 0; }
.tk-blog-kicker { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--tk-orange); }
.tk-blog-title { margin: 0; font-family: 'Poppins', sans-serif; font-size: clamp(30px, 5vw, 48px); line-height: 1.15; }
.tk-blog-sub { margin: 10px 0 0; max-width: 720px; opacity: .9; font-size: 18px; }

.tk-blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
@media (max-width: 960px) { .tk-blog-layout { grid-template-columns: 1fr; } }

.tk-crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; font-size: 14px; color: var(--tk-muted); }
.tk-crumbs li + li::before { content: '›'; margin: 0 8px; }
.tk-crumbs a { color: var(--tk-blue); text-decoration: none; }

.tk-post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.tk-post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--tk-border); border-radius: 12px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.tk-post-card:hover { box-shadow: 0 12px 28px rgba(15, 45, 68, .12); transform: translateY(-2px); }
.tk-post-card-img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tk-post-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.tk-post-card-meta { margin: 0 0 6px; font-size: 13px; color: var(--tk-muted); }
.tk-post-card-meta a { color: var(--tk-blue); text-decoration: none; }
.tk-post-card-title { margin: 0 0 10px; font-family: 'Poppins', sans-serif; font-size: 19px; line-height: 1.3; }
.tk-post-card-title a { color: var(--tk-navy); text-decoration: none; }
.tk-post-card-title a:hover { color: var(--tk-blue); }
.tk-post-card-excerpt { margin: 0 0 14px; font-size: 15px; color: var(--tk-muted); flex: 1; }
.tk-post-card-more { font-weight: 700; color: var(--tk-blue); text-decoration: none; }

.tk-article-hero { margin: 0 0 24px; }
.tk-article-hero img { display: block; width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; }
.tk-article-title { margin: 0 0 10px; font-family: 'Poppins', sans-serif; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; color: var(--tk-navy); }
.tk-article-meta { margin: 0 0 8px; color: var(--tk-muted); font-size: 14px; }
.tk-article-meta a { color: var(--tk-blue); }
.tk-article-body { overflow-wrap: anywhere; }
.tk-article-body > * { max-width: 100%; }
.tk-tag-cloud a {
  display: inline-block; margin: 0 6px 8px 0; padding: 4px 12px; border-radius: 999px;
  background: var(--tk-bg-soft); color: var(--tk-blue); text-decoration: none; font-size: 14px;
}
.tk-tag-cloud a:hover { background: var(--tk-blue); color: #fff; }
.tk-article-tags { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--tk-border); }
.tk-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.tk-post-nav a { display: block; padding: 16px; border: 1px solid var(--tk-border); border-radius: 10px; text-decoration: none; color: var(--tk-navy); font-weight: 600; }
.tk-post-nav a span { display: block; font-size: 13px; font-weight: 400; color: var(--tk-muted); margin-bottom: 4px; }
.tk-post-nav-next { text-align: right; }
@media (max-width: 600px) { .tk-post-nav { grid-template-columns: 1fr; } }

.tk-blog-sidebar { display: flex; flex-direction: column; gap: 24px; }
.tk-side-box { border: 1px solid var(--tk-border); border-radius: 12px; padding: 20px; background: #fff; }
.tk-side-box h2 { margin: 0 0 12px; font-family: 'Poppins', sans-serif; font-size: 18px; color: var(--tk-navy); }
.tk-side-list { list-style: none; margin: 0; padding: 0; }
.tk-side-list li { border-bottom: 1px solid var(--tk-border); }
.tk-side-list li:last-child { border-bottom: 0; }
.tk-side-list a { display: block; padding: 8px 0; color: var(--tk-text); text-decoration: none; font-size: 15px; line-height: 1.4; }
.tk-side-list a:hover { color: var(--tk-blue); }
.tk-side-cta { background: var(--tk-navy); color: #fff; border: 0; }
.tk-side-cta h2 { color: #fff; }
.tk-btn { display: block; text-align: center; margin-top: 10px; padding: 12px 16px; border-radius: var(--tk-radius); background: var(--tk-orange); color: #fff; font-weight: 700; text-decoration: none; }
.tk-btn-ghost { background: transparent; border: 2px solid #fff; }
.tk-btn:hover { filter: brightness(1.05); }

/* ---------------------------------------------------------------- 404 */
.tk-404 { padding: 80px 0; text-align: center; }
.tk-404 h1 { font-family: 'Poppins', sans-serif; color: var(--tk-navy); font-size: clamp(28px, 5vw, 44px); margin: 0 0 12px; }
.tk-404-links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tk-404-links a { display: block; padding: 10px 18px; border-radius: 999px; background: var(--tk-bg-soft); text-decoration: none; }

/* ---------------------------------------------------------------- local service pages */
.tk-loc-hero { background: linear-gradient(135deg, var(--tk-navy), var(--tk-blue)); color: #fff; padding: 48px 0 40px; }
.tk-loc-kicker { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: var(--tk-orange); }
.tk-loc-hero h1 { margin: 0 0 14px; font-family: 'Poppins', sans-serif; font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; color: #fff; }
.tk-loc-lead { margin: 0; max-width: 760px; font-size: 18px; line-height: 1.5; }
.tk-loc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.tk-loc-btn { display: inline-block; background: var(--tk-orange); color: #1a1a1a; font-weight: 700; text-decoration: none; padding: 12px 18px; border-radius: var(--tk-radius); }
.tk-loc-btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; }
.tk-loc-btn:hover { filter: brightness(1.05); }
.tk-loc-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; padding: 36px 0 64px; }
.tk-loc-main h2, .tk-loc-aside h2 { font-family: 'Poppins', sans-serif; color: var(--tk-navy); font-size: 26px; line-height: 1.25; margin: 0 0 12px; }
.tk-loc-block { margin: 0 0 32px; }
.tk-loc-block p { margin: 0 0 12px; }
.tk-loc-figure { margin: 0 0 24px; }
.tk-loc-figure img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 12px; }
.tk-loc-note { background: var(--tk-bg-soft); border-left: 4px solid var(--tk-blue); padding: 12px 16px; margin: 0 0 24px; }
.tk-loc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tk-loc-card { background: var(--tk-bg-soft); border-radius: 12px; padding: 16px; }
.tk-loc-card h3 { margin: 0 0 6px; font-family: 'Poppins', sans-serif; font-size: 18px; color: var(--tk-navy); }
.tk-loc-card p { margin: 0; }
.tk-loc-list, .tk-loc-steps { margin: 0; padding-left: 1.2em; }
.tk-loc-list li, .tk-loc-steps li { margin: 0 0 8px; }
.tk-loc-price { background: #fff8e8; border: 1px solid rgba(224, 154, 0, .35); border-radius: 12px; padding: 16px 18px; }
.tk-loc-faq { border-top: 1px solid var(--tk-border); padding: 10px 0; }
.tk-loc-faq summary { cursor: pointer; font-weight: 700; color: var(--tk-navy); }
.tk-loc-faq p { margin: 8px 0 0; }
.tk-loc-aside { display: flex; flex-direction: column; gap: 18px; }
.tk-loc-aside section { border: 1px solid var(--tk-border); border-radius: 12px; padding: 16px; background: #fff; }
.tk-loc-aside h2 { font-size: 18px; }
.tk-loc-nap { background: var(--tk-navy); color: #fff; border: 0; }
.tk-loc-nap h2, .tk-loc-nap a { color: #fff; }
.tk-loc-links, .tk-loc-areas { list-style: none; margin: 0; padding: 0; }
.tk-loc-links li + li, .tk-loc-areas li + li { margin-top: 6px; }
.tk-loc-areas { columns: 2; }
@media (max-width: 800px) {
  .tk-loc-wrap { grid-template-columns: 1fr; padding-top: 28px; }
}
