/* Jubilee Food Hub — site styles */
:root {
  --cream: #faf7f0;
  --cream-2: #f1ecdf;
  --ink: #26303a;
  --muted: #5b6672;
  --navy: #2b4560;
  --blue: #5c98ba;
  --blue-soft: #d9e8f1;
  --gold: #c79c4e;
  --gold-dark: #a9822f;
  --chalk-bg: #151515;
  --chalk: #f4f1ea;
  --chalk-muted: rgba(244, 241, 234, 0.7);
  --radius: 14px;
  --max: 1160px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2rem; color: var(--muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.9rem;
}
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.mx { margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--gold); color: #1d1a12; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 1rem 2rem; font-size: 1.08rem; }
.btn svg { width: 1em; height: 1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(43, 69, 96, 0.08);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0;
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--navy); }
.brand img { height: 58px; width: auto; }
.brand span { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  text-decoration: none; font-weight: 700; color: var(--navy); font-size: .98rem;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav-toggle {
  display: none; background: none; border: 2px solid var(--navy); border-radius: 8px;
  padding: .45rem .6rem; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; display: block; }
@media (max-width: 800px) {
  .brand span { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid rgba(43,69,96,.12);
    padding: .5rem 1.25rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .4rem 0; }
  .nav-links .btn { justify-content: center; margin-top: .5rem; }
}

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section-alt { background: var(--cream-2); }
.chalk {
  background: var(--chalk-bg);
  color: var(--chalk);
  background-image: radial-gradient(ellipse at top left, rgba(255,255,255,.05), transparent 55%);
}
.chalk h1, .chalk h2, .chalk h3 { color: var(--chalk); }
.chalk a { color: var(--chalk); }
.chalk .eyebrow { color: var(--gold); }

/* Hero */
.hero {
  position: relative; min-height: clamp(520px, 78vh, 760px);
  display: grid; place-items: center; text-align: center; color: #fff;
  isolation: isolate; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: #2b4560 url("photos/field-hero.webp") center 60% / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,24,30,.55) 0%, rgba(20,24,30,.35) 45%, rgba(20,24,30,.7) 100%);
}
.hero .wrap { padding: 5rem 0; }
.hero h1 { color: #fff; max-width: 15ch; margin-inline: auto; text-wrap: balance; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; margin: 1rem auto 2rem; color: rgba(255,255,255,.92); text-wrap: balance; }
.hero-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }

/* Pillars (chalkboard) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: end; }
.pillar { text-align: center; }
.pillar img { height: 130px; width: auto; margin: 0 auto 1.1rem; object-fit: contain; }
.pillar strong { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: .04em; }
.pillar small { color: var(--chalk-muted); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
@media (max-width: 700px) {
  .pillars { grid-template-columns: 1fr; gap: 2.5rem; }
  .pillar img { height: 110px; }
}

/* Two column */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}
.intro-logo { max-width: 460px; margin: 0 auto; }
.prose p { text-wrap: pretty; }
.prose p:first-of-type { font-size: 1.15rem; color: var(--navy); }

/* Diagram section */
.diagrams { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; }
.diagrams figure { margin: 0; }
.diagrams img { border-radius: var(--radius); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.diagrams figcaption { margin-top: .75rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--chalk-muted); text-align: center; }
@media (max-width: 760px) { .diagrams { grid-template-columns: 1fr; } }
.tractor { display: flex; justify-content: center; margin-top: 2.5rem; }
.tractor img { width: 190px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.quote {
  background: #fff; border-radius: var(--radius); padding: 1.8rem 1.9rem;
  box-shadow: 0 1px 0 rgba(43,69,96,.06), 0 12px 30px -18px rgba(43,69,96,.25);
  border-top: 4px solid var(--blue-soft);
}
.quote p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.5; color: var(--ink); margin-bottom: 1rem; }
.quote cite { font-style: normal; font-weight: 700; color: var(--gold-dark); letter-spacing: .04em; }
.quote cite::before { content: "— "; }
@media (max-width: 720px) { .quotes { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band {
  position: relative; isolation: isolate; color: #fff; text-align: center; overflow: hidden;
}
.cta-band .bg { position: absolute; inset: 0; z-index: -2; background: #3b5d3e url("photos/hens.webp") center / cover no-repeat; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(22, 28, 24, .58); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); }

/* Social */
.social-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; }
.social-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.social-link svg { width: 26px; height: 26px; }

/* Story (About) */
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.story-block img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-block.reverse .story-img { order: 2; }
.story-block.wide { grid-template-columns: 1fr; }
.story-block.wide img { aspect-ratio: 21 / 9; }
@media (max-width: 820px) {
  .story-block { grid-template-columns: 1fr; }
  .story-block.reverse .story-img { order: 0; }
}
.signoff { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); margin-top: 1.5rem; }
.signoff small { display: block; font-family: var(--font-body); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

/* Order page */
.order-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 1px 0 rgba(43,69,96,.06), 0 12px 30px -18px rgba(43,69,96,.25);
}
.card h3 { margin-top: 0; }
.card ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.card li { margin-bottom: .5rem; }
.contact-lines { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.contact-lines li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .55rem; font-size: 1.08rem; }
.contact-lines svg { width: 22px; height: 22px; flex: none; margin-top: .2rem; color: var(--gold-dark); }
.contact-lines a { font-weight: 700; }
@media (max-width: 760px) { .order-grid { grid-template-columns: 1fr; } }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(43,69,96,.06); background: var(--cream-2); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.online-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.online-panel img { width: 200px; margin: 0 auto; }
@media (max-width: 760px) { .online-panel { grid-template-columns: 1fr; } .online-panel img { width: 150px; } }

/* Page hero (inner pages) */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { margin-bottom: .4em; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 3.5rem 0 2rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-logo { background: #fff; border-radius: 12px; padding: .8rem; width: 170px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.25rem; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: rgba(255,255,255,.65); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* Utilities */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; }
.chalk-icon { width: 90px; margin: 0 auto 1rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* Fixes */
.chalk .signoff { color: var(--chalk); }
.chalk .signoff small { color: var(--chalk-muted); }
.chalk-icon { width: 150px; }
body { overflow-x: hidden; }
.split > *, .story-block > *, .online-panel > *, .order-grid > * { min-width: 0; }
.intro-logo { width: 100%; max-width: 460px; }

/* ---- Revision 2: colour sections, economy section, instagram grid ---- */
.chalk {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.10), transparent 55%);
  color: #fff;
}
.chalk h1, .chalk h2, .chalk h3, .chalk .signoff { color: #fff; }
.chalk p { color: rgba(255,255,255,.9); }
.chalk .eyebrow { color: var(--gold); }
.chalk-muted, .pillar small, .chalk .signoff small { color: rgba(255,255,255,.65); }
.pillar strong { color: #fff; }
.pillars-section { padding: clamp(3rem, 6vw, 4.5rem) 0; }

/* Economy: linear vs circular, on deep green with the tractor driving the track */
.economy {
  --green: #1f3d31;
  background: var(--green);
  background-image:
    radial-gradient(ellipse at 80% 10%, rgba(255,255,255,.08), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(199,156,78,.12), transparent 45%);
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0 0;
  overflow: hidden;
}
.economy .eyebrow { color: var(--gold); }
.economy-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem, 3vw, 2.5rem); align-items: center; }
.economy-grid figure { margin: 0; text-align: center; }
.economy-grid img { width: 100%; height: auto; }
.economy-grid figcaption {
  display: inline-block; margin-top: 1.25rem; padding: .45rem 1rem;
  border: 1.5px dashed rgba(255,255,255,.5); border-radius: 999px;
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.85);
}
.economy-grid figure.jubilee figcaption { border-style: solid; border-color: var(--gold); color: var(--gold); }
.economy-arrow { width: 56px; color: var(--gold); }
.economy-arrow svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .economy-grid { grid-template-columns: 1fr; }
  .economy-arrow { width: 44px; margin: 0 auto; transform: rotate(90deg); }
}
.economy-track { margin-top: clamp(1rem, 3vw, 2rem); }
.economy-track svg { display: block; width: 100%; height: auto; }

/* Instagram grid */
.insta-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: .6rem; margin: 2rem 0 1.75rem;
}
.insta-grid a { display: block; border-radius: 10px; overflow: hidden; background: var(--cream-2); aspect-ratio: 1; position: relative; }
.insta-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.insta-grid a:hover img { transform: scale(1.04); }
.insta-grid a::after {
  content: ""; position: absolute; inset: 0; background: rgba(43,69,96,0); transition: background .25s ease;
}
.insta-grid a:hover::after { background: rgba(43,69,96,.18); }
@media (max-width: 860px) { .insta-grid { grid-template-columns: repeat(3, 1fr); } }

.chalk-icon { width: 230px; }

/* ---- Pillars as pods overlapping the hero ---- */
.hero .wrap { padding: 4rem 0 10.5rem; }
.pillars-section {
  position: relative; z-index: 2;
  margin-top: -120px;
  padding: 0 0 clamp(1rem, 3vw, 2rem);
  background: transparent;
}
.pods {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: clamp(.5rem, 1.5vw, 1.25rem);
  align-items: stretch;
}
.pod {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,.12), transparent 60%);
  color: #fff; text-align: center;
  border-radius: 20px; padding: 2rem 1.25rem 1.6rem;
  box-shadow: 0 24px 40px -22px rgba(20, 30, 40, .55), 0 6px 16px -6px rgba(20, 30, 40, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.pod img { height: 140px; width: auto; max-width: 100%; object-fit: contain; margin: 0 auto 1.1rem; }
.pod small { color: rgba(255,255,255,.65); letter-spacing: .14em; font-size: .72rem; }
.pod strong { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: .03em; color: #fff; }
.pod-arrow { display: flex; align-items: center; justify-content: center; width: 44px; color: var(--gold); align-self: center; }
.pod-arrow svg { width: 100%; height: auto; animation: pod-pulse 1.5s ease-in-out infinite; }
@keyframes pod-pulse {
  0%, 100% { opacity: .25; transform: translateX(-4px); }
  50% { opacity: 1; transform: translateX(4px); }
}
@media (max-width: 760px) {
  .hero .wrap { padding: 4rem 0 7rem; }
  .pillars-section { margin-top: -70px; }
  .pods { grid-template-columns: 1fr; }
  .pod img { height: 110px; }
  .pod-arrow { width: 36px; transform: rotate(90deg); margin: .1rem auto; }
}
@media (prefers-reduced-motion: reduce) { .pod-arrow svg { animation: none; opacity: 1; } }

.pod picture { display: block; margin: 0 auto 1.1rem; }
.pod picture img { margin: 0; }
