/* DeltAg / seedcoat.com — site styles */
:root {
  --brand: #006633;
  --brand-dark: #17502d;
  --brand-darker: #0f3a20;
  --gold: #f8c516;
  --gold-dark: #d9a900;
  --cream: #f7f5ef;
  --ink: #333;
  --muted: #6b7280;
  --line: #e5e7eb;
  --wrap: 1120px;
  --sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "IM Fell Great Primer", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3, h4 { color: var(--brand-dark); font-weight: 600; line-height: 1.25; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.btn {
  display: inline-block; background: var(--brand); color: #fff; font-weight: 700;
  padding: 10px 22px; border-radius: 5px; text-decoration: none; border: 0; cursor: pointer;
  font-size: 15px;
}
.btn:hover { background: var(--brand-dark); }
.btn-gold { background: var(--gold); color: var(--brand-dark); }
.btn-gold:hover { background: #fff; }
.skip {
  position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100;
}
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px); border-bottom: 4px solid var(--gold);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.menu { list-style: none; display: flex; margin: 0; padding: 0; gap: 2px; }
.menu > li { position: relative; }
.menu > li > a, .menu > li > span {
  display: block; padding: 10px 12px; font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.03em; color: #374151; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.menu > li > a:hover, .menu > li:hover > a, .menu > li:hover > span { color: var(--brand); }
.menu > li > a.active { color: var(--brand); }
.sub-toggle { display: none; }
.submenu {
  position: absolute; left: 0; top: 100%; min-width: 240px; background: #fff;
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 6px 6px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12); padding: 8px; display: none;
}
.menu > li.has-sub:hover .submenu { display: block; }
.submenu a {
  display: block; padding: 7px 10px; font-size: 14px; color: #374151; text-decoration: none; border-radius: 4px;
}
.submenu a:hover { background: var(--cream); color: var(--brand); }
.submenu-head {
  margin: 8px 0 2px; padding: 0 10px; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gold-dark);
}
.submenu-head:first-child { margin-top: 2px; }
.phone-cta {
  margin-left: 12px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  padding: 8px 16px; border-radius: 5px; text-decoration: none; white-space: nowrap;
}
.phone-cta:hover { background: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: 1px solid #cbd5e1; border-radius: 5px; width: 42px; height: 40px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: #333; margin: 4px auto; }

/* ---------- hero ---------- */
.hero {
  position: relative; width: 100%; height: 44vw; max-height: 460px; min-height: 240px;
  overflow: hidden; background: var(--brand-dark);
}
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img, .hero-slide a { width: 100%; height: 100%; }
.hero-slide img { object-fit: cover; }
.hero-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0, 0, 0, 0.35);
  color: #fff; border: 0; font-size: 28px; line-height: 1; width: 44px; height: 44px;
  border-radius: 999px; cursor: pointer; z-index: 2;
}
.hero-nav:hover { background: rgba(0, 0, 0, 0.55); }
.hero-nav.prev { left: 12px; }
.hero-nav.next { right: 12px; }

/* ---------- strip ---------- */
.strip { background: var(--cream); border-bottom: 1px solid var(--line); text-align: center; }
.strip .wrap { padding-top: 18px; padding-bottom: 18px; }
.strip-lead { font-family: var(--display); font-size: 24px; color: var(--brand-dark); margin: 0; }
.strip-sub { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* ---------- banner (interior pages) ---------- */
.banner {
  position: relative; background: var(--brand-dark) url("/images/soybean-internal-header.jpg") center / cover;
  color: #fff;
}
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(15, 58, 32, 0.62); }
.banner .wrap { position: relative; padding-top: 40px; padding-bottom: 40px; }
.banner h1 { color: #fff; font-family: var(--display); font-size: clamp(28px, 4vw, 40px); margin: 0; }
.banner p { margin: 8px 0 0; max-width: 640px; color: #e5e7eb; }

/* ---------- layout ---------- */
.page-body { padding-top: 36px; padding-bottom: 8px; }
.layout-sidebar {
  display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start;
  padding-top: 36px; padding-bottom: 8px;
}
.page-body .layout-sidebar { padding-top: 0; }
.col-grid { display: grid; gap: 28px; margin-top: 24px; }
.col-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.col-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- richtext ---------- */
.richtext { font-size: 15.5px; color: #404040; }
.richtext > *:first-child { margin-top: 0; }
.richtext h1, .richtext h2, .richtext h3, .richtext h4 { color: var(--brand-dark); margin: 28px 0 10px; line-height: 1.3; }
.richtext h1 { font-size: 24px; }
.richtext h2 { font-size: 20px; }
.richtext h3 { font-size: 17px; }
.richtext h4 { font-size: 15px; }
.richtext p { margin: 14px 0; }
.richtext a { color: var(--brand); }
.richtext ul, .richtext ol { margin: 14px 0; padding-left: 24px; }
.richtext li { margin: 4px 0; }
.richtext img { border-radius: 4px; margin: 16px 0; }
.richtext table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.richtext th, .richtext td { border: 1px solid #d1d5db; padding: 8px 10px; vertical-align: top; text-align: left; }
.richtext th { background: var(--cream); font-weight: 600; }
.richtext iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; margin: 20px 0; }
.richtext hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.richtext.intro { margin-bottom: 32px; }

/* ---------- CTA rail ---------- */
.rail { display: grid; gap: 16px; }
.cta-box { background: var(--brand); color: #fff; border-radius: 8px; padding: 20px; text-align: center; }
.cta-title { font-family: var(--display); font-size: 19px; margin: 0 0 4px; }
.cta-box .cta-title span { color: var(--gold); }
.cta-desc { font-size: 14px; margin: 0 0 10px; opacity: 0.92; }
.cta-order { background: var(--cream); border: 1px solid var(--line); color: var(--ink); }
.cta-order .cta-title { color: var(--brand-dark); }
.cta-order .phone, .cta-box .phone { color: var(--brand); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 6px; }
.rail-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }

/* ---------- products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; padding: 16px;
  text-decoration: none; color: var(--brand-dark); transition: box-shadow 0.15s;
}
.product-card:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); }
.pc-img { display: block; height: 170px; margin-bottom: 12px; }
.pc-img img { width: 100%; height: 100%; object-fit: contain; }
.pc-title { font-weight: 600; }
.pc-size { color: var(--muted); font-size: 13px; margin-top: 2px; }

.featured { padding-top: 8px; padding-bottom: 56px; }
.featured-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.featured-head h2 { margin: 0; }
.featured-head a { font-size: 14px; font-weight: 600; text-decoration: none; }

.product-detail { padding-top: 32px; padding-bottom: 24px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs span { margin: 0 4px; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pd-media { border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: #fff; }
.pd-media img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pd-info h1 { font-family: var(--display); font-size: 30px; margin: 0 0 8px; }
.pd-size { color: var(--muted); margin: 4px 0; }
.pd-headline { font-size: 17px; color: var(--brand-dark); margin: 10px 0; }

.order-note { background: var(--cream); border-radius: 8px; padding: 20px; margin-top: 24px; }
.order-note .cta-title { color: var(--brand-dark); }
.order-note p { margin: 4px 0 10px; font-size: 14px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding-top: 36px; padding-bottom: 12px; align-items: start; }
.contact-form label { display: block; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: #374151; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid #cbd5e1;
  border-radius: 5px; font: inherit; font-weight: 400;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.form-errors { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 6px; padding: 8px 14px; margin-bottom: 16px; font-size: 14px; }
.form-errors ul { margin: 4px 0; padding-left: 18px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 56px; background: var(--brand-dark); color: #d1d5db; }
.footer-grid { display: grid; grid-template-columns: 1.2fr repeat(5, 1fr); gap: 28px; padding-top: 44px; padding-bottom: 40px; }
.footer-brand .wordmark { font-family: var(--display); font-size: 24px; color: #fff; margin: 0; }
.footer-brand .phone { color: var(--gold); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 10px; }
.footer-head { color: var(--gold); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 5px 0; }
.footer-col a { color: #d1d5db; font-size: 14px; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; color: #9ca3af; }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; }
.footer-links a { color: #d1d5db; text-decoration: none; margin-left: 16px; }
.footer-links a:first-child { margin-left: 0; }

/* ---------- 404 / thank you ---------- */
.notfound { text-align: center; padding: 60px 16px; }
.nf-code { font-family: var(--display); font-size: 56px; color: var(--brand-dark); margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff;
    border-bottom: 4px solid var(--gold); flex-direction: column; align-items: stretch;
    padding: 8px 16px 16px; box-shadow: 0 16px 24px rgba(0, 0, 0, 0.1);
  }
  .site-nav.open { display: flex; }
  .menu { flex-direction: column; gap: 0; }
  .menu > li { border-bottom: 1px solid #f1f1f1; }
  .menu > li > a, .menu > li > span { padding: 12px 4px; }
  .menu > li.has-sub { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .sub-toggle {
    display: block; background: none; border: 0; font-size: 20px; color: var(--brand);
    padding: 8px 12px; cursor: pointer; grid-row: 1;
  }
  .submenu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; }
  .menu > li.has-sub.open .submenu { display: block; }
  .phone-cta { margin: 12px 0 0; text-align: center; }
  .layout-sidebar, .contact-grid, .product-detail-grid { grid-template-columns: 1fr; }
  .col-grid.cols-2, .col-grid.cols-3 { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .product-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
