/* yards.pilebase.io, phase 1. Same palette and idiom as the pilebase.io marketing
   tree (marketing/style.css) so the two read as one brand, but a standalone file:
   this site is served from its own directory and must not reach into the app's. */

:root {
  --white:     #ffffff;
  --band:      #f4f6f3;
  --band-2:    #eef2ee;

  --ink:       #14181a;
  --muted:     #55625b;
  --faint:     #626f69;

  --border:    #828f88;
  --rule:      #dce3de;
  --rule-soft: #e8edea;

  --green-900: #123123;
  --green-700: #235c3b;
  --green-600: #2e7d4f;
  --green-100: #dceae2;
  --green-50:  #eff6f2;

  --blue-600:  #0b6fa4;
  --blue-50:   #eff5fa;

  --amber-600: #9a5b00;
  --amber-100: #fbf0dd;
  --red-100:   #fceae7;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink); background: var(--white); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--blue-600); }
::selection { background: var(--green-100); color: var(--green-900); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid var(--rule); }
.nav-inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand svg { display: block; }
.brand .yards { color: var(--green-600); }
.nav .cta { background: var(--green-600); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 9px 18px; border-radius: 999px; white-space: nowrap; }
.nav .cta:hover { background: var(--green-700); }

/* hero */
.hero { background: linear-gradient(180deg, var(--green-50), var(--white) 80%); border-bottom: 1px solid var(--rule); padding: 56px 20px 48px; text-align: center; }
.hero h1 { font-size: clamp(30px, 5.4vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; max-width: 780px; margin: 0 auto 16px; text-wrap: balance; }
.hero .sub { color: var(--muted); font-size: clamp(15.5px, 2vw, 18px); max-width: 620px; margin: 0 auto 26px; font-weight: 500; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 14px 28px; font-size: 16px; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.2s ease; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 20px rgba(46,125,79,0.22); }
.btn-primary:hover { background: var(--green-700); color: #fff; box-shadow: 0 12px 28px rgba(46,125,79,0.32); }
.btn-ghost { background: var(--white); color: var(--blue-600); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--blue-50); border-color: var(--blue-600); }
.hero .tiny { margin-top: 16px; font-size: 13.5px; color: var(--faint); }

/* quote form */
.quote { background: var(--white); padding: 56px 20px; }
.quote-inner { max-width: 640px; margin: 0 auto; }
.quote h2, .yards-section h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.02em; font-weight: 800; margin-bottom: 8px; }
.quote .sub, .yards-section .sub { color: var(--muted); margin-bottom: 24px; font-weight: 500; }
form label { display: block; font-size: 13.5px; font-weight: 700; color: var(--muted); margin: 0 0 5px; }
form input, form select, form textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--border); border-radius: 10px;
  font-family: inherit;
}
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--green-600); outline-offset: 1px; border-color: var(--green-600); }
.frm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.frm-row > div:only-child { grid-column: 1 / -1; }
@media (max-width: 560px) { .frm-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.submit { width: 100%; margin-top: 6px; background: var(--green-600); color: #fff; font-weight: 800; font-size: 16.5px; padding: 15px; border: 0; border-radius: 999px; cursor: pointer; transition: background 0.15s ease; }
.submit:hover { background: var(--green-700); }
.submit:disabled { opacity: 0.6; cursor: default; }
.form-note { font-size: 13px; color: var(--faint); margin-top: 12px; text-align: center; }
.form-result { border-radius: 10px; padding: 13px; font-size: 14.5px; font-weight: 600; display: none; margin-bottom: 14px; }
.form-result.ok { display: block; background: #22302a; color: #fff; }
.form-result.ok::before { content: '\2713  '; font-weight: 900; }
.form-result.err { display: block; background: var(--red-100); border: 1px solid #edbab4; color: #a3221a; }
.form-result.err::before { content: '\2715  '; font-weight: 900; }

/* listings */
.yards-section { background: var(--band); border-top: 1px solid var(--rule); padding: 56px 20px 72px; }
.yards-inner { max-width: 1080px; margin: 0 auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 18px 0 6px; }
.chip {
  border: 1.5px solid var(--border); background: var(--white); color: var(--muted);
  font-weight: 700; font-size: 13.5px; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.chip:hover { color: var(--green-700); background: var(--green-50); }
.chip.on { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.filters select { width: auto; padding: 8px 12px; font-size: 14px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.count { font-size: 13.5px; color: var(--faint); margin: 8px 0 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: 14px;
  padding: 20px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 1px 2px rgba(18,49,35,0.05);
}
.card h3 { font-size: 17.5px; letter-spacing: -0.01em; line-height: 1.25; }
.card .where { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.mats { display: flex; flex-wrap: wrap; gap: 5px; }
.mat { background: var(--band-2); color: var(--muted); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 10px; }
.card .note, .card .delivery { font-size: 13.5px; color: var(--muted); }
.card .delivery::before { content: '\1F69A  '; }
.pricing { font-size: 13.5px; }
.pricing .stamp { display: inline-block; background: var(--green-100); color: var(--green-900); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 10px; margin-bottom: 6px; }
.pricing .published { display: inline-block; background: var(--blue-50); color: var(--blue-600); border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 10px; }
.pricing a { font-weight: 600; }
.zones { margin-top: 6px; }
.zones summary { cursor: pointer; font-weight: 700; color: var(--blue-600); font-size: 13.5px; }
.zones table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.zones td { padding: 4px 6px; border-bottom: 1px solid var(--rule-soft); color: var(--muted); }
.zones td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.price-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-table td { padding: 4px 6px; border-bottom: 1px solid var(--rule-soft); color: var(--muted); }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); }
.card .actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card .actions .quote-btn {
  background: var(--green-600); color: #fff; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 13.5px; padding: 9px 16px; border-radius: 999px;
}
.card .actions .quote-btn:hover { background: var(--green-700); }
.card .actions a.tel { font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--blue-600); padding: 9px 4px; }
.card .actions a.site { font-size: 13px; color: var(--faint); }
.empty { color: var(--muted); font-weight: 600; padding: 24px 0; }

/* footer */
footer { background: var(--green-900); color: #cfe0d6; text-align: center; padding: 44px 20px; font-size: 14px; line-height: 1.7; }
footer a { color: #fff; }
footer .fine { color: #9db8a9; font-size: 12.5px; max-width: 640px; margin: 10px auto 0; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } html { scroll-behavior: auto; } }
