/* =========================================================
   Cape Coral Septic Tank Pumping — shared styles
   Concept: "make the underground legible."
   A utility/engineering-drawing visual language for a
   hidden system, in a Cape Coral canal palette.
   Plain CSS, no build step. Re-themes the whole site
   through the tokens below.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Public+Sans:ital,wght@0,300..800;1,400..600&display=swap');

:root {
  /* ---- color ---- */
  --paper:   #EFF1EA;   /* cool bone field (not the AI cream) */
  --paper-2: #FBFBF7;   /* lifted surface */
  --mist:    #E2E7DA;   /* alternate section tint */
  --ink:     #16231E;   /* green-black text */
  --ink-soft:#4C5A53;   /* secondary text */
  --line:    #D3D9CB;   /* hairlines */
  --canal:   #0C3B40;   /* deep canal petrol — brand / dark bands */
  --canal-2: #082A2E;   /* darker petrol */
  --amber:   #E9A62E;   /* safety/worksite amber — one loud accent */
  --amber-2: #F2B84B;   /* amber hover */
  --focus:   #1E6C6E;

  /* ---- type ---- */
  --font-head: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* ---- layout ---- */
  --max: 1180px;
  --radius: 3px;          /* near-square, utilitarian */
  --section-y: clamp(56px, 7.5vw, 104px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: var(--ink);
  line-height: 1.65;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--canal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--canal);
  outline-offset: 2px;
  border-radius: 2px;
}
.hero :focus-visible,
.section--dark :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible { outline-color: var(--paper); }

/* ---------------- typography ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 650;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.15rem, 5vw, 3.55rem); font-weight: 720; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 0.55em; }
h3 { font-size: 1.2rem; font-weight: 620; margin-bottom: 0.35em; line-height: 1.2; }
h4 { font-size: 1rem; font-weight: 700; }

p { margin-bottom: 1rem; color: var(--ink-soft); max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.lead, .section__lead { font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.section__lead p { font-size: inherit; }

/* ---------------- layout ---------------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.section { padding: var(--section-y) 0; }
.section--alt { background: var(--mist); }
.section--dark { background: var(--canal); color: var(--paper); }
.section--dark h2, .section--dark h3, .section--dark h1 { color: var(--paper); }
.section--dark p { color: rgba(239,241,234,.82); }
.section--tight { padding: 18px 0; }

.center { text-align: center; }
.center p, .center .section__lead, .center ul { margin-left: auto; margin-right: auto; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.grid { display: grid; gap: clamp(20px, 3vw, 36px); }
.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; } }

/* section heading rule — structure, not decoration */
.rule-head {
  display: flex; align-items: baseline; gap: 18px;
  border-bottom: 2px solid var(--ink); padding-bottom: 14px; margin-bottom: 34px;
}
.rule-head h2 { margin-bottom: 0; }
.section--dark .rule-head { border-color: rgba(239,241,234,.35); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--amber);
  color: var(--ink);
  padding: 15px 26px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  border: 1.5px solid var(--amber);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: var(--amber-2); border-color: var(--amber-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }

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

.btn--dark { background: var(--canal); border-color: var(--canal); color: var(--paper); }
.btn--dark:hover { background: var(--canal-2); border-color: var(--canal-2); }

.section--dark .btn--ghost,
.hero .btn--ghost { color: var(--paper); border-color: rgba(239,241,234,.7); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { background: var(--paper); color: var(--canal); border-color: var(--paper); }

.btn--lg { padding: 18px 34px; font-size: 1.06rem; }

.muted { color: var(--ink-soft); font-size: .9rem; }

/* ---------------- brand / header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 13px 24px; max-width: var(--max); margin: 0 auto;
}

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; color: var(--canal); }
.brand__img { height: 54px; width: auto; display: block; }
.brand__img--mark { height: 58px; }
.site-footer .brand__img {
  height: 74px; width: auto;
  background: var(--paper); border-radius: 4px; padding: 10px 16px;
}
.brand__word { display: flex; flex-direction: column; line-height: 1.02; }
.brand__word strong {
  font-family: var(--font-head); font-weight: 720;
  font-size: 1.06rem; letter-spacing: -0.02em; color: var(--ink);
}
.brand__word span {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft); margin-top: 2px;
}

.nav__logo img { max-height: 46px; width: auto; } /* legacy fallback */
.nav__links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav__links a { color: var(--ink); font-weight: 500; font-size: .96rem; }
.nav__links a:hover { color: var(--canal); text-decoration: none; }

.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: -14px;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  min-width: 260px; padding: 8px; box-shadow: 0 18px 34px rgba(12,59,64,.14);
}
.has-dropdown::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 14px; display: none;
}
.has-dropdown:hover::after { display: block; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a { display: block; padding: 9px 14px; font-size: .92rem; border-radius: 2px; }
.dropdown a:hover { background: var(--mist); }

.nav__call {
  background: var(--canal); color: var(--paper) !important;
  padding: 11px 18px; border-radius: var(--radius); font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.nav__call:hover { background: var(--canal-2); text-decoration: none; }

.nav__toggle {
  display: none; background: none; border: 0; font-size: 1.5rem; line-height: 1;
  cursor: pointer; color: var(--ink); padding: 6px;
}
@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(--paper-2); border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px; box-shadow: 0 18px 30px rgba(12,59,64,.1);
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; padding: 7px 0; }
  .dropdown { position: static; display: block; box-shadow: none; border: 0; padding: 4px 0 4px 14px; min-width: 0; background: transparent; }
  .nav__call { display: inline-block; margin-top: 6px; }
  .nav__toggle { display: block; }
}

/* ---------------- hero ---------------- */
.hero {
  position: relative; color: var(--paper);
  background: var(--canal);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8,42,46,.72), rgba(8,42,46,.94));
}
.hero__inner {
  position: relative; z-index: 2; max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 24px clamp(52px, 7vw, 96px);
}
.hero--diagram { background: var(--canal); }
.hero--diagram::after { display: none; }
.hero--diagram .hero__inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 60px);
  align-items: center;
}
.hero__copy { max-width: 48ch; }
.hero h1 { color: var(--paper); margin: 0 0 20px; max-width: 18ch; }
.hero--diagram h1 { max-width: none; }
.hero p { color: rgba(239,241,234,.86); font-size: 1.14rem; max-width: 46ch; }
.hero__cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* keep old hero markup working if present */
.hero__eyebrow { display: none; }
.hero__inner > .hero__copy + * { min-width: 0; }

/* schematic diagram */
.schematic { width: 100%; height: auto; display: block; }
.schematic text { font-family: var(--font-body); }
.schematic .sl { stroke: var(--paper); stroke-width: 2.4; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.schematic .sl-thin { stroke: rgba(239,241,234,.45); stroke-width: 1.6; fill: none; stroke-linecap: round; }
.schematic .sl-dash { stroke: rgba(239,241,234,.5); stroke-width: 1.6; fill: none; stroke-dasharray: 6 6; }
.schematic .fill-scum { fill: rgba(233,166,46,.22); }
.schematic .fill-effluent { fill: rgba(239,241,234,.10); }
.schematic .fill-sludge { fill: rgba(233,166,46,.55); }
.schematic .lbl { fill: var(--paper); font-size: 13px; font-weight: 600; }
.schematic .lbl-sub { fill: rgba(239,241,234,.7); font-size: 11px; font-weight: 500; }
.schematic .hose { stroke: var(--amber); stroke-width: 5; fill: none; stroke-linecap: round; }
.schematic .truck { fill: var(--paper); }

@media (max-width: 860px) {
  .hero--diagram .hero__inner { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .hero h1 { max-width: none; }
  .schematic { max-width: 560px; }
}

/* ---------------- directory (services) ---------------- */
.directory { list-style: none; border-top: 1px solid var(--line); }
.directory__row { border-bottom: 1px solid var(--line); }
.directory__row a {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 44px;
  gap: clamp(16px, 3vw, 44px); align-items: baseline;
  padding: 26px 4px; color: var(--ink);
}
.directory__row a:hover { text-decoration: none; }
.directory__title {
  font-family: var(--font-head); font-weight: 650; font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  letter-spacing: -0.015em; line-height: 1.15;
}
.directory__row a:hover .directory__title { color: var(--canal); }
.directory__desc { color: var(--ink-soft); font-size: 1rem; }
.directory__go {
  justify-self: end; align-self: center;
  width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--ink-soft);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.directory__row a:hover .directory__go { background: var(--amber); border-color: var(--amber); color: var(--ink); }
@media (max-width: 720px) {
  .directory__row a { grid-template-columns: 1fr; gap: 5px; padding: 22px 0; }
  .directory__desc { grid-column: auto; }
  .directory__go { display: none; }
}

/* ---------------- cards (kept borderless, not SaaS boxes) ---------------- */
.card { border-top: 2px solid var(--canal); padding: 22px 0 0; background: transparent; }
.card h3 { margin-bottom: .4em; }
.card p { font-size: 1rem; }
.section--alt .card { background: transparent; }

/* ---------------- process steps (true sequence → numbered) ---------------- */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { counter-increment: step; padding: 26px 24px 26px 0; border-bottom: 1px solid var(--line); position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: 720; font-size: 1.05rem;
  color: var(--canal); display: block; margin-bottom: 12px;
}
.steps li::after {
  content: ""; position: absolute; top: 34px; right: 20px; left: 42px;
  height: 1px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.08rem; }
.steps p { font-size: .96rem; margin-bottom: 0; }
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(2n)::after { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
}

/* ---------------- linklist (areas / service links) ---------------- */
.linklist { list-style: none; display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); }
.linklist li { flex: 1 1 30%; min-width: 200px; border-bottom: 1px solid var(--line); }
.linklist a {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  padding: 18px 4px; color: var(--ink); font-family: var(--font-head);
  font-weight: 600; font-size: 1.05rem;
}
.linklist a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--canal); border-bottom: 2px solid var(--canal); transform: rotate(-45deg); opacity: .5; transition: transform .15s ease, opacity .15s ease; }
.linklist a:hover { color: var(--canal); text-decoration: none; }
.linklist a:hover::after { transform: rotate(-45deg) translate(3px, 3px); opacity: 1; }
@media (max-width: 560px) { .linklist li { flex-basis: 100%; } }

/* ---------------- table ---------------- */
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; background: transparent; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: .97rem; }
th {
  font-family: var(--font-body); font-weight: 700; color: var(--ink);
  background: transparent; border-bottom: 1.5px solid var(--ink);
}
td { color: var(--ink-soft); }
tbody tr:hover td { background: rgba(12,59,64,.04); }

/* ---------------- FAQ ---------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: transparent; padding: 0; margin: 0; }
.faq summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 620; font-size: 1.12rem;
  color: var(--ink); padding: 22px 44px 22px 0; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--canal); font-size: 1.5rem; line-height: 1; font-family: var(--font-body); transition: transform .15s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { padding: 0 0 24px; margin: 0; max-width: 68ch; }

/* ---------------- forms ---------------- */
.form-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .86rem; letter-spacing: .01em; margin-bottom: 7px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--paper);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--canal); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------------- images / plates ---------------- */
.plate { margin: 0; }
.plate img { width: 100%; border-radius: var(--radius); }
.plate figcaption {
  font-size: .82rem; color: var(--ink-soft); padding-top: 10px;
  border-top: 1px solid var(--line); margin-top: 12px; letter-spacing: .01em;
}
.section--tight img { width: 100%; border-radius: var(--radius); }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--amber); color: var(--ink); padding: clamp(52px, 6vw, 80px) 24px; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: rgba(22,35,30,.85); }
.cta-band .btn { background: var(--canal); border-color: var(--canal); color: var(--paper); }
.cta-band .btn:hover { background: var(--canal-2); border-color: var(--canal-2); }
.cta-band .muted { color: rgba(22,35,30,.8); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--canal); color: rgba(239,241,234,.82); padding: 64px 0 28px; }
.site-footer h4 {
  color: var(--paper); margin-bottom: 14px; font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer p { color: rgba(239,241,234,.72); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: rgba(239,241,234,.82); font-size: .93rem; }
.site-footer a:hover { color: var(--paper); }
.site-footer .brand { color: var(--paper); }
.site-footer .brand__word strong { color: var(--paper); }
.site-footer .brand__word span { color: rgba(239,241,234,.7); }
.site-footer .brand__mark { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid rgba(239,241,234,.18); margin-top: 44px; padding-top: 20px;
  font-size: .85rem; color: rgba(239,241,234,.55);
}
.footer-disclaimer { font-size: .82rem; color: rgba(239,241,234,.55) !important; margin-top: 12px; line-height: 1.5; }

/* phone link — stable hook for WhatConverts dynamic number insertion */
.wc-phone { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------- sticky call bar (mobile only) ---------------- */
.callbar { display: none; }
@media (max-width: 720px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--canal); color: var(--paper);
    font-weight: 700; font-size: 1.02rem;
    padding: 15px 20px calc(15px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 22px rgba(12, 59, 64, .18);
  }
  .callbar:hover { color: var(--paper); text-decoration: none; }
  .callbar svg { color: var(--amber); flex: none; }
}

/* ---------------- motion / a11y ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------------- hero answer block (direct answer, for search + AI snippets) ---------------- */
/* Specificity note: must outrank `.hero p`, so keep the `.hero` prefix. */
.hero .answer {
  margin: 24px 0 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--amber);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(239, 241, 234, .84);
  max-width: 52ch;
}

/* ---------------- tick lists (signs, interval factors, cost factors) ---------------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 76ch; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; background: var(--amber);
}
.ticks strong { font-family: var(--font-head); font-weight: 620; }

/* ---------------- inline prose links ----------------
   Body-copy links need a visible affordance. `a` is unstyled by default
   site-wide, which is fine for nav/buttons but hides links inside paragraphs.
   Buttons and phone links are excluded so they keep their button styling. */
.section p a:not(.btn):not(.wc-phone),
.section__lead a:not(.btn):not(.wc-phone),
.faq a:not(.btn):not(.wc-phone),
.cta-band p a:not(.btn):not(.wc-phone) {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(12, 59, 64, .35);
}
.section p a:not(.btn):not(.wc-phone):hover,
.section__lead a:not(.btn):not(.wc-phone):hover,
.faq a:not(.btn):not(.wc-phone):hover,
.cta-band p a:not(.btn):not(.wc-phone):hover {
  text-decoration-color: currentColor;
}
