/* ── J&A SUPPLIES ───────────────────────────────────────────────────
   Palette and type follow originalfoods.co.uk: brand green on black
   and white, light-grey alternating sections, Roboto headings over
   Montserrat body copy. Change the tokens below to rebrand. */

:root {
  --green:      #7DB839;   /* brand green — bars, buttons, accents */
  --green-d:    #63992A;   /* green, hover/pressed */
  --green-deep: #009245;   /* deeper green, used sparingly */
  --black:      #000000;
  --text:       #1A1A1A;
  --muted:      #666666;
  --grey:       #F9F9F9;   /* alternating section background */
  --grey-2:     #EFEFEF;
  --line:       #E5E5E5;
  --white:      #FFFFFF;
  --nav-h:      76px;
  --wrap:       1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: var(--black);
  line-height: 1.18;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.15rem; }

p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout helpers ─────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.section { padding: clamp(56px, 7vw, 90px) 0; }
.section.grey { background: var(--grey); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(34px, 5vw, 52px); }
.section-head h2 { text-transform: uppercase; letter-spacing: 0.01em; }
.section-head p { margin-top: 14px; font-size: 1.02rem; }

/* Small green rule under section titles */
.rule { width: 62px; height: 4px; background: var(--green); margin: 16px auto 0; border-radius: 2px; }
.rule.left { margin-left: 0; margin-right: 0; }

.eyebrow {
  display: inline-block; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 12px;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: 'Montserrat', sans-serif; font-size: 0.86rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 14px 28px; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-d); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2B2B2B; }
.btn-outline { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: var(--grey-2); }
.btn:focus-visible { outline: 3px solid var(--green-deep); outline-offset: 3px; }

/* ── Announcement bar ───────────────────────────────────────────── */
.announce {
  background: var(--green); color: var(--white);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.announce .wrap {
  min-height: 40px; display: flex; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding-top: 8px; padding-bottom: 8px;
}
.announce svg { width: 16px; height: 16px; flex: none; }

/* ── Header ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.nav.scrolled { box-shadow: 0 3px 16px rgba(0,0,0,.07); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Roboto', sans-serif; font-size: 1.35rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--black);
}
.brand-sub {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-top: 5px;
}

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  position: relative; font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text);
  padding: 6px 0; transition: color .18s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--green); transition: width .22s ease;
}
.nav-links a:hover { color: var(--green-d); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 6px; background: transparent; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span {
  display: block; width: 19px; height: 2px; background: var(--black); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  position: relative; background: var(--black); color: rgba(255,255,255,.82);
  padding: clamp(64px, 9vw, 116px) 0;
  overflow: hidden;
}
/* Photo behind the hero, dimmed hard so the copy stays readable */
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .28; pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.78) 100%);
}
/* Soft green wash over the top so it ties to the brand */
.hero::after {
  content: ''; position: absolute; top: -35%; right: -10%;
  width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(125,184,57,.26), transparent 68%);
}
.hero .wrap { position: relative; z-index: 1; max-width: 900px; text-align: center; }
.hero .eyebrow { color: var(--green); }
.hero h1 { color: var(--white); }
.hero h1 .hl { color: var(--green); }
.hero-lead {
  margin: 22px auto 0; max-width: 62ch;
  font-size: clamp(1rem, 1.4vw, 1.12rem); color: rgba(255,255,255,.76);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ── Trust strip ────────────────────────────────────────────────── */
.trust { border-bottom: 1px solid var(--line); background: var(--white); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  padding: 22px 12px; text-align: left;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-ic {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: rgba(125,184,57,.13); color: var(--green-deep);
}
.trust-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust-item .t { font-size: 0.88rem; font-weight: 700; color: var(--black); line-height: 1.3; }
.trust-item .s { font-size: 0.76rem; color: var(--muted); }

/* ── About ──────────────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.about-grid p + p { margin-top: 14px; }

.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.figure { background: var(--white); padding: 26px 22px; }
.figure .num { font-family: 'Roboto', sans-serif; font-size: 2.1rem; font-weight: 700; color: var(--green-deep); line-height: 1; }
.figure .label { margin-top: 8px; font-size: 0.84rem; color: var(--muted); }

/* ── Brand blocks (East West / Nawhal's) ────────────────────────── */
.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.brand-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease;
}
.brand-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.09); }
/* Photo panel at the top of each brand card. If the file is missing,
   app.js adds .no-img and the striped tile below stands in. */
.brand-media { position: relative; aspect-ratio: 16 / 10; background: var(--grey-2); overflow: hidden; }
.brand-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.brand-card:hover .brand-media img { transform: scale(1.04); }
.brand-media.no-img img { display: none; }
.brand-media.no-img {
  display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #EFEFEF 0 10px, #F5F5F5 10px 20px);
}
.brand-media.no-img::after {
  content: 'Photo coming soon';
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #A5A5A5;
}

.brand-card .body { padding: 24px 28px 28px; flex: 1; }
.brand-card .body .tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-deep); margin-bottom: 8px;
}
.brand-card .body h3 { font-size: 1.35rem; margin-bottom: 10px; }
.brand-card .body p { font-size: 0.95rem; }

/* ── Why us ─────────────────────────────────────────────────────── */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.why-item { text-align: center; }
.why-ic {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; background: var(--green); color: var(--white);
}
.why-ic svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.why-item h3 { margin-bottom: 8px; font-size: 1.05rem; }
.why-item p { font-size: 0.9rem; }

/* ── Contact ────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 60px); align-items: start; }

.info-list { display: grid; gap: 20px; margin-top: 28px; }
.info-item { display: grid; grid-template-columns: 46px 1fr; gap: 15px; align-items: start; }
.info-ic {
  width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center;
  background: var(--green); color: var(--white);
}
.info-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.info-item .label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.info-item a, .info-item .val { display: block; margin-top: 3px; font-weight: 600; color: var(--black); font-size: 0.98rem; }
.info-item a:hover { color: var(--green-d); }

/* ── Form ───────────────────────────────────────────────────────── */
.form-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: clamp(22px, 3.5vw, 34px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--black); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.95rem; color: var(--black);
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 12px 14px; width: 100%;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 118px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #A5A5A5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(125,184,57,.18);
}
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 16px;
  padding-right: 40px;
}
.form-card .btn { width: 100%; }
.form-note {
  margin-top: 14px; font-size: 0.88rem; font-weight: 600; color: var(--green-deep);
  opacity: 0; transition: opacity .25s ease;
}
.form-note.show { opacity: 1; }
.form-note.error { color: #C0392B; }
.form-small { font-size: 0.78rem; color: var(--muted); margin-top: 12px; }

/* ── CTA band ───────────────────────────────────────────────────── */
.cta-band { background: var(--green); color: rgba(255,255,255,.92); }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  padding-top: clamp(40px, 5vw, 58px); padding-bottom: clamp(40px, 5vw, 58px);
}
.cta-band h2 { color: var(--white); text-transform: uppercase; }
.cta-band p { color: rgba(255,255,255,.9); margin-top: 8px; }
.cta-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--black); color: rgba(255,255,255,.6); padding-top: clamp(44px, 6vw, 64px); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr; gap: 36px; }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-sub { color: rgba(255,255,255,.45); }
.foot-about { margin-top: 16px; font-size: 0.9rem; max-width: 36ch; color: rgba(255,255,255,.6); }
.foot-col h4 {
  color: var(--white); font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px;
}
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col li, .foot-col a { font-size: 0.9rem; }
.foot-col a { transition: color .18s ease; }
.foot-col a:hover { color: var(--green); }
.foot-bottom {
  margin-top: clamp(32px, 5vw, 48px); border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.8rem; color: rgba(255,255,255,.45);
}

/* ── Back to top ────────────────────────────────────────────────── */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 44px; height: 44px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--green); color: var(--white); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .18s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-d); }
.to-top svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── Reveal on scroll (progressive enhancement) ─────────────────────
   Only hidden when the .js class is present, which an inline script in
   <head> adds. If scripts are blocked or fail, every section stays
   visible rather than the page rendering blank. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .why { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(1), .trust-item:nth-child(2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .brands { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .burger { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 26px rgba(0,0,0,.09);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 460px; }
  .nav-links a { padding: 15px clamp(18px, 4vw, 32px); border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
}

@media (max-width: 640px) {
  .why { grid-template-columns: 1fr; }
  .figures { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .announce .wrap { font-size: 0.72rem; letter-spacing: 0.04em; }
}

