/* Moncton Septic Services — monctonseptic.com
   Single stylesheet. Mobile-first. No frameworks, no external requests. */

:root {
  --ink:        #000000;   /* flat black body text */
  --ink-soft:   #000000;   /* flat black body text */
  --green:      #1f5136;
  --green-dk:   #14361f;
  --green-lt:   #eaf1ec;
  --tint:       #b2b6ba;   /* neutral band tint on the grey canvas */
  --clay:       #b4552b;
  --clay-dk:    #8f3f1d;
  --line:       #7f858a;   /* borders that read against the grey canvas */
  --line-lt:    #d8e0da;   /* hairlines inside white surfaces */
  --bg:         #979ba0;   /* Ceramic Grey — page canvas, matched to the truck */
  --bg-alt:     #a6aaae;   /* lighter grey for alternating sections */
  --surface:    #ffffff;   /* cards, forms, header */
  --shadow:     0 1px 3px rgba(10,16,13,.16), 0 10px 28px rgba(10,16,13,.14);
  --radius:     10px;
  --wrap:       1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: #000; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #000; text-decoration-thickness: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Skip link (accessibility) ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--green); color: #fff; padding: 12px 18px; z-index: 999;
}
.skip:focus { left: 0; }

/* ---------- Top call bar ---------- */
.callbar {
  background: var(--green-dk);
  color: #fff;
  font-size: 15px;
}
.callbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  align-items: center; justify-content: center;
  padding-top: 9px; padding-bottom: 9px;
  text-align: center;
}
.callbar a { color: #fff; font-weight: 700; text-decoration: none; }
.callbar a:hover { color: #ffd9c6; text-decoration: underline; }
.callbar .hours { color: #c3d6c9; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.brand img { height: 52px; width: auto; display: block; }
.brand span { font-size: 12px; color: var(--ink-soft); letter-spacing: .05em; text-transform: uppercase;
              border-left: 1px solid var(--line); padding-left: 13px; line-height: 1.35; white-space: nowrap; }
@media (max-width: 899px) { .brand span { display: none; } .brand img { height: 40px; } }

.nav-toggle {
  display: block; background: none; border: 1px solid var(--line);
  border-radius: 6px; padding: 9px 12px; font-size: 15px; cursor: pointer;
  color: var(--ink); font-family: inherit;
}
.nav { display: none; width: 100%; }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0 0 8px; padding: 10px 0 0; border-top: 1px solid var(--line-lt); }
.nav li + li { border-top: 1px solid var(--line-lt); }
.nav a {
  display: block; padding: 12px 2px; text-decoration: none;
  color: var(--ink); font-weight: 600; font-size: 16px;
}
.nav a:hover, .nav a[aria-current="page"] { color: #000; text-decoration: underline;
                                             text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 26px; border-radius: 8px;
  font-weight: 700; font-size: 16.5px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 2px 8px rgba(10,16,13,.28); }
.btn-primary:hover { background: var(--clay-dk); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--green-dk); border-color: var(--green-dk); box-shadow: 0 2px 8px rgba(10,16,13,.18); }
.btn-ghost:hover { background: var(--green-lt); color: var(--green-dk); }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 44px; }
.hero-grid { display: grid; gap: 26px; }
.hero h1 {
  font-size: clamp(30px, 7vw, 44px);
  line-height: 1.12; margin: 0 0 8px;
  color: #000; letter-spacing: -.6px;
}
.hero h2 {
  font-size: clamp(19px, 4.4vw, 25px);
  line-height: 1.3; margin: 0 0 16px;
  color: #000; font-weight: 700; letter-spacing: -.2px;
}
.hero h3 {
  font-size: 17px; font-weight: 400; line-height: 1.62;
  margin: 0 0 24px; color: var(--ink-soft);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-img img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; object-fit: cover; background: var(--green-lt);
}
.hero-img figcaption {
  margin-top: 9px; font-size: 13.5px; color: var(--ink-soft); text-align: center; font-weight: 600;
}

/* ---------- Trust strip ---------- */
.trust { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust ul {
  list-style: none; margin: 0; padding: 18px 0;
  display: grid; gap: 10px 30px; font-size: 15.5px; font-weight: 600; color: #000;
}
.trust li { padding-left: 26px; position: relative; }
.trust li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--clay);
}

/* ---------- Generic sections ---------- */
section { padding: 48px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 700px; margin-bottom: 30px; }
.section-head h2 {
  font-size: clamp(24px, 5.2vw, 32px); line-height: 1.2;
  margin: 0 0 10px; color: #000; letter-spacing: -.4px;
}
.section-head p { margin: 0; color: var(--ink-soft); font-size: 17px; }

.eyebrow {
  display: block; font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #000; margin-bottom: 9px;
}

/* ---------- Expectations (numbered) ---------- */
.expect { list-style: none; counter-reset: e; margin: 0; padding: 0; display: grid; gap: 20px; }
.expect li {
  counter-increment: e; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 24px 24px 68px; position: relative;
  box-shadow: var(--shadow);
}
.expect li::before {
  content: counter(e); position: absolute; left: 22px; top: 23px;
  width: 32px; height: 32px; border-radius: 50%;
  background: #000; color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
}
.expect h3 { margin: 0 0 7px; font-size: 19px; color: #000; line-height: 1.3; }
.expect p { margin: 0; color: var(--ink-soft); font-size: 16.5px; }

/* ---------- Service cards ---------- */
.cards { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin: 0 0 10px; font-size: 20px; color: #000; line-height: 1.25; }
.card h3 a { text-decoration: none; color: inherit; }
.card h3 a:hover { color: var(--clay); }
.card p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16.5px; flex: 1; }
.card .more { font-weight: 700; text-decoration: none; font-size: 16px; }
.card .more::after { content: " \2192"; }

/* ---------- Prose (service + FAQ pages) ---------- */
.prose { max-width: 820px; background: var(--surface); border: 1px solid var(--line);
         border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 30px; }
@media (max-width: 639px) { .prose { padding: 24px 20px; } }
.prose h2 { font-size: clamp(22px, 4.6vw, 28px); color: #000; margin: 38px 0 12px; line-height: 1.25; letter-spacing: -.3px; }
.prose h3 { font-size: 20px; color: #000; margin: 28px 0 8px; line-height: 1.3; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose > :first-child { margin-top: 0; }

.pagehead { background: var(--tint); border-bottom: 1px solid var(--line); padding: 34px 0; }
.pagehead h1 { font-size: clamp(27px, 6vw, 38px); margin: 0 0 10px; color: #000; line-height: 1.15; letter-spacing: -.5px; }
.pagehead p { margin: 0; max-width: 720px; color: var(--ink-soft); font-size: 17.5px; }

.crumbs { font-size: 14px; color: var(--ink-soft); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs li:last-child::after { content: ""; }

/* ---------- Callout ---------- */
.callout {
  background: var(--tint); border-left: 4px solid #000;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px; margin: 26px 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: #000; }

/* ---------- Form ---------- */
.form-wrap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.field { margin-bottom: 17px; }
.field label { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--clay); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 13px; font-size: 16.5px; font-family: inherit;
  border: 1px solid #b9c5bd; border-radius: 7px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid rgba(31,81,54,.22); outline-offset: 0; border-color: var(--green);
}
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 13.5px; color: var(--ink-soft); margin-top: 5px; }
.form-row { display: grid; gap: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: 14px; color: var(--ink-soft); margin: 14px 0 0; }

/* ---------- Areas served ---------- */
.areas { columns: 2; column-gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 16px; }
.areas li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--line-lt); }
.areas a { text-decoration: none; }
.areas a:hover { text-decoration: underline; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-dk); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(23px, 5vw, 31px); margin: 0 0 12px; color: #fff; line-height: 1.2; }
.cta-band p { margin: 0 auto 24px; max-width: 620px; color: #c9dbd0; font-size: 17px; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #9dc3ac; box-shadow: none; }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); color: #000; font-size: 15.5px; padding: 42px 0 26px;
               border-top: 1px solid var(--line); }
.site-footer h2, .site-footer h3 { color: #000; font-size: 16px; margin: 0 0 12px; letter-spacing: .02em; }
.site-footer a { color: #000; text-decoration: none; }
.site-footer a:hover { color: #000; text-decoration: underline; text-decoration-thickness: 2px; }
.foot-grid { display: grid; gap: 30px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-bottom {
  border-top: 1px solid var(--line); margin-top: 32px; padding-top: 18px;
  font-size: 14px; color: #000;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}
address { font-style: normal; }

/* ---------- Sticky mobile call button ---------- */
.callfab {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  background: var(--clay); color: #fff; text-align: center;
  padding: 15px; border-radius: 9px; font-weight: 700; font-size: 17px;
  text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.28);
}
.callfab:hover { background: var(--clay-dk); color: #fff; }
body { padding-bottom: 74px; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .trust ul { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .areas { columns: 3; }
}

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .callfab { display: none; }
  .nav-toggle { display: none; }
  .nav { display: block; width: auto; }
  .nav ul { display: flex; gap: 26px; border-top: none; padding: 0; margin: 0; }
  .nav li + li { border-top: none; }
  .nav a { padding: 6px 0; font-size: 15.5px; }
  .site-header .wrap { flex-wrap: nowrap; }

  .hero { padding: 56px 0 60px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 46px; }
  .trust ul { grid-template-columns: repeat(4, 1fr); }
  .expect { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .areas { columns: 4; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
  section { padding: 62px 0; }
  .contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 44px; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Logo in footer ---------- */
.foot-logo { height: 52px; width: auto; margin-bottom: 14px; }

/* ---------- Footer legal links ---------- */
.foot-legal { list-style: none; margin: 0; padding: 0; }
.foot-legal li { margin-bottom: 8px; }
.foot-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal pages ---------- */
.legal-eff { color: #000; font-size: 15.5px; margin-bottom: 26px;
             padding-bottom: 16px; border-bottom: 1px solid var(--line-lt); }
.prose h2 + h3 { margin-top: 18px; }

/* ---------- Thank-you page action ---------- */
.thanks-action { padding: 46px 0 60px; text-align: center; }
.btn-lg { padding: 17px 40px; font-size: 18px; border-radius: 9px; }

/* ---------- FAQ ---------- */
.faq-toc {
  background: var(--tint); border-radius: var(--radius);
  padding: 22px 26px 20px; margin: 0 0 34px;
}
.faq-toc h2 { margin: 0 0 12px; font-size: 18px; letter-spacing: 0; }
.faq-toc ol { margin: 0; padding-left: 20px; font-size: 16px; }
.faq-toc li { margin-bottom: 7px; }
.faq-toc a { text-decoration: none; }
.faq-toc a:hover { text-decoration: underline; }

.qa { margin: 0 0 30px; padding-top: 4px; scroll-margin-top: 92px; }
.qa h2 { font-size: 20.5px; margin: 0 0 9px; line-height: 1.3; letter-spacing: -.2px; }
.qa p { margin: 0 0 12px; }

.faq-pager {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  border-top: 1px solid var(--line-lt); margin-top: 34px; padding-top: 20px;
  font-weight: 600; font-size: 16px;
}
.faq-pager a { text-decoration: none; }
.faq-pager a:hover { text-decoration: underline; }

.faq-cards .card p { font-size: 15.5px; }
@media (min-width: 640px) and (max-width: 899px) { .faq-cards { grid-template-columns: repeat(2,1fr); } }

/* ---------- FAQ sources ---------- */
.sources { font-size: 16px; }
.sources li { margin-bottom: 9px; }
.sources cite { font-style: italic; }
.disclaimer { font-size: 15.5px; border-left: 3px solid var(--line); padding-left: 16px; }

/* ---------- Language switcher ---------- */
.lang-switch {
  border: 1px solid #6f9c81; border-radius: 4px;
  padding: 2px 10px; font-weight: 700; font-size: 14px;
  text-decoration: none;
}
.lang-switch:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Sister companies block in the footer ---------- */
/* needs .site-footer in front: the existing `.site-footer h3` rule sets a
   margin shorthand and would otherwise win on specificity. */
.site-footer h3.foot-sisters { margin-top: 26px; }
