:root {
  /* Equipment Rental Brothers brand (pulled from their live site) */
  --green: #94b15b;          /* brand sage/olive */
  --green-dark: #7c9647;
  --green-tint: #edf2e4;     /* pale green wash */
  --ink: #1a1a1a;            /* near-black surfaces */
  --ink-2: #2a2a2a;
  --text: #1a1a1a;
  --muted: #6b6f66;
  --line: #e3e5df;
  --bg: #fafaf8;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,22,16,.06), 0 8px 24px rgba(20,22,16,.06);
  --shadow-hover: 0 2px 6px rgba(20,22,16,.10), 0 18px 40px rgba(20,22,16,.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}
h1, h2, .brand-logo, .price-val { font-family: "Ubuntu", "Inter", sans-serif; }
a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 22px;
  background: var(--ink);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; display: block; }
.header-cta {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.28);
  transition: background .15s, border-color .15s;
}
.header-cta:hover { background: var(--green); border-color: var(--green); }

/* ---------- hero ---------- */
.hero {
  max-width: 860px; margin: 0 auto; padding: 46px 22px 8px; text-align: center;
}
.hero h1 {
  margin: 0 0 8px; font-size: clamp(30px, 5vw, 46px); font-weight: 700;
  letter-spacing: -.02em;
}
.hero-sub { margin: 0 auto 26px; max-width: 620px; color: var(--muted); font-size: 16px; }

.search-wrap {
  position: relative; max-width: 640px; margin: 0 auto;
}
.search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--muted); pointer-events: none;
}
#q {
  width: 100%; padding: 17px 48px 17px 50px; font-size: 17px; font-family: inherit;
  color: var(--text); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px; outline: none;
  box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
#q::placeholder { color: #a2a69c; }
#q:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(148,177,91,.22); }
.clear-btn {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: var(--green-tint); color: var(--green-dark);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.clear-btn:hover { background: var(--green); color: #fff; }

/* ---------- category chips ---------- */
.chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin: 22px auto 0; max-width: 900px;
}
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .13s;
}
.chip:hover { border-color: var(--green); color: var(--green-dark); }
.chip .n { color: var(--muted); font-weight: 600; margin-left: 5px; font-size: 12px; }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.chip.active .n { color: rgba(255,255,255,.85); }

/* ---------- results ---------- */
.results-wrap { max-width: 1180px; margin: 0 auto; padding: 26px 22px 60px; }
.count { color: var(--muted); font-size: 14px; margin: 6px 2px 18px; }
.count b { color: var(--text); }

.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
}

.card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: inherit;
  box-shadow: var(--shadow); transition: transform .14s, box-shadow .14s, border-color .14s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: #d3d7cb; }
.card:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.card-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--green-tint);
  overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cat {
  position: absolute; top: 10px; left: 10px;
  background: rgba(26,26,26,.82); color: #fff; backdrop-filter: blur(3px);
  font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px;
}
.card-body { padding: 14px 15px 15px; display: flex; flex-direction: column; flex: 1; }
.card-name { font-size: 16px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.card-blurb {
  font-size: 13px; color: var(--muted); margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prices { display: flex; gap: 6px; margin-top: auto; }
.price {
  flex: 1; text-align: center; background: var(--green-tint); border-radius: 9px;
  padding: 7px 4px; min-width: 0;
}
.price .lab { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--green-dark); font-weight: 700; }
.price .price-val { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; letter-spacing: -.01em; }
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 13px; color: var(--green-dark); font-weight: 600; font-size: 13.5px;
}
.card-foot .arrow { transition: transform .14s; }
.card:hover .card-foot .arrow { transform: translateX(3px); }

mark { background: rgba(148,177,91,.34); color: inherit; padding: 0 1px; border-radius: 2px; }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.reset-link {
  margin-top: 10px; background: var(--green); color: #fff; border: none;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; cursor: pointer; font-size: 14px;
}
.reset-link:hover { background: var(--green-dark); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line); background: #fff;
  padding: 26px 22px; text-align: center; color: var(--muted); font-size: 13.5px;
}
.site-footer strong { color: var(--text); }
.foot-links { margin: 10px 0 6px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.foot-links a { color: var(--green-dark); text-decoration: none; font-weight: 600; }
.foot-links a:hover { text-decoration: underline; }
.foot-note { font-size: 12px; opacity: .8; }

@media (max-width: 560px) {
  .hero { padding-top: 30px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .card-blurb { display: none; }
  .price .lab { font-size: 9px; }
}
