/* ==========================================================================
   Ag Scoop — shared styles
   Palette is drawn from the logo: wheat gold + dark olive lettering.
   Paper is warm white (not cream). Green is the working colour;
   gold is reserved for highlights so it stays special.
   ========================================================================== */

:root {
  --paper: #fcfbf7;
  --panel: #f3f0e6;
  --ink: #221e15;
  --ink-2: #5c5544;
  --ink-3: #8b8370;
  --green: #34503a;
  --green-deep: #273f2d;
  --green-tint: #e7ece5;
  --wheat: #d7a12e;
  --wheat-soft: #f3e3bb;
  --clay: #a8432a;
  --line: #e2ddcd;
  --line-strong: #cfc8b2;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(34, 30, 21, 0.07), 0 8px 24px rgba(34, 30, 21, 0.05);
  --logo-header: 84px;
  --logo-footer: 64px;
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Archivo', 'Arial Narrow', sans-serif;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 200;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* --- Wheat highlight: the one decorative device the site allows itself --- */
.mark {
  background: linear-gradient(transparent 58%, var(--wheat-soft) 58%);
  padding: 0 2px;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: var(--logo-header); width: auto; display: block; }
.site-footer .logo img { height: var(--logo-footer); }

.site-nav { display: flex; align-items: center; gap: 28px; }

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  align-items: center;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a:not(.btn):hover { color: var(--green); }
.site-nav a:not(.btn)[aria-current="page"] { color: var(--green); }
.site-nav a.btn[aria-current="page"] { color: #fff; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-deep); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--ink); }

.btn-small { padding: 9px 18px; font-size: 14.5px; }

/* ==========================================================================
   Section basics
   ========================================================================== */

.section { padding: 64px 0; }
.section-panel { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.section-head p { color: var(--ink-2); font-size: 17px; }

/* ==========================================================================
   Crate-stencil blocks (category tiles & deal card imagery)
   Flat colour + big stencilled type, like paint on a produce crate.
   ========================================================================== */

.crate {
  display: flex;
  align-items: flex-end;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.crate-word {
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 0.95;
  opacity: 0.92;
}

.crate::after {
  /* faint double rule, like the edge of a stencil frame */
  content: '';
  position: absolute;
  inset: 10px;
  border: 1.5px solid currentColor;
  opacity: 0.22;
  pointer-events: none;
}

.crate.c-green  { background: var(--green); color: #f2efe2; }
.crate.c-wheat  { background: var(--wheat); color: #3d2f10; }
.crate.c-clay   { background: var(--clay); color: #f6e8de; }
.crate.c-olive  { background: #6b6f3f; color: #f1f0dd; }
.crate.c-bark   { background: #5a4632; color: #efe6d6; }
.crate.c-slate  { background: #4c5a5e; color: #e8edec; }
.crate.c-straw  { background: #c8b272; color: #3c3214; }
.crate.c-ironbark { background: #3a3128; color: #e9e2d3; }

/* ==========================================================================
   Deal cards
   ========================================================================== */

.deal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.deal-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.deal-card .crate { aspect-ratio: 16 / 9; }
.deal-card .crate-word { font-size: clamp(22px, 2.4vw, 30px); }

.deal-save {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 4px;
}

.deal-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }

.deal-meta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.deal-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
}

.deal-pricing { margin-top: auto; display: flex; align-items: baseline; gap: 10px; }
.deal-price { font-family: 'Archivo', sans-serif; font-size: 21px; font-weight: 800; }
.deal-was { font-size: 14.5px; color: var(--ink-3); text-decoration: line-through; }
.deal-go {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--green);
  margin-left: auto;
}
.deal-card:hover .deal-go { text-decoration: underline; }

.deals-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* ==========================================================================
   Newsletter band
   ========================================================================== */

.newsletter {
  background: var(--green);
  color: #fff;
  padding: 56px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.newsletter h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.newsletter p { color: rgba(255, 255, 255, 0.85); font-size: 16px; max-width: 46ch; }

.newsletter-form { display: flex; gap: 10px; }

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.55); }
.newsletter-form input[type="email"]:focus { outline: 2px solid var(--wheat); outline-offset: 1px; }

.newsletter-form button {
  background: var(--wheat);
  color: #3d2f10;
  border: none;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.newsletter-form button:hover { background: #c4922a; }
.newsletter-form button[disabled] { opacity: 0.6; cursor: default; }

.newsletter-note { font-size: 13.5px; color: rgba(255,255,255,0.65); margin-top: 10px; }

.form-status { font-size: 14.5px; font-weight: 600; margin-top: 10px; min-height: 1.4em; }
.form-status.ok { color: var(--wheat-soft); }
.form-status.err { color: #f3c1b1; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-tagline {
  font-size: 15px;
  color: var(--ink-2);
  max-width: 300px;
  margin-top: 10px;
}

.footer-links { display: flex; gap: 56px; }
.footer-links h4 {
  font-family: 'Archivo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 14px;
}
.footer-links a {
  display: block;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  margin-bottom: 8px;
}
.footer-links a:hover { color: var(--green); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom-links a { color: var(--ink-3); text-decoration: none; margin-left: 20px; }
.footer-bottom-links a:first-child { margin-left: 0; }
.footer-bottom-links a:hover { color: var(--ink); }

/* ==========================================================================
   Forms (contact etc.)
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label { font-size: 14.5px; font-weight: 700; }
.field input, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 80, 58, 0.12);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-hint { font-size: 13px; color: var(--ink-3); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 920px) {
  .container { padding: 0 20px; }
  .section { padding: 48px 0; }
  .deals-row { grid-template-columns: 1fr; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; }
  .site-nav ul { gap: 18px; }
  .site-nav ul li.nav-hide-mobile { display: none; }
  .logo img { height: calc(var(--logo-header) * 46 / 58); }
  .site-footer .logo img { height: var(--logo-footer); }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 36px; flex-wrap: wrap; }
}
