/* ==========================================================================
   Folsom Brothers Pawn — public site
   Palette: oxblood leather (heirloom case) + hunter green (sporting) +
   antique brass + sterling grey on bone parchment. Colors are injected as
   CSS custom properties by the server renderer from config.theme — never
   hard-code a hex in this file.
   Mobile-first. Desktop is the enhancement.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 17px;
  /* Room for the sticky call bar so the footer credit is never trapped under it. */
  padding-bottom: 76px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }

h1, h2, h3 { line-height: 1.18; margin: 0; letter-spacing: -0.01em; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 14px 20px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  font-size: 1rem;
  border: 2px solid transparent;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:active { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--brand); border-color: var(--rule); }
.btn-ghost:active { background: rgba(0,0,0,.04); }

/* --- Top bar ------------------------------------------------------------ */
.topbar { background: var(--night); color: #fff; }
.tb-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 58px;
}
.brand { text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.brand .bl { color: #fff; }
.brand .ba { color: var(--accent); }
.tb-call {
  color: var(--accent); text-decoration: none; font-weight: 700;
  font-size: .95rem; white-space: nowrap;
}

/* --- Hero --------------------------------------------------------------- */
.hero { background: var(--night); color: #fff; padding: 6px 0 34px; }
.hero-in { display: grid; gap: 22px; }
.eyebrow {
  margin: 0 0 10px; font-size: .74rem; text-transform: uppercase;
  letter-spacing: .16em; color: var(--accent); font-weight: 700;
}
.hero h1 { font-size: 2.15rem; font-weight: 800; }
.hero h1 span { color: var(--accent); }
.hero-sub { margin: 14px 0 0; color: #e6ded0; font-size: 1.02rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.32); }

.reviews-line {
  margin: 18px 0 0; font-size: .88rem; color: #cfc6b8;
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.reviews-line strong { color: #fff; }
.reviews-line a { color: var(--accent); }
.stars { letter-spacing: 1px; }
.stars .s { color: rgba(255,255,255,.22); }
.stars .s.on { color: var(--accent); }
.stars .s.half { color: var(--accent); opacity: .5; }

/* Placeholder photo blocks. Deliberately look like a labeled slot, not a
   broken image — every one is a Settings upload target. */
.hero-photo { width: 100%; border-radius: 10px; }
.hero-ph, .bc-ph, .map-ph {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--charcoal);
  border: 1px dashed rgba(198,149,47,.42);
  color: var(--sterling);
  font-size: .82rem; letter-spacing: .04em; padding: 18px;
}
.hero-ph { min-height: 190px; }

/* --- The two tool entry points ------------------------------------------ */
.tools { background: var(--paper); padding: 22px 0 6px; }
.tools-in { display: grid; gap: 14px; }
.tool {
  display: grid; gap: 4px; text-decoration: none; color: #fff;
  padding: 20px 18px; border-radius: 12px; position: relative;
  box-shadow: 0 2px 10px rgba(22,17,13,.14);
}
.tool-sell { background: var(--brand); }
.tool-want { background: var(--field); }
.tool:active { transform: translateY(1px); }
.t-kicker {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .14em;
  font-weight: 700; color: var(--accent);
}
.t-title { font-size: 1.28rem; font-weight: 800; line-height: 1.22; }
.t-sub { font-size: .92rem; color: rgba(255,255,255,.82); }
.t-go { margin-top: 8px; font-weight: 700; font-size: .95rem; color: var(--accent); }

/* --- Section headings --------------------------------------------------- */
.sec-h { font-size: 1.62rem; font-weight: 800; margin: 0 0 8px; }
.sec-sub { margin: 0 0 22px; color: var(--steel); max-width: 58ch; }

/* --- What we buy -------------------------------------------------------- */
.buy { padding: 34px 0 8px; }
.buygrid { display: grid; gap: 16px; }
.buycard {
  background: var(--card); border: 1px solid var(--rule); border-radius: 12px;
  overflow: hidden;
}
.bc-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.bc-ph { aspect-ratio: 3 / 2; }
.bc-body { padding: 16px 16px 18px; }
.bc-body h3 { font-size: 1.14rem; font-weight: 800; margin-bottom: 6px; }
.bc-body p { margin: 0; color: var(--steel); font-size: .95rem; }
.bc-note {
  margin-top: 10px !important; color: var(--accent-deep) !important;
  font-weight: 700; font-size: .9rem !important;
}
/* Firearms federal-law line: ruled off and set in sterling so it reads as a
   legal notice rather than marketing copy. */
.bc-compliance {
  margin-top: 12px !important; padding-top: 10px;
  border-top: 1px solid var(--rule);
  color: var(--steel) !important; font-size: .82rem !important;
  font-weight: 600; line-height: 1.45;
}

/* --- About -------------------------------------------------------------- */
.about { padding: 34px 0; }
.about-in {
  background: var(--field); color: #fff; border-radius: 12px; padding: 26px 20px;
}
.about-in .sec-h { color: var(--accent); }
.about-in p { margin: 0; color: #e4e9e2; }

/* --- Visit -------------------------------------------------------------- */
.visit { padding: 8px 0 40px; }
.visit-in { display: grid; gap: 20px; }
.addr { margin: 0 0 14px; font-weight: 600; }
.hours { border-top: 1px solid var(--rule); margin-bottom: 18px; }
.hr {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.hr .d { font-weight: 700; }
.hr .t { color: var(--steel); }
.visit-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.fb {
  display: inline-block; margin-top: 14px; font-weight: 700;
  color: var(--brand); text-decoration: none; border-bottom: 2px solid var(--rule);
}
.map-ph {
  flex-direction: column; gap: 8px; min-height: 190px; border-radius: 12px;
  text-decoration: none;
}
.map-go { color: var(--accent); font-weight: 700; }

/* --- Footer ------------------------------------------------------------- */
.foot { background: var(--night); color: #cfc6b8; padding: 28px 0 34px; }
.foot-brand { color: #fff; font-weight: 800; font-size: 1.05rem; }
.foot-meta { font-size: .92rem; margin-top: 4px; }
.foot-meta a { color: var(--accent); text-decoration: none; }
.foot-compliance {
  margin: 14px 0 0; font-size: .78rem; color: var(--sterling);
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; max-width: 60ch;
}
.foot-credit { margin-top: 14px; font-size: .82rem; }
.foot-credit a { color: var(--accent); text-decoration: none; }

/* --- Sticky click-to-call (mobile) -------------------------------------- */
.stickycall {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--brand); color: #fff; text-decoration: none;
  font-weight: 800; font-size: 1.06rem;
  padding: 15px 18px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(22,17,13,.4);
}
.stickycall:active { background: var(--brand-dark); }
.sc-i { font-size: 1.15rem; }

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 760px) {
  body { padding-bottom: 0; font-size: 18px; }
  .stickycall { display: none; }

  .hero { padding: 18px 0 52px; }
  .hero-in { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; }
  .hero h1 { font-size: 3rem; }
  .hero-ph { min-height: 300px; }

  .tools-in { grid-template-columns: 1fr 1fr; gap: 18px; }
  .tool { padding: 26px 24px; }

  .buygrid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

  .about-in { padding: 34px 32px; }

  .visit-in { grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
  .map-ph { min-height: 260px; }

  .sec-h { font-size: 1.95rem; }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 3.3rem; }
}
