/* Alberta Hay Hauling — editorial prairie */
:root {
  --ink: #1C1916;
  --barn: #1F3D32;
  --barn-deep: #152821;
  --gold: #C4A574;
  --gold-deep: #a88855;
  --straw: #E8D9B8;
  --cream: #F7F1E6;
  --field: #FBF8F1;
  --paper: #FFFdf8;
  --alert: #8B3A2A;
  --muted: #5e574e;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --measure: 38rem;
  --wide: 72rem;
  --header-h: 4.4rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--barn); text-underline-offset: 0.18em; }
a:hover { color: var(--barn-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--paper); padding: .5rem 1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 .75rem;
}
h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--ink);
}
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 0 0 .6rem; font-variation-settings: "opsz" 96, "SOFT" 50; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.8rem); margin: 0 0 .75rem; font-variation-settings: "opsz" 60; }
h3 { font-size: 1.35rem; margin: 0 0 .4rem; }
.lede { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; max-width: 40rem; color: var(--muted); }
p { max-width: var(--measure); }
.prose p + p { margin-top: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--straw) 80%, var(--ink) 10%);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.25rem;
  height: var(--header-h);
  max-width: 88rem; margin: 0 auto; padding: 0 1.5rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 550;
  color: var(--barn);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark small {
  display: block; font-family: var(--sans); font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep);
  font-weight: 600; margin-top: .05rem;
}
nav.primary { display: flex; align-items: center; gap: 1.15rem; margin-left: auto; font-size: .95rem; }
nav.primary a { color: var(--ink); text-decoration: none; font-weight: 500; }
nav.primary a:hover { color: var(--barn); }
body[data-page="quote"] a[href="/quote/"],
body[data-page="areas"] a[href="/service-area/"],
body[data-page="how"] a[href="/how-it-works/"],
body[data-page="about"] a[href="/about/"],
body[data-page="faq"] a[href="/faq/"] { color: var(--barn); box-shadow: inset 0 -1px 0 var(--gold); }
.header-phone { color: var(--barn); text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--barn); color: var(--cream) !important; text-decoration: none;
  font-weight: 600; font-size: .95rem; padding: .7rem 1.15rem; border-radius: 999px;
  border: 0; cursor: pointer; font-family: inherit; line-height: 1;
  transition: background .2s var(--ease);
}
.btn:hover { background: var(--barn-deep); color: var(--cream) !important; }
.btn-ghost { background: transparent; color: var(--cream) !important; border: 1px solid color-mix(in srgb, var(--cream) 45%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, var(--cream) 12%, transparent); }
.btn-lg { padding: .9rem 1.4rem; font-size: 1.05rem; }
.nav-toggle { display: none; background: none; border: 0; width: 2.5rem; height: 2.5rem; cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; height: 1.5px; width: 1.3rem; background: var(--ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -.4rem; }
.nav-toggle span::after { top: .4rem; }

.hero { position: relative; min-height: min(92vh, 54rem); display: grid; align-items: end; color: var(--cream); overflow: hidden; }
.hero picture, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,25,22,.18) 0%, rgba(28,25,22,.12) 38%, rgba(21,20,16,.8) 100%),
              linear-gradient(90deg, rgba(21,20,16,.42) 0%, transparent 55%);
}
.hero-inner { position: relative; max-width: 88rem; margin: 0 auto; padding: 5rem 1.5rem 3.5rem; width: 100%; }
.hero h1 { color: var(--cream); max-width: 14ch; }
.hero .lede { color: color-mix(in srgb, var(--cream) 84%, var(--straw)); }
.hero .eyebrow { color: var(--gold); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; align-items: center; }
.hero-note { font-size: .95rem; color: color-mix(in srgb, var(--cream) 75%, transparent); }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 88rem; margin: 0 auto; border-bottom: 1px solid var(--straw); background: var(--field); }
.proof article { padding: 1.6rem 1.5rem; border-right: 1px solid var(--straw); }
.proof article:last-child { border-right: 0; }
.proof strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 550; margin-bottom: .25rem; }
.proof p { margin: 0; font-size: .95rem; color: var(--muted); max-width: none; }

.section { padding: 5rem 1.5rem; }
.section-tight { padding: 3.5rem 1.5rem; }
.wrap { max-width: var(--wide); margin: 0 auto; }
.wrap-wide { max-width: 88rem; margin: 0 auto; }
.band-field { background: var(--field); }
.band-barn { background: var(--barn); color: var(--cream); }
.band-barn h2, .band-barn h3 { color: var(--cream); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.split.rev { grid-template-columns: .95fr 1.05fr; }
.split.rev .copy { order: 2; }
.frame { border-radius: var(--radius); overflow: hidden; background: var(--straw); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.frame.portrait img { aspect-ratio: 3/4; }
.frame.wide img { aspect-ratio: 16/10; }
.caption { font-size: .82rem; color: var(--muted); margin-top: .55rem; }

.essay { display: grid; grid-template-columns: 1.4fr .9fr .9fr; gap: .7rem; }
.essay .a { grid-row: 1 / span 2; }
.essay img { width: 100%; height: 100%; object-fit: cover; }
.essay figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--straw); }
.essay .a img { aspect-ratio: 3/4; min-height: 100%; }
.essay .b img, .essay .c img { aspect-ratio: 4/3; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0 0; }
.chip { display: inline-block; padding: .4rem .85rem; border: 1px solid var(--straw); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); font-size: .92rem; }
.chip:hover { border-color: var(--gold); color: var(--barn); }

.faq details { border-top: 1px solid var(--straw); padding: 1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--straw); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-deep); font-weight: 400; font-size: 1.3rem; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: .7rem 0 0; color: var(--muted); }

.site-footer { background: var(--barn-deep); color: color-mix(in srgb, var(--cream) 88%, transparent); padding: 3.5rem 1.5rem 2rem; font-size: .95rem; }
.site-footer a { color: var(--straw); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; max-width: 88rem; margin: 0 auto; }
.site-footer .wordmark { color: var(--cream); }
.site-footer .wordmark small { color: var(--gold); }
.towns a { display: block; margin: .2rem 0; }
.legal { max-width: 88rem; margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid color-mix(in srgb, var(--barn) 60%, white 10%); font-size: .82rem; color: color-mix(in srgb, var(--cream) 60%, transparent); }

form { display: grid; gap: .9rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="date"], input[type="search"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .7rem .8rem;
  border: 1px solid var(--straw); background: var(--paper); color: var(--ink); border-radius: 8px;
}
textarea { min-height: 6.5rem; resize: vertical; }
.checks { display: grid; gap: .4rem; }
.checks label { font-weight: 400; display: flex; gap: .55rem; align-items: flex-start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.estimate-card { background: var(--paper); border: 1px solid var(--straw); border-radius: 12px; padding: 1.25rem 1.35rem; }
.estimate-card .num { font-family: var(--serif); font-size: 2.4rem; letter-spacing: -0.03em; color: var(--barn); }
.flag { background: color-mix(in srgb, var(--gold) 28%, var(--cream)); border-left: 3px solid var(--gold-deep); padding: .7rem .9rem; font-size: .92rem; border-radius: 0 8px 8px 0; }
.flag.warn { background: color-mix(in srgb, var(--alert) 10%, var(--cream)); border-left-color: var(--alert); }
.error { color: var(--alert); font-size: .9rem; }

.quote-grid { display: grid; grid-template-columns: minmax(22rem, 28rem) 1fr; min-height: calc(100vh - var(--header-h)); }
.quote-form { padding: 1.75rem 1.5rem 3rem; overflow: auto; max-height: calc(100vh - var(--header-h)); background: var(--cream); border-right: 1px solid var(--straw); }
.quote-form h1 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
#map { min-height: 28rem; height: 100%; background: var(--straw); }
.pin-gold {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.7rem; height: 1.7rem; background: var(--gold); color: var(--ink);
  font-size: .65rem; font-weight: 700; border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(28,25,22,.25);
}
.pin-gold b { transform: rotate(45deg); display: block; font-family: var(--sans); }
.leaflet-container { font-family: var(--sans); background: #e8e2d4; }
.search-box { position: relative; }
.search-box ul { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin: 0; padding: 0; list-style: none; background: var(--paper); border: 1px solid var(--straw); border-radius: 0 0 8px 8px; max-height: 14rem; overflow: auto; }
.search-box li button { width: 100%; text-align: left; background: none; border: 0; padding: .55rem .75rem; font: inherit; cursor: pointer; }
.search-box li button:hover { background: var(--field); }
.pin-switch { display: flex; gap: .4rem; margin: .4rem 0 1rem; }
.pin-switch button { flex: 1; padding: .45rem; border-radius: 8px; border: 1px solid var(--straw); background: var(--paper); font: inherit; font-size: .88rem; cursor: pointer; }
.pin-switch button.is-on { background: var(--barn); color: var(--cream); border-color: var(--barn); }

.town { padding: 2.25rem 0; border-top: 1px solid var(--straw); }
.town h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.page-hero { padding: 3.5rem 1.5rem 2rem; background: linear-gradient(180deg, color-mix(in srgb, var(--straw) 40%, var(--cream)), var(--cream)); }
.page-hero h1 { max-width: 16ch; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step-n { font-family: var(--serif); font-size: 2rem; color: var(--gold-deep); display: block; margin-bottom: .3rem; }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem; }
.cta-band h2 { margin: 0; color: var(--cream); max-width: 14ch; }
.muted { color: var(--muted); }
hr.gold { border: 0; height: 1px; background: var(--gold); width: 4rem; margin: 1.25rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 960px) {
  .proof { grid-template-columns: 1fr 1fr; }
  .proof article { border-bottom: 1px solid var(--straw); }
  .split, .split.rev { grid-template-columns: 1fr; }
  .split.rev .copy { order: 0; }
  .essay { grid-template-columns: 1fr 1fr; }
  .essay .a { grid-row: auto; grid-column: 1 / -1; }
  .essay .a img { aspect-ratio: 16/10; }
  .quote-grid { grid-template-columns: 1fr; }
  .quote-form { max-height: none; overflow: visible; border-right: 0; }
  #map { min-height: 22rem; height: 22rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  nav.primary { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 1.4rem; border-bottom: 1px solid var(--straw); gap: .85rem; }
  body.nav-open nav.primary { display: flex; }
  .header-phone { display: none; }
  .site-header .btn { margin-left: .4rem; padding: .6rem 1rem; }
}
@media (max-width: 640px) {
  body { font-size: 1.05rem; }
  .proof { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
}

.search-box ul:empty { display: none; }

/* ===== Marketplace MVP additions ===== */
.header-ctas { display: flex; gap: .5rem; align-items: center; }
.btn-line { background: transparent; color: var(--barn) !important; border: 1px solid var(--barn); }
.btn-line:hover { background: color-mix(in srgb, var(--barn) 8%, transparent); color: var(--barn-deep) !important; }
.btn-gold { background: var(--gold); color: var(--ink) !important; }
.btn-gold:hover { background: var(--gold-deep); color: var(--ink) !important; }
.btn-sm { padding: .5rem .85rem; font-size: .88rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.nav-login { color: var(--muted) !important; }
body[data-page="cost"] a[href="/hay-hauling-cost-alberta/"] { color: var(--barn); box-shadow: inset 0 -1px 0 var(--gold); }
.mobile-cta { display: none; }
.steps.five { grid-template-columns: repeat(5, 1fr); }

.staging-banner { background: var(--ink); color: var(--straw); font-size: .85rem; text-align: center; padding: .4rem 1rem; }
.staging-banner strong { color: var(--gold); letter-spacing: .08em; }
.code-reveal { background: color-mix(in srgb, var(--gold) 22%, var(--paper)); border: 1px dashed var(--gold-deep); border-radius: 10px; padding: .8rem 1rem; font-size: .95rem; }
.code-reveal b { font-family: var(--serif); font-size: 1.6rem; letter-spacing: .15em; color: var(--barn); display: block; }

.card { background: var(--paper); border: 1px solid var(--straw); border-radius: 12px; padding: 1.15rem 1.25rem; }
.card + .card { margin-top: 1rem; }
.card h3 { margin-bottom: .25rem; }
.stack > * + * { margin-top: .9rem; }
.app-wrap { max-width: 56rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.app-wrap h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.row.between { justify-content: space-between; }
.pill { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--field); border: 1px solid var(--straw); color: var(--muted); }
.pill.open { background: color-mix(in srgb, var(--gold) 25%, var(--paper)); color: var(--ink); border-color: var(--gold); }
.pill.accepted, .pill.en_route, .pill.loaded, .pill.approved { background: color-mix(in srgb, var(--barn) 12%, var(--paper)); color: var(--barn); border-color: color-mix(in srgb, var(--barn) 35%, transparent); }
.pill.delivered { background: var(--barn); color: var(--cream); border-color: var(--barn); }
.pill.cancelled, .pill.rejected, .pill.suspended, .pill.dispute { background: color-mix(in srgb, var(--alert) 10%, var(--paper)); color: var(--alert); border-color: color-mix(in srgb, var(--alert) 35%, transparent); }
.pill.demo { background: var(--ink); color: var(--gold); border-color: var(--ink); }
.meta { font-size: .9rem; color: var(--muted); }
.meta b { color: var(--ink); font-weight: 600; }
.price { font-family: var(--serif); font-size: 1.6rem; color: var(--barn); letter-spacing: -.02em; }
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; margin: .8rem 0; }
.timeline span { font-size: .72rem; text-align: center; padding: .35rem .2rem; border-top: 3px solid var(--straw); color: var(--muted); }
.timeline span.done { border-top-color: var(--barn); color: var(--barn); font-weight: 600; }
.offer { border-top: 1px solid var(--straw); padding: .8rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; align-items: center; }
.stars { display: inline-flex; gap: .15rem; }
.stars button { background: none; border: 0; font-size: 1.6rem; color: var(--straw); cursor: pointer; padding: 0 .1rem; line-height: 1; }
.stars button.on { color: var(--gold-deep); }
.inline-form { display: grid; gap: .5rem; margin-top: .6rem; }
.inline-form.row-form { grid-template-columns: 1fr auto; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.tabs button { padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--straw); background: var(--paper); font: inherit; font-size: .9rem; cursor: pointer; }
.tabs button.is-on { background: var(--barn); color: var(--cream); border-color: var(--barn); }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--straw); vertical-align: top; }
.tbl th { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.tbl-wrap { overflow-x: auto; }
.empty { color: var(--muted); font-style: italic; }
details.more summary { cursor: pointer; color: var(--barn); font-weight: 600; font-size: .92rem; }

/* content pages */
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; background: var(--paper); border: 1px solid var(--straw); border-radius: 12px; overflow: hidden; }
.compare th, .compare td { padding: .8rem .9rem; border-bottom: 1px solid var(--straw); text-align: left; vertical-align: top; }
.compare thead th { background: var(--field); font-family: var(--serif); font-weight: 550; font-size: 1.05rem; }
.not-for { border-left: 3px solid var(--alert); padding: .2rem 0 .2rem 1.1rem; }
.not-for li + li, .plain-list li + li { margin-top: .45rem; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; background: var(--paper); border: 1px solid var(--straw); border-radius: 10px; padding: 1rem 1.2rem; white-space: pre-wrap; max-width: 40rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.big-cta { text-align: center; padding: 4rem 1.5rem; }
.big-cta h2 { margin: 0 auto .75rem; max-width: 20ch; }
.big-cta p { margin: 0 auto 1.4rem; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.value-grid article { border-top: 1px solid var(--gold); padding-top: 1rem; }
.value-grid strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 550; display: block; margin-bottom: .3rem; }
.value-grid p { margin: 0; color: var(--muted); font-size: 1rem; }
.form-panel { background: var(--paper); border: 1px solid var(--straw); border-radius: 14px; padding: 1.5rem; max-width: 36rem; }
.optional { border-top: 1px dashed var(--straw); padding-top: .9rem; }
.optional > summary { cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--barn); }

@media (max-width: 960px) {
  .header-ctas { display: none; }
  body[data-mode="post"] #map { order: -1; min-height: 18rem; height: 18rem; }
  .steps.five { grid-template-columns: 1fr 1fr; }
  .mobile-cta {
    display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--cream) 96%, transparent);
    border-top: 1px solid var(--straw); backdrop-filter: blur(10px);
  }
  .mobile-cta .btn { flex: 1; padding: .85rem .5rem; font-size: 1rem; }
  body { padding-bottom: 4.6rem; }
  .two-col, .value-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .timeline span { font-size: .62rem; }
  .steps.five { grid-template-columns: 1fr; }
  .compare { font-size: .9rem; }
  .compare th, .compare td { padding: .6rem .5rem; }
  .inline-form.row-form { grid-template-columns: 1fr; }
}
