/* Lake Livingston Well Service -- livingstonwellservice.com
   Archetype: warm-family. Cream / pine-green / harvest-gold / bark-brown / soft sage.
   SMACSS convention: l- (layout), m- (module), is- (state). Flexbox. rem units.
   Breakpoints: 600px / 960px. Radius tokens 12px / 16px. Soft shadow scale. */

:root {
  --c-cream: #f6eedd;
  --c-cream-deep: #ede2c8;
  --c-pine: #2f5233;
  --c-pine-dark: #21391f;
  --c-gold: #d9a441;
  --c-gold-dark: #b9852f;
  --c-bark: #2b2118;
  --c-sage: #cbcfc3;
  --c-white: #fffdf8;

  --radius-sm: 0.75rem;   /* 12px */
  --radius-md: 1rem;      /* 16px */
  --radius-lg: 1.5rem;    /* 24px */

  --shadow-sm: 0 1px 3px rgba(43, 33, 24, 0.10);
  --shadow-md: 0 0.5rem 1.25rem rgba(43, 33, 24, 0.12);
  --shadow-lg: 0 1rem 2.25rem rgba(43, 33, 24, 0.16);

  --font-head: "Baloo 2", ui-rounded, "SF Pro Rounded", "Segoe UI", Verdana, sans-serif;
  --font-body: "Nunito Sans", "Segoe UI", system-ui, -apple-system, Verdana, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-cream);
  color: var(--c-bark);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  padding-bottom: 0;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-pine-dark);
  line-height: 1.18;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); }
p { margin: 0 0 1rem; }
a { color: var(--c-pine); }
a:hover { color: var(--c-gold-dark); }
ul, ol { padding-left: 1.25rem; }
img, svg { max-width: 100%; height: auto; display: block; }
.l-container { max-width: 71.25rem; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header / Nav ---------- */
.l-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--c-pine);
  box-shadow: var(--shadow-sm);
}
.l-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding: 0.7rem 0;
}
.m-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-cream);
  text-decoration: none;
  order: 1;
}
.m-logo span { color: var(--c-gold); }
.m-phone-wrap { order: 3; }
.m-header-phone {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--c-gold);
  text-decoration: none;
  white-space: nowrap;
}
.m-header-cta {
  order: 4;
  background: var(--c-gold);
  color: var(--c-bark);
  font-weight: 800;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.m-header-cta:hover { background: var(--c-gold-dark); color: var(--c-white); }
.l-nav {
  order: 5;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.1rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(246, 238, 221, 0.18);
  font-size: 0.92rem;
}
.l-nav a {
  color: var(--c-cream);
  text-decoration: none;
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.l-nav a:hover, .l-nav a.is-current { border-bottom-color: var(--c-gold); color: var(--c-cream); }

@media (min-width: 600px) {
  .m-logo { order: 1; }
  .m-phone-wrap { order: 2; }
  .m-header-cta { order: 3; }
  .l-nav { order: 4; }
}
@media (min-width: 960px) {
  .l-header-row { flex-wrap: nowrap; }
  .l-nav { flex-basis: auto; border-top: none; padding-top: 0; margin-left: 1.5rem; flex: 1 1 auto; }
}

/* ---------- Breadcrumbs ---------- */
.m-breadcrumbs {
  font-size: 0.82rem;
  color: var(--c-pine-dark);
  padding: 0.6rem 0 0;
}
.m-breadcrumbs a { color: var(--c-pine-dark); }
.m-breadcrumbs .l-container { padding-top: 0.3rem; }

/* ---------- Hero ---------- */
.l-hero { padding: 1.75rem 0 2.25rem; }
.l-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.m-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--c-gold-dark);
  margin-bottom: 0.5rem;
}
.l-hero h1 { margin-bottom: 0.65rem; }
.l-hero .m-lede { font-size: 1.08rem; max-width: 46ch; }
.m-hero-ctas { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.1rem; }
.m-hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, #dcecd6 0%, var(--c-sage) 40%, var(--c-pine) 100%);
  aspect-ratio: 4/3;
}
.m-hero-art svg { width: 100%; height: 100%; display: block; }
@media (min-width: 960px) {
  .l-hero-grid { flex-direction: row; align-items: center; gap: 2.25rem; }
  .l-hero-grid > * { flex: 1 1 50%; }
}

/* ---------- Buttons ---------- */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}
.m-btn--primary { background: var(--c-gold); color: var(--c-bark); border-color: var(--c-gold); }
.m-btn--primary:hover { background: var(--c-gold-dark); color: var(--c-white); }
.m-btn--outline { background: transparent; color: var(--c-pine-dark); border-color: var(--c-pine); }
.m-btn--outline:hover { background: var(--c-pine); color: var(--c-cream); }
.m-btn--pine { background: var(--c-pine); color: var(--c-cream); border-color: var(--c-pine); }
.m-btn--pine:hover { background: var(--c-pine-dark); }

/* ---------- Trust bar ---------- */
.m-trust-bar {
  background: var(--c-cream-deep);
  border-top: 1px solid var(--c-sage);
  border-bottom: 1px solid var(--c-sage);
  padding: 1.2rem 0;
}
.m-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  justify-content: center;
  text-align: center;
}
.m-trust-chip { flex: 1 1 12.5rem; max-width: 16.5rem; font-size: 0.9rem; }
.m-trust-chip strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--c-pine);
  margin-bottom: 0.2rem;
}

/* ---------- Sections ---------- */
.l-section { padding: 3rem 0; }
.l-section--tight { padding: 1.75rem 0; }
.l-section--sage { background: var(--c-sage); }
.l-section--pine { background: var(--c-pine); color: var(--c-cream); }
.l-section--pine h2, .l-section--pine h3 { color: var(--c-cream); }
.m-section-head { max-width: 42rem; margin: 0 auto 2rem; text-align: center; }

/* ---------- Service cards ---------- */
.l-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 600px) { .l-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .l-card-grid { grid-template-columns: repeat(4, 1fr); } }
.m-service-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-sage);
}
.m-service-card .m-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-pine);
  background: var(--c-cream-deep);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}
.m-service-card a.m-learn { font-weight: 800; text-decoration: none; }

/* ---------- Trust trio (replaces testimonials, no fabricated reviews) ---------- */
.l-trio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 960px) { .l-trio-grid { grid-template-columns: repeat(3, 1fr); } }
.m-trio-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-sage);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.m-trio-avatar {
  flex: 0 0 3rem;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--c-cream-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-trio-avatar svg { width: 1.6rem; height: 1.6rem; }
.m-trio-card h3 { margin: 0 0 0.35rem; }

/* ---------- Town / coverage cards ---------- */
.l-town-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) { .l-town-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .l-town-grid { grid-template-columns: repeat(3, 1fr); } }
.m-town-card {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  border-left: 0.3rem solid var(--c-gold);
  box-shadow: var(--shadow-sm);
}
.m-town-card h3 { margin-bottom: 0.35rem; }

/* ---------- Reassurance CTA band ---------- */
.m-cta-band {
  background: var(--c-pine);
  color: var(--c-cream);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
}
.m-cta-band h2 { color: var(--c-cream); margin-top: 0; }

/* ---------- Quote form ---------- */
.m-quote-card {
  background: var(--c-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 38rem;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-sage);
}
.m-quote-card h2 { margin-top: 0; }
.m-form-row { margin-bottom: 1rem; }
.m-form-row label { display: block; font-weight: 800; margin-bottom: 0.35rem; font-size: 0.92rem; }
.m-form-row input, .m-form-row select, .m-form-row textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--c-sage);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--c-cream);
  color: var(--c-bark);
}
.m-form-row textarea { resize: vertical; min-height: 5.5rem; }
.m-form-note { font-size: 0.8rem; color: var(--c-pine-dark); }
.m-form-submit { width: 100%; border: none; }

/* ---------- Pricing table ---------- */
.m-table-scroll { overflow-x: auto; }
.m-price-table {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.m-price-table th, .m-price-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--c-sage);
  font-size: 0.95rem;
}
.m-price-table th { background: var(--c-cream-deep); font-family: var(--font-head); color: var(--c-pine-dark); }

/* ---------- Numbered process steps ---------- */
.m-steps { counter-reset: step; list-style: none; padding-left: 0; }
.m-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.3rem;
}
.m-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.3rem; height: 2.3rem;
  background: var(--c-gold);
  color: var(--c-bark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
}

/* ---------- Failure-modes callout ---------- */
.m-callout {
  background: var(--c-cream-deep);
  border-left: 0.3rem solid var(--c-pine);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.4rem 0;
}
.m-callout h3 { margin-top: 0; }

/* ---------- FAQ ---------- */
.m-faq-list details {
  background: var(--c-white);
  border: 1px solid var(--c-sage);
  border-radius: var(--radius-md);
  padding: 1rem 1.3rem;
  margin-bottom: 0.8rem;
}
.m-faq-list summary {
  font-weight: 800;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.03rem;
  color: var(--c-pine-dark);
}
.m-faq-list p { margin-top: 0.7rem; margin-bottom: 0; }

/* ---------- Footer ---------- */
.l-footer { background: var(--c-bark); color: var(--c-cream); padding: 2.5rem 0 6.5rem; }
.l-footer a { color: var(--c-cream); }
.l-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}
@media (min-width: 600px) { .l-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .l-footer-grid { grid-template-columns: repeat(4, 1fr); } }
.l-footer-grid h4 {
  font-family: var(--font-head);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-gold);
  margin-bottom: 0.6rem;
}
.l-footer-grid ul { list-style: none; padding: 0; margin: 0; }
.l-footer-grid li { margin-bottom: 0.4rem; }
.l-footer-grid a { text-decoration: none; font-size: 0.92rem; }
.l-footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(246, 238, 221, 0.18);
  font-size: 0.8rem;
  color: var(--c-sage);
  text-align: center;
}

/* ---------- Sticky mobile CTA bar ---------- */
.m-sticky-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  display: flex;
  z-index: 50;
  box-shadow: 0 -0.3rem 1rem rgba(43, 33, 24, 0.22);
}
.m-sticky-bar a {
  flex: 1;
  text-align: center;
  padding: 0.9rem 0.5rem;
  font-weight: 800;
  text-decoration: none;
  font-size: 1rem;
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-sticky-bar .m-call { background: var(--c-gold); color: var(--c-bark); }
.m-sticky-bar .m-quote { background: var(--c-pine); color: var(--c-cream); border-left: 1px solid rgba(246,238,221,0.25); }
@media (min-width: 960px) { .m-sticky-bar { display: none; } }
body { padding-bottom: 3.9rem; }
@media (min-width: 960px) { body { padding-bottom: 0; } }

/* ---------- Misc ---------- */
.m-edge-note {
  font-size: 0.92rem;
  border-top: 1px dashed var(--c-sage);
  padding-top: 1rem;
  margin-top: 1.6rem;
}
.u-text-center { text-align: center; }
.u-small { font-size: 0.85rem; }
.u-mt-0 { margin-top: 0; }
