/* 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;
  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 {
  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(--accent); color: var(--paper); }
.btn-call:hover { filter: brightness(0.92); color: var(--paper); }
.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(240px, 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 120px;
}
.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; }

.call-dock { display: none; }

@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; }
  .header-cta .btn { display: none; }
}

/* Mobile call bar: clears Netlify badge (iframe#nl-badge-frame). Do not hide or restyle the badge. */
@media (max-width: 800px) {
  body { padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px)); }
  .call-dock {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; z-index: 40;
    left: 12px; right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    min-height: 52px; padding: 10px 16px;
    background: var(--accent); color: var(--paper);
    border-radius: var(--radius); text-decoration: none; font-weight: 700;
    box-shadow: 0 10px 28px -8px rgba(0,0,0,.45);
  }
  .call-dock:hover { color: var(--paper); filter: brightness(0.95); }
  .site-footer { padding-bottom: 40px; }
}
.hero-art{padding:0;overflow:hidden}.hero-svg{display:block;width:100%;height:auto}
/* 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); }
