/* Soil and Septic Solutions — site styles */

:root {
  --blue-900: #082a4b;
  --blue-800: #0a3a66;
  --blue-700: #0d4a85;
  --blue-600: #1462ab;
  --blue-50: #eef4fa;
  --green-700: #2c6a1e;
  --green-800: #225417;
  --green-100: #e8f2e2;
  --earth-700: #6e4524;
  --earth-50: #f7f3ee;
  --ink: #18212b;
  --text: #2c3640;
  --muted: #5b6672;
  --line: #dfe5eb;
  --white: #fff;
  --error: #b42318;
  --error-bg: #fef3f2;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(8, 42, 75, 0.06), 0 6px 20px rgba(8, 42, 75, 0.07);
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }
a:hover { color: var(--blue-900); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
figure { margin: 0; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--blue-800); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 860px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.3em;
  border: 2px solid transparent; border-radius: var(--radius);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-call { background: var(--blue-700); color: var(--white); }
.btn-call:hover { background: var(--blue-900); color: var(--white); }
.btn-estimate { background: var(--green-700); color: var(--white); }
.btn-estimate:hover { background: var(--green-800); color: var(--white); }
.btn-lg { min-height: 56px; font-size: 1.0625rem; padding: 0.8em 1.5em; }
.btn-block { width: 100%; }
.btn-sub { font-weight: 600; opacity: 0.9; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { flex: none; display: block; padding: 4px 0; }
.brand img { width: 92px; height: 92px; }
.site-nav { flex: 1; display: flex; align-items: center; gap: 24px; }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.site-nav ul a:hover { background: var(--blue-50); color: var(--blue-800); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--blue-800); font-weight: 800; font-size: 1.15rem; text-decoration: none; white-space: nowrap;
}
.header-phone .icon { color: var(--green-700); }
.header-phone-label { font-weight: 600; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .header-phone-label { display: none; }
  .site-nav ul a { padding: 10px 8px; }
}

@media (max-width: 959px) {
  :root { --header-h: 72px; }
  .brand img { width: 64px; height: 64px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto;
    min-height: 44px; padding: 8px 14px;
    background: var(--white); color: var(--ink);
    border: 1px solid var(--line); border-radius: var(--radius);
    font: inherit; font-weight: 700; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }

  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 20px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; margin: 0; }
  .site-nav ul a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .header-actions { flex-direction: column; align-items: stretch; }
  .header-phone { justify-content: center; padding: 10px; }
  .header-phone-label { display: inline; }
}

/* Hero */
.hero { padding: clamp(32px, 6vw, 72px) 0; background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 1rem; padding: 6px 12px; border-radius: 999px;
  background: var(--green-100); color: var(--green-800); font-weight: 700; font-size: 0.9rem;
}
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--text); max-width: 36em; margin-bottom: 1.6rem; }
.hero-note { margin: 1.25rem 0 0; color: var(--muted); font-size: 0.98rem; }
.hero-note a { font-weight: 700; white-space: nowrap; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}

@media (max-width: 959px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .btn-row .btn { width: 100%; }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-tint { background: var(--earth-50); }
.section-head { max-width: 700px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p:last-child { margin-bottom: 0; }
.kicker {
  margin-bottom: 0.5rem; color: var(--green-700);
  font-weight: 800; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Services */
.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  display: flex; flex-direction: column;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white);
}
.service-card p { color: var(--muted); flex: 1; }
.service-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 12px; background: var(--blue-50); color: var(--blue-700);
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card--urgent { border-color: #c9ddc0; background: var(--green-100); }
.service-card--urgent .service-icon { background: var(--white); color: var(--green-700); }
.service-card--urgent p { color: var(--text); }
.service-link { font-weight: 700; text-decoration: none; }
.service-link::after { content: " →"; }
.service-link:hover { text-decoration: underline; }

.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.photo-strip figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.photo-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-strip figcaption {
  position: absolute; left: 12px; bottom: 12px;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(8, 42, 75, 0.85); color: var(--white); font-weight: 700; font-size: 0.9rem;
}
.photo-note { margin: 12px 0 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 959px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: 1fr 1fr; gap: 12px; }
  .photo-strip figure:first-child { grid-column: 1 / -1; }
}

/* Process */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.step {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: var(--white); border: 1px solid var(--line);
}
.step p { margin: 0; color: var(--muted); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px;
  border-radius: 50%; background: var(--blue-700); color: var(--white); font-weight: 800; font-size: 1.15rem;
}
@media (min-width: 821px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 50px; right: -16px; z-index: 1;
    width: 12px; height: 12px; border-top: 3px solid var(--earth-700); border-right: 3px solid var(--earth-700);
    transform: rotate(45deg);
  }
}
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
}

/* About */
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.about-address {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; padding: 18px 20px;
  border-left: 4px solid var(--earth-700); background: var(--earth-50); border-radius: 0 var(--radius) var(--radius) 0;
}
.about-address .icon { color: var(--earth-700); margin-top: 3px; }
@media (max-width: 959px) {
  .about-inner { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { border-top: 1px solid #d9d2c7; }
.faq-item { border-bottom: 1px solid #d9d2c7; }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; cursor: pointer; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.1rem; }
.faq-item summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--white); border: 1px solid var(--line);
  color: var(--blue-700); font-size: 1.3rem; font-weight: 700; line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 4px 20px; max-width: 46em; }
.faq-answer p { margin: 0; }

/* Estimate */
.estimate-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.estimate-intro p:last-child { margin-bottom: 0; }
.estimate-panel {
  padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--white); box-shadow: var(--shadow);
}
.estimate-actions { display: grid; gap: 12px; }
.estimate-action {
  display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 16px 20px;
  border-radius: var(--radius); color: var(--white); text-decoration: none;
}
.estimate-action .icon { width: 28px; height: 28px; }
.estimate-action strong { display: block; font-size: 1.15rem; line-height: 1.25; }
.estimate-action-detail { display: block; opacity: 0.92; font-weight: 600; overflow-wrap: anywhere; }
.estimate-action--call { background: var(--blue-700); }
.estimate-action--call:hover { background: var(--blue-900); color: var(--white); }
.estimate-action--email { background: var(--green-700); }
.estimate-action--email:hover { background: var(--green-800); color: var(--white); }
.estimate-checklist { margin-top: 28px; }
.estimate-checklist h3 { font-size: 1.05rem; }
.estimate-checklist ul { margin: 0 0 16px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.estimate-checklist li { position: relative; padding-left: 26px; }
.estimate-checklist li::before {
  content: ""; position: absolute; left: 4px; top: 0.45em; width: 7px; height: 12px;
  border: solid var(--green-700); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.estimate-note { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 959px) {
  .estimate-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .estimate-checklist ul { grid-template-columns: 1fr; }
  .estimate-panel { padding: 16px; }
  .estimate-action { gap: 14px; padding: 14px 16px; }
  .estimate-action--email .estimate-action-detail { font-size: 0.88rem; }
}

/* Contact */
.section-blue { background: var(--blue-800); color: #dbe7f3; }
.section-blue h2 { color: var(--white); }
.contact-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 24px;
  border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white); text-decoration: none;
}
.contact-card:hover { background: rgba(255, 255, 255, 0.13); color: var(--white); }
.contact-card .icon { width: 28px; height: 28px; margin-bottom: 8px; color: #9fd08a; }
.contact-label { color: #b9cde2; font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-value { font-size: 1.2rem; font-weight: 700; }
.contact-value--email { font-size: 1.05rem; overflow-wrap: anywhere; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer { background: var(--blue-900); color: #c4d3e3; padding: 48px 0 24px; font-size: 0.98rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand img { width: 84px; height: 84px; border-radius: 12px; background: var(--white); padding: 4px; }
.footer-brand strong { color: var(--white); }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.85rem; color: #9fb3c8; }
.footer-legal p { margin: 0; }
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* Legal pages */
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.legal-page h2 { font-size: 1.3rem; margin-top: 2em; }
.legal-page ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal-page li { margin-bottom: 0.4em; }
.legal-meta { color: var(--muted); font-weight: 600; }
.legal-contact { padding: 18px 20px; border-left: 4px solid var(--earth-700); background: var(--earth-50); border-radius: 0 var(--radius) var(--radius) 0; }

/* Sticky mobile contact bar */
.mobile-cta { display: none; }
@media (max-width: 959px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(8, 42, 75, 0.1);
  }
  .mobile-cta .btn { min-height: 50px; padding: 0.6em 0.8em; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

@media print {
  .site-header, .mobile-cta, .photo-strip, .hero-media { display: none; }
}
