/* Legacy Ridge Ranch — shared styles (v1) */
:root {
  --ink: #241a12;
  --muted: #6b5e51;
  --paper: #f4efe7;
  --paper-2: #ece3d3;
  --panel: #fffaf2;
  --line: rgba(61, 43, 29, .16);
  --brown: #2c1e14;
  --brown-2: #563b25;
  --brown-deep: #1b120b;
  --gold: #ba8b3c;
  --gold-bright: #e0bc75;
  --white: #fffaf4;
  --radius: 22px;
  --shadow: 0 22px 70px rgba(44, 30, 20, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: "Libre Baskerville", Georgia, serif;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 0 0 .6em;
  text-wrap: balance;
}

/* ---- Header / nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(27, 18, 11, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(224, 188, 117, .18);
}
.nav {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-bright);
  color: var(--gold-bright);
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.brand-name {
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  line-height: 1.2;
}
.brand-name small {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  color: rgba(255, 250, 244, .82);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background .18s ease, color .18s ease;
}
.nav-links a:hover { background: rgba(224, 188, 117, .14); color: var(--white); }
.nav-links a.active { background: var(--gold); color: var(--brown-deep); }
.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid rgba(224, 188, 117, .4);
  border-radius: 10px;
  color: var(--white);
  padding: 9px 12px;
  cursor: pointer;
  font-size: 1rem;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  background: var(--brown-deep);
  overflow: hidden;
  isolation: isolate;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 40%;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17,11,7,.25) 0%, rgba(17,11,7,.12) 40%, rgba(17,11,7,.94) 100%),
    linear-gradient(90deg, rgba(17,11,7,.35), transparent 55%);
}
.hero-inner {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 64px 20px 52px;
  color: var(--white);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.kicker::before { content: ""; width: 34px; height: 1.5px; background: var(--gold-bright); }
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 5rem);
  color: var(--white);
  margin: 16px 0 12px;
}
.hero p.lede {
  max-width: 560px;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  color: rgba(255, 250, 244, .86);
  margin: 0 0 26px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--brown-deep); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-ghost { border-color: rgba(255,250,244,.5); color: var(--white); background: rgba(17,11,7,.25); }
.btn-ghost:hover { border-color: var(--gold-bright); }

/* ---- Layout ---- */
.page-wrap { width: min(100%, 1080px); margin: 0 auto; padding: 56px 20px 72px; }
.section { margin-bottom: 64px; }
.eyebrow {
  font-size: .76rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.section h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.lede { color: var(--muted); max-width: 640px; font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(43, 28, 17, .07);
  display: flex;
  flex-direction: column;
}
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.25rem; }
.card-body p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-body .btn { margin-top: auto; align-self: flex-start; padding: 10px 20px; font-size: .84rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}
.split-img {
  border-radius: 26px 10px 26px 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split-img img { width: 100%; height: 100%; object-fit: cover; }

.quote-band {
  background: var(--brown);
  color: var(--white);
  border-radius: 28px 10px 28px 10px;
  padding: clamp(30px, 6vw, 56px);
  position: relative;
  overflow: hidden;
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(186,139,60,.16), transparent 55%),
    repeating-linear-gradient(120deg, rgba(255,255,255,.035) 0 1px, transparent 1px 16px);
  pointer-events: none;
}
.quote-band h2 { color: var(--gold-bright); position: relative; }
.quote-band p { color: rgba(255,250,244,.8); position: relative; max-width: 620px; }

/* ---- Tiers ---- */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tier {
  display: flex; flex-direction: column;
  padding: 26px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 14px 30px 14px 14px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(43, 28, 17, .06);
}
.tier.featured { background: var(--brown); color: var(--white); border-color: transparent; }
.tier-label { color: var(--gold); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.featured .tier-label { color: var(--gold-bright); }
.price { margin: 14px 0 2px; font-family: "Libre Baskerville", serif; font-size: clamp(1.9rem, 5vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }
.term { color: var(--muted); font-size: .84rem; }
.featured .term { color: rgba(255,250,244,.7); }
.tier p { color: var(--muted); font-size: .9rem; }
.featured.tier p { color: rgba(255,250,244,.78); }
.tier .btn { margin-top: auto; align-self: flex-start; }
.fine-print { margin: 16px 2px 0; color: var(--muted); font-size: .76rem; line-height: 1.6; }

/* ---- Sponsor list ---- */
.sponsor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sponsor {
  display: flex; align-items: center; gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease;
}
.sponsor:hover { transform: translateY(-2px); border-color: var(--gold); }
.sponsor-initial {
  flex: none;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brown-2);
  color: var(--gold-bright);
  font-family: "Libre Baskerville", serif;
  font-weight: 700;
  font-size: 1.2rem;
}
.sponsor strong { display: block; font-size: 1rem; }
.sponsor span { color: var(--muted); font-size: .82rem; }

/* ---- Herd cards ---- */
.herd { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.herd .card-body h3 { font-size: 1.4rem; }
.herd .tag {
  align-self: flex-start;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(186,139,60,.45);
  border-radius: 999px; padding: 5px 12px;
}

/* ---- Stat chips ---- */
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.stat {
  background: var(--brown);
  color: var(--white);
  border-radius: 16px;
  padding: 16px 22px;
}
.stat b { display: block; font-family: "Libre Baskerville", serif; font-size: 1.5rem; color: var(--gold-bright); }
.stat small { color: rgba(255,250,244,.72); font-size: .78rem; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 18px; text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.contact-item:hover { transform: translateY(-2px); border-color: var(--gold); }
.contact-item svg { flex: none; width: 22px; height: 22px; color: var(--gold); }
.contact-item strong { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-item span { font-weight: 600; }
form.contact-form {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: 0 10px 30px rgba(43, 28, 17, .07);
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; background: var(--paper); color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check-list { display: grid; gap: 10px; }
.check-row {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 12px;
  cursor: pointer; font-size: .92rem; font-weight: 600;
}
.check-row input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.badge-soon {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--brown-deep); background: var(--gold-bright);
  border-radius: 999px; padding: 5px 12px; margin-bottom: 6px;
  font-family: "Manrope", sans-serif;
}
.anchor-target { scroll-margin-top: 96px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.feature-list li { padding-left: 28px; position: relative; font-weight: 600; }
.feature-list li::before { content: "✓"; position: absolute; left: 2px; color: var(--gold); font-weight: 700; }

/* ---- Footer ---- */
.site-footer {
  background: var(--brown-deep);
  color: rgba(255, 250, 244, .72);
  border-top: 1px solid rgba(224, 188, 117, .18);
}
.footer-inner {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 44px 20px 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer-brand { font-family: "Libre Baskerville", serif; color: var(--white); font-size: 1.25rem; margin-bottom: 8px; }
.footer-inner p { margin: 0 0 6px; font-size: .84rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-nav a { font-size: .84rem; color: rgba(255,250,244,.72); text-decoration: none; }
.footer-nav a:hover { color: var(--gold-bright); }
.footer-base {
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 18px 20px 28px;
  border-top: 1px solid rgba(255,250,244,.12);
  font-size: .78rem;
  color: rgba(255,250,244,.55);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(27, 18, 11, .99);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(224, 188, 117, .18);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .cards, .herd, .tiers, .sponsor-grid { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 74vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
