/* ==========================================================================
   Oat Gold™ — Premium oat supplier
   Warm grain-field palette · Editorial serif display · Family farm voice
   ========================================================================== */

:root {
  --gold:       #C8902F;
  --gold-deep:  #9E6B1A;
  --grain:      #E9D9B6;
  --grain-soft: #F5EEDD;
  --cream:      #FBF7EE;
  --parchment:  #FDF9F3;
  --ink:        #211B12;
  --ink-soft:   #4A4234;
  --field:      #374824;
  --field-deep: #222E17;
  --line:       #E4D9C0;
  --white:      #FDF9F3;
  --max:        1200px;
  --radius:     14px;
  --shadow-sm:  0 1px 4px rgba(33,27,18,.09);
  --shadow-md:  0 8px 32px rgba(33,27,18,.12);
  --shadow-lg:  0 28px 70px rgba(33,27,18,.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; color: var(--ink); letter-spacing: -.02em; }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 clamp(1.4rem, 4vw, 3rem); }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.eyebrow {
  font-family: var(--font-body); font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; font-size: .78rem; color: var(--gold-deep); margin-bottom: 1.1rem;
}
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-soft); max-width: 60ch; line-height: 1.65; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 1rem 1.8rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-deep); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 1.15rem 2.2rem; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,238,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 130px; }
.brand { display: flex; align-items: center; }
.brand:hover { opacity: .85; }
.brand-logo { height: 96px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 1.1rem; position: relative; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width .25s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { margin-left: .5rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: all .3s var(--ease); }

/* ---------- Hero (full-bleed photo) ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  background: url('../images/hero-oats.jpg') center 40% / cover no-repeat;
  color: var(--cream); overflow: hidden; text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,17,8,.74) 0%, rgba(22,17,8,.78) 35%, rgba(28,20,8,.85) 58%, rgba(22,28,14,.92) 100%);
  pointer-events: none;
}
.hero .container { position: relative; padding-top: clamp(4rem,8vw,6rem); padding-bottom: clamp(4rem,8vw,6rem); }
.hero-logo { height: 220px; width: auto; display: block; margin: 0 auto 2.618rem; filter: drop-shadow(0 6px 28px rgba(22,17,8,.65)); }
.hero h1 { color: #fff; max-width: 22ch; margin: 0 auto; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .lead { color: var(--grain); margin: 1.618rem auto 2.618rem; }
.hero-eyebrow { color: var(--gold); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-trust {
  margin-top: 4.236rem; padding-top: 2.618rem;
  border-top: 1px solid rgba(233,217,182,.25);
  display: flex; gap: 3rem; flex-wrap: wrap; justify-content: center;
}
.hero-trust .stat strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); }
.hero-trust .stat span { font-size: .9rem; color: var(--grain); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); }
.trustbar .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.trustbar p { font-weight: 700; color: var(--ink-soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.trustbar ul { display: flex; gap: 2.2rem; list-style: none; flex-wrap: wrap; }
.trustbar li { font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.trustbar li::before { content: "✦"; color: var(--gold); }

/* ---------- Cards / products ---------- */
.grid { display: grid; gap: 1.8rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem 2rem; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: .6rem; }
.card h4 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.card .card-link { font-weight: 700; margin-top: 1.2rem; display: inline-flex; align-items: center; gap: .4rem; }

.card-type {
  font-family: var(--font-body); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .16em;
  color: var(--gold-deep); margin-bottom: .75rem;
  display: flex; align-items: center; gap: .4rem;
}
.card-gf .card-type { color: var(--field); }
.card-type::before { content: ""; width: 20px; height: 2px; background: currentColor; display: inline-block; }

.product-card { display: flex; flex-direction: column; }

/* Product line grouping */
.product-line { padding-top: 3rem; margin-top: 3rem; border-top: 1px solid var(--line); }
.product-line:first-child { padding-top: 0; margin-top: 0; border-top: none; }
.product-line-head { margin-bottom: 2.2rem; display: flex; gap: 2rem; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.product-line-head div { flex: 1; min-width: 260px; }
.product-line-head h3 { margin-bottom: .4rem; }
.product-line-head p { color: var(--ink-soft); max-width: 52ch; }
.product-line-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--grain-soft); border: 1px solid var(--line);
  border-radius: 999px; padding: .4rem 1rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink-soft); white-space: nowrap; align-self: flex-start;
}
.product-line-badge.badge-gf { background: #E8F0DC; border-color: #B5CC90; color: var(--field); }

/* ---------- Section helpers ---------- */
.section-head { max-width: 64ch; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.bg-grain {
  background-color: var(--grain-soft);
  background-image:
    repeating-linear-gradient(135deg, rgba(200,144,47,.05) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(225deg, rgba(200,144,47,.03) 0 1px, transparent 1px 10px);
}
.bg-field {
  background: linear-gradient(160deg, var(--field-deep), var(--field));
  color: var(--cream);
}
.bg-field h2, .bg-field h3 { color: #fff; }
.bg-field .lead, .bg-field p { color: var(--grain); }
.bg-field .eyebrow { color: var(--gold); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-visual {
  aspect-ratio: 5/4; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--grain), var(--gold));
  box-shadow: var(--shadow-md); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.split-visual::after { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(60deg, rgba(166,116,30,.12) 0 6px, transparent 6px 16px); }
.split-visual .label { position: relative; z-index: 1; font-family: var(--font-display); font-size: 1.4rem; color: var(--field-deep); font-weight: 600; }
.split-visual img { width:100%; height:100%; object-fit:cover; }
.checklist { list-style: none; margin-top: 1.6rem; }
.checklist li { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.2rem; }
.checklist li svg { width: 22px; height: 22px; color: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }
.checklist li strong { display:block; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; }
.step { position: relative; padding-top: 1.2rem; border-top: 3px solid var(--grain); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-size: 2.8rem; color: var(--gold); font-weight: 600; display: block; margin-bottom: .5rem; line-height: 1; }
.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--ink-soft); font-size: .97rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-deep) 100%); border-radius: var(--radius); padding: clamp(3rem,5vw,4.5rem); text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background-image: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 2px, transparent 2px 20px); }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--field-deep); font-weight: 600; max-width: 56ch; margin: 1rem auto 2rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.2rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .92rem; color: var(--ink); }
.field label .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; padding: .8rem .9rem; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--cream); color: var(--ink); transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,144,47,.18); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin-top: .5rem; }
.form-success { background: #EAF3DE; border: 1px solid #97C459; color: #27500A; padding: 1rem 1.2rem; border-radius: 10px; font-weight: 600; margin-bottom: 1.2rem; display: none; }
.form-success.show { display: block; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.faq-q .chev { flex-shrink: 0; transition: transform .3s var(--ease); color: var(--gold-deep); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a-inner { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 72ch; }

/* ---------- Bag product photos ---------- */
.bag-photo {
  background: var(--grain-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.bag-photo:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.bag-photo img {
  width: 100%;
  aspect-ratio: 5/6;
  object-fit: contain;
  background: var(--grain-soft);
  padding: 2rem 1.5rem;
  display: block;
}
.bag-photo-label {
  padding: 1rem 1.4rem 1.1rem;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
  background: var(--white);
}

/* ---------- Achieving All Three pillars ---------- */
.pillar-card {
  padding: 2.5rem 2rem 2rem;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(2px);
}
.pillar-card h3 { color: #fff; margin-bottom: .7rem; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.pillar-card p { color: var(--grain); font-size: 1.05rem; line-height: 1.65; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(160deg, var(--field-deep), var(--field)); color: var(--cream); padding: clamp(3.5rem,8vw,6rem) 0; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: var(--grain); margin-top: 1.1rem; max-width: 58ch; }
.breadcrumb { font-size: .85rem; color: var(--grain); margin-bottom: 1.1rem; }
.breadcrumb a { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--field-deep); color: var(--grain); padding: clamp(3.5rem,7vw,5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.site-footer .brand { color: #fff; margin-bottom: 1.2rem; }
.site-footer .brand-logo { height: 72px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .6rem; }
.site-footer a { color: var(--grain); }
.site-footer a:hover { color: var(--gold); }
.footer-about { max-width: 34ch; color: var(--grain); font-size: .97rem; line-height: 1.65; }
.footer-bottom { border-top: 1px solid rgba(233,217,182,.18); padding-top: 1.5rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .87rem; color: rgba(233,217,182,.7); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .split-visual { max-width: 480px; }
  .product-line-head { flex-direction: column; gap: 1rem; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 130px 0 auto 0; background: var(--cream); flex-direction: column; gap: 0; padding: 1rem 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); transform: translateY(-120%); transition: transform .35s var(--ease); }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; padding: .4rem 0; }
  .nav-cta { margin: .6rem auto; }
  .nav-toggle { display: block; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trustbar .container { justify-content: center; text-align: center; }
  .hero-logo { height: 150px; }
  .hero-trust { gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
