:root {
  --barn: #9b2d20;
  --barn-dark: #7a2218;
  --hay: #f4ead5;
  --cream: #fbf8f1;
  --ink: #2b2620;
  --muted: #6b6257;
  --green: #4f6b3a;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.05rem;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--barn-dark); }
h3 { font-size: 1.15rem; }
a { color: var(--barn); }
.wrap { width: min(1100px, 92%); margin: 0 auto; }

/* Placeholder highlight: anything the owner still needs to fill in */
.ph {
  display: inline-block;
  background: #fff4c2;
  color: #5a4600;
  border: 1px dashed #c9a227;
  padding: 0 .4em;
  border-radius: 4px;
  font-family: system-ui, sans-serif;
  font-size: .88em;
  line-height: 1.5;
  white-space: nowrap;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 248, 241, .96);
  border-bottom: 1px solid #e6dcc6;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; flex-wrap: wrap; }
.brand { font-weight: bold; font-size: 1.2rem; text-decoration: none; color: var(--barn-dark); }
nav { display: flex; gap: 1rem; flex-wrap: wrap; font-family: system-ui, sans-serif; font-size: .95rem; }
nav a { text-decoration: none; color: var(--ink); }
nav a:hover { color: var(--barn); }
.nav-cta { color: var(--barn) !important; font-weight: 600; }

/* Hero */
.hero {
  position: relative;
  background-color: #3a3024;
  background-image: url('/images/delco-farms.jpg');
  background-size: cover;
  background-position: center 45%;
  color: #fff;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(30,22,14,.78) 0%, rgba(30,22,14,.45) 55%, rgba(30,22,14,.25) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem; align-items: center; padding: 3.5rem 0; }
.eyebrow { font-family: system-ui, sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; opacity: .9; margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.lede { font-size: 1.2rem; max-width: 32ch; margin: 0 0 1.6rem; }
.hero-cat img {
  border-radius: var(--radius);
  border: 6px solid var(--cream);
  box-shadow: 0 18px 40px rgba(0,0,0,.4);
  transform: rotate(1.5deg);
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
}
.hero-cat { margin: 0; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--barn);
  color: #fff;
  text-decoration: none;
  font-family: system-ui, sans-serif;
  font-weight: 600;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: var(--barn-dark); }
.btn.full { width: 100%; }

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--hay); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.form-split { align-items: start; }
.photo { margin: 0; }
.photo img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.photo figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; font-family: system-ui, sans-serif; }
.photo.small { margin-top: 1.5rem; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.8rem; position: relative; margin: .5rem 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: bold; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 4px 14px rgba(60,40,10,.08); }
.num {
  display: inline-grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--barn); color: #fff; font-family: system-ui, sans-serif; font-weight: 700;
  margin-bottom: .8rem;
}
.note { margin-top: 1.75rem; color: var(--muted); font-style: italic; }

/* Notice */
.notice {
  background: #fff7e6;
  border-left: 5px solid #d99a2b;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.notice p { margin: 0; }

/* Form */
.form-card { background: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: 0 10px 30px rgba(60,40,10,.12); }
.field { margin-bottom: 1.1rem; border: 0; padding: 0; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label, legend { display: block; font-family: system-ui, sans-serif; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  width: 100%; padding: .7rem .8rem; font: inherit; font-size: 1rem;
  border: 1px solid #cfc4ad; border-radius: 8px; background: #fffdf9;
}
input:focus, textarea:focus { outline: 3px solid rgba(155,45,32,.25); border-color: var(--barn); }
.choice { display: inline-flex; align-items: center; gap: .4rem; font-weight: 400; margin: 0 1.1rem .4rem 0; }
.form-error { color: #a12b1d; font-family: system-ui, sans-serif; font-size: .95rem; }
.thanks { text-align: center; padding: 1rem 0; }
.thanks h3 { font-size: 1.6rem; color: var(--green); }

/* Footer */
.site-footer { background: #2f2a24; color: #e9e1d2; padding: 2.5rem 0; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 1.5rem; }
.site-footer p { margin: .2rem 0; }
.footer-name { font-weight: bold; font-size: 1.1rem; color: #fff; }
.credits { color: #b9ae9b; font-size: .8rem; }

/* Mobile */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hero-inner, .split, .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-cat img { transform: none; }
  .section { padding: 3rem 0; }
  .steps, .row { grid-template-columns: 1fr; }
  nav a.nav-sec { display: none; }
  .form-card { padding: 1.4rem; }
}
.footer-link { color: #f3d9a4; }
.contact-line { font-family: system-ui, sans-serif; font-size: .95rem; }

/* Honeypot (spam trap): hidden from people, left in the page for bots */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-card { position: relative; }
.btn[disabled] { opacity: .7; cursor: progress; }
.form-error { background: #fdecea; border-left: 4px solid #a12b1d; padding: .6rem .8rem; border-radius: 6px; }
.thanks:focus { outline: none; }

/* Simple card pages (/thanks, error page) */
.page-card { min-height: 55vh; display: grid; place-items: center; }
.page-card .card { background: #fff; border-radius: var(--radius); padding: 2.5rem 2rem; box-shadow: 0 10px 30px rgba(60,40,10,.12); max-width: 620px; margin: 0 auto; text-align: center; }
.page-card h1 { color: var(--green); font-size: clamp(2rem, 5vw, 2.8rem); }
.page-card.error h1 { color: var(--barn-dark); }
.page-card ul { text-align: left; }

/* Small phones */
@media (max-width: 420px) {
  .brand { font-size: 1.05rem; }
  nav { font-size: .9rem; }
  .hero-inner { padding: 2.2rem 0; gap: 1.5rem; }
  .lede { font-size: 1.08rem; }
  .form-card { padding: 1.1rem; }
  .choice { margin-right: .8rem; }
}

nav a[aria-current="page"] { color: var(--barn); text-decoration: underline; text-underline-offset: .25em; }

/* About page */
.about-split { align-items: start; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
.about-photo img { width: 100%; max-width: 440px; aspect-ratio: 533 / 800; object-fit: cover; margin: 0 auto; }
.about-text h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--barn-dark); }
.about-text .lead { font-size: 1.15rem; }
.about-cta { margin-top: 2rem; padding: 1.4rem 1.5rem; background: var(--hay); border-radius: var(--radius); }
.about-cta p { margin: 0 0 1rem; }
@media (max-width: 760px) {
  .about-split { grid-template-columns: 1fr; }
  .about-photo img { max-width: 360px; }
}

/* Privacy note (request form + About) */
.privacy-note { background: #fff; border: 1px solid #e6dcc6; border-left: 5px solid var(--green); border-radius: 8px; padding: 1rem 1.2rem; margin: 1.5rem 0; }
.privacy-note h3 { font-family: system-ui, sans-serif; font-size: 1rem; color: var(--green); margin: 0 0 .4rem; }
.privacy-note p { margin: 0; font-size: .95rem; }

/* Testimonials page */
.testimonials h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--barn-dark); }
.testimonials h1 .paw { font-size: .7em; vertical-align: middle; }
.testimonials .lead { font-size: 1.15rem; max-width: 60ch; }
.quotes { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote-card { position: relative; margin: 0; height: 100%; background: #fff; border-radius: var(--radius); padding: 2.4rem 1.5rem 1.4rem; box-shadow: 0 4px 14px rgba(60,40,10,.08); display: flex; flex-direction: column; justify-content: space-between; }
.quote-card::before { content: "\201C"; position: absolute; top: .1rem; left: 1rem; font-size: 4rem; line-height: 1; color: var(--barn); opacity: .25; font-family: Georgia, serif; }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { margin: 0 0 1rem; }
.quote-card figcaption { font-family: system-ui, sans-serif; font-weight: 600; font-size: .92rem; color: var(--green); }
.testimonials-cta { max-width: 640px; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* Compact mobile menu: brand on its own line, links in one tidy row */
@media (max-width: 760px) {
  .header-inner { gap: .3rem .8rem; padding: .55rem 0; }
  nav { gap: .35rem .9rem; font-size: .88rem; width: 100%; }
}
@media (max-width: 360px) {
  nav { gap: .3rem .7rem; font-size: .82rem; }
}

/* Tablets: hide the on-page section links so the menu stays on one line */
@media (max-width: 900px) { nav a.nav-sec { display: none; } }
