/* Ransom Firearms — site styles */
:root {
  --green: #1f3d2b;
  --green-deep: #142a1d;
  --charcoal: #141614;
  --ink: #1c1f1c;
  --bone: #f4f1ea;
  --bone-2: #e9e4d8;
  --brass: #b08d57;
  --brass-light: #c9a56d;
  --muted: #5d625c;
  --radius: 10px;
  --max: 1160px;
  --head: "Aboreto", "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bone);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--brass); }

h1, h2, h3, .eyebrow, .btn, .nav a, .brand-name {
  font-family: var(--head);
  letter-spacing: .06em;
  font-weight: 400;
}
h1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.2; margin: 0 0 .5em; }
h3 { font-size: 1.2rem; margin: 0 0 .4em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow { color: var(--brass); font-size: .85rem; text-transform: uppercase; letter-spacing: .2em; display: block; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }

/* Top bar */
.topbar { background: var(--charcoal); color: #cfd2cc; font-size: .85rem; }
.topbar .wrap { display: flex; gap: 18px; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #cfd2cc; text-decoration: none; }
.topbar a:hover { color: var(--brass-light); }
.topbar .tb-left { display: flex; gap: 18px; flex-wrap: wrap; }

/* Header */
.site-header { background: var(--green-deep); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(176,141,87,.35); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bone); }
.brand img { height: 54px; width: auto; }
.brand-name { font-size: 1.25rem; color: var(--bone); line-height: 1.1; }
.brand-name small { display: block; font-size: .62rem; letter-spacing: .3em; color: var(--brass-light); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--bone); text-decoration: none; font-size: .8rem; padding: 10px 10px; white-space: nowrap; border-radius: 6px; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass-light); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(244,241,234,.35); color: var(--bone); border-radius: 6px; padding: 8px 12px; font-size: 1rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; text-transform: uppercase; font-size: .9rem; padding: 14px 24px; border-radius: 6px; border: 1px solid var(--brass); background: var(--brass); color: var(--charcoal); transition: .15s; cursor: pointer; }
.btn:hover { background: var(--brass-light); border-color: var(--brass-light); color: var(--charcoal); }
.btn-ghost { background: transparent; color: var(--bone); border-color: rgba(244,241,234,.55); }
.btn-ghost:hover { background: var(--bone); color: var(--charcoal); border-color: var(--bone); }
.btn-dark { background: var(--green); border-color: var(--green); color: var(--bone); }
.btn-dark:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--bone); }
.btn-sm { padding: 9px 16px; font-size: .8rem; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { position: relative; color: var(--bone); background: var(--charcoal); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(100deg, rgba(20,42,29,.96) 0%, rgba(20,42,29,.75) 45%, rgba(20,22,20,.2) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 110px; padding-bottom: 110px; }
.hero p { color: #dcdcd4; font-size: 1.15rem; max-width: 560px; }
.hero .tagline { font-family: var(--head); color: var(--brass-light); letter-spacing: .2em; font-size: 1rem; margin-bottom: 1.6em; }
.page-hero .wrap { padding-top: 80px; padding-bottom: 70px; }

/* Facts strip */
.facts { background: var(--green); color: var(--bone); }
.facts ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.facts li { font-family: var(--head); letter-spacing: .08em; font-size: .95rem; }
.facts li span { display: block; color: var(--brass-light); font-size: .75rem; letter-spacing: .2em; }

/* Sections */
section.block { padding: 84px 0; }
section.alt { background: var(--bone-2); }
section.dark { background: var(--green-deep); color: var(--bone); }
section.dark .lead, section.dark p { color: #d6d8d0; }
.section-head { margin-bottom: 40px; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }

.card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(20,42,29,.06); border-top: 3px solid var(--brass); display: flex; flex-direction: column; }
.card p { color: var(--muted); flex: 1; }
.card .price { font-family: var(--head); font-size: 1.6rem; color: var(--green); margin: .2em 0 .4em; }
.card .icon { width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--brass-light); display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 16px; }

.photo { border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* Fee table */
.fees { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(20,42,29,.06); }
.fees th, .fees td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--bone-2); }
.fees th { background: var(--green); color: var(--bone); font-family: var(--head); font-weight: 400; letter-spacing: .08em; }
.fees td:last-child { font-weight: 600; color: var(--green); white-space: nowrap; }
.fees tr:last-child td { border-bottom: 0; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 78px; background: #fff; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(20,42,29,.05); }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 50%; background: var(--brass); color: var(--charcoal); font-family: var(--head); display: grid; place-items: center; font-size: 1.1rem; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); }

.callout { background: #fff; border-left: 4px solid var(--brass); padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 28px 0; }
.callout strong { color: var(--green); }
.dark .callout { background: rgba(255,255,255,.06); }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: .55em; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--brass); font-weight: 700; }

/* Listings */
.listings { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.listing { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 8px 24px rgba(20,42,29,.07); display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s; }
.listing:hover { transform: translateY(-3px); color: var(--ink); }
.listing img { aspect-ratio: 4/3; object-fit: cover; background: var(--bone-2); }
.listing .body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.listing .title { font-weight: 600; line-height: 1.35; }
.listing .meta { font-size: .85rem; color: var(--muted); }
.listing .lprice { font-family: var(--head); color: var(--green); font-size: 1.3rem; margin-top: auto; }

.gb-panel { background: var(--green); color: var(--bone); border-radius: var(--radius); padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.gb-panel p { color: #d6d8d0; margin: 0; }

/* CTA band */
.cta-band { background: var(--charcoal); color: var(--bone); padding: 60px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #c9cbc4; }

/* Forms */
form.contact { display: grid; gap: 16px; }
form.contact .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: .85rem; font-weight: 600; color: var(--green); display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #cfc9bb; border-radius: 6px; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }

.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.info-list .ic { color: var(--brass); font-size: 1.2rem; }
.info-list strong { display: block; font-family: var(--head); letter-spacing: .08em; font-weight: 400; color: var(--green); }
.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); }

/* FAQ */
details { background: #fff; border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(20,42,29,.05); }
summary { cursor: pointer; font-weight: 600; color: var(--green); }
details p { margin: .8em 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--charcoal); color: #b9bcb5; font-size: .92rem; padding: 64px 0 28px; }
.site-footer a { color: #d6d8d0; text-decoration: none; }
.site-footer a:hover { color: var(--brass-light); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { font-family: var(--head); letter-spacing: .12em; color: var(--bone); font-weight: 400; margin: 0 0 14px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-brand img { height: 70px; width: auto; margin-bottom: 12px; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #3a3d39; display: grid; place-items: center; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.legal { border-top: 1px solid #2b2e2a; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #8d918a; }

/* Mobile call bar */
.callbar { display: none; }

@media (max-width: 1120px) {
  .menu-toggle { display: block; }
  .site-header .wrap { position: relative; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--green-deep); flex-direction: column; align-items: stretch; padding: 10px 22px 20px; border-bottom: 1px solid rgba(176,141,87,.35); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.07); font-size: .9rem; }
  .nav .btn { margin: 12px 0 0; text-align: center; }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--green-deep); flex-direction: column; align-items: stretch; padding: 10px 22px 20px; border-bottom: 1px solid rgba(176,141,87,.35); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav .btn { margin: 12px 0 0; text-align: center; }
  .gb-panel { grid-template-columns: 1fr; padding: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 62px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  form.contact .row { grid-template-columns: 1fr; }
  section.block { padding: 60px 0; }
  .hero .wrap { padding-top: 72px; padding-bottom: 72px; }
  .topbar .tb-right { display: none; }
  .brand img { height: 44px; }
  .brand-name { font-size: 1.05rem; }
  .fees th, .fees td { padding: 12px 14px; }
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.2); }
  .callbar a { text-align: center; padding: 16px 8px; font-family: var(--head); letter-spacing: .1em; text-decoration: none; font-size: .9rem; }
  .callbar a:first-child { background: var(--brass); color: var(--charcoal); }
  .callbar a:last-child { background: var(--green); color: var(--bone); }
}

/* Live GunBroker listings */
.gb-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.gb-head .lead { margin: 0; }
.gb-controls { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.gb-controls input { flex: 1 1 260px; }
.gb-controls select { flex: 0 1 220px; }
.gb-count { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.listing-img { position: relative; aspect-ratio: 4/3; background: var(--bone-2) url("logo.png") center/56px no-repeat; }
.listing-img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--green); color: var(--bone); font-size: .72rem; font-weight: 600; padding: 4px 9px; border-radius: 4px; }
.lprice-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.lprice-row .lprice { margin: 0; }
.plabel { font-size: .8rem; color: var(--muted); }
.listing .view { font-size: .82rem; font-weight: 600; color: var(--brass); }
.listing.skeleton { min-height: 330px; background: linear-gradient(90deg, #fff 0%, #f6f3ec 50%, #fff 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .listing.skeleton { animation: none; } }
.gb-empty { grid-column: 1 / -1; background: var(--green); color: var(--bone); border-radius: var(--radius); padding: 36px; text-align: center; }
.gb-empty p { color: #d6d8d0; font-size: 1.1rem; }
@media (max-width: 640px) {
  .listings { grid-template-columns: 1fr 1fr; gap: 12px; }
  .listing .body { padding: 12px; }
  .listing .title { font-size: .92rem; }
  .listing.skeleton { min-height: 240px; }
}

/* Contact form status */
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.ok { color: var(--green); background: #e3efe6; padding: 12px 16px; border-radius: 6px; }
.form-status.err { color: #8a1c1c; background: #f8e4e1; padding: 12px 16px; border-radius: 6px; }
button[disabled] { opacity: .7; cursor: wait; }
