/* ---------- Tokens ---------- */
:root {
  --copper: #b06a3b;
  --copper-deep: #8a4f29;
  --amber: #d4a24c;
  --walnut: #2a1d14;
  --walnut-soft: #3b2a1e;
  --cream: #f5efe4;
  --cream-deep: #ece2cd;
  --paper: #faf6ee;
  --ink: #1c140d;
  --ink-soft: #4a3a2c;
  --line: #d9cdb6;
  --line-dark: #5a4434;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1120px;
  --radius: 6px;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--copper-deep); text-decoration: none; }
a:hover { color: var(--copper); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); line-height: 1.08; font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--copper-deep);
  margin: 0 0 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--copper-deep);
  color: var(--cream);
}
.btn-primary:hover { background: var(--copper); color: var(--cream); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--copper-deep); color: var(--copper-deep); }
.btn-wide { width: 100%; padding: 1rem; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.site-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.site-nav a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--copper-deep);
  color: var(--cream) !important;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--copper); color: var(--cream) !important; }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(ellipse 60% 60% at 80% 0%, rgba(212, 162, 76, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 30%, rgba(176, 106, 59, 0.12), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: 820px; }
.lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 38em;
  margin-bottom: 2rem;
}
.hero-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 1.4rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.flow-step {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--walnut);
  padding: 0.4rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.flow-step-emphasis {
  background: var(--copper-deep);
  color: var(--cream);
  border-color: var(--copper-deep);
}
.flow-arrow {
  color: var(--copper-deep);
  font-size: 1.1rem;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-light { background: var(--paper); }
.section-dark {
  background: var(--walnut);
  color: var(--cream);
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--cream); }
.section-dark .section-lede { color: rgba(245, 239, 228, 0.78); }
.section-feature {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title { max-width: 24ch; margin-bottom: 0.75rem; }
.section-title-tight { margin-bottom: 0.5rem; }
.section-lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: 3rem;
}

/* ---------- Operations grid ---------- */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.ops-card {
  padding: 1.6rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ops-card h3 {
  color: var(--copper-deep);
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}
.ops-card p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Fit grid ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.fit-col {
  padding: 2rem;
  background: var(--walnut-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.fit-col h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--sans);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.fit-yes h3 { color: var(--amber); }
.fit-no h3 { color: rgba(245, 239, 228, 0.55); }
.fit-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fit-col li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  border-bottom: 1px solid rgba(245, 239, 228, 0.1);
  position: relative;
  font-size: 0.97rem;
}
.fit-col li:last-child { border-bottom: 0; }
.fit-yes li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: var(--amber);
  font-weight: 700;
}
.fit-no li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0.7rem;
  color: rgba(245, 239, 228, 0.4);
}

@media (max-width: 720px) {
  .fit-grid { grid-template-columns: 1fr; }
}

/* ---------- Story grid ---------- */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.story-card {
  padding: 1.75rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 3px solid var(--copper-deep);
}
.story-tag {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--copper-deep);
  margin: 0 0 0.75rem;
}
.story-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}
.story-card p {
  font-size: 0.97rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Feature row (Cox's Creek) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-text p { color: var(--ink-soft); max-width: 38em; }
.feature-text h2 { font-size: 2.2rem; }
.feature-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.feature-stat {
  padding: 1.1rem 1.3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.stat-value {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--copper-deep);
  margin: 0;
  min-width: 3.5rem;
}
.stat-label {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 720px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Pricing ---------- */
.pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.pricing-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 50ch;
}
.pricing-cta { text-align: right; }
@media (max-width: 720px) {
  .pricing-row { grid-template-columns: 1fr; }
  .pricing-cta { text-align: left; }
}

/* ---------- CTA / contact ---------- */
.section-cta { padding: 6rem 0; }
.cta-inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta-inner h2 {
  color: var(--cream);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}
.cta-lede {
  color: rgba(245, 239, 228, 0.78);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}
.contact-form {
  text-align: left;
  background: var(--walnut-soft);
  padding: 2rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-full { display: block; margin-bottom: 1.25rem; }
.contact-form label span {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(245, 239, 228, 0.78);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--walnut);
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  color: var(--cream);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.contact-form textarea { resize: vertical; }
.form-fallback {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: rgba(245, 239, 228, 0.6);
  text-align: center;
}
.form-fallback a {
  color: var(--amber);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form-fallback a:hover { color: var(--cream); }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--walnut);
  color: rgba(245, 239, 228, 0.78);
  padding: 2.5rem 0;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin: 0;
  margin-right: 1rem;
}
.footer-meta { margin: 0; font-size: 0.92rem; }
.footer-meta-muted { margin-left: auto; color: rgba(245, 239, 228, 0.45); }

/* ---------- Responsive header ---------- */
@media (max-width: 640px) {
  .site-nav { gap: 1rem; }
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Legal pages (privacy, terms) ---------- */
.legal-page {
  padding: 4rem 0 5rem;
  background: var(--paper);
}
.legal-inner {
  max-width: 760px;
}
.legal-page h1 {
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
}
.legal-page h2 {
  font-size: 1.35rem;
  margin-top: 2.4rem;
  margin-bottom: 0.6rem;
  color: var(--walnut);
}
.legal-page p,
.legal-page li {
  font-size: 1rem;
  color: var(--ink-soft);
}
.legal-page ul {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}
.legal-page li {
  margin-bottom: 0.5em;
}
.legal-page strong { color: var(--ink); }
.legal-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

/* ---------- Footer links ---------- */
.footer-links {
  margin: 0;
  font-size: 0.88rem;
  flex-basis: 100%;
  color: rgba(245, 239, 228, 0.55);
}
.footer-links a {
  color: rgba(245, 239, 228, 0.78);
  text-decoration: none;
}
.footer-links a:hover { color: var(--cream); }
.footer-links span { margin: 0 0.5rem; }
