/* ============================================================
   Surrey Wholesale — UK FMCG wholesale (Surrey EC Ltd, Lonmar Group).
   Layout/format follows the reference wholesaler pattern; the palette is
   deliberately LIGHT — house rule: white backgrounds, no dark chrome.
   Reference tokens measured: body 14px system-ui #171516, h1 25.6px/700,
   accent greens rgb(114,152,52) & rgb(0,149,62), nav bar #333 (re-skinned light here).
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  /* ---- per-brand block: only these four values change between sites ---- */
  --accent:#1B2F50;          /* single accent — one per site, never a second */
  --accent-600:#131F36;   /* hover/pressed */
  --accent-050:#EAEEF4;   /* tint for icon chips and focus rings */
  --accent-ink:#FFFFFF;   /* text that sits on the accent */

  --ink:#171516;
  --ink-2:#3D3A3B;
  /* legacy names kept as aliases so the ~40 existing usages need no rewrite */
  --green:var(--accent);
  --green-600:var(--accent-600);
  --green-050:var(--accent-050);
  --amber:#C8892B;
  --body:#3D3A3B;
  --muted:#6E6A6B;
  --line:#E4E3E2;
  --paper:#FFFFFF;
  --paper-2:#F7F7F6;
  --maxw:1280px;          /* spec: reference column is 1280 */
  --shadow:0 14px 34px -22px rgba(23,21,22,.30);
  --font:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
}
*{box-sizing:border-box}
.skip{position:absolute;left:-9999px;top:0;z-index:999;background:var(--green);color:#fff;
  padding:10px 16px;border-radius:0 0 6px 0;font-size:14px;font-weight:600}
.skip:focus{left:0}
html{scroll-behavior:smooth}
[id]{scroll-margin-top:150px}
body{margin:0;font-family:var(--font);font-size:15px;line-height:1.7;color:var(--body);
  background:var(--paper);-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0 0 .5em;color:var(--ink);font-weight:700;letter-spacing:-.01em;line-height:1.2}
h1{font-size:clamp(1.7rem,3.4vw,2.4rem)}
h2{font-size:clamp(1.5rem,2.6vw,2rem)}
h3{font-size:1.05rem}
p{margin:0 0 1rem}
.wrap{max-width:calc(var(--maxw) + 60px);margin:0 auto;padding:0 30px}  /* 1280 of CONTENT inside */

/* ---- announcement ticker (reference has 3 items across the top) ---- */
.ticker{background:#fff;border-bottom:1px solid var(--line);font-size:13px;line-height:24px}
.ticker .wrap{display:flex;align-items:center;justify-content:center;padding:4px 30px;flex-wrap:wrap}
.ticker .item{position:relative;display:inline-flex;align-items:center;color:var(--ink);
  margin-right:24px;padding-left:16px}
.ticker .item:last-child{margin-right:0}
.ticker .item svg{position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:10px;height:10px;color:var(--green);flex:none}
.ticker{transition:opacity .2s ease,height .2s ease;height:33px;overflow:hidden}
.ticker.is-hidden{opacity:0;height:0;pointer-events:none}   /* collapse, don't just fade */
.ticker .item b{font-weight:700}
.ticker .item span{color:var(--muted)}

/* ---- header: centred logo, actions right ---- */
header.site{background:#FAFAFA;position:sticky;top:0;z-index:200;border-bottom:1px solid var(--line)}
header.site .bar{max-width:calc(var(--maxw) + 60px);margin:0 auto;padding:12px 30px 0;height:94px;
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;
  min-width:0}
header.site .bar > *{min-width:0}
.brand{justify-self:center}
.brand img{height:70px;width:auto;max-width:200px;object-fit:contain}
/* typographic wordmark — stands in until a logo asset is supplied */
.wordmark{display:inline-block;font-size:23px;font-weight:800;letter-spacing:-.02em;
  color:var(--ink);line-height:1;white-space:nowrap}
.wordmark-sm{font-size:19px}
@media(max-width:880px){ .wordmark{font-size:18px} }
.hdr-actions{justify-self:end;display:flex;align-items:center;gap:10px}
.hdr-actions .btn-outline{background:var(--green);border-color:var(--green);color:#fff}
.hdr-actions .btn-outline:hover{background:var(--green-600);border-color:var(--green-600)}
.burger{display:none;background:0;border:0;cursor:pointer;padding:6px;min-width:44px;min-height:44px}
.burger span{display:block;width:24px;height:2px;background:var(--ink);margin:5px 0;border-radius:2px}

/* ---- buttons ---- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;
  height:44px;min-width:140px;padding:0 20px;font-size:14px;font-weight:600;line-height:1;
  border-radius:6px;border:1.5px solid transparent;cursor:pointer;white-space:nowrap;
  transition:all .3s ease}
.btn-primary{background:var(--green);border-color:var(--green);color:#fff}
.btn-primary:hover{background:var(--green-600);border-color:var(--green-600)}
.btn-outline{background:#fff;border-color:var(--green);color:var(--green)}
.btn-outline:hover{background:var(--green);color:#fff}
.btn-ink{background:var(--ink);border-color:var(--ink);color:#fff}
.btn-ink:hover{background:#000;border-color:#000}
.btn-lg{padding:15px 30px;font-size:15px}

/* ---- main nav: light, not the reference's near-black bar ---- */
/* LIGHT SUBSTITUTION: reference bar is #171516 with white type; geometry kept identical */
nav.main{background:#fff;border-bottom:1px solid var(--line);
  position:sticky;top:94px;z-index:199}
nav.main .wrap{display:flex;align-items:center;justify-content:center;height:44px;
  flex-wrap:wrap;padding:0 30px;gap:22px}          /* gap, not negative margin — keeps .wrap centred */
nav.main a{font-size:14px;font-weight:400;color:var(--ink);height:44px;display:inline-flex;
  align-items:center;border-bottom:2px solid transparent;
  transition:color .2s,border-color .2s}
nav.main a:hover{color:var(--green);border-bottom-color:var(--green)}
nav.main a[aria-current="page"]{color:var(--green);border-bottom-color:var(--green);font-weight:600}

/* ---- ranges mega-menu (the reference fronts its whole category tree here) ---- */
.has-menu{position:relative}
.has-menu > .menu-trigger{background:0;border:0;font:inherit;font-size:14px;color:var(--ink);height:44px;
  display:inline-flex;align-items:center;gap:6px;cursor:pointer;padding:0;
  border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.has-menu > .menu-trigger:hover,.has-menu[data-open="true"] > .menu-trigger{color:var(--green);border-bottom-color:var(--green)}
.menu-trigger svg{width:11px;height:11px;transition:transform .2s}
.has-menu[data-open="true"] .menu-trigger svg{transform:rotate(180deg)}
.mega{position:absolute;left:50%;transform:translateX(-50%) translateY(6px);top:44px;z-index:210;
  background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 24px 48px -28px rgba(23,21,22,.42);
  padding:18px;width:min(760px,92vw);display:grid;grid-template-columns:repeat(2,1fr);gap:2px 18px;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .18s ease,transform .18s ease,visibility .18s}
.has-menu[data-open="true"] .mega{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.mega a{display:flex;align-items:baseline;justify-content:space-between;gap:14px;height:auto;
  padding:9px 10px;border-radius:6px;border-bottom:0;font-size:14px;color:var(--ink)}
.mega a:hover{background:var(--green-050);color:var(--green);border-bottom:0}
.mega a .n{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;flex:none}
.mega a:hover .n{color:var(--green)}
.mega .mega-foot{grid-column:1/-1;margin-top:10px;padding-top:12px;border-top:1px solid var(--line);
  display:flex;gap:10px;flex-wrap:wrap}
.mega .mega-foot a{justify-content:center;font-weight:600;background:var(--green);color:#fff;flex:1 1 200px}
.mega .mega-foot a:hover{background:var(--green-600);color:#fff}

/* ---- intro band: the reference states plainly what it is, above the grid ---- */
/* one container width for the whole page — constrain the reading measure on the
   text itself, not the container, so every section shares the same left edge */
.intro{padding:64px 0 8px}
.intro h2,.intro p{max-width:920px}
.intro h2{font-size:clamp(1.5rem,2.8vw,2.1rem);margin-bottom:14px}
.intro p{font-size:16.5px;color:var(--ink-2);margin-bottom:0}

/* ---- why-us cards (reference calls this "Your Go To Wholesale Supplier") ---- */
.usps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
/* lean variant: icon + one line, no body copy — the page leads on design */
.usps-lean{grid-template-columns:repeat(3,1fr);gap:18px}
.usps-lean .usp{display:flex;align-items:center;gap:16px;padding:22px 24px}
.usps-lean .usp .ic{margin-bottom:0;flex:none}
.usps-lean .usp h3{margin:0;font-size:16px;letter-spacing:-.01em}
@media(max-width:860px){ .usps-lean{grid-template-columns:1fr} }
.usp{background:#fff;border:1px solid var(--line);border-radius:10px;padding:24px 22px}
.usp .ic{width:40px;height:40px;border-radius:9px;background:var(--green-050);color:var(--green);
  display:grid;place-items:center;margin-bottom:14px}
.usp .ic svg{width:19px;height:19px}
.usp h3{font-size:15px;margin-bottom:6px}
.usp p{font-size:13.5px;color:var(--muted);margin:0;line-height:1.6}
@media(max-width:980px){ .usps{grid-template-columns:repeat(2,1fr)} }
@media(max-width:520px){ .usps{grid-template-columns:1fr} }

/* ---- hero: split composition — copy on white, film on the right, UNWASHED ----
   The reference runs a promo carousel here. We run motion instead, but the
   house rule still applies: the page stays white, so the film is a panel
   beside the copy rather than a dark full-bleed backdrop behind it. */
.hero{position:relative;background:#fff;overflow:hidden}
/* full-bleed grid: the film runs to the right edge of the viewport, while the
   copy keeps the same left gutter as every other .wrap on the page. */
.hero .hero-grid{max-width:none;margin:0;
  display:grid;grid-template-columns:0.94fr 1.06fr;align-items:stretch;min-height:min(78vh,620px)}
.hero .inner{display:flex;flex-direction:column;justify-content:center;
  padding:72px 56px 72px max(30px, calc((100vw - var(--maxw) - 60px) / 2 + 30px))}
.hero .shot{position:relative;overflow:hidden;background:#EDEDEC}
.hero .shot img,.hero .shot video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* film bleeds to the right edge of the viewport; only a hairline of white
   feathers the inner edge so the cut against the copy is not hard */
.hero .shot::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,.55) 0%,rgba(255,255,255,0) 9%)}
/* honour a reduced-motion preference: the poster is already the first frame */
@media(prefers-reduced-motion:reduce){ .hero .shot video{display:none} }
.hero .eyebrow{margin-bottom:14px}
.hero h1{margin-bottom:16px;font-size:clamp(1.9rem,3.6vw,2.9rem);line-height:1.12;letter-spacing:-.02em}
.hero p.lede{font-size:16.5px;color:var(--ink-2);max-width:44ch;margin-bottom:26px}
.hero .row{display:flex;gap:12px;flex-wrap:wrap}
.hero .facts{display:flex;gap:30px;margin-top:34px;padding-top:24px;border-top:1px solid var(--line);flex-wrap:wrap}
.hero .facts div{min-width:0}
.hero .facts b{display:block;font-size:1.45rem;font-weight:800;color:var(--ink);line-height:1.1;letter-spacing:-.02em}
.hero .facts span{font-size:12.5px;color:var(--muted)}

@media(max-width:900px){
  .hero .hero-grid{grid-template-columns:1fr;min-height:0}
  .hero .inner{order:2;padding:34px 22px 38px}
  .hero .shot{order:1;height:230px}
  .hero .shot::after{background:linear-gradient(180deg,rgba(255,255,255,0) 60%,rgba(255,255,255,.55) 100%)}
  .hero .facts{gap:22px;margin-top:26px}
}

/* ---- section furniture ---- */
section{padding:64px 0}
.tint{background:var(--paper-2)}
.sec-head{text-align:center;max-width:680px;margin:0 auto 38px}
.sec-head h2{margin-bottom:10px}
.sec-head p{color:var(--muted);margin:0}
.eyebrow{display:inline-block;font-size:11.5px;font-weight:700;letter-spacing:1.8px;
  text-transform:uppercase;color:var(--green);margin-bottom:10px}

/* ---- category grid (the range) ---- */
/* ten real ranges → a clean 5×2 at desktop, 3×4 at tablet, 2×5 on a phone */
.cats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
@media(min-width:1200px){ .cats{grid-template-columns:repeat(5,1fr);gap:16px} }
.cat{position:relative;display:block;background:#fff;border:1px solid var(--line);border-radius:8px;
  overflow:hidden;transition:border-color .25s,box-shadow .25s,transform .25s}
.cat:hover{border-color:var(--green);box-shadow:var(--shadow);transform:translateY(-2px)}
/* height:auto is required — the width/height attributes on <img> are
   presentational hints, and without this the height attribute wins over
   aspect-ratio and the tile renders at the intrinsic pixel height. */
.cat img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.cat .body{padding:14px 16px 16px}
.cat h3{margin:0 0 2px;font-size:15px}
.cat .count{font-size:12.5px;color:var(--muted)}

/* ---- split band ---- */
.split{display:grid;grid-template-columns:1fr 1fr;align-items:stretch}
.split img{width:100%;height:100%;min-height:320px;object-fit:cover}
.split .copy{padding:56px 60px;display:flex;flex-direction:column;justify-content:center;background:var(--paper-2)}

/* ---- trade strip ---- */
.strip{background:var(--green-050);border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:52px 0;text-align:center}
.strip .row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:20px}

/* ---- forms ---- */
.page-head{background:var(--paper-2);border-bottom:1px solid var(--line);padding:40px 0}
.crumb{font-size:12.5px;color:var(--muted);margin-bottom:8px}
.crumb a:hover{color:var(--green)}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:start}
.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:28px}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;font-weight:600;color:var(--ink);margin-bottom:5px}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--line);border-radius:6px;
  padding:11px 12px;font:inherit;font-size:16px;background:#fff;color:var(--ink)}  /* 16px stops iOS auto-zoom */
.field input:focus,.field select:focus,.field textarea:focus{outline:0;border-color:var(--green);
  box-shadow:0 0 0 3px var(--green-050)}
.frow{display:grid;grid-template-columns:1fr 1fr;gap:14px}
/* requirements checkbox group — mirrors the Vala Fresh enquiry form.
   A fieldset carries the group name; browsers give fieldsets default
   border/padding/margin that must be cleared to match the other fields. */
.checkset{border:0;padding:0;margin:0 0 14px;min-width:0}
.checkset legend{padding:0;font-size:13px;font-weight:600;color:var(--ink);margin-bottom:5px}
.checks{display:grid;grid-template-columns:1fr 1fr;gap:6px 14px;margin-top:2px}
.check{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--body);
  cursor:pointer;padding:6px 0;min-height:38px}
.check input{width:auto;flex:none;margin:0;accent-color:var(--green);width:17px;height:17px}
/* on touch widths the whole row becomes the target, at the 44px minimum */
@media(max-width:520px){ .checks{grid-template-columns:1fr} .check{min-height:44px} }
.msg{padding:12px 14px;margin-bottom:14px;font-size:13.5px;border-radius:6px;display:none}
.msg.ok{display:block;background:#EAF7EF;border:1px solid #B9E3C9;color:#17683B}
.msg.err{display:block;background:#FDECEE;border:1px solid #F3C6CC;color:#9E1C2F}
.contacts{list-style:none;padding:0;margin:22px 0 0}
.contacts li{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.contacts .ic{width:38px;height:38px;border-radius:8px;background:var(--green-050);color:var(--green);
  display:grid;place-items:center;flex:none}
.contacts .ic svg{width:17px;height:17px}
.contacts b{display:block;color:var(--ink);font-size:13px}
.contacts a,.contacts span{color:var(--muted);font-size:14px}

/* ---- footer ---- */
footer.site{background:var(--paper-2);border-top:1px solid var(--line);padding:50px 0 22px;font-size:14px}
footer.site .cols{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:34px}
/* the logo carries width="1516" as a presentational hint; without width:auto
   the inline height:40px squashes it and the brand mark renders stretched */
footer.site .cols img{height:40px;width:auto}
footer.site h4{font-size:12px;letter-spacing:1.4px;text-transform:uppercase;color:var(--ink);margin-bottom:12px}
footer.site a{display:block;padding:4px 0;color:var(--muted)}
footer.site a:hover{color:var(--green)}
footer .legal{border-top:1px solid var(--line);margin-top:32px;padding-top:18px;padding-bottom:80px;display:flex;
  justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
footer .legal a{display:inline;padding:0}

/* payment strip */
.pay-strip{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;
  padding:22px 0 4px;border-top:1px solid var(--line);margin-top:30px}
.pay-label{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:1.4px;color:var(--muted)}
.pay-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.pay-chip{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid var(--line);
  border-radius:6px;height:34px;padding:0 12px}
.pay-chip img{height:14px;width:auto;display:block}
.pay-chip-bacs{font-size:11.5px;font-weight:700;color:var(--ink)}
.pay-chip-iwoca em{font-style:normal;font-size:11px;font-weight:700;color:#C22F27;text-transform:uppercase}

/* mobile menu */
.mobile-menu{position:fixed;inset:0;z-index:300;background:#fff;padding:88px 22px 22px;
  transform:translateY(-100%);transition:transform .3s ease;overflow-y:auto;display:none}
.mobile-menu.open{transform:none;display:block}
.mobile-menu a{display:block;padding:14px 0;border-bottom:1px solid var(--line);font-size:15px;font-weight:600}
.mobile-menu .btn{margin-top:16px;width:100%}
.mobile-menu .close{position:absolute;top:20px;right:22px;background:0;border:0;font-size:26px;cursor:pointer}

/* WhatsApp */
.wa{position:fixed;right:18px;bottom:18px;z-index:9998;width:52px;height:52px;border-radius:50%;
  background:#25D366;display:grid;place-items:center;box-shadow:0 8px 20px rgba(0,0,0,.22)}
.wa svg{width:27px;height:27px;fill:#fff}

/* cookie notice */
.cookiebar{position:fixed;left:0;right:0;bottom:0;z-index:9997;background:#fff;border-top:1px solid var(--line);
  box-shadow:0 -8px 24px -18px rgba(0,0,0,.3);padding:14px 22px;display:flex;align-items:center;
  justify-content:center;gap:18px;flex-wrap:wrap}
.cookiebar p{margin:0;font-size:13px;color:var(--muted)}
@media(max-width:600px){.cookiebar{padding:10px 16px;gap:10px}
  .cookiebar p{font-size:12px;line-height:1.45}
  .cookiebar .btn{height:38px;padding:0 18px;font-size:13px}}
.cookiebar a{color:var(--green);text-decoration:underline}

/* ---- reveal states ----------------------------------------------------
   Everything here is gated on .has-js, which app.js sets, so a visitor with
   JavaScript off sees the full page immediately. js/motion-fx.js owns the
   animation and writes inline styles (which beat these rules); app.js holds a
   3s net that force-clears them if motion-fx never loads. Nothing may end up
   permanently invisible.
   The .in rule MUST carry the .has-js prefix too — without it the hide rule
   wins on specificity (0,3,0 vs 0,2,0) and every section stays hidden. */
.has-js .rise:not(.hero-inner){opacity:0;transform:translateY(14px);transition:opacity .7s,transform .7s}
.has-js .rise.in,.rise.in{opacity:1;transform:none}

/* hero pieces are animated individually, so hide them before motion-fx runs */
.has-js .hero .inner > *,.has-js .hero .shot{opacity:0}
.hero .inner > *.in,.hero .shot.in{opacity:1}

/* header gains elevation once the page moves */
header.site{transition:box-shadow .25s ease}
header.site.is-lifted{box-shadow:0 10px 30px -22px rgba(23,21,22,.55)}

/* the film panel is clipped in by motion-fx; give it a stable origin */
.hero .shot{will-change:transform,clip-path}
.hero .shot video,.hero .shot img{will-change:transform}

@media(max-width:1199px){ .cats{grid-template-columns:repeat(3,1fr)} }
@media(max-width:1023.98px){
  .burger{display:block}
  nav.main{display:none}
  /* the action buttons collide with the logo in this band — the menu carries them */
  .hdr-actions{display:none}
  header.site .bar{grid-template-columns:auto 1fr auto;justify-items:start}
  .brand{justify-self:center}
}
@media(max-width:880px){
  header.site .bar{padding:10px 16px 0;height:74px;gap:8px}
  .brand img{height:44px;max-width:150px}
  .ticker .wrap{padding:4px 16px;font-size:12px;row-gap:2px}
  .ticker .item{margin-right:14px;padding-left:13px}
  /* the buttons do not fit a phone — the burger menu carries them */
  .hdr-actions{display:none}
  .btn{min-width:0}
  .hero .wrap{padding-top:40px;padding-bottom:40px;min-height:0}
  .cats{grid-template-columns:repeat(2,1fr);gap:12px}
  .split,.grid2,.frow{grid-template-columns:1fr}
  .split .copy{padding:38px 22px}
  footer.site .cols{grid-template-columns:1fr 1fr}
  section{padding:46px 0}
}
@media(max-width:520px){ footer.site .cols{grid-template-columns:1fr} }
