@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --brand-green:    #2f855a;
  --brand-green-lt: #48bb78;
  --brand-dark:     #1a202c;
  --brand-light:    #f0fff4;
  --accent:         #f6e05e;
  --text-body:      #4a5568;
  --text-muted:     #718096;
  --white:          #ffffff;
  --border:         #e2e8f0;
  --radius:         12px;
  --shadow:         0 4px 24px rgba(0,0,0,0.08);
  --font:           'Inter', sans-serif;
  --green:          var(--brand-green);
  --green-light:    var(--brand-green-lt);
  --dark:           var(--brand-dark);
  --muted:          var(--text-body);
  --subtle:         var(--text-muted);
  --line:           var(--border);
  --soft:           var(--brand-light);
  --yellow:         var(--accent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--brand-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1100px, calc(100% - 48px)); margin: 0 auto; }

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 20px; font-weight: 900;
  color: var(--brand-dark);
  display: flex; align-items: center; gap: 12px;
}
.nav-logo .logo-accent { color: var(--brand-green); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-body);
  transition: color 0.15s;
}
.nav-links a[aria-current="page"] { color: var(--brand-green); }
.nav-links a:hover { color: var(--brand-green); }
.nav-cta { margin-left: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brand-dark); border-radius: 2px; transition: all 0.2s; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  border: 2px solid transparent; transition: all 0.18s;
}
.btn-primary {
  background: var(--brand-green); color: var(--white);
  border-color: var(--brand-green);
}
.btn-primary:hover { background: var(--brand-green-lt); border-color: var(--brand-green-lt); }
.btn:hover { background: var(--brand-green-lt); border-color: var(--brand-green-lt); }
.btn.secondary,
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn.secondary:hover,
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.hero {
  min-height: 54vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--white);
  padding-top: 68px;
  background:
    linear-gradient(90deg, rgba(26, 32, 44, 0.94), rgba(26, 32, 44, 0.72), rgba(47, 133, 90, 0.46)),
    url('images/blog/hero.webp') center/cover;
}
.hero.service-area-hero {
  min-height: 62vh;
  background:
    linear-gradient(90deg, rgba(26, 32, 44, 0.82), rgba(26, 32, 44, 0.38), rgba(26, 32, 44, 0.06)),
    url('images/service-area-cover.png') center center/cover;
}
/* Town hero variants — one per county */
.hero.county-albany {
  background:
    linear-gradient(90deg, rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.50), rgba(26, 32, 44, 0.18)),
    url('County%20Backround/Albany.png') center center/cover;
}
.hero.county-rensselaer {
  background:
    linear-gradient(90deg, rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.50), rgba(26, 32, 44, 0.18)),
    url('County%20Backround/Rennssalaer.png') center center/cover;
}
.hero.county-schenectady {
  background:
    linear-gradient(90deg, rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.50), rgba(26, 32, 44, 0.18)),
    url('County%20Backround/Schenectady.png') center center/cover;
}
.hero.county-saratoga {
  background:
    linear-gradient(90deg, rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.50), rgba(26, 32, 44, 0.18)),
    url('County%20Backround/Saratoga.png') center center/cover;
}
/* Recurring plan / service-detail page hero */
.hero.plans-hero {
  background:
    linear-gradient(90deg, rgba(26, 32, 44, 0.85), rgba(26, 32, 44, 0.50), rgba(26, 32, 44, 0.18)),
    url('BackroundPlans.png') center 75%/cover;
}
.hero-body { padding: 72px 0; max-width: 720px; }
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
  color: var(--white);
}
.hero p { max-width: 620px; font-size: 18px; color: rgba(255,255,255,0.82); margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.proof { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; font-size: 14px; color: rgba(255,255,255,0.82); }
.proof span::before { content: "✓ "; color: #68d391; font-weight: 900; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Typography aligned with homepage tokens — same sizes, weights,
   colors, padding so both surfaces feel like one product. */
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--dark); color: var(--white); }
.grid { display: grid; gap: 28px; }
.grid.two { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.five  { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.label,
.section-label {
  color: var(--green); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 12px;
}
h2 {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  line-height: 1.15; margin: 0 0 16px; letter-spacing: 0;
  color: var(--dark);
}
h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--dark); }
.card h3 { font-size: 17px; font-weight: 800; }
h4 { margin: 0 0 6px; font-size: 17px; font-weight: 700; color: var(--dark); }
.section-title {
  font-size: clamp(28px, 4vw, 42px); font-weight: 800;
  line-height: 1.15; margin: 0 0 16px; letter-spacing: 0;
  color: var(--dark);
}
.section-sub {
  font-size: 17px; color: var(--text-body);
  max-width: 560px; line-height: 1.7;
}
p { color: var(--text-body); margin: 0 0 16px; line-height: 1.7; }
.dark p { color: rgba(255,255,255,0.72); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
a.card { transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease; }
a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 133, 90, 0.36);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1);
}
.card.price { display: flex; flex-direction: column; }
.price strong { font-size: 34px; line-height: 1; }
.price small { color: var(--muted); font-weight: 600; }
.text-link {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
}
.list { list-style: none; padding: 0; margin: 18px 0 0; }
.list li { padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); }
.list li::before { content: "✓"; color: var(--green); font-weight: 900; margin-right: 8px; }
.towns,
.area-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.towns a, .towns span,
.area-tag {
  border: 1px solid rgba(47, 133, 90, 0.25);
  color: var(--green);
  background: #f7fff9;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
}
.area-tag { display: inline-flex; align-items: center; gap: 6px; }
.area-tag::before { content: "📍"; font-size: 12px; }
.area-tag:hover,
.towns a:hover { border-color: var(--green); background: var(--soft); transform: translateY(-1px); }
.area-section { background: var(--dark); color: var(--white); }
.area-section .section-title,
.area-section h2 { color: var(--white); }
.area-section .section-sub,
.area-section p { color: rgba(255,255,255,0.72); }
.area-section .section-label,
.area-section .label { color: var(--yellow); }
.area-section .area-tag {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.88);
}
.area-section .area-tag:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.34);
}
.route-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.route-note {
  background: var(--dark);
  color: var(--white);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.route-note p { color: rgba(255,255,255,0.74); }
.route-note .list li { color: rgba(255,255,255,0.78); border-color: rgba(255,255,255,0.14); }
.service-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.plan-option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.service-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.step-number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--green);
  font-weight: 900;
  margin-bottom: 14px;
}
.quote-band {
  border-radius: 14px;
  padding: 34px;
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.quote-band p { color: rgba(255,255,255,0.82); margin: 0; }
.quote-band .btn { background: var(--white); border-color: var(--white); color: var(--green); }

.faq-list {
  max-width: 760px;
  margin: 30px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.faq-item:last-child { border-bottom: none; }
.faq-item.open { background: #f8fafc; }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  cursor: pointer;
  font-weight: 800;
  color: var(--dark);
}
.faq-q:hover { color: var(--green); }
.faq-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
  color: var(--green);
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { height: 0; overflow: hidden; transition: height 0.22s ease; }
.faq-a-inner {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin: 12px 0 0; }

.footer { background: #111827; color: rgba(255,255,255,0.64); padding: 34px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer a { color: rgba(255,255,255,0.82); font-weight: 700; }

@media (max-width: 820px) {
  nav { padding: 0 20px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    padding: 10px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; }
  .nav-links a { display: block; padding: 13px 4px; }
  .nav-cta { margin-left: 0; padding-top: 12px; }
  .nav-cta a { justify-content: center; }
  .nav-cta .btn { width: 100%; }
  .hero { min-height: auto; }
  .hero.service-area-hero {
    min-height: auto;
    background-position: center center;
  }
  .hero-body { padding: 72px 0; }
  .grid.two, .grid.three, .route-grid, .service-steps, .plan-option-grid { grid-template-columns: 1fr; }
  .quote-band { padding: 26px; }
}

/* ============================================================
   GLOBAL FOOTER — rich 4-column layout, dark background.
   Mirrors index.html's footer so customers see the same footer
   on every page (towns / plans / service-area / blog). All paths
   inside the markup use ../ since these pages are 1-level deep.
============================================================ */
.site-footer {
  background: var(--brand-dark, #1a202c); color: rgba(255,255,255,0.7);
  padding: 72px 24px 0; font-size: 15px;
}
.site-footer .footer-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 0.9fr 1.1fr 1.2fr; gap: 48px;
  padding-bottom: 48px;
}
.site-footer .footer-brand .logo {
  display: flex; align-items: center; gap: 12px;
  font-size: 20px; font-weight: 900; color: #ffffff;
  margin-bottom: 20px;
}
.site-footer .footer-brand p {
  font-size: 14.5px; line-height: 1.75;
  color: rgba(255,255,255,0.7); max-width: 320px; margin: 0;
}
.site-footer .footer-meta {
  margin-top: 22px; display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: rgba(255,255,255,0.85); font-weight: 700;
}
.site-footer .footer-meta .meta-icon {
  width: 30px; height: 30px; border-radius: 999px;
  background: rgba(72,187,120,0.15);
  border: 1px solid rgba(72,187,120,0.35);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  color: var(--brand-green-lt, #48bb78);
}
.site-footer .footer-meta .meta-icon svg { width: 14px; height: 14px; }
.site-footer .footer-ctas {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px;
}
.site-footer .footer-ctas .btn {
  padding: 11px 20px; font-size: 13.5px;
  border-radius: 8px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s;
  border: 1.5px solid transparent;
}
.site-footer .footer-ctas .btn.cta-primary {
  background: var(--brand-green, #2f855a); border-color: var(--brand-green, #2f855a); color: #ffffff;
}
.site-footer .footer-ctas .btn.cta-primary:hover {
  background: var(--brand-green-lt, #48bb78); border-color: var(--brand-green-lt, #48bb78);
}
.site-footer .footer-ctas .btn.cta-secondary {
  background: transparent; border-color: rgba(255,255,255,0.25); color: #ffffff;
}
.site-footer .footer-ctas .btn.cta-secondary:hover {
  background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.4);
}
.site-footer .footer-col h4 {
  font-size: 16px; font-weight: 800; color: #ffffff;
  margin: 0 0 18px; letter-spacing: 0; text-transform: none;
}
.site-footer .footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 11px;
}
.site-footer .footer-col li { margin: 0; }
.site-footer .footer-col a {
  font-size: 14px; color: rgba(255,255,255,0.65); font-weight: 500;
  text-decoration: none; transition: color 0.15s;
}
.site-footer .footer-col a:hover { color: var(--brand-green-lt, #48bb78); }
.site-footer .footer-contact {
  display: flex; flex-direction: column; gap: 14px;
}
.site-footer .footer-contact .contact-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.85);
  font-weight: 500; line-height: 1.5;
}
.site-footer .footer-contact .contact-row a {
  color: rgba(255,255,255,0.85); font-weight: 500; text-decoration: none;
}
.site-footer .footer-contact .contact-row a:hover { color: var(--brand-green-lt, #48bb78); }
.site-footer .footer-contact .contact-row .icon {
  width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
}
.site-footer .footer-contact .contact-row .icon svg { width: 16px; height: 16px; fill: currentColor; }
.site-footer .follow-block { margin-top: 22px; }
.site-footer .follow-block h4 { margin-bottom: 12px; }
.site-footer .footer-bottom {
  background: rgba(0,0,0,0.35);
  margin: 0 -24px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.site-footer .footer-bottom .bottom-inner {
  max-width: 1180px; margin: 0 auto; width: 100%;
  display: flex; justify-content: flex-start; align-items: center;
  font-size: 13px; flex-wrap: wrap; gap: 12px;
  color: rgba(255,255,255,0.55);
}
.site-footer .social-links { display: flex; gap: 12px; }
.site-footer .social-links a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
  color: rgba(255,255,255,0.85);
}
.site-footer .social-links a:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}
.site-footer .social-links svg { width: 18px; height: 18px; fill: currentColor; }

@media (max-width: 900px) {
  .site-footer { padding: 56px 20px 0; }
  .site-footer .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 32px; padding-bottom: 36px; }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .site-footer .footer-bottom { margin: 0 -20px; padding: 18px 20px; }
}
@media (max-width: 540px) {
  .site-footer { padding: 40px 16px 0; }
  .site-footer .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .site-footer .footer-brand .logo { font-size: 16px; margin-bottom: 4px; }
  .site-footer .footer-brand p { font-size: 13px; line-height: 1.6; max-width: 100%; }
  .site-footer .footer-meta { font-size: 12.5px; margin-top: 14px; }
  .site-footer .footer-ctas { margin-top: 16px; gap: 8px; }
  .site-footer .footer-ctas .btn { padding: 9px 16px; font-size: 12.5px; }
  .site-footer .footer-col h4 { font-size: 14px; margin-bottom: 12px; }
  .site-footer .footer-col a { font-size: 13px; }
  .site-footer .footer-contact .contact-row { font-size: 13px; gap: 10px; }
  .site-footer .footer-bottom { margin: 0 -16px; padding: 16px 16px; }
  .site-footer .footer-bottom .bottom-inner { font-size: 11.5px; }
  .site-footer .social-links a { width: 32px; height: 32px; }
  .site-footer .social-links svg { width: 15px; height: 15px; }
}

/* ============================================================
   GLOBAL FAQ — mirrors homepage's clean accordion design.
   .faq-list wraps .faq-item rows. Click .faq-q to expand .faq-a
   via toggleFaq() (defined in each page's <script> block).
============================================================ */
@keyframes accordion-down {
  from { height: 0; opacity: 0; }
  to   { height: var(--faq-height); opacity: 1; }
}
@keyframes accordion-up {
  from { height: var(--faq-height); opacity: 1; }
  to   { height: 0; opacity: 0; }
}
.faq-list {
  max-width: 680px; margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 4px 32px rgba(0,0,0,0.07);
  padding: 4px 28px;
}
.faq-item {
  border-bottom: 1.5px dotted var(--line, #e2e8f0);
  border-radius: 12px;
  padding: 0 10px;
  margin: 0 -10px;
  transition: background 0.18s ease;
}
.faq-item:last-child { border-bottom: none; }
.faq-item.open { background: #f8fafc; }
.faq-q {
  font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; color: var(--brand-dark, #1a202c); user-select: none;
  padding: 20px 0;
}
.faq-q:hover { color: var(--brand-green, #2f855a); }
.faq-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--brand-green, #2f855a);
  transition: transform 0.22s ease;
}
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { height: 0; overflow: hidden; }
.faq-a-inner {
  font-size: 15px; color: var(--text-body, #4a5568);
  line-height: 1.75; padding-bottom: 18px;
}
@media (max-width: 640px) {
  .faq-list { padding: 4px 18px; }
  .faq-q { font-size: 14.5px; padding: 16px 0; gap: 12px; }
  .faq-icon { width: 18px; height: 18px; }
  .faq-a-inner { font-size: 13.5px; padding-bottom: 14px; }
}

/* ============================================================
   PAW PATTERN — randomized scatter across white sections.
   Mirrors homepage's .paw-bg styling. The actual scatter logic
   runs in inline JS per page (see scatterPaws IIFE).
============================================================ */
.paw-bg {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  opacity: 0.06;
  filter: brightness(0) saturate(100%) invert(45%) sepia(58%) saturate(478%) hue-rotate(95deg) brightness(94%) contrast(89%);
}
/* Sections need relative positioning so absolute paws place inside */
.section { position: relative; overflow: hidden; }
.section > .wrap, .section > .container { position: relative; z-index: 1; }
