/* Superior Home Setters: public site. Pine, slate and adobe after the San
   Luis Valley; Barlow (a road-sign face) for a trade that lives on trucks. */
:root {
  --pine: #1d3a31;
  --pine-2: #27493e;
  --pine-3: #335c4f;
  --slate: #23272b;
  --adobe: #c4582f;
  --adobe-2: #a9461f;
  --sand: #f3ebdd;
  --cream: #fbf7f0;
  --ink: #1c1f22;
  --muted: #5b6168;
  --line: #e2d8c6;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(20 30 25 / 6%), 0 8px 24px rgb(20 30 25 / 8%);
  --head: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--pine-3); }
h1, h2, h3 { font-family: var(--head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 700; text-transform: uppercase; text-wrap: balance; }
h3 { font-size: 1.4rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--adobe); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--adobe); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--adobe); color: #fff; }
.btn-primary:hover { background: var(--adobe-2); }
.btn-ghost { border-color: rgb(255 255 255 / 55%); color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / 12%); border-color: #fff; }
.btn-call { background: var(--pine); color: #fff; white-space: nowrap; }
.btn-call:hover { background: var(--pine-3); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 247 240 / 92%);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font: 800 1.45rem/1 var(--head); text-transform: uppercase; letter-spacing: .02em; color: var(--pine); }
.brand-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.nav a:hover { color: var(--adobe); }

@media (max-width: 900px) {
  .nav { display: none; }
  .btn-call { margin-left: auto; }
}
@media (max-width: 560px) {
  .brand-sub { display: none; }
  .brand-name { font-size: 1.15rem; }
  .brand img { width: 36px; height: 36px; }
  .btn-call span { display: none; }
  .btn-call { padding: .75em; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #16302a 0%, var(--pine) 55%, var(--pine-2) 100%);
  color: #fff;
  padding: clamp(44px, 6vw, 84px) 0 clamp(170px, 25vw, 330px);
}
.hero-art { position: absolute; inset: auto 0 0 0; width: 100%; height: clamp(200px, 31vw, 450px); object-fit: cover; object-position: 70% 100%; z-index: -1; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-photo { padding-bottom: clamp(80px, 12vw, 150px); }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(15 30 25 / 88%) 0%, rgb(15 30 25 / 60%) 55%, rgb(15 30 25 / 25%) 100%);
}
.hero-inner { max-width: 1160px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-weight: 800; text-transform: uppercase;
  max-width: 17ch; margin-bottom: .35em; text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgb(255 255 255 / 10%); border: 1px solid rgb(255 255 255 / 18%);
  padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #f6d9c8;
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 54ch; color: rgb(255 255 255 / 88%); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--slate); color: #e9e4da; }
.trust-row {
  list-style: none; padding: 18px 0; margin-block: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.trust svg { color: #e8916b; flex: none; }
@media (max-width: 900px) { .trust-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .trust-row { grid-template-columns: 1fr; gap: 10px; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 820px; margin-bottom: 40px; }
.section-head p:not(.kicker) { color: var(--muted); }
.kicker {
  font: 700 .85rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase;
  color: var(--adobe-2); margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--adobe); border-radius: 2px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgb(20 30 25 / 6%), 0 16px 36px rgb(20 30 25 / 12%); }
.service p { color: var(--muted); margin: 0; }
.service-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px;
  background: var(--sand); color: var(--pine); margin-bottom: 18px;
}
.service-img { width: calc(100% + 56px); max-width: none; margin: -28px -28px 20px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }

/* Process */
.process { background: var(--pine); color: #fff; position: relative; }
.process h2 { color: #fff; }
.process .kicker { color: #f0a988; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { border-top: 3px solid var(--adobe); padding-top: 20px; }
.step-n { font: 800 3rem/1 var(--head); color: rgb(255 255 255 / 22%); display: block; margin-bottom: 8px; }
.step p { color: rgb(255 255 255 / 80%); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); height: 100%; }
.gallery a { display: block; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { padding: 14px 18px 18px; display: grid; gap: 2px; }
.gallery figcaption strong { font: 700 1.2rem/1.2 var(--head); }
.gallery figcaption span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .92rem; }
.gallery figcaption small { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.empty {
  display: flex; align-items: center; gap: 28px; padding: 36px;
  background: #fff; border: 2px dashed var(--line); border-radius: var(--radius);
}
.empty p { margin: 0; color: var(--muted); max-width: 46ch; }
.empty strong { color: var(--ink); display: block; font-size: 1.1rem; }
@media (max-width: 560px) { .empty { flex-direction: column; text-align: center; padding: 28px 20px; } }

/* About */
.about { background: var(--sand); }
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-grid > div p { font-size: 1.1rem; color: #3a3f44; max-width: 62ch; }
.about-card { background: var(--pine); color: #fff; padding: 32px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat { font-size: 1rem; color: rgb(255 255 255 / 80%); }
.stat span { display: block; font: 800 4rem/1 var(--head); color: #f0a988; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checks svg { color: #f0a988; flex: none; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Service area */
.towns { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towns li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; color: var(--pine);
}

/* Testimonials */
.testimonials { background: var(--sand); }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.quotes blockquote { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quotes svg { color: var(--adobe); }
.quotes p { font-size: 1.1rem; margin: 10px 0 14px; }
.quotes footer { font-weight: 700; color: var(--pine); }

/* Quote form */
.quote { background: linear-gradient(180deg, var(--cream), var(--sand)); }
.quote-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-card > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact-list svg { color: var(--adobe); flex: none; }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--adobe); }
.form-card { background: #fff; border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row .field { min-width: 0; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
label { font-weight: 600; font-size: .95rem; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid #cfc5b3; border-radius: 10px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pine-3); box-shadow: 0 0 0 3px rgb(51 92 79 / 20%); }
textarea { resize: vertical; }
.hint { font-size: .88rem; color: var(--muted); margin: -8px 0 16px; }
.form-error { background: #fbe7e0; color: #8a2d12; border: 1px solid #f0bfae; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { text-align: center; padding: 48px 28px; }
.sent-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: #e3efe8; color: var(--pine-3); margin-bottom: 14px; }
@media (max-width: 860px) { .quote-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: #cfc9be; padding: 40px 0; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.brand-footer .brand-name { color: #fff; }
.brand-footer .brand-sub { color: #a9a397; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: #f0a988; }
.fine { margin: 0 0 0 auto; font-size: .9rem; }
@media (max-width: 700px) { .fine { margin-left: 0; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgb(10 14 12 / 92%);
  display: grid; place-items: center; padding: 24px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1200px, 100%); }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 8px; }
.lightbox figcaption { color: #eee; text-align: center; margin-top: 12px; }
.lightbox-close {
  position: absolute; top: 14px; right: 18px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / 12%); color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgb(255 255 255 / 22%); }
