/* ============================================================
   Land Improvement Services, LLC — Site Stylesheet
   Design language: topographic / grading-plan aesthetic.
   Contour lines stand in for the site's actual work: reading
   and reshaping elevation.
   ============================================================ */

:root {
  --soil-dark: #241f1a;
  --soil-dark-2: #2f2a23;
  --paper: #e9e2cd;
  --paper-2: #ded4b8;
  --charcoal: #1c1813;
  --rust: #b8502c;
  --rust-dark: #93401f;
  --olive: #5c6a3f;
  --olive-dark: #454f2f;
  --cream-text: #f1ead9;
  --line-faint: rgba(28, 24, 19, 0.14);
  --line-faint-dark: rgba(241, 234, 217, 0.16);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; max-width: 62ch; }

a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--rust);
  display: inline-block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95em 1.6em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--rust);
  color: var(--cream-text);
}
.btn-primary:hover { background: var(--rust-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn-outline:hover { background: var(--charcoal); color: var(--paper); border-color: var(--charcoal); }
.on-dark .btn-outline:hover { background: var(--paper); color: var(--soil-dark); border-color: var(--paper); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--soil-dark);
  color: var(--cream-text);
  border-bottom: 1px solid rgba(241,234,217,0.12);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  font-family: var(--font-display);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-text);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand strong { font-size: 1.2rem; }
.brand span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--rust);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}
.main-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-text);
  opacity: 0.8;
  position: relative;
  padding: 0.3em 0;
}
.main-nav a:hover, .main-nav a.active { opacity: 1; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--rust);
}
.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cream-text);
  text-decoration: none;
  border: 1px solid rgba(241,234,217,0.4);
  padding: 0.55em 1.1em;
  letter-spacing: 0.04em;
}
.nav-cta:hover { border-color: var(--rust); color: var(--rust); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(241,234,217,0.4);
  color: var(--cream-text);
  font-family: var(--font-mono);
  padding: 0.5em 0.8em;
  cursor: pointer;
}

/* ---------- Contour divider ---------- */
.contour-divider {
  display: block;
  width: 100%;
  height: 42px;
  line-height: 0;
}
.contour-divider svg { width: 100%; height: 100%; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--soil-dark);
  color: var(--cream-text);
  overflow: hidden;
  padding: 6.5rem 0 5rem;
}
.hero .topo-bg {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
}
.hero .topo-bg svg { width: 100%; height: 100%; }
.hero-inner { position: relative; z-index: 2; max-width: 760px; }
.hero p.lede {
  font-size: 1.15rem;
  color: var(--paper-2);
  max-width: 54ch;
}
.hero-actions { display: flex; gap: 1rem; margin-top: 2.2rem; flex-wrap: wrap; }

.hero-coords {
  position: relative;
  z-index: 2;
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem 2rem;
  max-width: 900px;
  border-top: 1px solid rgba(241,234,217,0.18);
  padding-top: 1.8rem;
}
.hero-coords div { font-family: var(--font-mono); }
.hero-coords .val { font-size: 1.5rem; color: var(--rust); display: block; }
.hero-coords .lbl { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--paper-2); opacity: 0.75; }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.section-tight { padding: 3.2rem 0; }
.on-dark { background: var(--soil-dark); color: var(--cream-text); }
.on-olive { background: var(--olive-dark); color: var(--cream-text); }
.on-paper-2 { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: 2.8rem; }
.section-head p { color: inherit; opacity: 0.85; }

/* ---------- Services grid ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--line-faint);
  border: 1px solid var(--line-faint);
}
.service-card {
  background: var(--paper);
  padding: 2rem 1.8rem;
}
.service-card .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--rust);
  letter-spacing: 0.08em;
}
.service-card h3 { margin-top: 0.6em; }
.service-card p { font-size: 0.95rem; margin-bottom: 0; opacity: 0.85; }

/* ---------- Process / list ---------- */
.process-list { list-style: none; margin: 0; padding: 0; }
.process-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.4rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-faint-dark);
}
.process-list li:last-child { border-bottom: 1px solid var(--line-faint-dark); }
.process-list .step-num { font-family: var(--font-mono); color: var(--rust); font-size: 0.95rem; }
.process-list h3 { margin-bottom: 0.3em; }
.process-list p { margin-bottom: 0; opacity: 0.85; }

/* ---------- Cards / feature strip ---------- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.feature-strip .stat { font-family: var(--font-mono); font-size: 2.2rem; color: var(--rust); }
.feature-strip .lbl { font-size: 0.85rem; letter-spacing: 0.04em; opacity: 0.85; }

/* ---------- Area map note ---------- */
.area-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) { .area-block { grid-template-columns: 1fr; } }

.area-diagram { position: relative; }
.area-diagram svg { width: 100%; height: auto; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--rust);
  color: var(--cream-text);
  padding: 3.5rem 0;
  text-align: center;
}
.cta-band h2 { margin-bottom: 0.4em; }
.cta-band p { margin: 0 auto 1.6em; opacity: 0.92; }
.cta-band .btn-outline { border-color: rgba(241,234,217,0.6); }
.cta-band .btn-outline:hover { background: var(--cream-text); color: var(--rust); border-color: var(--cream-text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--soil-dark);
  color: var(--paper-2);
  padding: 3.5rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--rust);
  margin-bottom: 0.9em;
}
.footer-grid a { text-decoration: none; opacity: 0.85; }
.footer-grid a:hover { opacity: 1; color: var(--rust); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5em; }
.footer-bottom {
  border-top: 1px solid rgba(241,234,217,0.12);
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* ---------- Forms ---------- */
.quote-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
}
@media (max-width: 860px) { .quote-layout { grid-template-columns: 1fr; } }

form.quote-form {
  display: grid;
  gap: 1.3rem;
}
.field { display: grid; gap: 0.45em; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.85em 1em;
  border: 1px solid rgba(28,24,19,0.3);
  background: var(--paper);
  color: var(--charcoal);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-group { display: flex; flex-wrap: wrap; gap: 0.7em 1.4em; }
.checkbox-group label {
  display: flex; align-items: center; gap: 0.5em;
  font-family: var(--font-body); text-transform: none; letter-spacing: normal; font-size: 0.95rem; opacity: 1;
}
.form-note { font-family: var(--font-mono); font-size: 0.78rem; opacity: 0.65; margin-top: 0.3rem; }

/* ---------- Photo placeholder ---------- */
.photo-frame {
  position: relative;
  aspect-ratio: 4/3;
  border: 1px dashed rgba(28,24,19,0.35);
  background: repeating-linear-gradient(135deg, rgba(28,24,19,0.04) 0 10px, transparent 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.on-dark .photo-frame, .on-olive .photo-frame {
  border-color: rgba(241,234,217,0.3);
  background: repeating-linear-gradient(135deg, rgba(241,234,217,0.05) 0 10px, transparent 10px 20px);
}
.photo-frame span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame.has-photo { border: none; background: none; padding: 0; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-grid figure {
  margin: 0;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-cat { margin-bottom: 3.5rem; }
.gallery-cat h3 { margin-bottom: 1.2rem; }

/* ---------- Video ---------- */
.video-frame {
  width: 100%;
  max-width: 780px;
  aspect-ratio: 16/9;
  background: var(--soil-dark);
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

.contact-card {
  background: var(--soil-dark);
  color: var(--cream-text);
  padding: 2.4rem;
}
.contact-card .eyebrow { color: var(--rust); }
.contact-card a.big-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--cream-text);
  text-decoration: none;
  margin: 0.2em 0 1em;
}
.contact-card a.big-link:hover { color: var(--rust); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: var(--soil-dark);
    padding: 1.5rem;
    gap: 1.2rem;
    border-top: 1px solid rgba(241,234,217,0.12);
  }
  .nav-cta { align-self: flex-start; }
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--rust); color: var(--cream-text);
  padding: 0.8em 1.2em; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
