/* RBE Inc. Excavation & Septic - shared site styles */
:root {
  --ink: #211f1a;
  --paper: #f4f1e8;
  --accent: #2547a0;        /* brand blue, matched to rbeexcavationandseptic.com */
  --accent-dark: #1b3578;
  --accent-light: #9db9f0;  /* blue for text on dark panels */
  --rule: #c9c3b2;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Barlow', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.microlabel {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* Nav */
header.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.8rem 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.wordmark {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.3rem;
  align-items: center;
  font-size: 0.92rem;
}
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.nav-links a.nav-phone {
  color: var(--accent);
  font-weight: 600;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 0.04em;
}

/* Hero */
.hero { border-bottom: 1px solid var(--ink); }
.hero img {
  width: 100%;
  height: min(72vh, 640px);
  object-fit: cover;
  object-position: center top;
}
.hero.hero-short img { height: min(55vh, 480px); object-position: center; }
.hero-panel {
  background: var(--ink);
  color: var(--paper);
}
.hero-panel .microlabel { color: var(--accent-light); }
.hero-panel-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 20px 2.75rem;
}
.hero-panel h1 {
  font-size: clamp(1.7rem, 4.2vw, 3rem);
  max-width: 21ch;
  margin-bottom: 1rem;
}
.hero-panel p.lede {
  max-width: 62ch;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}
.hero-cta a.call, a.btn {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent-light);
  border-radius: 2px;
  padding: 0.45rem 1.1rem;
}
.hero-cta a.call:hover, a.btn:hover { background: var(--accent-light); color: var(--ink); border-color: var(--accent-light); }
a.btn.btn-sm { font-size: 1.1rem; padding: 0.5rem 1.2rem; }
a.btn.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
a.btn.btn-ghost:hover { background: var(--accent); color: #fff; }
.hero-panel a.btn.btn-ghost { color: var(--paper); border-color: var(--paper); }
.hero-panel a.btn.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.hero-cta .cred {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  color: var(--paper);
}

/* Sections */
section { padding: 4.5rem 0; border-bottom: 1px solid var(--rule); }
section h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 1.25rem; }
section h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.two-col p { margin-bottom: 1rem; max-width: 58ch; }
.prose p { margin-bottom: 1rem; max-width: 68ch; }
.prose ul { margin: 0 0 1rem 1.2rem; max-width: 68ch; }
.prose li { margin-bottom: 0.35rem; }
.cap-panel {
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 1.75rem;
}
.cap-panel h3 {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin: 0 0 1rem;
  color: var(--accent);
}
.cap-panel ul { list-style: none; }
.cap-panel li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.cap-panel li:last-child { border-bottom: none; }
.cap-panel li::before {
  content: "/";
  color: var(--accent);
  margin-right: 0.7rem;
  font-family: 'Oswald', sans-serif;
}
.cap-panel li a { color: var(--ink); text-decoration: none; }
.cap-panel li a:hover { color: var(--accent); text-decoration: underline; }
.pull {
  margin-top: 1.5rem;
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
}
.section-link { margin-top: 1.5rem; }
figure.side-photo figcaption {
  font-size: 0.85rem;
  color: #5c5749;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule);
  margin-top: 0.6rem;
}
figure.side-photo img { border-radius: 2px; }
figure.side-photo.sticky { position: sticky; top: 5rem; }

/* Service blocks (service pages) */
.service-list { display: grid; gap: 0; border-top: 1px solid var(--ink); margin-top: 1rem; }
.service-item {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
}
.service-item .num {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 1.1rem;
  padding-top: 0.15rem;
}
.service-item h3 { margin: 0 0 0.4rem; font-size: 1.2rem; }
.service-item p { max-width: 68ch; margin-bottom: 0.5rem; }
.service-item p:last-child { margin-bottom: 0; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.steps li { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 0.9rem; }
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.steps p { font-size: 0.98rem; }

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}
.photo-grid figure img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; border-radius: 2px; }
.photo-grid figcaption { font-size: 0.85rem; color: #5c5749; margin-top: 0.5rem; }

/* Stat panel */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
}
.stat {
  background: var(--paper);
  padding: 1.4rem 1.2rem;
}
.stat b {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--accent);
}
.stat small { font-size: 0.9rem; color: var(--ink); }

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-top: 2rem;
}
.review-grid.three { grid-template-columns: 1fr 1fr 1fr; }
blockquote {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}
blockquote p {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}
blockquote .stars { color: var(--accent); letter-spacing: 0.1em; font-size: 0.9rem; display: block; margin-bottom: 0.4rem; }
blockquote cite {
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
}
.rating-line {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
  margin-top: 1.5rem;
}
.rating-line a { color: var(--accent); }

/* Towns */
.town-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  margin: 2rem 0;
}
.town-list li {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.85rem 1rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.region-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}
.region-cols p { margin-bottom: 1rem; max-width: 58ch; }

/* FAQ */
.faq-item { border-top: 1px solid var(--rule); padding: 1.5rem 0; }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  text-transform: none;
  letter-spacing: 0;
}
.faq-item p { max-width: 68ch; }

/* CTA band */
section.cta-band {
  background: var(--accent);
  color: #fff;
  border-bottom: none;
  padding: 3rem 0;
}
section.cta-band .cta-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem 2rem;
}
section.cta-band h2 { margin-bottom: 0.3rem; font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
section.cta-band p { max-width: 55ch; }
section.cta-band a { color: #fff; }
section.cta-band a.btn { background: var(--paper); color: var(--ink); border-color: var(--paper); font-size: 1.3rem; }
section.cta-band a.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Contact band + forms */
section.contact {
  background: var(--ink);
  color: var(--paper);
  border-bottom: none;
}
section.contact .microlabel { color: var(--accent-light); }
section.contact a { color: var(--accent-light); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-grid p { margin-bottom: 1rem; max-width: 50ch; }
.call-big {
  font-family: 'Oswald', sans-serif;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
}
form label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 1.1rem 0 0.35rem;
}
form input, form textarea, form select {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--paper);
  border-radius: 2px;
  padding: 0.65rem 0.75rem;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
}
form input:focus, form textarea:focus, form select:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; }
form textarea { min-height: 130px; resize: vertical; }
form button {
  margin-top: 1.4rem;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent-light);
  border-radius: 2px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  cursor: pointer;
}
form button:hover { background: var(--accent-light); color: var(--ink); }
.form-note { font-size: 0.85rem; color: #b8b2a2; margin-top: 0.75rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
.hp { position: absolute; left: -9999px; }

/* Contact page hero: form above the fold */
.contact-hero {
  background: var(--ink);
  color: var(--paper);
  border-bottom: 1px solid var(--accent);
}
.contact-hero .microlabel { color: var(--accent-light); }
.contact-hero a { color: var(--accent-light); }
.contact-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 20px 3rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}
.contact-hero h1 { font-size: clamp(1.7rem, 3.8vw, 2.6rem); margin-bottom: 1rem; max-width: 18ch; }
.contact-hero p.lede { max-width: 50ch; font-size: 1.1rem; margin-bottom: 1.25rem; }
.contact-hero .form-card {
  background: #2b2922;
  border: 1px solid #4a463c;
  border-radius: 2px;
  padding: 1.5rem 1.5rem 1.75rem;
}
.contact-hero .form-card h2 { font-size: 1.2rem; margin-bottom: 0.25rem; }
.contact-hero .form-card label { margin-top: 0.85rem; }
.contact-hero .form-card textarea { min-height: 100px; }
.contact-hero .form-card button { margin-top: 1.1rem; }
.detail-list { list-style: none; margin: 1.25rem 0; }
.detail-list li { padding: 0.55rem 0; border-top: 1px solid #4a463c; display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; font-size: 1rem; }
.detail-list li:last-child { border-bottom: 1px solid #4a463c; }
.detail-list .k {
  font-family: 'Oswald', sans-serif; font-weight: 500; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: #b8b2a2; padding-top: 0.2rem;
}
.map-embed { border: 1px solid var(--ink); border-radius: 2px; overflow: hidden; margin-top: 2rem; }
.map-embed iframe { width: 100%; height: 380px; border: 0; display: block; }

/* Footer */
footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 1px solid var(--accent);
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
footer a { color: var(--accent-light); }
footer a:hover { color: #fff; }
footer .wordmark { color: var(--paper); font-size: 1.05rem; }
footer .microlabel { color: var(--accent-light); }
footer ul { list-style: none; margin-top: 0.75rem; }
footer li { padding: 0.2rem 0; }
footer .fineprint {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #4a463c;
  font-size: 0.8rem;
  color: #b8b2a2;
}

@media (max-width: 760px) {
  .hero img, .hero.hero-short img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
  }
  .two-col, .contact-grid, .region-cols, .contact-hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .review-grid, .review-grid.three { grid-template-columns: 1fr; gap: 2rem; }
  .town-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
  .nav-links { font-size: 0.85rem; }
  figure.side-photo.sticky { position: static; }
  .contact-hero-inner { padding: 1.5rem 20px 2.25rem; gap: 1.25rem; }
  .contact-hero h1 { font-size: 1.55rem; max-width: none; }
  .contact-hero p.lede { font-size: 1rem; margin-bottom: 0.5rem; }
  .contact-hero .detail-list { display: none; }
}
