/* Contractors2Hire blog. Visual style modelled on the "Green Patch" blog template:
   DM Sans headings, Montserrat text, deep green ink, pill buttons, sage section bands,
   dark green footer. Served hashed from /assets/. */
:root {
  --green: #13883e;          /* buttons, links, accents */
  --green-hover: #0f6f32;
  --ink: #012f1f;            /* headings, body text, footer background */
  --ink-2: #2f4a3f;
  --muted: #5d6f66;
  --bg: #fcfcfc;
  --sage: #f4f7f4;           /* alternate section band */
  --mint: #d9f5e1;           /* icon circles */
  --line: #e2e8e3;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1320px;
  --head: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.6; }
img, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-hover); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 48px; }
.container.narrow { max-width: 920px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--text); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.btn-lg { height: 54px; padding: 0 34px; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-hover); color: var(--white); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-white:hover { background: var(--sage); color: var(--ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; height: 44px; padding: 0 22px; }
.btn-outline:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.header-inner { height: 84px; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; margin-right: auto; }
.logo:hover { color: var(--ink); }
/* Brand logo, identical to the main site: green tile + wrench, "contractors2hire" wordmark. */
.logo-mark { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; background: #15803d; color: #ffffff;
  display: grid; place-items: center; }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text { font-family: 'Plus Jakarta Sans', var(--text); font-size: 19px; font-weight: 700; color: #0f172a;
  letter-spacing: -0.02em; display: inline-flex; align-items: center; }
.logo-text > span:first-child { color: #15803d; }
.logo-badge { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--mint); color: var(--ink);
  font-family: var(--text); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.logo-tag { margin-top: 2px; font-family: 'Plus Jakarta Sans', var(--text); font-size: 11px; font-weight: 500; color: #475569; }
.header-nav { display: flex; align-items: center; gap: 40px; }
.header-nav a { color: var(--ink); text-decoration: none; font-size: 16px; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.header-nav a:hover, .header-nav a.active { color: var(--green); border-bottom-color: var(--green); }
.header-cta { height: 52px; padding: 0 40px; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 999px; background: var(--sage);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu summary span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, 86vw); background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(1, 47, 31, .12);
  padding: 12px; display: flex; flex-direction: column; }
.mobile-menu nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: var(--radius); }
.mobile-menu nav a.sub { padding-left: 24px; font-size: 14px; color: var(--ink-2); }
.mobile-menu nav a:not(.btn):hover { background: var(--sage); }
.mobile-menu nav .btn { margin-top: 8px; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--sage); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow { margin: 0 0 10px; font-size: 16px; color: var(--green); }
.eyebrow::before { content: "•"; margin-right: 6px; }
.eyebrow-light { color: var(--white); }
.section-title { margin: 0; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15; }
.section-text { margin: 18px auto 0; font-size: 17px; color: var(--ink-2); max-width: 620px; }
.empty { text-align: center; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 692px; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(120deg, #012f1f 0%, #0d5a33 55%, #13883e 100%); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1, 26, 17, .72) 0%, rgba(1, 26, 17, .45) 55%, rgba(1, 26, 17, .2) 100%); }
.hero-inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; }
.hero-title { margin: 0; max-width: 680px; color: var(--white); font-size: clamp(40px, 5.6vw, 64px); line-height: 1.16; }
.hero-text { margin: 24px 0 0; max-width: 560px; color: rgba(255, 255, 255, .92); font-size: 18px; }
.hero-actions { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Stats strip ---------- */
.stats { padding: 40px 0; background: var(--bg); }
.stats-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stat { display: flex; align-items: center; gap: 14px; }
.stat-value { margin: 0; font-family: var(--head); font-size: 30px; line-height: 1.1; color: var(--ink); }
.stat-label { margin: 4px 0 0; font-size: 16px; color: var(--ink); }
.icon-circle { width: 48px; height: 48px; border-radius: 999px; background: var(--mint); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.icon-circle-lg { width: 60px; height: 60px; }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; }
.card { display: flex; flex-direction: column; }
.card-media { display: block; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.card-media img { width: 100%; aspect-ratio: 390 / 256; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .card-media img { transition: none; } .card:hover .card-media img { transform: none; } }
.card-body { padding-top: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; }
.card-cat { margin: 0; font-size: 15px; text-transform: uppercase; color: var(--green); letter-spacing: .01em; }
.card-title { margin: 0; font-size: 24px; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--green); }
.card-excerpt { margin: 0; font-size: 16px; color: var(--ink-2); }
.card-meta { margin: 0; font-size: 14px; color: var(--muted); }
.read-more { margin-top: auto; padding-top: 6px; font-size: 18px; text-decoration: none; color: var(--green); }
.read-more:hover { text-decoration: underline; }

/* ---------- Topics ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.topic { display: flex; flex-direction: column; gap: 12px; min-height: 280px; padding: 32px 22px 28px; border-radius: var(--radius);
  background: var(--sage); color: var(--ink); text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.topic:hover { background: var(--mint); color: var(--ink); transform: translateY(-2px); }
.topic .icon-circle { margin-bottom: auto; background: var(--mint); }
.topic:hover .icon-circle { background: var(--white); }
.topic-title { margin: 32px 0 0; font-size: 24px; line-height: 1.2; }
.topic-text { margin: 0; font-size: 16px; color: var(--ink-2); }
.topic-count { font-size: 14px; color: var(--green); }

/* ---------- Listing pages ---------- */
.listing-head { padding-top: 72px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: -12px 0 48px; }
.pills a { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 22px; border-radius: 999px;
  background: #e8efe9; color: var(--ink); font-size: 15px; text-decoration: none; }
.pills a:hover { background: var(--mint); color: var(--ink); }
.pills a.active { background: var(--green); color: var(--white); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 24px; padding-top: 8px; padding-bottom: 72px; color: var(--muted); }
.section-alt + .pagination { padding-top: 40px; }

/* ---------- Banner (CTA) ---------- */
.banner { background: var(--green); color: var(--white); border-radius: var(--radius-lg); padding: 72px 32px; text-align: center; }
.banner-title { margin: 0; color: var(--white); font-size: clamp(32px, 4.2vw, 48px); line-height: 1.15; }
.banner-text { margin: 20px auto 40px; max-width: 520px; font-size: 18px; color: rgba(255, 255, 255, .92); }

/* ---------- Post ---------- */
.post-hero { background: var(--sage); padding: 56px 0 64px; text-align: center; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 20px; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs-center { margin-bottom: 8px; }
.post-title { margin: 0 auto; max-width: 820px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.15; }
.post-excerpt { margin: 18px auto 0; max-width: 680px; font-size: 18px; color: var(--ink-2); }
.post-cats { margin: 20px 0 0; font-size: 15px; text-transform: uppercase; color: var(--green); }
.post-cats a { text-decoration: none; }
.post-meta { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.post-body { padding-top: 48px; padding-bottom: 96px; }
.post-cover { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius-lg); background: var(--line); }

.prose { margin: 48px auto 0; max-width: 760px; font-size: 18px; line-height: 1.8; color: var(--ink); }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose ul, .prose ol, .prose figure, .prose blockquote, .prose table, .prose pre { margin-bottom: 0; }
.prose h2 { margin: 1.9em 0 0; font-size: 30px; line-height: 1.25; }
.prose h3 { margin: 1.6em 0 0; font-size: 24px; line-height: 1.3; }
.prose h4, .prose h5, .prose h6 { margin: 1.4em 0 0; font-size: 19px; font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--green); }
.prose img { border-radius: var(--radius-lg); margin: 0 auto; }
.prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
.prose blockquote { margin-left: 0; padding: 16px 24px; border-left: 4px solid var(--green); background: var(--sage); border-radius: 0 var(--radius) var(--radius) 0; color: var(--ink-2); }
.prose code { font-size: .88em; background: var(--sage); padding: 2px 6px; border-radius: 4px; }
.prose pre { overflow-x: auto; background: var(--ink); color: #eaf5ee; padding: 18px; border-radius: var(--radius); font-size: 15px; }
.prose pre code { background: none; padding: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.prose th { background: var(--sage); font-family: var(--head); font-weight: 600; }
.prose iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius-lg); }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.cta { margin: 64px auto 0; max-width: 760px; padding: 28px; border-radius: var(--radius-lg); background: var(--sage);
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-body { flex: 1 1 260px; }
.cta-title { margin: 0 0 4px; font-size: 24px; }
.cta p { margin: 0; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 72px 0 32px; }
.site-footer a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .logo-text { color: var(--white); }
.site-footer .logo-text > span:first-child { color: #4ade80; }
.site-footer .logo-tag { color: rgba(255, 255, 255, .7); }
.site-footer .logo-badge { background: rgba(255, 255, 255, .12); color: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-tagline { margin: 0; max-width: 420px; color: rgba(255, 255, 255, .78); }
.footer-cols { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr 1fr 1.6fr; gap: 40px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 12px; }
.footer-title { margin: 0 0 10px; font-size: 18px; color: var(--white); font-weight: 500; }
.footer-title-lg { font-size: 20px; }
.footer-cta p { margin: 0 0 24px; color: rgba(255, 255, 255, .78); }
.footer-cta .btn { color: var(--white); }
.footer-cta .btn:hover { text-decoration: none; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ---------- Missed-call calculator (widgets.js) ---------- */
.prose .calc { padding: 28px; border-radius: var(--radius-lg); background: var(--sage); border: 1px solid var(--line); }
.calc-title { margin: 0 0 4px; font-family: var(--head); font-size: 24px; font-weight: 600; line-height: 1.3; }
.calc-intro { margin: 0 0 20px; font-size: 16px; color: var(--muted); }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.calc-presets legend { width: 100%; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.calc-presets button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--ink); font: 500 14px var(--text); cursor: pointer; }
.calc-presets button:hover, .calc-presets button[aria-pressed="true"] { border-color: var(--green); color: var(--green); }
.calc-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.calc-field label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.calc-field input { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: 500 17px var(--text); }
.calc-field input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.calc-hint { display: block; margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.calc-out { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-stat { padding: 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.calc-stat-label { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.calc-stat-value { display: block; margin-top: 4px; font-family: var(--head); font-size: 26px; font-weight: 700; line-height: 1.2; }
.calc-stat-year .calc-stat-value { color: var(--green); }
.calc-note { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.calc-cta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.calc-cta p { margin: 0; flex: 1 1 260px; font-size: 16px; line-height: 1.6; }
.prose .calc-cta .btn { color: var(--white); text-decoration: none; }

/* ---------- Responsive ---------- */
/* ---------- Cookie consent ---------- */
.consent { position: fixed; z-index: 50; left: 24px; right: 24px; bottom: 24px; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px; padding: 18px 22px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgba(1, 47, 31, .16); }
.consent[hidden] { display: none; }
.consent-text { margin: 0; font-size: 14px; color: var(--muted); }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-actions .btn { height: 44px; padding: 0 22px; }

@media (max-width: 1100px) {
  .header-nav { gap: 24px; }
  .header-cta { padding: 0 24px; }
  .stats-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .header-nav, .header-cta { display: none; }
  .mobile-menu { display: block; }
  .header-inner { height: 72px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 72px 0; }
  .hero { min-height: 440px; }
  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .logo-text { font-size: 17px; }
  .logo-tag { display: none; }
  .grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 20px 12px; }
  .stat { gap: 10px; }
  .stat-value { font-size: 24px; }
  .stat-label { font-size: 14px; }
  .icon-circle-lg { width: 48px; height: 48px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(1, 26, 17, .55) 0%, rgba(1, 26, 17, .72) 100%); }
  .hero-inner { padding-top: 36px; padding-bottom: 36px; }
  .hero-title { font-size: 30px; line-height: 1.2; }
  .hero-text { margin-top: 12px; font-size: 15px; line-height: 1.5; }
  .hero-actions { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hero-actions .btn { width: 100%; height: 46px; padding: 0 10px; font-size: 15px; }
  .hero-actions .btn span[aria-hidden] { display: none; }
  .stats { padding: 28px 0; }
  .banner { padding: 48px 20px; }
  .prose { font-size: 17px; }
  .prose .calc { padding: 20px 16px; }
  .calc-fields, .calc-out { grid-template-columns: 1fr; }
  .calc-cta .btn { width: 100%; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .pills { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .pills a { flex: 0 0 auto; }
  .consent { left: 16px; right: 16px; bottom: 16px; flex-direction: column; align-items: stretch; gap: 14px; padding: 16px; }
  .consent-actions .btn { flex: 1; }
}
