/* P&L England — design system */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700;800;900&family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600;9..144,700&family=Inter+Tight:wght@400;500;600;700&display=swap');

/* Force the ampersand to render in Arial Black — conventional upright "&" form
   (matches the Logo Asset Pack). U+0026 is the & character. */
@font-face {
  font-family: 'NormalAmp';
  src: local('Arial Black'), local('Arial-Black'), local('Helvetica Bold'), local('Arial Bold');
  unicode-range: U+0026;
}

:root {
  /* Paper palette (default) */
  --paper: #FEFDF8;
  --paper-2: #F8F3E5;
  --ink: #1A2418;
  --ink-2: #4A5448;
  --ink-3: #8A8E84;
  --line: #ECE4CE;
  --line-soft: #F4EEDB;

  --forest: #3F6B3A;
  --forest-deep: #2C4F29;
  --leaf: #6FB155;
  --tomato: #D63B27;
  --tomato-deep: #A82A1B;
  --amber: #E89A3C;
  --cream: #FAF6EC;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;

  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }

::selection { background: var(--tomato); color: var(--cream); }

/* Theme: ink (dark) */
body.theme-ink {
  --paper: #0E1410;
  --paper-2: #161D17;
  --ink: #F4EFE2;
  --ink-2: #B8B0A0;
  --ink-3: #6E6A5E;
  --line: #2A312A;
  --line-soft: #1F2520;
  --forest: #4A8B5C;
  --leaf: #6FB37F;
  --cream: #F4EFE2;
}

/* ─────────────────────────────────────────────────────────────────
   Alternative palettes — toggled live from the Tweaks panel.
   Each redefines the same token surface (--paper, --ink, --tomato as
   primary CTA colour, --forest-deep as dark-section bg, --leaf as
   "in season" accent) so every component stays semantically consistent
   without touching component code.
   ───────────────────────────────────────────────────────────────── */

/* Market Hall — deep navy primary, sun yellow accent, ivory paper.
   Authoritative B2B / produce-trader signage feel. */
body.theme-market {
  --paper: #FBF8F2;
  --paper-2: #F1ECDF;
  --ink: #0E2A47;
  --ink-2: #3D5773;
  --ink-3: #8A99AB;
  --line: #DCD3BC;
  --line-soft: #EAE3CE;

  --forest: #0E2A47;
  --forest-deep: #0A1F36;
  --leaf: #2F8F3F;
  --tomato: #F5C842;        /* primary CTA: sun yellow */
  --tomato-deep: #D9AE2A;
  --amber: #E89A3C;
  --cream: #FBF8F2;
}
body.theme-market .btn-primary { color: #0E2A47; box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 8px 24px -10px rgba(245,200,66,0.55); }
body.theme-market ::selection { background: #F5C842; color: #0E2A47; }

/* Market — Cool off-white (option 2): same navy + yellow keys, swap the warm
   ivory paper for a near-white with a microscopic blue-grey tint. Reads more
   modern / corporate than the standard Market Hall palette. */
body.theme-market-cool {
  --paper: #F7F8FA;
  --paper-2: #ECEEF2;
  --ink: #0E2A47;
  --ink-2: #3D5773;
  --ink-3: #8A99AB;
  --line: #DCE0E6;
  --line-soft: #E8EBF0;

  --forest: #0E2A47;
  --forest-deep: #0A1F36;
  --leaf: #2F8F3F;
  --tomato: #F5C842;
  --tomato-deep: #D9AE2A;
  --amber: #E89A3C;
  --cream: #F7F8FA;
}
body.theme-market-cool .btn-primary { color: #0E2A47; box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 8px 24px -10px rgba(245,200,66,0.55); }
body.theme-market-cool .eyebrow,
body.theme-market-cool .h-display em,
body.theme-market-cool .tomato { color: #0E2A47 !important; }
body.theme-market-cool .pill.pill-tomato {
  background: rgba(14,42,71,0.08); color: #0E2A47; border-color: rgba(14,42,71,0.2);
}
body.theme-market-cool ::selection { background: #F5C842; color: #0E2A47; }

/* Market — Two-tone (option 7): pure white paper, deep navy carries the
   weight in dark sections (Quote, Footer, Products feature block). Editorial
   FT.com / annual-report rhythm — alternating white and navy. */
body.theme-market-twotone {
  --paper: #FFFFFF;
  --paper-2: #F4F6F9;
  --ink: #0E2A47;
  --ink-2: #3D5773;
  --ink-3: #8A99AB;
  --line: #DCE0E6;
  --line-soft: #EAEDF1;

  --forest: #0E2A47;
  --forest-deep: #0A1F36;
  --leaf: #2F8F3F;
  --tomato: #D63B27;        /* primary CTA: tomato red */
  --tomato-deep: #A82A1B;
  --amber: #E89A3C;
  --cream: #FFFFFF;
}
body.theme-market-twotone .btn-primary { color: #FFFFFF; box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 8px 24px -10px rgba(214,59,39,0.45); }
body.theme-market-twotone ::selection { background: #D63B27; color: #FFFFFF; }
body.theme-market-twotone section.section-pad:nth-of-type(even) {
  background: #F4F6F9;
}

/* Crate — kraft paper, deep forest, ripe orange.
   Heritage / supplier-direct, "from the farm" warmth. */
body.theme-crate {
  --paper: #EFE6D2;
  --paper-2: #E4D9BE;
  --ink: #2A2418;
  --ink-2: #5C4F3A;
  --ink-3: #8E826B;
  --line: #CDBE9C;
  --line-soft: #DCD0B0;

  --forest: #1F3A2A;
  --forest-deep: #15281D;
  --leaf: #3F7A48;
  --tomato: #E36B1F;        /* primary CTA: ripe orange */
  --tomato-deep: #B6541A;
  --amber: #E89A3C;
  --cream: #F5EBD3;
}
body.theme-crate ::selection { background: #E36B1F; color: #F5EBD3; }

/* Cold Chain — clean white, graphite ink, electric leaf green.
   Modern logistics / operations rigour. */
body.theme-cold {
  --paper: #FFFFFF;
  --paper-2: #F4F6F4;
  --ink: #1B1F23;
  --ink-2: #4A5258;
  --ink-3: #98A0A6;
  --line: #E1E5E2;
  --line-soft: #EEF1EE;

  --forest: #1B1F23;
  --forest-deep: #0F1216;
  --leaf: #3FB950;
  --tomato: #2EA043;        /* primary CTA: electric green */
  --tomato-deep: #238636;
  --amber: #E89A3C;
  --cream: #FFFFFF;
}
body.theme-cold ::selection { background: #3FB950; color: #FFFFFF; }

/* Sun-ripened — pale apricot, deep plum, olive accents.
   Premium / boutique grocer feel for high-end retail buyers. */
body.theme-sun {
  --paper: #FBEFE0;
  --paper-2: #F4E4CE;
  --ink: #2E1820;
  --ink-2: #5C3F4A;
  --ink-3: #9A8088;
  --line: #E3D0BB;
  --line-soft: #F0E1CA;

  --forest: #4A1F2E;
  --forest-deep: #321420;
  --leaf: #7A8B3F;
  --tomato: #C84A2D;        /* primary CTA: blood-orange */
  --tomato-deep: #9F3920;
  --amber: #E89A3C;
  --cream: #FBEFE0;
}
body.theme-sun ::selection { background: #C84A2D; color: #FBEFE0; }

/* Market Hall: yellow tomato is unreadable as small accent text — promote
   navy ink for eyebrows + italic display accents, keep yellow for CTAs only. */
body.theme-market .eyebrow,
body.theme-market .h-display em,
body.theme-market .tomato { color: #0E2A47 !important; }
body.theme-market .pill.pill-tomato {
  background: rgba(14,42,71,0.08);
  color: #0E2A47;
  border-color: rgba(14,42,71,0.2);
}

/* Cold Chain: green CTA reads OK as small accent but pill background tone is
   re-keyed to match the new tomato. */
body.theme-cold .pill.pill-tomato {
  background: rgba(46,160,67,0.10);
  color: #1B7F33;
  border-color: rgba(46,160,67,0.25);
}
body.theme-cold .eyebrow,
body.theme-cold .h-display em,
body.theme-cold .tomato { color: #1B7F33 !important; }

/* Type scale */
.h-display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}
.h-display em {
  font-style: italic;
  font-weight: 400;
  color: var(--tomato);
}
.h-display .leaf { color: var(--forest); font-style: italic; }

.h-1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h-2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.h-3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--tomato);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
}

.lead {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}

.mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Layout */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { position: relative; }

.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--tomato);
  color: var(--cream);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08), 0 8px 24px -10px rgba(214,59,39,0.45);
}
.btn-primary:hover { background: var(--tomato-deep); }

.btn-ink {
  background: var(--ink);
  color: var(--cream);
}
.btn-ink:hover { background: #000; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }

.btn-whatsapp {
  background: #25D366;
  color: #053B1F;
}
.btn-whatsapp:hover { background: #1EBC59; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-2);
}
.pill.pill-active {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.pill.pill-tomato {
  background: rgba(214,59,39,0.08);
  color: var(--tomato);
  border-color: rgba(214,59,39,0.2);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
  position: relative;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: #22C55E;
  opacity: 0.3;
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Card */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

/* Marquee */
.marquee {
  overflow: hidden;
  display: flex;
}
.marquee-track {
  display: flex;
  gap: 56px;
  flex-shrink: 0;
  animation: marquee 40s linear infinite;
  padding-right: 56px;
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* Section padding */
.section-pad {
  padding: clamp(72px, 10vw, 140px) 0;
}
.section-pad-sm {
  padding: clamp(48px, 6vw, 80px) 0;
}

/* Utility */
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); }
.tomato { color: var(--tomato); }
.forest { color: var(--forest); }

.grid-lines {
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}

/* Smooth-scroll */
html { scroll-behavior: smooth; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--tomato);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Inputs */
input, textarea, select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(26,36,24,0.08);
}
label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: block;
  margin-bottom: 6px;
}

/* Mobile spacing tightening */
@media (max-width: 720px) {
  .section-pad { padding: 56px 0; }
  .h-display { font-size: clamp(28px, 8vw, 44px); line-height: 1.08; }
  .lead { font-size: 15px !important; }
}
@media (max-width: 480px) {
  .h-display { font-size: clamp(24px, 7.5vw, 34px); }
}
