/* HL Custom Panels · the public pages. The layout of the ranch-supply site John pointed at, in colors of his own: steel and copper. A light
   galvanized-steel masthead, graphite for the category bar, inventory and footer, a blue-steel About band, and copper (his rusted pipe) for the
   Call buttons, prices and the chosen category. Mobile first; the masthead and the grid open up from 560, 900 and 1180 px. */

@font-face { font-family: 'Bevan'; src: url('/fonts/bevan-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url('/fonts/barlow-semi-condensed-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  /* the palette: every color of the public pages is here */
  --head: #d5dadf;            /* masthead: galvanized steel */
  --head-ink: #1a1e23;        /* its text */
  --head-btn: #23282e;        /* its Call us button */
  --head-btn-hover: #14171b;
  --bar: #1a1e23;             /* category bar: graphite */
  --bar-line: #2e353d;
  --bar-link: #d0d6dc;
  --ink: #121519;             /* the page */
  --ink-2: #1a1e23;           /* cards */
  --ink-3: #2c333b;           /* lines */
  --ink-4: #20252b;           /* behind a photo still loading */
  --ink-5: #444d57;           /* the HL mark where a listing has no photo, dashed lines */
  --paper: #f1f3f4;           /* text */
  --muted: #a9b1b9;
  --title: #e6e9ec;           /* headings */
  --accent: #d4874f;          /* copper: prices, small headings, the chosen category and photo, outlined buttons */
  --accent-ink: #1c120a;      /* text on --accent */
  --accent-ink-soft: #432913;
  --link: #e3b48a;            /* links on the page, Call for price */
  --line-hover: #a8683a;      /* the edge of a card or category under the mouse */
  --rust: #b65a2a;            /* copper: Call buttons */
  --rust-hover: #9a4a22;
  --band: #3b4855;            /* About: blue steel */
  --overlay: rgba(14, 17, 21, .66);  /* over the photo band */
  --foot: #1a1e23;            /* footer */
  --foot-deep: #121519;
  --foot-ink: #eceff1;
  --foot-soft: #c9d0d6;
  --foot-faint: #a6aeb6;
  --ok: #86c47f;
  --sold: #c8452f;
  --display: 'Bevan', Rockwell, Georgia, serif;
  --label: 'Barlow Semi Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 6px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }  /* Contact, Custom builds: the page glides down (not with reduced motion, below) */
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 1.0625rem/1.55 var(--body); overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.i { width: 1.15em; height: 1.15em; flex: none; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; font-weight: 600; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid #f0c27a; outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .6em 1.2em;
  border: 2px solid transparent; border-radius: var(--radius); font: 700 1rem/1.1 var(--label); letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-lg { min-height: 54px; padding: .75em 1.45em; font-size: 1.075rem; }
.btn-rust { background: var(--rust); color: #fff; }
.btn-rust:hover { background: var(--rust-hover); }
.btn-dark { background: var(--head-btn); color: #fff; }
.btn-dark:hover { background: var(--head-btn-hover); }
.btn-ghost { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--paper); }
.btn-outline:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.btn-plain { background: transparent; color: var(--link); padding-left: .7em; padding-right: .7em; }
.btn-plain:hover { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-row.is-left { justify-content: flex-start; }

/* ---- the owner's bar (only when signed in) */
.adminbar { background: #f0c27a; color: #1a1408; font: 600 .95rem/1.3 var(--body); }
.adminbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; }
.adminbar a { display: inline-flex; align-items: center; gap: .35em; }

/* ---- masthead */
.masthead { background: var(--head); color: var(--head-ink); }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { width: auto; height: 58px; }
.masthead-tag, .masthead-phone { display: none; }
.masthead-call { display: flex; align-items: center; }

/* ---- category bar */
.catnav { background: var(--bar); border-bottom: 1px solid #000; }
.catnav .wrap { padding-left: 4px; padding-right: 4px; }
.catnav ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.catnav ul::-webkit-scrollbar { display: none; }
.catnav a { display: block; padding: 15px 12px 12px; border-bottom: 3px solid transparent; color: var(--bar-link); white-space: nowrap;
  text-decoration: none; font: 700 .95rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.catnav a:hover, .catnav a[aria-current="page"] { color: #fff; border-bottom-color: var(--rust); }

/* ---- hero */
.hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(460px, 74vh, 680px); overflow: hidden; background: #2a2f36; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .46) 0%, rgba(0, 0, 0, .24) 45%, rgba(0, 0, 0, .62) 100%); }
.hero-copy { padding-top: 56px; padding-bottom: 56px; text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto; color: #fff; font: 400 clamp(2.15rem, 6.4vw, 4.2rem)/1.06 var(--display); text-transform: uppercase;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 8px 28px rgba(0, 0, 0, .5); }
.hero p { text-wrap: balance; max-width: 32em; margin: 18px auto 30px; color: #f3eee4; font-size: clamp(1.08rem, 2.3vw, 1.3rem); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }

/* ---- sections */
.section { padding: 56px 0 64px; }
.section-tight { padding-bottom: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.section-title { color: var(--title); font: 400 clamp(1.65rem, 4.2vw, 2.55rem)/1.1 var(--display); text-transform: uppercase; }
.section-link { display: inline-flex; align-items: center; gap: .4em; color: var(--link); white-space: nowrap; text-decoration: none;
  font: 700 .95rem/1 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.section-link:hover { color: #fff; }
.section-more { margin-top: 32px; text-align: center; }

/* ---- listing cards */
.grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0; padding: 0; list-style: none; }
.card-link { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--ink-2); border: 1px solid var(--ink-3);
  border-radius: 8px; text-decoration: none; transition: transform .15s, border-color .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-2px); border-color: var(--line-hover); box-shadow: 0 12px 26px rgba(0, 0, 0, .45); }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--ink-4); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-nophoto { display: grid; place-items: center; height: 100%; color: var(--ink-5); font: italic 700 3.2rem/1 Georgia, serif; }
.card.is-sold .card-photo img { filter: grayscale(.55) brightness(.78); }
.badge { position: absolute; top: 12px; left: 12px; padding: 6px 10px; border-radius: 4px; color: #fff; font: 700 .85rem/1 var(--label);
  letter-spacing: .14em; text-transform: uppercase; }
.badge-sold { background: var(--sold); }
.badge-hidden { background: #57534c; }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.card-cat { color: var(--muted); font: 700 .82rem/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.card-title { color: var(--paper); font: 600 1.16rem/1.28 var(--body); }
.card-price { margin-top: auto; padding-top: 6px; color: var(--accent); font: 700 1.3rem/1.2 var(--label); letter-spacing: .02em; }
.card-price span { color: var(--muted); font-size: .92rem; letter-spacing: .04em; }
.card-price.is-call { color: var(--link); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; }
.empty { padding: 32px 20px; border: 1px dashed var(--ink-5); border-radius: 8px; color: var(--muted); font-size: 1.1rem; text-align: center; }
.empty p + p { margin-top: 8px; }
.empty a { color: var(--accent); font-weight: 600; }

/* ---- bands */
.band { position: relative; isolation: isolate; overflow: hidden; }
.band-photo { padding: 88px 0; background: #1d2228; text-align: center; }
.band-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.band-photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--overlay); }
.band-copy .section-title { color: #fff; }
.band-copy p { text-wrap: balance; max-width: 34em; margin: 16px auto 28px; color: #efe9dd; font-size: 1.15rem; }
.band-about { padding: 64px 0; background: var(--band); color: #fff; }
.about { display: grid; gap: 28px; align-items: center; }
.about-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; box-shadow: 0 14px 32px rgba(0, 0, 0, .3); }
.about-copy .section-title { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.about-copy p { margin-top: 14px; font-size: 1.12rem; }

/* ---- inventory page */
.page-head { margin-bottom: 24px; padding: 40px 0 28px; background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-bottom: 1px solid var(--ink-3); }
.page-title { color: var(--title); font: 400 clamp(1.95rem, 5.2vw, 3rem)/1.1 var(--display); text-transform: uppercase; }
.page-head p { margin-top: 10px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: .45em; min-height: 42px; padding: 8px 15px; background: var(--ink-2); border: 1px solid var(--ink-3);
  border-radius: var(--radius); color: var(--paper); text-decoration: none; font: 700 .95rem/1 var(--label); letter-spacing: .05em; text-transform: uppercase;
  box-shadow: inset 0 0 0 3px var(--ink-2), inset 0 0 0 4px color-mix(in srgb, var(--paper) 22%, transparent); }  /* like the logo plate: soft corners, a thin line just inside */
.chip span { color: var(--muted); font-size: .85rem; }
.chip:hover { border-color: var(--line-hover); }
.chip[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px rgba(18, 18, 18, .45); }
.chip[aria-current="page"] span { color: var(--accent-ink-soft); }

/* ---- listing page */
.item-page { padding-top: 20px; padding-bottom: 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font: 700 .9rem/1.2 var(--label); letter-spacing: .08em; text-transform: uppercase; }
.crumbs a { color: var(--link); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.item { display: grid; gap: 28px; }
.gallery, .item-info { min-width: 0; }
.gallery-frame { position: relative; overflow: hidden; background: #0a0a0a; border: 1px solid var(--ink-3); border-radius: 8px; }
.gallery-track { display: flex; aspect-ratio: 4 / 3; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-frame.is-wide .gallery-track { aspect-ratio: 16 / 9; }
.gallery-frame.is-tall .gallery-track { aspect-ratio: 4 / 5; max-height: 78vh; }
.slide { display: grid; flex: 0 0 100%; place-items: center; scroll-snap-align: center; scroll-snap-stop: always; }
.slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-empty { display: grid; aspect-ratio: 4 / 3; place-items: center; color: var(--ink-5); font: italic 700 4rem/1 Georgia, serif; }
.gallery-arrow { position: absolute; top: 50%; display: grid; width: 46px; height: 46px; place-items: center; padding: 0; transform: translateY(-50%);
  background: rgba(0, 0, 0, .58); border: 0; border-radius: 50%; color: #fff; cursor: pointer; }
.gallery-arrow:hover { background: rgba(0, 0, 0, .85); }
.gallery-arrow .i { width: 26px; height: 26px; }
.gallery-arrow.is-prev { left: 10px; }
.gallery-arrow.is-next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; background: rgba(0, 0, 0, .62); border-radius: 999px;
  font: 700 .85rem/1.3 var(--label); letter-spacing: .06em; }
.gallery-thumbs { position: relative; display: flex; gap: 8px; margin: 12px 0 0; padding: 0 0 4px; list-style: none; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; background: none; border: 2px solid transparent;
  border-radius: 6px; opacity: .65; cursor: pointer; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.item-cat a { color: var(--muted); text-decoration: none; font: 700 .9rem/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.item-cat a:hover { color: var(--link); }
.item-title { margin-top: 6px; color: #fff; font: 400 clamp(1.7rem, 4.2vw, 2.45rem)/1.14 var(--display); text-transform: uppercase; }
.item-price { margin-top: 14px; color: var(--accent); font: 700 2rem/1.1 var(--label); }
.item-price span { color: var(--muted); font-size: 1.1rem; }
.item-price.is-call { color: var(--link); font-size: 1.45rem; letter-spacing: .06em; text-transform: uppercase; }
.item-status { display: inline-flex; align-items: center; gap: .55em; margin-top: 12px; font: 700 .95rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; }
.item-status span { width: 10px; height: 10px; background: currentColor; border-radius: 50%; }
.item-status.is-available { color: var(--ok); }
.item-status.is-sold { color: #ff8f78; }
.item-status.is-hidden { color: #f0c27a; }
.item-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.item-cta .btn-lg { flex: 1 1 230px; }
.item-note { margin-top: 18px; padding: 12px 14px; background: var(--ink-2); border-left: 3px solid var(--rust); color: #ece2d3; }
.item-sub { margin-top: 30px; color: var(--accent); font: 700 1rem/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.item-details { display: grid; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.item-details li { display: flex; align-items: flex-start; gap: .6em; }
.item-details .i { margin-top: .22em; color: var(--ok); }
.item-desc { margin-top: 24px; color: #e8e2d6; }
.item-desc p + p { margin-top: 12px; }
.more { margin-top: 64px; }

/* ---- the full-screen photo viewer (site.js) */
.viewer { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; background: #000; border: 0; color: #fff; }
.viewer::backdrop { background: #000; }
.viewer img { width: 100%; height: 100%; object-fit: contain; }
.viewer-btn { position: absolute; display: grid; width: 52px; height: 52px; place-items: center; padding: 0; background: rgba(30, 30, 30, .75);
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; color: #fff; cursor: pointer; }
.viewer-btn .i { width: 26px; height: 26px; }
.viewer-close { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.viewer-prev, .viewer-next { top: 50%; transform: translateY(-50%); }
.viewer-prev { left: 12px; }
.viewer-next { right: 12px; }
.viewer-count { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; padding: 4px 12px; transform: translateX(-50%);
  background: rgba(30, 30, 30, .75); border-radius: 999px; font: 700 .95rem/1.3 var(--label); letter-spacing: .06em; }

/* ---- footer */
.site-footer { padding-top: 56px; background: var(--foot); color: var(--foot-ink); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 44px; }
.foot-brand img { width: 190px; height: auto; }
.foot-brand p { max-width: 22em; margin-top: 14px; color: var(--foot-soft); }
.foot-col h2 { margin-bottom: 12px; color: var(--accent); font: 700 .95rem/1.2 var(--label); letter-spacing: .12em; text-transform: uppercase; }
.foot-col p + p { margin-top: 10px; }
.foot-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.foot-list a, .foot-link { display: inline-flex; align-items: center; gap: .55em; color: #fff; font-weight: 600; text-decoration: none; }
.foot-list a:hover, .foot-link:hover { text-decoration: underline; }
.foot-base { background: var(--foot-deep); color: var(--foot-faint); font-size: .92rem; }
.foot-base .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 16px; padding-bottom: 16px; }
.foot-base a { color: var(--foot-faint); }

/* ---- wider screens */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .wrap { padding-left: 24px; padding-right: 24px; }
  .catnav .wrap { padding-left: 12px; padding-right: 12px; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 860px) {
  .about { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (min-width: 900px) {
  .masthead-row { display: grid; grid-template-columns: 1fr auto 1fr; min-height: 112px; }
  .brand img { height: 86px; }
  .masthead-tag { display: block; font: 700 .98rem/1.3 var(--label); letter-spacing: .1em; text-transform: uppercase; }
  .masthead-call { justify-content: flex-end; gap: 20px; }
  .masthead-phone { display: flex; flex-direction: column; align-items: flex-end; color: var(--head-ink); text-decoration: none;
    font: 700 1.4rem/1.1 var(--label); letter-spacing: .03em; }
  .masthead-phone span { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
  .catnav ul { justify-content: center; gap: 10px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 980px) {
  .item { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: start; }
}
@media (min-width: 1024px) {
  .foot-grid { grid-template-columns: 1.3fr repeat(3, 1fr); }
}
@media (min-width: 1180px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
