/* =========================================================================
   Ray & Sons Farm and Fleet — Design System
   Rustic + modern. Palette derived from the wooden-sign logo.
   ========================================================================= */

:root {
  /* Brand palette */
  --wood:        #6b4a2b;
  --wood-dark:   #4a3420;
  --espresso:    #2a1d12;
  --forest:      #2f5233;
  --forest-dark: #21391f;
  --barn-red:    #9c3b2e;
  --barn-red-dk: #7e2d22;
  --parchment:   #f4ece0;
  --cream:       #fbf7f0;
  --line:        #e2d6c4;
  --muted:       #7a6b58;

  /* Status colors */
  --status-available: #2f7d44;
  --status-pending:   #b8791f;
  --status-sold:      #8a8378;

  /* Type */
  --font-display: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(42, 29, 18, 0.12);
  --shadow-sm: 0 4px 14px rgba(42, 29, 18, 0.10);
  --header-h: 76px;
}

/* ----------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--barn-red); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-transform: uppercase;
}
p { margin: 0 0 1rem; }

/* --------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--cream); border-block: 1px solid var(--line); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--espresso); }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 0.8rem; color: var(--barn-red); font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.78em 1.5em; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; transition: transform .08s ease, background .2s ease, box-shadow .2s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--barn-red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--barn-red-dk); color: #fff; }
.btn--forest { background: var(--forest); color: #fff; }
.btn--forest:hover { background: var(--forest-dark); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--outline { background: transparent; color: var(--wood-dark); border-color: var(--wood); }
.btn--outline:hover { background: var(--wood); color: #fff; }
.btn--sm { padding: 0.55em 1em; font-size: 0.85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--espresso);
  background-image: linear-gradient(rgba(42,29,18,.92), rgba(42,29,18,.92)),
    repeating-linear-gradient(90deg, #3a281a 0 3px, #34241600 3px 9px);
  border-bottom: 3px solid var(--barn-red);
}
.nav {
  display: flex; align-items: center; gap: 18px;
  height: var(--header-h);
}
.nav__brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.nav__brand img { height: 50px; width: auto; border-radius: 4px; }
.nav__brand-text { display: none; color: var(--cream); font-family: var(--font-display); text-transform: uppercase; line-height: 1; }
.nav__brand-text strong { display: block; font-size: 1.05rem; letter-spacing: .03em; }
.nav__brand-text span { font-size: 0.72rem; color: #d8c4a8; letter-spacing: .12em; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--cream); font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.95rem; padding: 0.5em 0.8em; border-radius: 6px;
}
.nav__links a:hover, .nav__links a.is-active { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.nav__cta { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto;
}
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--cream); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; color: #fff; text-align: center;
  padding: clamp(60px, 12vw, 120px) 0;
  background:
    linear-gradient(rgba(33,25,16,.74), rgba(33,25,16,.82)),
    radial-gradient(circle at 30% 20%, #5a7a4d 0%, #2f5233 38%, #21391f 100%);
}
.hero__logo { width: min(460px, 82%); margin: 0 auto 28px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3.2rem); color: #fff; margin-bottom: .3em; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 680px; margin: 0 auto 2rem; color: #f3ead9; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Strips */
.callbar {
  background: var(--barn-red); color: #fff; text-align: center; padding: 12px 0;
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .95rem;
}
.callbar a { color: #fff; text-decoration: underline; }

/* ----------------------------------------------------------- Value props */
.props { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.prop {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm);
}
.prop__icon { font-size: 2rem; margin-bottom: 10px; }
.prop h3 { font-size: 1.05rem; color: var(--espresso); }
.prop p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ---------------------------------------------------------- Inventory grid */
.inv-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.inv-search { flex: 1 1 240px; max-width: 360px; position: relative; }
.inv-search input {
  width: 100%; padding: 0.7em 1em 0.7em 2.4em; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--cream); font: inherit; color: var(--espresso);
}
.inv-search::before { content: "🔎"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: .6; }
.inv-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem;
  padding: 0.45em 0.95em; border-radius: 999px; border: 1.5px solid var(--wood);
  background: transparent; color: var(--wood-dark); cursor: pointer; transition: .15s;
}
.chip:hover { background: var(--wood); color: #fff; }
.chip.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }
.inv-sort select { padding: 0.6em 0.8em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--cream); font: inherit; }

.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px;
}
.card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #d8cab2, #b89b76); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .ph { width:100%; height:100%; display:flex; align-items:center; justify-content:center; color:#fff; font-family:var(--font-display); text-transform:uppercase; letter-spacing:.08em; font-size:.9rem; opacity:.85; flex-direction:column; gap:6px; }
.card__media .ph span:first-child { font-size: 2.2rem; }
.badge {
  position: absolute; top: 12px; left: 12px; color: #fff; font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; padding: .35em .7em; border-radius: 6px;
}
.badge--available { background: var(--status-available); }
.badge--pending { background: var(--status-pending); }
.badge--sold { background: var(--status-sold); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--barn-red); }
.card__title { font-family: var(--font-display); font-size: 1.18rem; color: var(--espresso); margin: 2px 0 8px; text-transform: none; }
.card__specs { list-style: none; padding: 0; margin: 0 0 14px; font-size: .88rem; color: var(--muted); display: grid; gap: 3px; }
.card__specs li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 3px; }
.card__specs li span:last-child { color: var(--espresso); font-weight: 600; text-align: right; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__price { font-family: var(--font-display); font-size: 1.4rem; color: var(--forest-dark); }
.card__price small { display: block; font-size: .68rem; color: var(--muted); letter-spacing: .08em; }

.inv-empty { text-align: center; color: var(--muted); padding: 60px 0; grid-column: 1 / -1; }

/* --------------------------------------------------------------- Why-us */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.why__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.why__list li { display: flex; gap: 14px; }
.why__list .mark { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 700; }
.why__list h4 { margin: 2px 0 3px; font-size: 1.05rem; color: var(--espresso); text-transform: none; }
.why__list p { margin: 0; color: var(--muted); font-size: .95rem; }
.why__art { display: grid; place-items: center; }
.why__art img { width: 100%; filter: drop-shadow(0 14px 22px rgba(0,0,0,.5)); }

/* ---------------------------------------------------------- Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.quote p { font-style: italic; color: var(--espresso); }
.quote .who { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: var(--barn-red); font-style: normal; }
.stars { color: #d9a300; letter-spacing: 2px; margin-bottom: 8px; }

/* --------------------------------------------------------------- CTA band */
.cta-band {
  background: linear-gradient(rgba(33,25,16,.82), rgba(33,25,16,.86)),
    radial-gradient(circle at 70% 30%, #5a7a4d, #2f5233 60%, #21391f);
  color: #fff; text-align: center; padding: 64px 0;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta-band p { color: #f1e7d6; max-width: 560px; margin: 0 auto 1.5rem; }

/* ----------------------------------------------------------------- About */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { color: var(--espresso); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* --------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.contact-info .ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: var(--forest); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.contact-info h4 { margin: 0 0 2px; text-transform: none; font-size: 1.05rem; }
.contact-info a { color: var(--espresso); }
.form { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.form label { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .05em; font-size: .8rem; color: var(--wood-dark); margin: 0 0 5px; }
.field { margin-bottom: 16px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7em 0.85em; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; font: inherit; color: var(--espresso);
}
.field textarea { min-height: 120px; resize: vertical; }
.form .note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ----------------------------------------------------------------- Footer */
.site-footer { background: var(--espresso); color: #d8c4a8; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; }
.site-footer img { height: 64px; margin-bottom: 12px; border-radius: 6px; }
.site-footer h4 { color: var(--cream); font-size: .95rem; letter-spacing: .08em; }
.site-footer a { color: #d8c4a8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid #3a2a1a; margin-top: 34px; padding-top: 18px; text-align: center; font-size: .82rem; color: #9c8868; }

/* ------------------------------------------------------------- Utilities */
.text-center { text-align: center; }
.mt-2 { margin-top: 1.5rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------- Responsive */
@media (max-width: 980px) {
  .props { grid-template-columns: repeat(2, 1fr); }
  .why, .contact-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta .btn span.lbl { }
  .nav__links {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--espresso); flex-direction: column; align-items: stretch;
    padding: 10px 18px 18px; gap: 2px; border-bottom: 3px solid var(--barn-red);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 0.8em 0.6em; }
  .nav__toggle { display: block; }
  .nav__cta { margin-left: 0; }
  .nav__cta .btn--outline { display: none; } /* keep only Call on mobile bar */
}
@media (max-width: 460px) {
  .props { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}
@media (min-width: 1100px) { .nav__brand-text { display: block; } }
