/* Prairie Refresh trade starter — palette/fonts come from theme.css (written by build.py from site.config.json). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--font-body);
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-family: var(--font-head); }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--paper); padding: 12px 16px;
  border-radius: var(--radius); font-weight: 700;
}
.skip:focus { top: 12px; }

.preview-banner {
  background: var(--tint); color: var(--ink); text-align: center;
  font: 600 .9rem/1.35 var(--font-body); padding: 8px 16px;
}
.preview-banner p { margin: 0; }

.site-header {
  background: var(--header-bg); color: var(--header-fg);
  position: sticky; top: 0; z-index: 30;
  border-bottom: 1px solid color-mix(in srgb, var(--header-fg) 20%, transparent);
}
.header-row { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--header-fg); min-height: 44px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--accent); color: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem/1 var(--font-head);
}
.brand-name { font: 700 1.05rem/1.2 var(--font-head); }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--header-fg); text-decoration: none; font-weight: 500; border-radius: var(--radius);
}
.site-nav a:hover { background: color-mix(in srgb, var(--header-fg) 10%, transparent); color: var(--header-fg); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px;
  min-width: 48px; min-height: 48px; flex-shrink: 0; box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--header-fg) 40%, transparent);
  background: transparent; border-radius: var(--radius); cursor: pointer;
  padding: 13px 12px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--header-fg); border-radius: 2px; }

.btn-call-icon { flex-shrink: 0; display: block; }
.btn-call-header { gap: 6px; white-space: nowrap; }
.btn-call-header-short { display: none; }
@media (max-width: 479px) {
  .btn-call-header-long { display: none; }
  .btn-call-header-short { display: inline; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: var(--radius);
  font: 700 1rem/1.1 var(--font-body); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-call { background: var(--btn-primary-bg, var(--accent)); color: var(--btn-primary-fg, var(--paper)); }
.btn-call:hover { filter: brightness(0.92); color: var(--btn-primary-fg, var(--paper)); }
.btn-call-on-dark { background: var(--btn-on-dark-bg); color: var(--btn-on-dark-fg); filter: none; }
.btn-call-on-dark:hover, .btn-call-on-dark:focus-visible { background: var(--btn-on-dark-hover-bg); color: var(--btn-on-dark-fg); filter: none; }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { background: var(--tint); color: var(--ink); }
.btn-on-dark { background: var(--paper); color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.2rem 0 0; }

.hero { padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.hero-card {
  background: var(--tint); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: 28px; min-height: 220px;
}
.chips { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--tint); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font-size: .92rem; min-height: 44px; display: inline-flex; align-items: center;
}

.section { padding: clamp(48px, 7vw, 80px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.eyebrow {
  font: 600 .875rem/1.4 var(--font-body); text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin: 0 0 .6rem;
}
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; text-decoration: none; color: inherit; display: block; min-height: 44px;
}
.card:hover { border-color: var(--accent); }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; }

.page-hero { background: var(--header-bg); color: var(--header-fg); padding: 48px 0 40px; }
.page-hero h1, .page-hero .sub { color: var(--header-fg); }
.page-hero .sub { opacity: .9; max-width: 54ch; }
.crumbs { font-size: .9rem; opacity: .8; margin-bottom: 12px; }
.crumbs a { color: var(--header-fg); }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.2rem; }

.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 10px; background: var(--paper);
}
.faq summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.faq p { margin: .6rem 0 0; color: var(--muted); }

.cta {
  background: var(--header-bg); color: var(--header-fg);
  padding: clamp(40px, 6vw, 64px) 0;
}
.cta h2, .cta p { color: var(--header-fg); }
.cta-inner { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }

.quote-form { max-width: 560px; }
.form-grid { display: grid; gap: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius); font: inherit; background: var(--paper); color: var(--ink);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .92rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.site-footer {
  background: var(--header-bg); color: var(--header-fg); padding: 48px 0 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.site-footer a { color: var(--header-fg); }
.site-footer h2 { font-size: 1rem; color: var(--header-fg); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-preview { margin-top: 24px; opacity: .75; font-size: .9rem; }

@media (max-width: 900px) {
  .hero-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--header-bg); padding: 12px 20px 20px; border-bottom: 1px solid color-mix(in srgb, var(--header-fg) 20%, transparent);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-header .wrap.header-row {
    width: 100%;
    max-width: 100%;
    padding-inline: 20px;
    box-sizing: border-box;
    gap: 8px;
  }
  .brand { min-width: 0; flex: 1 1 auto; }
  .header-cta {
    flex-shrink: 0;
    margin-left: 0;
  }
  .header-cta .btn-call-header {
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
    padding: 0 10px;
    font-size: 1rem;
  }
  .brand-name { font-size: 0.95rem; }
  .brand-logo-badge { padding: 4px 6px; }
  .brand-logo-badge img { max-width: 96px; }
}
.hero-art{padding:0;overflow:hidden}.hero-svg{display:block;width:100%;height:auto}
.hero-photo{padding:0;max-width:640px;margin-inline:auto;border:1px solid var(--line);border-radius:calc(var(--radius) + 2px);overflow:hidden;background:var(--tint)}
.hero-photo img{width:auto;max-width:min(100%,640px);height:auto;display:block;margin-inline:auto}
.img-native{max-width:100%;height:auto;width:auto;display:block}
.img-cap{display:block;max-width:100%;width:fit-content}
.thumb-mat img{width:auto;max-width:100%;height:auto}
.booking-banner{background:var(--tint);color:var(--ink);text-align:center;font:600 .95rem/1.35 var(--font-body);padding:10px 16px;border-bottom:1px solid var(--line)}
.booking-banner p{margin:0}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:12px}
.gallery-item{margin:0;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:var(--paper);aspect-ratio:var(--gallery-ar,4/3);display:flex;flex-direction:column;align-items:center;justify-content:center}
.gallery-item img{width:auto;max-width:min(100%,var(--img-max,100%));height:auto;max-height:100%;display:block;margin-inline:auto}
.gallery-item figcaption{padding:8px 10px;font-size:.85rem;color:var(--muted)}
.panel-sandstone{background:var(--tint);border:1px solid color-mix(in srgb,var(--ink) 12%,var(--tint));border-radius:var(--radius);padding:22px}
/* Dark page-hero: secondary button must stay AA on --header-bg (craft-log 2026-10-10). */
.page-hero .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.page-hero .btn-secondary:hover, .page-hero .btn-secondary:focus-visible { background: #fff; color: var(--header-bg); border-color: #fff; }
.page-hero .btn-secondary:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.page-hero .eyebrow, .page-hero .crumbs a { color: var(--header-fg); }
.brand:hover, .brand:focus-visible { color: var(--header-fg); }
.nav-toggle { color: var(--header-fg); }
/* DMS Landscaping — layout, R1 first screen, typography */

h1, .page-hero h1 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 400; }
.section-head h2, .section h2 { font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: 0.02em; font-weight: 400; text-transform: uppercase; }
.card h3 { font-family: var(--font-body); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; text-transform: none; }

.brand-logo-badge { display: inline-flex; background: var(--paper); padding: 6px 10px; border-radius: 2px; line-height: 0; flex-shrink: 0; }
.brand-logo-img, .brand-logo-badge img { width: auto; max-width: 119px; height: 40px; max-height: 40px; object-fit: contain; object-position: left center; }
@media (min-width: 801px) {
  .brand-logo-badge img { height: 44px; max-height: 44px; }
}

/* R1 first screen (mobile) — hero + call CTA on first screen; sticky call bar restored Oct 22 per CoS (R1) */
@media (max-width: 800px) {
  :root {
    --r1-chrome-top: 168px;
  }
  .r1-first {
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }
  .r1-first--home {
    min-height: auto;
    max-height: none;
    overflow: visible;
  }
  .r1-first--page {
    min-height: auto;
    max-height: none;
    overflow: visible;
  }
  .r1-first > .hero,
  .r1-first > .page-hero {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-bottom: 1px solid var(--line);
  }
  .r1-first--home > .hero {
    flex: 0 1 auto;
    min-height: 0;
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 16px;
    background: var(--paper);
  }
  .r1-first--page > .page-hero {
    flex: 0 0 auto;
    min-height: 0;
    padding: clamp(28px, 5vw, 44px) 20px clamp(28px, 5vw, 44px);
    background: var(--header-bg);
    color: var(--header-fg);
  }
  .r1-first .actions,
  .r1-first .page-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .r1-first .btn-call {
    width: 100%;
    min-height: 52px;
    white-space: nowrap;
  }
  .r1-first__inner {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    box-sizing: border-box;
  }
  .r1-first__inner.wrap {
    width: 100%;
    max-width: min(1100px, 100%);
  }
  .r1-first--home .hero.hero-compact { padding-top: 0; padding-left: 0; padding-right: 0; }
  .r1-first--home .hero-grid {
    flex: 0 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    overflow: visible;
    padding: 12px 20px 0;
  }
  .r1-first--home .hero-photo { display: none !important; }
  .r1-first--home .hero-mobile-photo {
    display: flex;
    flex-direction: column;
  }
  .r1-first--home .hero-mobile-photo[style*="--hero-photo-url"] {
    background-image: none;
    position: relative;
  }
  .r1-first--home .hero-mobile-photo[style*="--hero-photo-url"]::before {
    content: "";
    display: block;
    width: 100%;
    height: min(
      calc(100vw * 480 / 640 * 1.3),
      624px,
      calc(100svh - var(--r1-chrome-top) - 13rem),
      /* R1: hero clears the 56px call bar (+12px gap, +8px air) */
      calc(100svh - 530px - env(safe-area-inset-bottom, 0px))
    );
    flex-shrink: 0;
    background-image: linear-gradient(rgba(28, 25, 23, 0.78), rgba(28, 25, 23, 0.78)), var(--hero-photo-url);
    background-size: cover;
    background-position: center;
  }
  @media (max-width: 420px) and (max-height: 700px) {
    .r1-first--home .hero-mobile-photo[style*="--hero-photo-url"]::before {
      height: min(
        calc(100vw * 480 / 640 * 1.3),
        calc(100svh - var(--r1-chrome-top) - 21rem)
      );
    }
    .r1-first--home .hero-grid { padding-top: 8px; }
    .r1-first--home .hero-copy { padding: 12px; }
    .r1-first--home .hero-copy h1 { font-size: 1.35rem; line-height: 1.08; margin-bottom: 0.2em; }
    .r1-first--home .hero-copy .lead { font-size: 0.88rem; line-height: 1.35; margin-bottom: 0; }
    .r1-first--home .actions { margin-top: 0.35rem; gap: 4px; }
  }
  .r1-first--home .hero-copy {
    background: rgba(28, 25, 23, 0.84);
    padding: 16px 14px;
    border-radius: var(--radius);
    margin-top: 0;
  }
  .r1-first--home .hero-copy .eyebrow { color: #fafaf9; }
  .r1-first--home .hero-copy h1,
  .r1-first--home .hero-copy .lead { color: #fafaf9; }
  .r1-first--home .hero-copy .btn-secondary {
    color: #1c1917;
    background: #d6c7a1;
    border-color: #d6c7a1;
  }
  .r1-first--home .hero-copy .btn-secondary:hover,
  .r1-first--home .hero-copy .btn-secondary:focus-visible {
    background: #fafaf9;
    color: #1c1917;
    border-color: #fafaf9;
  }
  .r1-first--home .actions { margin-top: 0.5rem; gap: 6px; }
  @media (max-width: 400px) {
    .r1-first--home .hero-copy h1 { font-size: 1.45rem; line-height: 1.08; }
    .r1-first--home .actions .btn-secondary { padding: 8px 10px; font-size: 1rem; min-height: 44px; }
  }
  .section-services-tight > .wrap > .booking-banner {
    margin: 0 0 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--line);
  }
}

@media (min-width: 801px) {
  .r1-first {
    min-height: 0;
    max-height: none;
    overflow: visible;
    display: block;
  }
  .r1-first > .hero,
  .r1-first > .page-hero {
    display: block;
    padding: 0;
  }
  .r1-first--home .hero-mobile-photo[style*="--hero-photo-url"] { background-image: none; }
  .r1-first--home .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
  .r1-first--home .hero-photo { display: block !important; }
}

.hero-compact { padding: clamp(16px, 3vw, 32px) 0; }
.hero-compact .lead { font-size: 1.02rem; margin-bottom: 0; }
.page-hero-compact { padding: clamp(32px, 5vw, 48px) 0 clamp(36px, 4vw, 44px); }
.page-hero-compact .sub { font-size: 1rem; margin-bottom: 0; }
@media (min-width: 801px) {
  .hero-compact { padding: clamp(20px, 3.5vw, 40px) 0; }
  .section-services-tight { padding: clamp(48px, 6vw, 72px) 0 36px; }
  .section-recent { padding: 28px 0 36px; }
  .section-tight { padding: 36px 0; }
  .section-tint { padding: 32px 0 16px; }
  .cta { padding: 16px 0 clamp(40px, 6vw, 56px); }
  .quote-steps { gap: 10px; }
  .quote-steps li { padding: 14px 16px; }
  .section-gallery-body { padding-top: 28px; }
  .section-contact { padding-top: 24px; }
  .section-head { margin-bottom: 16px; }
  .page-hero-compact { padding: clamp(32px, 5vw, 48px) 0 clamp(28px, 4vw, 40px); }
}

.section-services-tight { padding: clamp(28px, 4vw, 40px) 0 24px; }
.section-services-tight > .wrap > .chips { margin: 0 0 1rem; }
.section-recent { padding: 24px 0 clamp(28px, 4vw, 40px); }
.section-tight { padding: clamp(28px, 4vw, 40px) 0; }
.section-contact { padding-top: 28px; }
.page-end { padding-bottom: clamp(28px, 4vw, 48px); }

.recent-work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 801px) { .recent-work-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.thumb-mat { margin: 0; padding: 8px; background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); max-width: 100%; }
.thumb-link { display: block; text-decoration: none; color: inherit; min-height: 44px; }
.card-with-thumb { display: flex; flex-direction: column; gap: 12px; }
.card-with-thumb .thumb-mat { max-width: min(160px, 100%); }

.quote-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 801px) { .quote-steps { grid-template-columns: repeat(3, 1fr); } }
.quote-steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.quote-steps strong { display: block; font-size: 1rem; margin-bottom: 6px; }
.quote-steps span { color: var(--muted); font-size: 0.95rem; }

.service-split { display: grid; gap: 20px; }
@media (min-width: 801px) {
  .service-split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: start; gap: 28px; }
  .service-split-photos { display: grid; gap: 12px; }
}
.service-split-photos { display: none; }
.service-split-copy h2 { margin-top: 0; }
.service-facts { font-size: 17px; line-height: 1.5; margin: 0 0 1rem; padding: 0; list-style: none; }
.service-facts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.service-facts li:last-child { border-bottom: 0; }
.gallery-more { margin: 0; font-weight: 600; }

.booking-banner a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.section-lead { margin: -0.25rem 0 0; font-size: 0.95rem; }

@media (max-width: 800px) {
  .page-hero-compact h1 { font-size: clamp(1.45rem, 6vw, 2rem); line-height: 1.1; }
  .page-hero-compact .sub { line-height: 1.35; margin-bottom: 0.65rem; }
  .page-hero-actions { margin-top: 0.5rem; }
  .hero-compact { padding: 12px 0 10px; }
  .hero-compact .lead { font-size: 0.95rem; line-height: 1.45; }
  .hero-compact h1 { font-size: clamp(1.5rem, 6.5vw, 2.1rem); margin-bottom: 0.35em; }
  .chips { margin-top: 0.75rem; }
  .chips li { padding: 6px 12px; min-height: 40px; font-size: 0.85rem; }
}

/* R1 house pattern: sticky call bar (restored Oct 22 per CoS). 56px at bottom calc(12px + safe-area); body padding clears it. */
.call-dock { display: none; }
@media (max-width: 800px) {
  body { padding-bottom: calc(56px + 12px + 16px + env(safe-area-inset-bottom, 0px)); }
  .call-dock {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: fixed; z-index: 40; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    height: 56px; box-sizing: border-box; padding: 0 16px;
    background: var(--btn-primary-bg, var(--accent)); color: var(--btn-primary-fg, var(--paper));
    border-radius: var(--radius); text-decoration: none; font: 700 1.0625rem/1 var(--font-body);
    box-shadow: 0 10px 28px -8px rgba(0,0,0,.45);
  }
  .call-dock:hover, .call-dock:focus-visible { color: var(--btn-primary-fg, var(--paper)); filter: brightness(0.92); }
  .call-dock:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
}
