/* Cheyenne Fence Installation: storm sky, weathered cedar, wheat */
:root {
  --font-head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", system-ui, sans-serif;
  --sky: #2a3f52;
  --sky-deep: #1a2834;
  --cedar: #6e4529;
  --cedar-deep: #3d2616;
  --wheat: #f0b429;
  --wheat-hover: #f5c654;
  --wheat-ink: #2b1e00;
  --grass: #8a8f4a;
  --bg: #f4f1ec;
  --card: #ffffff;
  --ink: #20262b;
  --muted: #59626a;
  --line: #ddd6cb;
  --field: #a6a59f;
  --link: #8a4b1f;
  --focus: #2b67cf;
  --note: #fbecc4;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.07rem; line-height: 1.62; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-top: 1.55em; }
h3 { font-size: 1.35rem; margin-top: 1.3em; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
li { margin-bottom: .35em; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--cedar-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.prose { max-width: 68ch; }

.site-header { background: var(--cedar-deep); color: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 3px solid var(--wheat); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.logo:hover { color: #fff; }
.logo svg { flex: none; }
.nav { display: flex; gap: 22px; }
.nav a { color: #f1e6da; font-weight: 600; text-decoration: none; text-transform: uppercase; font-size: .95rem; letter-spacing: .04em; }
.nav a:hover { color: var(--wheat); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 4px; border: 2px solid transparent; font: 700 1.05rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.btn-call { background: var(--wheat); color: var(--wheat-ink); }
.btn-call:hover { background: var(--wheat-hover); color: var(--wheat-ink); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.1); color: inherit; }
.header-call { white-space: nowrap; }

.hero { background: linear-gradient(170deg, var(--sky) 0%, var(--sky) 70%, var(--sky-deep) 100%); color: #fff; padding: 54px 0 0; overflow: hidden; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 26px)); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: end; }
.hero .lede { font-size: 1.2rem; color: #d3dde6; max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 56px; }
.hero-art svg { display: block; width: 100%; height: auto; }

.page-hero { background: var(--sky); color: #fff; padding: 44px 0 34px; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 18px, transparent 18px 26px); }
.page-hero p { color: #d3dde6; max-width: 62ch; font-size: 1.15rem; margin: 0; }
.crumbs { font-size: .93rem; color: #b6c4d0; margin-bottom: 12px; }
.crumbs a { color: #fff; }

main section { padding: 50px 0; }
.band { background: transparent; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }

.service-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.service-list li { margin: 0; }
.service-list a { display: block; height: 100%; padding: 22px 18px 18px; background: var(--card); border-top: 6px solid var(--cedar); border-radius: 0 0 6px 6px; box-shadow: 0 1px 0 var(--line), 0 6px 14px rgba(40,30,20,.06); text-decoration: none; color: var(--ink); }
.service-list a:hover { border-top-color: var(--wheat); }
.service-list strong { display: block; font-family: var(--font-head); font-size: 1.4rem; color: var(--cedar-deep); line-height: 1.1; margin-bottom: 6px; }
.service-list span { color: var(--muted); font-size: .98rem; }
.split .service-list { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.steps { list-style: none; padding: 0; counter-reset: st; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 18px; }
.steps.stack { grid-template-columns: 1fr; }
.steps li { counter-increment: st; margin: 0; position: relative; padding-left: 52px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--cedar); color: #fff; font: 700 1.2rem var(--font-head); border-radius: 4px; }
.steps h3 { margin-top: 0; }

.areas { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.areas li { margin: 0; }
.areas a { display: inline-block; padding: 7px 14px; border: 2px solid var(--cedar); border-radius: 4px; color: var(--cedar-deep); font-weight: 700; text-decoration: none; }
.areas a:hover { background: var(--cedar); color: #fff; }

.signs { columns: 2; column-gap: 36px; }
.signs li { break-inside: avoid; }
.faq details { border-left: 4px solid var(--wheat); background: var(--card); padding: 12px 16px; margin-bottom: 10px; max-width: 68ch; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.06rem; }
.faq details p { margin: 10px 0 0; }
.note { background: var(--note); border-left: 6px solid var(--cedar); padding: 14px 18px; margin: 1.4em 0; max-width: 68ch; }
.note p:last-child { margin-bottom: 0; }
table.facts { width: 100%; max-width: 68ch; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .97rem; background: var(--card); }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.facts th { background: var(--cedar-deep); color: #fff; font-family: var(--font-head); font-size: 1.08rem; letter-spacing: .02em; }
.sources { font-size: .95rem; }

.quote-card { background: var(--card); border-radius: 6px; padding: 24px; position: sticky; top: 90px; border: 1px solid var(--line); border-top: 8px solid var(--sky); }
.quote-card h2 { margin-top: 0; font-size: 1.7rem; }
.quote-card .btn { width: 100%; }
.quote-card .or { text-align: center; color: var(--muted); margin: 14px 0; font-size: .95rem; }
form.quote label { display: block; font-weight: 600; margin: 12px 0 4px; font-size: .97rem; }
form.quote input, form.quote select, form.quote textarea { width: 100%; padding: 11px 12px; border: 1.5px solid var(--field); border-radius: 4px; font: inherit; background: #fff; color: var(--ink); }
form.quote textarea { min-height: 92px; resize: vertical; }
form.quote .btn { margin-top: 16px; }
form.quote .fine { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.form-status { margin-top: 12px; font-weight: 600; }
.form-status[data-state="error"] { color: #a02a1b; }
.form-status[data-state="ok"] { color: #4f6a2e; }
.hp { position: absolute; left: -9999px; }

.cta-band { background: var(--cedar); color: #fff; padding: 40px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { margin: 0; }
.cta-band p { margin: 6px 0 0; color: #f1e2d3; }

.site-footer { background: var(--sky-deep); color: #a9b7c3; padding: 42px 0 96px; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h3 { color: #fff; margin-top: 0; font-size: 1.3rem; }
.site-footer ul { list-style: none; padding: 0; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.disclosure { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); max-width: 90ch; }
.call-bar { position: fixed; left: 0; right: 0; bottom: 0; display: none; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--cedar-deep); z-index: 30; }
.call-bar .btn { width: 100%; }

@media (max-width: 900px) {
  .hero-grid, .split, .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .quote-card { position: static; }
  .steps { grid-template-columns: 1fr; }
  .nav { display: none; }
  .signs { columns: 1; }
  .call-bar { display: block; }
  .site-header .wrap { min-height: 58px; gap: 10px; }
  .logo { font-size: 1.12rem; gap: 8px; }
  .logo svg { width: 26px; height: 26px; }
  .header-call { padding: 8px 10px; font-size: .92rem; }
  .header-call .call-word { display: none; }
}
@media (max-width: 360px) { .logo span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
