/* ============================================================
   Big Rapids Excavating — styles.css
   Industrial: safety yellow / black on warm gray
   ============================================================ */

:root {
  --bg: #f2efe9;
  --bg-alt: #e9e4da;
  --panel: #ffffff;
  --ink: #191713;
  --ink-soft: #4a453c;
  --ink-mute: #6f6a5f;
  --yellow: #ffc400;
  --yellow-deep: #e5ac00;
  --line: #d9d3c6;
  --line-dark: #2c2a25;
  --radius: 6px;
  --wrap: 1120px;
  --font-head: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img, svg { max-width: 100%; height: auto; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: 0.45em; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  color: var(--ink);
  background: var(--yellow);
  padding: 4px 10px;
  margin-bottom: 14px;
}

.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* Hazard stripe divider */
.hazard {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 14px,
    var(--ink) 14px 28px
  );
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 13px 26px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn:active { transform: translateY(1px); }

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}
.btn-yellow:hover { background: var(--yellow-deep); }

.btn-dark {
  background: var(--ink);
  color: #fff;
}
.btn-dark:hover { background: #000; }

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

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============ Top bar ============ */
.topbar {
  background: var(--ink);
  color: #d9d4c9;
  font-size: 0.88rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.topbar a {
  color: var(--yellow);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.topbar a:hover { text-decoration: underline; }

/* ============ Header / Nav ============ */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-mark { width: 52px; height: 38px; flex-shrink: 0; }
.brand-text {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.32rem;
  line-height: 0.95;
  color: var(--ink);
}
.brand-text em {
  font-style: normal;
  display: block;
  color: var(--ink);
  background: var(--yellow);
  padding: 0 4px;
  margin-top: 2px;
  font-size: 0.92em;
  letter-spacing: 0.06em;
}

.nav-toggle {
  display: none;
  background: var(--ink);
  color: var(--yellow);
  border: 0;
  border-radius: var(--radius);
  padding: 9px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.site-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }
.site-nav a,
.sub-toggle {
  display: block;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 9px 12px;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-nav a:hover,
.sub-toggle:hover { color: var(--yellow-deep); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); }

.has-sub { position: relative; }
.sub-toggle::after {
  content: "▾";
  margin-left: 5px;
  font-size: 0.8em;
}
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--ink);
  border-top: 3px solid var(--yellow);
  padding: 8px 0;
  list-style: none;
  z-index: 60;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}
.sub-menu li { margin: 0; }
.sub-menu a {
  color: #eee9dd;
  font-size: 0.98rem;
  padding: 9px 18px;
}
.sub-menu a:hover { color: var(--yellow); background: #24221d; }
.has-sub:hover .sub-menu,
.has-sub:focus-within .sub-menu,
.has-sub.open .sub-menu { display: block; }

.nav-phone a {
  background: var(--yellow);
  border-radius: var(--radius);
  border: 2px solid var(--ink);
  padding: 8px 15px;
  margin-left: 8px;
  white-space: nowrap;
}
.nav-phone a:hover { background: var(--yellow-deep); color: var(--ink); }

/* ============ Hero ============ */
.hero {
  background: var(--ink);
  color: #efece4;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
  position: relative;
  z-index: 2;
}
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--yellow); }
.hero p { color: #cfc9bb; font-size: 1.14rem; }
.hero .btn-ghost { color: #fff; border-color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero .btn-yellow { border-color: var(--yellow); }
.hero-art { text-align: center; }
.hero-art svg { width: 100%; max-width: 460px; }

.hero-points {
  list-style: none;
  padding: 0;
  margin: 22px 0 26px;
  display: grid;
  gap: 8px;
}
.hero-points li {
  padding-left: 26px;
  position: relative;
  color: #e6e1d4;
  font-weight: 500;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 13px;
  height: 13px;
  background: var(--yellow);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* Page hero (interior pages) */
.page-hero {
  background: var(--ink);
  color: #efece4;
  padding: 46px 0 42px;
}
.page-hero h1 { color: #fff; margin-bottom: 0.35em; }
.page-hero p { color: #cfc9bb; max-width: 62ch; font-size: 1.1rem; }
.page-hero .btn-group { margin-top: 22px; }
.page-hero .btn-ghost { color: #fff; border-color: #fff; }
.page-hero .btn-ghost:hover { background: #fff; color: var(--ink); }

.crumbs {
  font-size: 0.88rem;
  color: #a49e8f;
  margin-bottom: 14px;
}
.crumbs a { color: var(--yellow); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ============ Sections ============ */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #e8e3d6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #cfc9bb; }

.section-head { max-width: 720px; margin-bottom: 34px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ============ Cards / grids ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
a.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(25, 23, 19, 0.12);
}
.card h3 { margin: 0; font-size: 1.28rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.card .icon {
  width: 46px;
  height: 46px;
  color: var(--ink);
}
.card .more {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-size: 0.95rem;
}
.card .more::after { content: " →"; color: var(--yellow-deep); }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  padding: 18px 20px 18px 66px;
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--yellow-deep);
}
.steps li strong { display: block; font-family: var(--font-head); text-transform: uppercase; font-size: 1.1rem; letter-spacing: 0.04em; }

/* ============ Tables ============ */
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; }
table.cost-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
  font-size: 0.98rem;
  min-width: 480px;
}
.cost-table th {
  background: var(--ink);
  color: var(--yellow);
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  font-size: 1rem;
}
.cost-table td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.cost-table tr:nth-child(even) td { background: #faf8f3; }

.note {
  background: #fff8dd;
  border: 1px solid #eedd8a;
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.96rem;
  color: var(--ink-soft);
  margin: 0 0 1.2em;
}

/* ============ Article layout (service pages) ============ */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 48px;
  align-items: start;
}
.article h2 { margin-top: 1.6em; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin-top: 1.3em; }

.sidebar { position: sticky; top: 92px; display: grid; gap: 22px; }
.sidebar-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 22px;
}
.sidebar-box h3 { font-size: 1.2rem; }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { border-bottom: 1px solid var(--line); margin: 0; }
.sidebar-box li:last-child { border-bottom: 0; }
.sidebar-box li a {
  display: block;
  padding: 9px 2px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.sidebar-box li a:hover { color: var(--ink); }
.sidebar-box li a::before { content: "» "; color: var(--yellow-deep); }
.sidebar-cta {
  background: var(--ink);
  color: #e8e3d6;
  border: 0;
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.sidebar-cta h3 { color: #fff; }
.sidebar-cta p { color: #cfc9bb; font-size: 0.96rem; }
.sidebar-cta .btn { width: 100%; margin-top: 6px; }

/* ============ FAQ ============ */
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--yellow-deep);
  font-weight: 800;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item[open] summary { border-bottom: 1px solid var(--line); background: #fbf9f4; }
.faq-body { padding: 16px 20px; color: var(--ink-soft); }

/* ============ Quote form ============ */
.quote-section {
  background: var(--ink);
  color: #e8e3d6;
  padding: 60px 0;
  border-top: 10px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px) 10;
}
.quote-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.quote-section h2 { color: #fff; }
.quote-section p { color: #cfc9bb; }
.quote-phone {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  color: var(--yellow);
  text-decoration: none;
  margin: 8px 0 4px;
}
.quote-phone:hover { text-decoration: underline; }
.quote-hours { font-size: 0.95rem; color: #a49e8f; }

.quote-form {
  background: #fff;
  border-radius: var(--radius);
  border-top: 5px solid var(--yellow);
  padding: 26px;
  display: grid;
  gap: 14px;
  color: var(--ink);
}
.quote-form label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.92rem;
  margin-bottom: 5px;
}
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: #fdfcf9;
  color: var(--ink);
}
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: none;
  border-color: var(--yellow-deep);
  box-shadow: 0 0 0 3px rgba(255, 196, 0, 0.25);
}
.quote-form textarea { min-height: 110px; resize: vertical; }
.quote-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quote-form button { width: 100%; }
.form-fine { font-size: 0.84rem; color: var(--ink-mute); margin: 0; }
.hp-field { display: none !important; }

/* ============ CTA band ============ */
.cta-band {
  background: var(--yellow);
  padding: 42px 0;
}
.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-band h2 { margin: 0; }
.cta-band .sub { color: var(--ink-soft); font-weight: 600; margin: 4px 0 0; }

/* ============ Area chips ============ */
.chip-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-list li { margin: 0; }
.chip-list li a, .chip-list li span {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--ink-soft);
}
.chip-list li a:hover { border-color: var(--ink); color: var(--ink); }

/* ============ Footer ============ */
.site-footer {
  background: var(--ink);
  color: #b8b2a3;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 52px 0 40px;
}
.site-footer h4 {
  color: var(--yellow);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d5cfc1; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand .brand-text { color: #fff; }
.footer-phone {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--yellow) !important;
  margin-top: 10px;
}
.footer-bottom {
  border-top: 1px solid #33302a;
  padding: 18px 0 22px;
  font-size: 0.85rem;
  color: #8a8577;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

/* ============ Mobile call bar ============ */
.mobile-call-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}
.mobile-call-bar a {
  flex: 1;
  text-align: center;
  padding: 15px 8px;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.05rem;
  text-decoration: none;
}
.mcb-call { background: var(--yellow); color: var(--ink); }
.mcb-quote { background: var(--ink); color: #fff; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-inner, .quote-grid, .two-col { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 340px; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  body { padding-bottom: 56px; } /* room for call bar */
  .mobile-call-bar { display: flex; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 3px solid var(--ink);
    box-shadow: 0 14px 24px rgba(0,0,0,0.15);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .site-nav.open { display: block; }
  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
  }
  .site-nav a, .sub-toggle {
    width: 100%;
    text-align: left;
    padding: 12px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .sub-menu {
    position: static;
    box-shadow: none;
    border-top: 0;
    background: #f4f1ea;
    padding: 0;
  }
  .sub-menu a { color: var(--ink-soft); padding-left: 38px; }
  .sub-menu a:hover { background: var(--bg-alt); color: var(--ink); }
  .has-sub:hover .sub-menu { display: none; }
  .has-sub.open .sub-menu, .has-sub:focus-within.open .sub-menu { display: block; }
  .nav-phone a { margin: 12px 22px; display: inline-block; }
  .topbar-inner span.tb-note { display: none; }
  .topbar-inner { justify-content: center; }
}

@media (max-width: 560px) {
  .section { padding: 44px 0; }
  .hero-inner { padding-top: 40px; padding-bottom: 44px; }
  .quote-form .row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .btn { width: 100%; text-align: center; }
  .btn-group { flex-direction: column; }
  .cta-band .btn { width: auto; }
}

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