/* Desert West Land Surveys — site stylesheet */
:root {
  --ink: #1b1f23;
  --ink-2: #2a3036;
  --paper: #f7f4ee;
  --sand: #ede6d8;
  --sand-2: #e3d9c6;
  --line: #d6ccba;
  --muted: #545a60;
  --red: #b3241c;
  --red-dark: #8c1b15;
  --sage: #56634a;
  --white: #ffffff;
  --color-destructive: #a3160f;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --radius-control: var(--radius-md);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --gutter: clamp(20px, 5vw, 72px);
  --shadow: 0 1px 2px rgba(27, 31, 35, .06), 0 8px 24px rgba(27, 31, 35, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.kicker {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 14px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.wrap { padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #e9e5dc; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink .kicker { color: #c9b98f; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 40px; }
.section-head p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--sans);
  padding: 15px 24px;
  border-radius: var(--radius-control);
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: inherit; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; padding-bottom: 1px; }

/* Top bar + header */
.topbar {
  background: var(--ink); color: #d8d3c8;
  font-size: .85rem;
  display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: space-between; align-items: center;
  padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__phones { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__phones span { color: #a9a397; font-weight: 400; margin-right: 6px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 238, .96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: contain; mix-blend-mode: multiply; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; line-height: 1.05; color: var(--red); display: block; }
.brand__sub { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
.nav .btn { padding: 12px 18px; color: #fff; }
.nav .btn:hover { color: #fff; }
.nav .btn[aria-current="page"], .nav .btn[aria-current="page"]:hover { color: #fff; box-shadow: none; background: var(--red-dark); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-control);
  padding: 10px 12px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer;
}

@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin-top: 16px; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,23,26,.88) 0%, rgba(20,23,26,.7) 40%, rgba(20,23,26,.15) 75%, rgba(20,23,26,0) 100%),
              linear-gradient(0deg, rgba(20,23,26,.55) 0%, rgba(20,23,26,0) 45%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: clamp(48px, 7vw, 88px); max-width: 860px; }
.hero .kicker { color: #e3cf9c; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: #ece8df; max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: flex-start; }
.hero__call { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero__call span { color: #fff; font-size: 1rem; }
.hero__actions .btn--ghost { color: #fff; }
@media (max-width: 720px) {
  .hero::after { background: linear-gradient(0deg, rgba(20,23,26,.92) 0%, rgba(20,23,26,.65) 60%, rgba(20,23,26,.35) 100%); }
  .hero { min-height: 640px; }
}

/* Page hero (inner pages) */
.page-hero { background: var(--sand); border-bottom: 1px solid var(--line); padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 20ch; }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); background: var(--white); }
.trust__item { padding: 26px var(--gutter); padding-right: 20px; border-right: 1px solid var(--line); display: flex; gap: 16px; align-items: center; }
.trust__item:last-child { border-right: 0; }
.trust__item img { width: 52px; height: 66px; object-fit: contain; flex: none; }
.trust__item strong { display: block; font-size: 1rem; }
.trust__item span { color: var(--muted); font-size: .9rem; }
.trust__item svg { flex: none; color: var(--red); }
@media (max-width: 980px) {
  .trust { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; }
  .trust__item { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--paper); padding: 30px 28px 28px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px; transition: background .15s;
}
.card:hover { background: var(--white); color: var(--ink); }
.card__num { font-family: var(--mono); font-size: .78rem; color: var(--sage); letter-spacing: .06em; }
.card h3 { margin: 0; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__more { margin-top: auto; padding-top: 10px; color: var(--red); font-weight: 600; font-size: .95rem; }
.card__symbol { display: grid; place-items: center; min-height: 200px; background: var(--line); color: var(--sage); }
.card__symbol svg { width: 148px; max-width: 65%; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.step { border-top: 2px solid #c9b98f; padding-top: 22px; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: #c9b98f; font-size: .9rem; display: block; margin-bottom: 10px; }
.step p { color: #cfc9bd; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 28px 32px; }
.area h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; margin-bottom: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.area p { color: var(--muted); font-size: .95rem; margin: 0; }
.area-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.area-chips li { border: 1px solid var(--line); background: var(--white); padding: 8px 14px; border-radius: var(--radius-control); font-weight: 500; font-size: .95rem; }

/* Two column split */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* Reviews */
.quotes { columns: 3 320px; column-gap: 24px; }
.quote {
  break-inside: avoid; margin: 0 0 24px; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 26px 22px; box-shadow: var(--shadow);
}
.quote blockquote { margin: 0 0 16px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.55; }
.quote figcaption { font-weight: 600; font-size: .95rem; }
.quote figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.stars { color: var(--red); letter-spacing: 2px; font-size: .95rem; margin-bottom: 10px; }

/* Services detail */
.svc-group { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); padding: 44px 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.svc-group:first-of-type { border-top: 0; padding-top: 0; }
.svc-group h2 { font-size: 1.6rem; }
.svc-group > div:first-child p { color: var(--muted); }
.svc-list { display: grid; gap: 0; }
.svc { padding: 18px 0; border-bottom: 1px solid var(--line); }
.svc:first-child { padding-top: 0; }
.svc h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; margin-bottom: 4px; }
.svc p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .svc-group { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px; }
.member img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: var(--radius-lg); background: var(--sand-2); }
.member h3 { margin: 16px 0 2px; font-size: 1.2rem; }
.member p { margin: 0; color: var(--muted); font-size: .95rem; }
.awards { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.awards figure { margin: 0; display: flex; gap: 16px; align-items: center; }
.awards img { width: 96px; height: 120px; object-fit: contain; }
.awards figcaption { font-size: .95rem; color: var(--muted); max-width: 22ch; }
.awards figcaption strong { color: var(--ink); display: block; }

/* Why page */
.reasons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.reasons li { background: var(--paper); padding: 26px; }
.reasons h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.reasons p { margin: 0; color: var(--muted); font-size: .97rem; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius-lg); background: #000; }
.news { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 32px; }
.news a {
  display: block; text-decoration: none; color: #fff; padding: 26px; border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-lg); transition: border-color .15s, background .15s;
}
.news a:hover { border-color: #c9b98f; background: rgba(255,255,255,.04); color: #fff; }
.news .src { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: #c9b98f; display: block; margin-bottom: 10px; }
.news strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; display: block; line-height: 1.3; }
.news .go { display: block; margin-top: 14px; color: #e9e5dc; font-size: .93rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.contact-grid > div { background: var(--white); padding: 28px; }
.contact-grid h2 { font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }
.contact-grid p { margin: 0 0 6px; }
.contact-grid .big { font-size: 1.2rem; font-weight: 600; }
.contact-grid a { text-decoration: none; }
.contact-grid .label { color: var(--muted); font-size: .9rem; display: block; }
@media (max-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.map { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.2); }

/* CTA band */
.cta-band { background: var(--red); color: #fff; display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #f7dcd9; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--red-dark); }
.cta-band .btn:hover { background: var(--paper); color: var(--red-dark); }

/* Quote form */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .quote-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--red); margin-left: 2px; }
.field input, .field select, .field textarea {
  font: 400 1rem/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid #c8bea9; border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 3px rgba(179, 36, 28, .18); }
.field [aria-invalid="true"] { border-color: var(--color-destructive); }
.field .help { font-size: .88rem; color: var(--muted); margin: 0; }
.field .err { font-size: .88rem; color: var(--color-destructive); margin: 0; font-weight: 600; }
.field .other-input { margin-top: 8px; }
.form-error { color: var(--color-destructive); font-weight: 600; margin: 20px 0 0; }
.form-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-actions small { color: var(--muted); }
.form-status { color: var(--muted); }
.thanks { text-align: left; }
.thanks h2 { color: var(--sage); }
.aside-box { border-left: 3px solid var(--red); padding: 4px 0 4px 22px; margin-bottom: 36px; }
.aside-box h2 { font-size: 1.25rem; }
.aside-box ul { margin: 0; padding-left: 18px; color: var(--muted); }
.aside-box li { margin-bottom: 6px; }
.aside-box .big { font-size: 1.25rem; font-weight: 700; text-decoration: none; display: block; }

/* Footer */
.footer { background: var(--ink); color: #c9c4b9; padding-top: 64px; padding-bottom: 32px; font-size: .95rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h2 { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: #c9b98f; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer__brand { font-family: var(--serif); font-size: 1.35rem; color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; font-size: .85rem; color: #9d988d; }
.footer__base .coords { font-family: var(--mono); letter-spacing: .04em; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08);
  }
  .callbar a { text-align: center; padding: 15px 8px; font-weight: 700; text-decoration: none; }
  .callbar a:first-child { background: var(--white); color: var(--ink); }
  .callbar a:last-child { background: var(--red); color: #fff; }
  body { padding-bottom: 54px; }
  .topbar__hours { display: none; }
}