:root {
  --green: #2d5a3d;
  --green-dark: #1d3d29;
  --green-ink: #14281b;
  --gold: #d8962b;
  --gold-dark: #b67a1a;
  --red: #9b3226;
  --cream: #f8f5ee;
  --paper: #ffffff;
  --ink: #1f2420;
  --muted: #5d665f;
  --line: #e3ddd0;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 40, 27, .06), 0 6px 20px rgba(20, 40, 27, .08);
  --head: "Bitter", Georgia, serif;
  --body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--green-ink); }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--gold-dark); margin-bottom: .5em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 8px; border: 2px solid transparent;
  font: 700 1rem var(--body); text-decoration: none; cursor: pointer; transition: .15s;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--green-ink); }
.btn-gold:hover { background: #e6a63c; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { border-color: currentColor; color: var(--green); background: transparent; }
.btn-ghost:hover { background: rgba(45, 90, 61, .08); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: transparent; }
.btn-light:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: .45em .9em; font-size: .9rem; }
.btn-danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Top bar + header */
.topbar { background: var(--green-ink); color: #dfe7e1; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-ink); }
.logo svg { flex: none; }
.logo-text { font-family: var(--head); font-weight: 800; font-size: 1.15rem; line-height: 1.05; }
.logo-text small { display: block; font-family: var(--body); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; padding: 8px 12px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current="page"] { background: #eef2ec; color: var(--green); }
.nav .btn { margin-left: 8px; color: var(--green-ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-ink); }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav .btn { margin: 8px 0 0; }
}

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(110deg, rgba(20,40,27,.94) 0%, rgba(20,40,27,.78) 45%, rgba(20,40,27,.35) 100%), var(--hero-img, none) center/cover no-repeat, var(--green-dark);
}
.hero .wrap { padding-top: clamp(56px, 9vw, 110px); padding-bottom: clamp(56px, 9vw, 110px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p.lead { font-size: 1.2rem; max-width: 40ch; color: #e7ede8; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-weight: 600; color: #f3e2bf; }
.hero-badges span::before { content: "✓"; margin-right: 6px; color: var(--gold); }
.page-hero { background: var(--green-dark); color: #fff; }
.page-hero .wrap { padding-top: 48px; padding-bottom: 44px; }
.page-hero h1 { color: #fff; margin-bottom: .2em; }
.page-hero p { color: #d7e1d9; max-width: 60ch; margin: 0; }

/* Sections */
section.block { padding: clamp(48px, 7vw, 84px) 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }

/* Brand cards */
.brand-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.brand-card h3 { font-size: 1.5rem; }
.brand-card .btn { align-self: flex-start; margin-top: auto; }
.brand-tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: #eef2ec; color: var(--green); }
.brand-tag.truline { background: #f7ead3; color: #8a5a10; }

/* Feature tiles */
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.tile .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: #eef2ec; color: var(--green); margin-bottom: 12px; }
.tile h3 { font-size: 1.1rem; margin-bottom: .3em; }
.tile p { margin: 0; color: var(--muted); }

/* Inventory cards */
.inv-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; cursor: pointer; transition: transform .15s, box-shadow .15s; text-align: left; font: inherit; color: inherit; padding: 0; }
.inv-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,40,27,.14); }
.inv-photo { position: relative; aspect-ratio: 4/3; background: #e9e4d8; }
.inv-photo img { width: 100%; height: 100%; object-fit: cover; }
.inv-photo .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; }
.badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--green); color: #fff; }
.badge.pending { background: var(--gold); color: var(--green-ink); }
.badge.sold { background: var(--red); }
.badge.sale { left: auto; right: 10px; background: var(--red); }
.photo-count { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .78rem; padding: 2px 8px; border-radius: 999px; }
.inv-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.inv-body h3 { margin: 0; font-size: 1.2rem; }
.inv-meta { font-size: .92rem; color: var(--muted); }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.price { font-family: var(--head); font-weight: 800; font-size: 1.45rem; color: var(--green-ink); }
.price s { font-size: .95rem; color: var(--muted); font-weight: 600; margin-right: 6px; }
.rto-from { font-weight: 700; color: var(--gold-dark); font-size: .98rem; }
.rto-from small { color: var(--muted); font-weight: 600; }

/* Filters */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 24px; }
label.f { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 700; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 1rem; padding: .6em .7em; border: 1px solid #cfc8b8; border-radius: 7px; background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }
.result-count { margin: -8px 0 18px; color: var(--muted); }
.empty { text-align: center; padding: 48px 16px; background: var(--paper); border: 1px dashed #cfc8b8; border-radius: var(--radius); color: var(--muted); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; background: rgba(10, 20, 14, .65); padding: 24px 12px; overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: var(--paper); border-radius: 12px; width: 100%; max-width: 980px; overflow: hidden; position: relative; }
.modal-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow); }
.detail { display: grid; grid-template-columns: 1.25fr 1fr; }
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }
.gallery-main { aspect-ratio: 4/3; background: #e9e4d8; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.3rem; cursor: pointer; }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #f1ede4; }
.thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-info { padding: 26px 24px; }
.detail-info h2 { font-size: 1.7rem; margin-bottom: .2em; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: .95rem; margin: 14px 0; }
.specs dt { color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; }
.rto-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .98rem; }
.rto-table th, .rto-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.rto-table th { background: #f4f1e8; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rto-table td:last-child { font-weight: 700; color: var(--green-ink); }
.pre { white-space: pre-line; }

/* Models */
.tabs { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px; gap: 4px; margin-bottom: 26px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; font: 700 1rem var(--body); padding: 10px 18px; border-radius: 7px; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--green); color: #fff; }
.model-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.model-card .img { aspect-ratio: 4/3; background: #e9e4d8 center/cover no-repeat; }
.model-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.model-card h3 { margin: 0; }
.model-card ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.model-card .uses { font-size: .88rem; font-weight: 600; color: var(--gold-dark); }
.model-card .actions { margin-top: auto; padding-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--green-ink); font-weight: 800; font-family: var(--head); margin-bottom: 10px; }
.step h3 { font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { background: var(--green); color: #fff; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { margin: 0; color: #dfe9e2; }
.cta-band .phone-big { font-family: var(--head); font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: #fff; text-decoration: none; }

/* Forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-msg { margin-top: 12px; font-weight: 600; }
.form-msg.ok { color: var(--green); } .form-msg.err { color: var(--red); }

/* FAQ */
details.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; margin-bottom: 10px; }
details.faq summary { font-weight: 700; cursor: pointer; color: var(--green-ink); }
details.faq p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--green-ink); color: #c9d4cc; padding: 48px 0 24px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 700px) {
  .callbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--gold); box-shadow: 0 -4px 14px rgba(0,0,0,.15); }
  .callbar a { flex: 1; padding: 14px; text-align: center; font-weight: 800; color: var(--green-ink); text-decoration: none; }
  body { padding-bottom: 52px; }
}

.skeleton { background: linear-gradient(90deg, #ece7db 25%, #f5f1e8 50%, #ece7db 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 340px; }
@keyframes sk { to { background-position: -200% 0; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Fixes */
[hidden] { display: none !important; }
.inv-body .brand-tag, .model-card .brand-tag, .detail-info .brand-tag { align-self: flex-start; }
@media (min-width: 801px) { .detail > div:first-child { position: sticky; top: 0; align-self: start; } }

/* Model photos: fill a fixed 4:3 frame regardless of source size */
.model-card .img { position: relative; overflow: hidden; }
.model-card .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Footer QR code */
.footer-qr img { width: 150px; height: 150px; background: #fff; padding: 14px; border-radius: 10px; }
.footer-qr p { margin: 10px 0 0; font-size: .85rem; max-width: 22ch; }
