/* Ridgeline Antiques & Finds — demonstration site.
   Warmer, older palette than the Fawcett Systems site on purpose: a client
   build should look like the client, not like the person who built it. */

:root {
  --bg:        #faf7f2;
  --surface:   #ffffff;
  --text:      #2b2620;
  --muted:     #6d6154;
  --primary:   #7d3b2e;
  --primary-d: #5c2a20;
  --accent:    #4f6f8f;
  --border:    #e2d9cc;
  --radius:    6px;
  --max:       1060px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

h1, h2, h3 { line-height: 1.25; color: var(--primary-d); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: 1.5rem; margin: 0 0 .75rem; }
h3 { font-size: 1.1rem; margin: .75rem 0 .25rem; }

a { color: var(--primary); }
a:hover { color: var(--primary-d); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 720px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; background: var(--primary); color: #fff;
  padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

/* Demonstration banner — deliberately unmissable. A demo site that could be
   mistaken for a real business is a demo site that misleads somebody. */
.demo-banner {
  background: #2b2620; color: #f0e7da; text-align: center;
  font-family: system-ui, sans-serif; font-size: .85rem; padding: .5rem 1rem;
}
.demo-banner a { color: #d8b9a3; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; gap: 1rem; flex-wrap: wrap; }
.brand { font-size: 1.35rem; font-weight: 700; text-decoration: none; color: var(--primary-d); }
.brand span { display: block; font-size: .8rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 1.4rem; font-family: system-ui, sans-serif; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--primary); }

.hero { padding: 4rem 0 3rem; text-align: center; background: var(--surface); border-bottom: 1px solid var(--border); }
.eyebrow { font-family: system-ui, sans-serif; text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--muted); margin: 0 0 .75rem; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 620px; margin: 0 auto 1.5rem; }
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

.page-head { padding: 2.5rem 0 1.25rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-head .lede { margin-left: 0; }

.section { padding: 2.5rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.center { text-align: center; }

.btn {
  display: inline-block; padding: .7rem 1.4rem; border-radius: var(--radius);
  text-decoration: none; font-family: system-ui, sans-serif; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-ghost:hover { background: var(--primary); color: #fff; }

/* ---- stock grid ---- */
.grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.item img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.item h3, .item p { margin: 0; padding: 0 1rem; }
.item h3 { padding-top: .9rem; }
.price { font-size: 1.2rem; font-weight: 700; color: var(--accent); padding-top: .25rem !important; }
.cond { font-size: .9rem; color: var(--muted); padding-bottom: 1rem !important; padding-top: .4rem !important; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip {
  font-family: system-ui, sans-serif; font-size: .88rem; padding: .4rem .9rem;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 999px; cursor: pointer;
}
.chip:hover { border-color: var(--primary); }
.chip.is-on { background: var(--primary); color: #fff; border-color: var(--primary); }
.result-count { font-family: system-ui, sans-serif; font-size: .88rem; color: var(--muted); margin: 0 0 1.25rem; }

.ticks { list-style: none; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin: .6rem 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .6em; width: .45rem; height: .45rem; border-radius: 50%; background: var(--primary); }

.two-col { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.addr { font-style: normal; line-height: 1.8; }
.hours { width: 100%; border-collapse: collapse; font-family: system-ui, sans-serif; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--border); font-weight: 400; }
.hours td { text-align: right; color: var(--muted); }

.aside { color: var(--muted); font-size: .95rem; border-left: 3px solid var(--border); padding-left: 1rem; }
.notice { background: #fff6e8; border: 1px solid #e0c9a2; border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: 1.75rem; font-family: system-ui, sans-serif; font-size: .92rem; }

/* ---- form ---- */
.contact-form { font-family: system-ui, sans-serif; }
.field { margin-bottom: 1.25rem; border: 0; padding: 0; }
.field legend { font-weight: 600; font-size: .95rem; margin-bottom: .4rem; padding: 0; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
label.radio { font-weight: 400; display: block; margin: .3rem 0; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: .65rem .75rem; font: inherit; font-family: system-ui, sans-serif;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
[aria-invalid="true"] { border-color: #b8524f; }
.hint { display: block; font-size: .83rem; color: var(--muted); margin-top: .25rem; }
.err { display: block; font-size: .85rem; color: #a3382f; margin-top: .25rem; min-height: 1em; }
.form-status { font-family: system-ui, sans-serif; font-size: .95rem; margin-top: 1rem; }
.form-status[data-state="success"] { color: #2f6b45; }
.form-status[data-state="error"]   { color: #a3382f; }

/* Honeypot — off-screen rather than display:none, because some bots skip
   fields that are display:none while filling everything else. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { background: #2b2620; color: #c7bcae; padding: 2rem 0; font-family: system-ui, sans-serif; font-size: .9rem; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.footer-brand { font-family: Georgia, serif; font-size: 1.1rem; color: #f0e7da; margin: 0; font-weight: 700; }
.footer-note { margin: 0; }
.footer-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a, .footer-note a { color: #d8b9a3; }
.demo-note { color: #8d8175; font-size: .82rem; max-width: 40rem; }

@media (max-width: 600px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .nav { gap: 1rem; }
}

.tz { font-family: system-ui, sans-serif; font-size: .85rem; color: var(--muted); margin: .4rem 0 0; }

/* Demonstration banner. The return link is a persistent, always-visible way
   back to the real business — a visitor who arrives here from a search result
   has no other route, and a demo with no exit is a dead end wearing a brand. */
.demo-banner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .4rem 1.25rem;
}
.demo-banner-text { opacity: .85; }
.demo-banner-back {
  display: inline-flex; align-items: center; gap: .4rem;
  color: #f0e7da; text-decoration: none; font-weight: 600;
  border: 1px solid rgba(240,231,218,.35); border-radius: 999px;
  padding: .3rem .8rem; min-height: 32px; white-space: nowrap;
}
.demo-banner-back:hover { background: rgba(240,231,218,.12); color: #fff; }
.demo-banner-back img { display: block; border-radius: 3px; }

@media (max-width: 620px) {
  .demo-banner { font-size: .8rem; padding: .5rem .75rem; }
  .demo-banner-back { min-height: 36px; }
}
