/* =========================================================
   Septic Tank Pumping Lehigh Acres — shared styles
   Plain CSS, no build step.

   Direction: "high-vis trade". Bone-grey ground, green-black
   ink, hard rules, square corners. Caution yellow is the only
   saturated colour on the page and is reserved for actions.
   ========================================================= */

/* ---------- type ---------- */
/* One variable file covers every weight used on the site, so
   there is a single font request regardless of how many weights
   the design calls for. */
@font-face {
  font-family: 'Overpass';
  src: url('fonts/overpass-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ground + surfaces */
  --ground:   #f2f3ef;
  --surface:  #ffffff;
  --deep:     #131a17;

  /* text */
  --ink:      #131a17;
  --ink-2:    #4e5c53;
  --ink-3:    #6e7c73;
  --on-deep:  #e9ede8;

  /* rules */
  --line:     #d7dbd2;
  --line-2:   #c3c9be;
  --line-inv: #2b342e;

  /* the one saturated colour */
  --signal:   #f2c200;
  --signal-2: #dcb000;

  --max:      1180px;
  --gutter:   clamp(18px, 4vw, 32px);
  --gutter-y: clamp(52px, 7vw, 92px);

  /* type scale — fluid, no breakpoint jumps */
  --fs-display: clamp(2.5rem, 6.2vw, 4.1rem);
  --fs-h2:      clamp(1.65rem, 3.4vw, 2.4rem);
  --fs-h3:      clamp(1.12rem, 1.5vw, 1.3rem);
  --fs-lead:    clamp(1.06rem, 1.3vw, 1.22rem);
  --fs-body:    1.0625rem;
  --fs-sm:      0.9rem;
  --fs-label:   0.76rem;

  --font: 'Overpass', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.62;
  color: var(--ink-2);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- headings ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.021em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: 0.98; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; line-height: 1.2; }
h4 { font-size: var(--fs-sm); }

p { color: var(--ink-2); }
p + p { margin-top: 1em; }
p { margin-bottom: 0; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

strong, b { font-weight: 800; color: var(--ink); }

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

ul, ol { list-style: none; }

/* keyboard focus is always obvious, on every background */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}
.btn:focus-visible, .nav__call:focus-visible { outline-offset: 3px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.section { padding: var(--gutter-y) 0; }
.section--surface { background: var(--surface); }
.section--tight { padding-top: clamp(20px, 3vw, 34px); padding-bottom: clamp(20px, 3vw, 34px); }

/* the section opener: a hard rule with the heading beneath it.
   this is the page's main structural device, so it does real
   work separating content rather than decorating it. */
.section__head {
  border-top: 2px solid var(--ink);
  padding-top: clamp(16px, 2vw, 24px);
  margin-bottom: clamp(26px, 3.5vw, 40px);
  max-width: 68ch;
}
.section__head h2 { margin-bottom: 0; }
.section__head p { margin-top: 0.85em; font-size: var(--fs-lead); }

.lead { font-size: var(--fs-lead); max-width: 64ch; }
.body-copy { max-width: 68ch; }
.body-copy p + p { margin-top: 1em; }
/* a call to action that sits inside running copy — the paragraph it
   was nested in is split around it so the markup stays valid */
.inline-cta { margin-top: 1.15em; margin-bottom: 0.3em; }

.center { text-align: center; }
.center .section__head, .center .lead, .center .body-copy { margin-left: auto; margin-right: auto; }
.center .section__head { border-top: 0; padding-top: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  background: var(--signal);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.005em;
  padding: 16px 26px;
  border: 2px solid var(--signal);
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color .13s ease, border-color .13s ease, color .13s ease;
}
.btn:hover { background: var(--signal-2); border-color: var(--signal-2); text-decoration: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--ground); border-color: var(--ink); }

.btn--lg { padding: 19px 34px; font-size: var(--fs-lead); }
.btn--sm { padding: 12px 18px; font-size: var(--fs-sm); }

.muted { color: var(--ink-3); font-size: var(--fs-sm); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: 2px solid var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--gutter);
}

.brand { display: block; text-decoration: none; flex: 0 1 auto; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand__name {
  display: block;
  font-weight: 800;
  font-size: clamp(0.98rem, 1.5vw, 1.14rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--ink);
}
.brand__place {
  display: block;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links > li { position: relative; }
.nav__links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 6px 0;
}
.nav__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* the phone number is the site's primary action, so it is the
   one place the signal colour appears in the header */
.nav__call {
  background: var(--signal);
  color: var(--ink) !important;
  font-weight: 800;
  padding: 13px 20px !important;
  border: 2px solid var(--signal);
  white-space: nowrap;
  transition: background-color .13s ease, border-color .13s ease;
}
.nav__call:hover { background: var(--signal-2); border-color: var(--signal-2); text-decoration: none !important; }

/* dropdown */
.has-dropdown > a::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 7px; vertical-align: 2px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -18px;
  min-width: 264px;
  background: var(--surface);
  border: 2px solid var(--ink);
  padding: 6px 0;
  z-index: 60;
}
.has-dropdown::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 11px 18px; font-size: 0.93rem; font-weight: 600; }
.dropdown a:hover { background: var(--ground); text-decoration: none; }
.dropdown li + li { border-top: 1px solid var(--line); }

.nav__toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  padding: 12px 14px;
  cursor: pointer;
}
.nav__toggle:hover { background: var(--ink); color: var(--ground); }
.nav__actions { display: none; align-items: center; gap: 10px; }

@media (max-width: 940px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 2px solid var(--ink);
    padding: 6px var(--gutter) 14px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav__links.open { display: flex; }
  .nav__links > li { padding: 0; border-bottom: 1px solid var(--line); }
  .nav__links > li:last-child { border-bottom: 0; }
  .nav__links a { display: block; padding: 15px 0; font-size: 1.02rem; }
  .has-dropdown > a::after { float: right; margin-top: 8px; }
  .dropdown { position: static; display: block; border: 0; border-left: 2px solid var(--line); padding: 2px 0 10px 16px; min-width: 0; margin-bottom: 6px; }
  .dropdown li + li { border-top: 0; }
  .dropdown a { padding: 10px 0; font-weight: 400; color: var(--ink-2); }
  .nav__toggle { display: block; }
  .nav__actions { display: flex; }
  /* the bar already carries a call button on mobile, so the one
     inside the opened menu would only be a duplicate */
  .nav__links .nav__call { display: none; }
}

/* below this width the full number crowds the wordmark, so the
   button falls back to just "Call" — the tap target stays */
@media (max-width: 560px) {
  .nav__num { display: none; }
  .nav__actions .nav__call { padding: 13px 18px !important; }
  /* the wordmark has ~140px to live in beside the buttons; dropping the
     locality line keeps it to two lines instead of three. It is still
     carried by the h1, the footer and the Service Areas page. */
  .brand__place { display: none; }
  .brand__name { font-size: 0.95rem; }
}
@media (max-width: 380px) {
  .brand__name { font-size: 0.88rem; }
  .nav__actions .nav__call { padding: 12px 14px !important; }
}

/* ---------- hero ---------- */
.hero { background: var(--ground); border-bottom: 2px solid var(--ink); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(30px, 4.5vw, 62px);
  align-items: center;
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(34px, 5vw, 62px);
}
.hero__title { margin-bottom: 0.5em; }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__cta .btn { flex: 1 1 auto; }

.hero__media { aspect-ratio: 61 / 54; overflow: hidden; border: 2px solid var(--ink); background: var(--line); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 30px; }
  /* on phones the call button comes before the photo — the
     visitor should never have to scroll past an image to act */
  .hero__text { order: 1; }
  .hero__media { order: 2; aspect-ratio: 61 / 42; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* hard-ruled fact strip under the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  margin-top: clamp(28px, 3.5vw, 40px);
}
.facts > div { padding: 16px 18px 0 0; border-right: 1px solid var(--line-2); }
.facts > div:last-child { border-right: 0; }
.facts > div + div { padding-left: 18px; }
.facts dt {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.facts dd { font-weight: 600; color: var(--ink); font-size: 0.96rem; line-height: 1.4; }
@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; }
  .facts > div { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 13px 0; }
  .facts > div + div { padding-left: 0; }
  .facts > div:last-child { border-bottom: 0; }
}

/* ---------- ruled grid (replaces the floating-card look) ---------- */
.ruled {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-2);
  border-left: 1px solid var(--line-2);
  background: var(--surface);
}
.ruled > * {
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: clamp(22px, 2.4vw, 30px);
}
.ruled h3 { margin-bottom: 0.45em; }
.ruled p { font-size: 0.97rem; }
.ruled a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: 0.93rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
  transition: text-decoration-color .13s ease;
}
.ruled a:hover, .ruled a:focus-visible { text-decoration-color: var(--ink); text-decoration-thickness: 2px; }
.ruled--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .ruled { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .ruled, .ruled--2 { grid-template-columns: 1fr; } }

/* legacy grid/card classes — kept so the remaining pages keep
   working until the rollout reaches them; same visual language */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--ink);
  padding: clamp(20px, 2.2vw, 28px);
}
.card h3 { margin-bottom: 0.45em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- process (a genuine sequence, so it is numbered) ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  counter-reset: step;
}
.process > li {
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: clamp(20px, 2.2vw, 28px) clamp(18px, 2vw, 26px);
  background: var(--surface);
}
.process > li:last-child { border-right: 0; }
.process > li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.process h3 { font-size: 1.08rem; margin-bottom: 0.4em; }
.process p { font-size: 0.95rem; }
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); } .process > li:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } .process > li { border-right: 0; } }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* content images: fixed ratio reserves the space, so nothing shifts */
.media { border: 2px solid var(--ink); background: var(--line); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 4 / 3; }

/* ---------- link list (service areas etc.) ---------- */
.linklist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.linklist a {
  display: block;
  padding: 15px 18px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-left-color .13s ease, background-color .13s ease;
}
.linklist a:hover { border-left-color: var(--signal); background: var(--ground); text-decoration: none; }
@media (max-width: 800px) { .linklist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .linklist { grid-template-columns: 1fr; } }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-top: 2px solid var(--ink); }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-2); font-size: 0.97rem; }
th { font-weight: 800; color: var(--ink); background: var(--ground); letter-spacing: -0.008em; }
td { color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.012em;
  color: var(--ink);
  padding: 20px 44px 20px 0;
  position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 3px;
  background: var(--ink);
  transform: translateY(-50%);
  transition: transform .15s ease;
}
.faq summary::before {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 3px;
  height: 13px;
  background: var(--ink);
  transform: translateY(-50%);
  transition: opacity .15s ease;
}
.faq details[open] summary::before { opacity: 0; }
.faq summary:hover::after, .faq summary:hover::before { background: var(--signal-2); }
.faq details > p { padding: 0 0 22px; max-width: 72ch; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--signal);
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: clamp(48px, 6vw, 80px) 0;
}
.cta-band .wrap { text-align: center; }
.cta-band h2 { color: var(--ink); max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: var(--ink); opacity: .84; max-width: 56ch; margin: 0.9em auto 0; }
.cta-band .btn { background: var(--ink); color: var(--signal); border-color: var(--ink); margin-top: 26px; }
.cta-band .btn:hover { background: #000; border-color: #000; }
.cta-band .btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.cta-band .btn--ghost:hover { background: var(--ink); color: var(--signal); }
.cta-band .muted { color: var(--ink); opacity: .74; margin-top: 12px; }
/* section headings elsewhere on the site sit in a .section__head with a
   rule above them; inside the band that wrapper has to get out of the
   way, or its fixed width left-aligns the heading and pulls it off centre */
.cta-band .section__head {
  border-top: 0;
  padding-top: 0;
  margin-bottom: 0;
  max-width: none;
}

/* ---------- forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--ink);
  padding: clamp(22px, 3vw, 34px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--line-2);
  border-radius: 0;
  background: var(--surface);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color .13s ease;
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--deep);
  color: var(--on-deep);
  padding: clamp(48px, 6vw, 76px) 0 26px;
  border-top: 2px solid var(--ink);
}
.site-footer h4 {
  color: var(--on-deep);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: clamp(24px, 3vw, 40px); }
.footer-grid > div { min-width: 0; }
.site-footer p { color: rgba(233,237,232,.72); font-size: 0.94rem; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: rgba(233,237,232,.82); font-size: 0.94rem; text-decoration: none; }
.site-footer a:hover { color: var(--signal); text-decoration: underline; text-decoration-thickness: 2px; }
.site-footer .wc-phone { color: var(--signal); font-weight: 800; }
.footer-bottom {
  border-top: 1px solid var(--line-inv);
  margin-top: clamp(34px, 4vw, 48px);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(233,237,232,.55);
}
.footer-disclaimer { font-size: 0.82rem; color: rgba(233,237,232,.55); margin-top: 12px; line-height: 1.5; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--ground);
  font-weight: 800;
  padding: 14px 20px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

/* the WhatConverts hook — class name must stay stable */
.wc-phone { font-weight: 800; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
