/* Southern Dirt LLC landing pages.
   Palette taken from the brand: black logo + the yellow/black of their Facebook
   service graphic, with a red-clay accent from the job photos. */
:root {
  --ink: #141414;
  --ink-2: #222120;
  --yellow: #f2b705;
  --yellow-dark: #d29e00;
  --clay: #a8492a;
  --paper: #f6f3ee;
  --line: #e2ddd4;
  --muted: #5d5a55;
  --white: #fff;
  --radius: 6px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .2px; }
h2 { font-size: clamp(34px, 4.2vw, 50px); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; scroll-margin-top: 80px; }

.eyebrow {
  font-family: var(--head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 10px;
}
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head p:last-child { color: var(--muted); font-size: 18px; }
.section-head.light h2 { color: var(--white); }
.section-head.light .eyebrow { color: var(--yellow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; font-size: 19px;
  letter-spacing: .8px; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border-radius: var(--radius); border: 2px solid transparent;
  cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--clay); }
.btn-ghost-dark { border-color: var(--white); color: var(--white); }

/* Top bar + header */
.topbar { background: var(--ink); color: #d9d6d0; font-size: 14px; font-weight: 500; }
.topbar .wrap { display: flex; gap: 14px; align-items: center; justify-content: center; padding-top: 8px; padding-bottom: 8px; }
.topbar .sep { width: 5px; height: 5px; background: var(--yellow); transform: rotate(45deg); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; height: 78px; }
.brand { justify-self: start; }
.brand img { height: 56px; width: auto; }
.main-nav { display: flex; gap: 26px; grid-column: 2; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.main-nav a:hover { color: var(--clay); }
.header-phone {
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none;
  background: var(--ink); color: var(--white); padding: 11px 18px; border-radius: var(--radius);
  font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: .5px;
  grid-column: 3; justify-self: end;
}
.header-phone svg { width: 18px; height: 18px; color: var(--yellow); }

/* Hero */
.hero { position: relative; padding: 72px 0 80px; color: var(--white); overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,13,12,.92) 0%, rgba(14,13,12,.78) 45%, rgba(14,13,12,.45) 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.kicker {
  display: inline-block; font-family: var(--head); font-weight: 700; font-size: 16px;
  letter-spacing: 2px; text-transform: uppercase; color: var(--ink); background: var(--yellow);
  padding: 4px 10px; border-radius: 3px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(42px, 5.6vw, 72px); font-weight: 800; text-transform: uppercase; margin-bottom: 18px; }
.hero-sub { font-size: 20px; color: #e9e6e0; max-width: 600px; }
.hero-points { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 9px; }
.hero-points li { position: relative; padding-left: 30px; font-weight: 600; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 3px;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3.2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Lead form: one-question-per-step survey (script.js) */
.lead-form {
  background: var(--white); color: var(--ink); border-radius: 8px; padding: 30px 28px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,.35); border-top: 6px solid var(--yellow);
}
.lead-form h3 { font-size: 30px; text-transform: uppercase; margin-bottom: 4px; }
.lead-form .form-lede { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lead-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; color: var(--ink-2); }
.lead-form .field { margin-bottom: 12px; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #cfc9bf;
  border-radius: 4px; background: #fcfbf9; color: var(--ink);
}
.lead-form textarea { min-height: 78px; resize: vertical; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--yellow); border-color: var(--ink); }
.lead-form .btn { width: 100%; margin-top: 4px; }
.lead-form .consent { font-size: 12px; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }
.lead-form .form-status { font-size: 14px; font-weight: 600; color: var(--clay); margin: 12px 0 0; }
.lead-form .form-fallback { font-size: 14px; margin: 4px 0 0; }
.lead-form .form-fallback a { color: var(--ink); font-weight: 700; }
.lead-form .btn:disabled { opacity: .7; cursor: wait; }
.lead-form [hidden] { display: none !important; }
/* Keeps the form's top clear of the sticky header when a step scrolls it into view. */
.lead-form { scroll-margin-top: 84px; }
.lead-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.survey-progress { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.survey-progress span { display: block; height: 100%; width: 0; background: var(--yellow); transition: width .25s; }
.survey-count { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead-form .step-q {
  display: block; font-family: var(--head); font-size: 24px; font-weight: 700; line-height: 1.15;
  text-transform: uppercase; color: var(--ink); margin-bottom: 14px; padding: 0; outline: none;
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tiles .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
.lead-form .tile { position: relative; margin: 0; font-size: 15px; }
.lead-form .tile input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; }
.tile span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 56px;
  padding: 10px 12px; border: 2px solid #cfc9bf; border-radius: 6px; background: #fcfbf9;
  font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s;
}
.tile:hover span { border-color: var(--ink); }
.tile input:checked + span { border-color: var(--ink); background: var(--yellow); }
.tile input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.lead-form [aria-invalid="true"] { border-color: var(--clay); }
.survey-nav { display: flex; gap: 10px; align-items: center; margin-top: 16px; }
.lead-form .survey-nav .btn { flex: 1; width: auto; margin-top: 0; }
.survey-back {
  background: none; border: 0; font: inherit; font-weight: 700; color: var(--muted);
  padding: 12px 6px; cursor: pointer;
}
.survey-back:hover { color: var(--ink); }
/* Honeypot: off-screen for people, still filled in by bots. */
.lead-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Proof strip */
.proof-strip { background: var(--yellow); }
.proof-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-item { padding: 20px 18px; border-left: 1px solid rgba(0,0,0,.14); }
.proof-item:first-child { border-left: 0; }
.proof-item strong { display: block; font-family: var(--head); font-size: 22px; text-transform: uppercase; line-height: 1.1; }
.proof-item span { font-size: 14px; font-weight: 500; }

/* Scope comparison */
.scope { background: var(--paper); }
.scope-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.scope-col { border-radius: 8px; padding: 30px 30px 18px; }
.scope-col h3 { text-transform: uppercase; font-size: 22px; margin-bottom: 16px; }
.scope-col ul { list-style: none; padding: 0; margin: 0; }
.scope-col li { position: relative; padding: 0 0 14px 32px; }
.scope-col li::before { position: absolute; left: 0; top: 1px; font-weight: 800; font-size: 18px; line-height: 1.3; }
.scope-cut { background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.scope-cut li::before { content: "\2715"; color: #b0aaa0; }
.scope-full { background: var(--ink); color: var(--white); }
.scope-full h3 { color: var(--yellow); }
.scope-full li::before { content: "\2713"; color: var(--yellow); }

/* Detail */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.detail-photo { margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 5; }
.detail-photo img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy p { color: var(--muted); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--clay) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checks.light li::before { background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141414' stroke-width='3.4'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }

/* Process */
.process { background: var(--ink); color: #d9d6d0; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: #333; border-radius: 8px; overflow: hidden; }
.steps li { background: var(--ink-2); padding: 30px 26px; }
.step-num { display: block; font-family: var(--head); font-weight: 800; font-size: 46px; color: var(--yellow); line-height: 1; margin-bottom: 14px; }
.steps h3 { color: var(--white); text-transform: uppercase; }
.steps p { font-size: 16px; margin: 0; }

/* Work gallery */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 10px; }
.work-grid figure { margin: 0; border-radius: 6px; overflow: hidden; position: relative; background: #ddd; }
.work-grid figure.wide { grid-column: span 2; grid-row: span 2; }
.work-grid figure.half { grid-column: span 2; }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.work-grid figure:hover img { transform: scale(1.04); }
.work-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: var(--white);
  font-weight: 600; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.72));
}

/* One crew / service cards */
.one-crew { background: var(--paper); }
.crew-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.crew-card { display: block; text-decoration: none; background: var(--white); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.crew-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.1); }
.crew-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.crew-card div { padding: 18px 18px 20px; }
.crew-card h3 { text-transform: uppercase; margin-bottom: 6px; }
.crew-card p { font-size: 15px; color: var(--muted); margin: 0 0 10px; }
.crew-card span { font-family: var(--head); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--clay); }

/* Service area */
/* Google reviews slider: native scroll-snap, arrows on desktop, swipe on phones */
.reviews-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.reviews-head .section-head { margin-bottom: 0; }
.reviews .rating { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 18px; margin: 0; }
.reviews .rating strong { font-size: 22px; }
.reviews .stars { color: var(--yellow); letter-spacing: 2px; font-size: 20px; line-height: 1; }
.slider-arrows { display: flex; gap: 10px; flex-shrink: 0; }
.slider-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: var(--white);
  color: var(--ink); font-size: 22px; cursor: pointer; transition: background .15s, opacity .15s;
}
.slider-btn:hover:not(:disabled) { background: var(--yellow); }
.slider-btn:disabled { opacity: .3; cursor: default; }
.review-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px;
  scrollbar-width: none; outline: none;
}
.review-track::-webkit-scrollbar { display: none; }
.review-track:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; }
.review-card {
  scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); border-radius: 8px; padding: 26px 24px; border-top: 4px solid var(--yellow);
}
.review-card .stars { font-size: 18px; }
.review-text { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.review-text p { margin: 0 0 .7em; }
.review-text p:last-child { margin-bottom: 0; }
.review-card.clamped .review-text {
  display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden;
}
.review-more {
  align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-weight: 700;
  color: var(--clay); cursor: pointer; text-decoration: underline;
}
.review-card figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.review-card figcaption strong { font-size: 16px; }
.review-card figcaption span { font-size: 13px; color: var(--muted); }

.area-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.area-grid p { color: var(--muted); font-size: 18px; }
.towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li { border: 1px solid var(--line); background: var(--paper); border-radius: 4px; padding: 8px 14px; font-weight: 600; }
.towns li:nth-child(-n+3) { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* FAQ */
.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq-intro p { color: var(--muted); }
.faq-intro a { color: var(--clay); font-weight: 700; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 10px; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; position: relative;
  font-family: var(--head); font-weight: 700; font-size: 21px; line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 12px; font-size: 30px; color: var(--clay); font-weight: 600; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* Estimate */
.estimate { background: var(--ink-2); position: relative; color: #e5e1da; border-top: 6px solid var(--yellow); }
.estimate-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.estimate h2 { color: var(--white); }
.estimate .eyebrow { color: var(--yellow); }
.estimate-copy > p { font-size: 18px; }
.estimate-phone { font-family: var(--head); font-weight: 700; font-size: 26px; color: var(--yellow); text-decoration: none; }

/* Footer */
.site-footer { background: #0c0c0c; color: #a9a59e; padding: 56px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 92px; width: auto; }
.site-footer h4 { color: var(--white); text-transform: uppercase; font-size: 18px; letter-spacing: 1px; }
.site-footer a { color: #d9d6d0; text-decoration: none; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: var(--yellow); }
.site-footer p { margin: 0 0 6px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid #262626; margin-top: 40px; padding-top: 22px; font-size: 13px; }

.mobile-cta { display: none; }

/* Thank-you page */
.thanks-hero { padding: 96px 0 104px; }
.thanks-hero .hero-shade { background: rgba(14,13,12,.8); }
.thanks-wrap { position: relative; max-width: 820px; text-align: center; }
.thanks-wrap .hero-sub { margin-left: auto; margin-right: auto; }
.thanks-wrap .hero-actions { justify-content: center; }
.nowrap { white-space: nowrap; }
.btn-label { text-align: center; }
.thanks-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--ink); margin: 0 auto 22px; }
.thanks-check svg { width: 32px; height: 32px; }
.steps.steps-3 { grid-template-columns: repeat(3, 1fr); }
.thanks-prep { background: var(--paper); }
.thanks-prep .checks { margin: 0; }

/* Responsive */
@media (max-width: 1080px) {
  .review-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .main-nav { display: none; }
  .hero-grid, .detail-grid, .area-grid, .faq-grid, .estimate-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .detail-photo { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .review-track { grid-auto-columns: 86%; gap: 14px; }
  .slider-arrows { display: none; }
  .reviews-head { margin-bottom: 24px; }
  body { font-size: 16px; }
  section { padding: 60px 0; }
  .wrap { padding: 0 16px; }
  .topbar .wrap { gap: 8px; font-size: 12px; flex-wrap: wrap; }
  .topbar span:nth-child(5), .topbar .sep:nth-child(4) { display: none; }
  .site-header .wrap { height: 66px; }
  .brand img { height: 46px; }
  .header-phone { font-size: 17px; padding: 9px 12px; }
  .header-phone span { display: none; }
  .header-phone svg { width: 20px; height: 20px; }
  .hero { padding: 44px 0 52px; }
  .hero-shade { background: rgba(14,13,12,.8); }
  .hero-sub { font-size: 18px; }
  .hero-actions .btn { flex: 1 1 100%; }
  /* The sticky bottom bar already has Call + Free Estimate, so drop the hero buttons on
     phones and let the survey sit higher. The thank-you hero keeps its call button. */
  .hero-copy .hero-actions { display: none; }
  .hero-copy .hero-points { margin-bottom: 0; }
  .lead-form { padding: 24px 18px 20px; }
  .lead-form .row { grid-template-columns: 1fr; gap: 0; }
  .proof-strip .wrap { grid-template-columns: 1fr 1fr; padding: 0; }
  .proof-item { border-left: 0; border-top: 1px solid rgba(0,0,0,.12); padding: 14px 16px; }
  .proof-item:nth-child(even) { border-left: 1px solid rgba(0,0,0,.12); }
  .proof-item strong { font-size: 18px; }
  .proof-item span { font-size: 13px; }
  .scope-compare, .steps, .steps.steps-3, .crew-grid { grid-template-columns: 1fr; }
  .thanks-hero { padding: 56px 0 64px; }
  .thanks-hero h1 { font-size: 40px; }
  .mobile-cta.single { grid-template-columns: 1fr; }
  .scope-col { padding: 24px 20px 10px; }
  .work-grid { grid-auto-rows: 150px; gap: 6px; }
  .work-grid figcaption { font-size: 12px; padding: 20px 8px 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 60; background: var(--ink); padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  .mobile-cta .btn { padding: 12px 10px; font-size: 17px; }
  .site-footer { padding-bottom: 96px; }
}
