/* PoultryFarmAppraiser.com — global styles
   Palette: ink navy, stone off-white, sage green accent, muted wheat, charcoal text
   Type: serif display for headings, sans for body/UI (system stack; swap to
   self-hosted or Google Fonts at deploy time — see /docs/DEPLOYMENT.md) */

:root {
  --ink: #16232E;
  --ink-2: #223448;
  --stone: #F6F3EC;
  --stone-2: #EFEAE0;
  --sage: #4E6B54;
  --sage-dark: #3A5140;
  --wheat: #C9A874;
  --charcoal: #262B2E;
  --slate: #5B6670;
  --line: #DAD4C6;
  --white: #FFFFFF;

  --font-display: "Source Serif 4", "Iowan Old Style", "Georgia", serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --max: 1120px;
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--stone);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--sage-dark); text-decoration: underline; text-decoration-color: rgba(58,81,64,0.35); }
a:hover { text-decoration-color: currentColor; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--wheat);
  outline-offset: 2px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 0; }
h3 { font-size: 1.25rem; }
p { max-width: 68ch; }
p.wide { max-width: 78ch; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--stone);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.brand small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.72rem; color: var(--slate); letter-spacing: 0.03em; }
nav.primary-nav { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
nav.primary-nav a { color: var(--ink-2); text-decoration: none; font-size: 0.94rem; }
nav.primary-nav a:hover { color: var(--sage-dark); text-decoration: underline; }
.nav-cta {
  background: var(--sage-dark);
  color: var(--white) !important;
  padding: 9px 16px;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--sage); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 0.82rem; color: var(--slate); margin: 18px 0 6px; }
.breadcrumb a { color: var(--slate); }

/* ---------- Hero ---------- */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 56px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 40px;
}
.eyebrow {
  font-size: 0.82rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.hero p.lede { font-size: 1.08rem; color: var(--ink-2); }
.hero-actions { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.hero-figure {
  background: var(--ink);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stone-2);
  font-size: 0.85rem;
  text-align: center;
  padding: 20px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}
.btn-primary { background: var(--sage-dark); color: var(--white); }
.btn-primary:hover { background: var(--sage); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }

/* ---------- Proof strip ---------- */
.proof-strip {
  background: var(--ink);
  color: var(--stone-2);
}
.proof-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 26px 24px;
}
.proof-item .num { font-family: var(--font-display); font-size: 1.6rem; color: var(--white); display: block; }
.proof-item .label { font-size: 0.82rem; color: var(--stone-2); opacity: 0.85; }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; border-bottom: 1px solid var(--line); }
section.block.tight { padding: 40px 0; }
section.block:last-of-type { border-bottom: none; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.col-list { padding-left: 0; margin: 0; list-style: none; }
.col-list li { padding: 10px 0; border-bottom: 1px dotted var(--line); }
.col-list li:last-child { border-bottom: none; }

.factor {
  border-left: 3px solid var(--wheat);
  padding: 4px 0 4px 16px;
  margin-bottom: 22px;
}
.factor h3 { margin-bottom: 4px; }

table.plain { width: 100%; border-collapse: collapse; margin: 18px 0; }
table.plain caption { text-align: left; font-size: 0.85rem; color: var(--slate); margin-bottom: 8px; }
table.plain th, table.plain td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
table.plain th { color: var(--ink); font-family: var(--font-display); font-weight: 600; }

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage-dark);
  padding: 18px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
}
.disclosure { font-size: 0.85rem; color: var(--slate); }

.states-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 20px 0; }
.states-grid a {
  display: block;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.states-grid a:hover { border-color: var(--sage-dark); color: var(--sage-dark); }

.faq-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: none; }
.faq-item h3 { margin-bottom: 6px; font-size: 1.05rem; }

form.lead-form { display: grid; gap: 16px; max-width: 640px; }
form.lead-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.lead-form label { display: block; font-size: 0.88rem; color: var(--ink-2); margin-bottom: 6px; }
form.lead-form input, form.lead-form select, form.lead-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
form.lead-form textarea { min-height: 100px; resize: vertical; }
.field-note { font-size: 0.8rem; color: var(--slate); }
.turnstile-slot { border: 1px dashed var(--line); padding: 14px; font-size: 0.85rem; color: var(--slate); border-radius: var(--radius); }

.jones-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.jones-actions { display: flex; gap: 12px; flex-direction: column; }

footer.site-footer {
  background: var(--ink);
  color: var(--stone-2);
  padding: 40px 0 28px;
  margin-top: 40px;
}
footer.site-footer a { color: var(--stone-2); }
footer.site-footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
footer.site-footer h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: none; margin-bottom: 10px; }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer li { margin-bottom: 8px; font-size: 0.9rem; }
.foot-legal { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.8rem; color: rgba(246,243,236,0.7); }

.placeholder-note {
  font-size: 0.78rem;
  color: var(--slate);
  background: var(--stone-2);
  border: 1px dashed var(--line);
  padding: 8px 10px;
  border-radius: var(--radius);
}

@media (max-width: 860px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .proof-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .states-grid { grid-template-columns: repeat(2, 1fr); }
  footer.site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
  nav.primary-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
