:root{
  --bg:#0b0c0e;          /* deep hero background (used in hero only) */
  --ivory:#f3f0ea;       /* page background (slightly darker, warm) */
  --surface:#ffffff;     /* card / panel background */
  --charcoal:#111315;    /* nav/footer cards */
  --ink:#111827;         /* body text */
  --muted:#6b7280;
  --accent:#8b1e2d;      /* oxblood */
  --accent-600:#6f1824;
  --gold:#c6a165;        /* brass accent */
  --paper:#f7f3ed;       /* light paper for big white sections */
  --cream:#f7f3ed;
}

/* ===== THEMES ===== */
/* Forest & Brass (default) */
body.theme-forest{
  --ivory:#faf7f2;
  --cream:#fbf7ef;
  --charcoal:#0c0f10;
  --accent:#115e3b;
  --accent-600:#0c432a;
  --gold:#c9a66b;
}
/* Navy & Mustard */
body.theme-navy{
  --ivory:#f7f8fb;
  --cream:#f4f6fb;
  --charcoal:#0d1220;
  --accent:#1d3b8b;
  --accent-600:#132a68;
  --gold:#e0b63f;
}
/* Rioja & Stone */
body.theme-rust{
  --ivory:#fbf8f6;
  --cream:#f9f3ef;
  --charcoal:#191514;
  --accent:#8b2b1d;
  --accent-600:#6a2016;
  --gold:#d6a979;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:#0f172a;
  background:var(--ivory);
  line-height:1.5;
}
.container{max-width:1120px;margin:0 auto;padding:0 16px}

/* NAV */
.nav{position:sticky;top:0;z-index:50;background:rgba(255,255,255,0.95);backdrop-filter:saturate(180%) blur(8px);border-bottom:1px solid #eee;box-shadow:0 6px 24px -18px rgba(0,0,0,.35)}
.nav-inner{display:flex;align-items:center;justify-content:space-between;padding:14px 0}

/* ⬇️ wrapper around logo + text */
.brand{display:flex;align-items:center;gap:12px}

.brand .logo{
  background:transparent;
  box-shadow:none;
  width:auto;
  height:auto;
  border-radius:0;
  display:flex;
  align-items:center;
}

/* keep for safety if you ever use inline SVG */
.logo-svg{
  width:24px;
  height:24px;
}

/* image-based logo (favicon.svg) */
.logo-img{
  width:80px;
  height:auto;
  display:block;
  filter:none;
}

/* Footer logo: invert so black logo shows on dark footer */
.footer .logo-img{
  filter: invert(1);
  opacity: 0.95;
}

.brand-text .tagline{font-size:12px;letter-spacing:.22em;text-transform:uppercase;color:#9aa3b2}

.brand-text .name{font-size:18px;font-weight:700;color:var(--ink)}

.links{
  display:none;
  gap:20px;
  align-items:center;
}

/* desktop nav links */
.links a{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 14px;
  border-radius:999px;
  font-size:14px;
  font-weight:500;
  color:#4b5563;
  text-decoration:none;
  transition:
    color .18s ease,
    background-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

/* hover / focus: use accent colour */
.links a:hover,
.links a:focus-visible{
  color:var(--accent-600);
  background:color-mix(in srgb, var(--accent) 12%, #ffffff);
  box-shadow:0 10px 26px rgba(139,30,45,.25);
  transform:translateY(-1px);
}

/* kill default outline */
.links a:focus-visible{
  outline:none;
}

.hamburger{display:inline-flex;flex-direction:column;gap:4px;background:none;border:0}
.hamburger span{display:block;width:24px;height:2px;background:#0f172a}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border-radius:999px;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  letter-spacing:.01em;
  transform:translateY(0);
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, filter .18s ease;
}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 4px 16px rgba(0,0,0,.12)}
.btn-primary:hover{background:var(--accent-600);box-shadow:0 6px 22px rgba(0,0,0,.18)}
.btn-amber{background:var(--gold);color:#111827;box-shadow:0 14px 38px rgba(0,0,0,.5);}
.btn-amber:hover{filter:brightness(0.92)}
.btn-outline{border:1px solid rgba(148,163,184,.9);color:#e5e7eb;background:rgba(15,23,42,.85);box-shadow:0 10px 30px rgba(0,0,0,.55);}
.btn-gold{background:var(--gold);color:#1b1f23}
.btn-gold:hover{filter:brightness(.92)}
.btn:hover{
  filter:none;
  transform:translateY(-1px);
  box-shadow:0 18px 40px rgba(0,0,0,.65);
}
.btn:active{
  transform:translateY(0);
  box-shadow:0 10px 24px rgba(0,0,0,.55);
}

/* MOBILE NAV */
.mobile-nav{display:none;flex-direction:column;padding:8px 16px;border-bottom:1px solid #e5e7eb;background:#fff}
.mobile-nav[aria-open="true"]{display:flex}
.mobile-nav a{padding:10px 0;text-decoration:none;color:#0f172a}

/* HERO */
.hero{background:radial-gradient(1200px 600px at 10% 0%, #1b1f23 0%, var(--charcoal) 60%, #0b0c0e 100%);color:#fff}
.hero-grid{display:grid;grid-template-columns:1fr;gap:32px;padding:72px 0}
.hero h1{font-size:40px;line-height:1.08;margin:0 0 6px;position:relative}
.hero-underline{
  text-decoration:underline;
  text-decoration-thickness:3px;
  text-underline-offset:4px;
  text-decoration-color:var(--gold);
}

.hero .strap .accent{color:var(--gold);font-weight:800;font-size:40px;text-shadow:0 1px 0 rgba(0,0,0,.15)}
.hero p{color:rgba(255,255,255,.85);max-width:560px;margin-top:4px}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:18px}
.badges{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}
.badge{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(148,163,184,.7);
  background:rgba(15,23,42,.9);
  color:#e5e7eb;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:500;
}
.hero-media{
  position:relative;
}
.hero-photo{
  border-radius:24px;
  overflow:hidden;
  height:280px;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,.30), rgba(0,0,0,.05)),
    url("A_photograph_showcases_a_serving_of_shepherd's_pie.png");
  background-size:cover;
  background-position:center;
  box-shadow:0 30px 120px -20px rgba(0,0,0,.75);
}
.hero-note{
  position:absolute;
  right:18px;
  bottom:18px;
  background:rgba(15,23,42,.94);
  color:#e5e7eb;
  padding:6px 14px;
  border-radius:999px;
  box-shadow:0 8px 30px rgba(0,0,0,.55);
  font-size:13px;
  border:1px solid rgba(148,163,184,.55);
  max-width:75%;
}

@media (min-width:900px){
  .hero-photo{
    height:340px;
  }
}
@media (max-width:640px){
  .hero-photo{
    height:230px;
  }
  .hero-note{
    right:12px;
    bottom:12px;
    font-size:12px;
  }
}
@media (max-width:640px){
  .hero-photo{
    height:220px;
  }
}

/* HERO button visibility fix */
.hero .btn-outline{
  color:#fff;
  border-color:rgba(255,255,255,.75);
  background:rgba(255,255,255,.08);
}
.hero .btn-outline:hover{
  background:rgba(255,255,255,.16);
  border-color:#fff;
  filter:none;
}

/* TRUST */
.trust{background:var(--charcoal);color:#fff}
.trust-grid{display:grid;grid-template-columns:1fr;gap:16px;padding:20px 0}
.trust-item{display:flex;gap:12px;align-items:center}
.trust-icon{width:36px;height:36px;border-radius:10px;background:rgba(255,255,255,.12);display:grid;place-items:center;color:#fbbf24;font-size:18px}
.trust-title{font-weight:600}
.trust-sub{opacity:.85}

/* SECTIONS */
.section{padding:68px 0}
.section-white{background:var(--paper)}
.section.alt{background:color-mix(in srgb,var(--accent) 4%,var(--ivory))}
.section-head{text-align:left;max-width:760px}
.kicker{text-transform:uppercase;letter-spacing:.18em;color:var(--accent);font-size:12px;margin:0 0 8px}
.section h2{margin:0 0 8px;font-size:32px;letter-spacing:-0.015em}
.intro{color:#475569}

/* PRICING CHIPS */
.price-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  white-space:nowrap;
  background:color-mix(in srgb, var(--accent) 10%, #fff);
  border:1px solid color-mix(in srgb, var(--accent) 25%, #fff);
  color:#0f172a;
  font-weight:600;
  font-size:14px;
}
.chip strong{
  color:var(--accent);
  font-weight:800;
}

/* CARDS */
.cards{display:grid;grid-template-columns:1fr;gap:16px;margin-top:24px}
.card{background:#fff;border:1px solid #ececec;border-radius:16px;padding:18px;box-shadow:0 2px 8px rgba(0,0,0,.04);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--accent) 30%,#ececec);box-shadow:0 8px 22px rgba(0,0,0,.08)}
.card-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.card h3{margin:0;font-size:18px}
.price{font-weight:700;color:#1f2937}
.price span{display:block;color:#64748b;font-weight:500;font-size:12px}
.desc{color:#475569;margin:8px 0 10px}
.tags{display:flex;gap:8px;flex-wrap:wrap}
.tag{color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,white);border:1px solid color-mix(in srgb,var(--accent) 28%,white);padding:4px 10px;border-radius:999px;font-size:12px}
.meta{display:flex;justify-content:space-between;color:#64748b;font-size:12px;margin-top:8px}
.card-actions{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.link{color:#64748b;text-decoration:none}
.link:hover{color:#0f172a}

/* GRIDS / PANELS */
.grid-2{display:grid;grid-template-columns:1fr;gap:24px}
.grid-2-compact{display:grid;grid-template-columns:1fr 2fr;gap:8px;margin-top:8px}
.panel{background:#fff;border:1px solid #ececec;border-radius:16px;padding:18px;box-shadow:0 2px 8px rgba(0,0,0,.04);position:relative}
.panel::before{content:"";position:absolute;left:0;top:0;right:0;height:3px;border-radius:16px 16px 0 0;background:linear-gradient(90deg,var(--accent),var(--gold));opacity:.85}
.address{margin-top:16px}
.bold{font-weight:700}
.actions{display:flex;gap:12px;margin-top:16px}
.cream{background:var(--cream)}

/* STORY */
.story-media{position:relative}
.story-img{
  height:360px;
  border-radius:16px;
  background-size:cover;
  background-position:center 40%;
  background-repeat:no-repeat;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  outline:1px solid color-mix(in srgb,var(--accent) 20%,#fff);
  outline-offset:-1px;
}

.story-note{position:absolute;left:16px;bottom:-12px;background:#fff;padding:10px 12px;border-radius:12px;border:1px solid #e5e7eb;box-shadow:0 8px 30px rgba(0,0,0,.12);font-size:14px}

/* ALLERGENS */
.allergen-grid{display:grid;grid-template-columns:1fr;gap:8px;margin-top:16px}
.allergen{background:#fff;border:1px solid #ececec;border-radius:12px;padding:10px 12px;color:#334155;font-size:14px}

/* CONTACT */
.form{display:grid;gap:12px}
.form label{display:grid;gap:6px;font-size:14px;color:#334155}
.form input,.form textarea,.form select{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:10px;font:inherit}
.form input:focus,.form textarea:focus,.form select:focus{outline:2px solid #c6a165;border-color:#c6a165}
.fine-print{font-size:13px;color:#6b7280;line-height:1.4}
.label{list-style:none;padding:0;margin:8px 0 0}
.label li{margin:6px 0}
.note{background:#fff;border:1px solid #ececec;padding:12px;border-radius:12px;margin-top:12px}

/* FOOTER */
.footer{background:var(--charcoal);color:#fff;margin-top:40px}
.footer-grid{display:grid;grid-template-columns:1fr;gap:24px;padding:28px 0}
.footer-brand .name{font-weight:600}
.footer-copy{opacity:.92;max-width:520px;color:#d1d5db}
.footer-links{list-style:none;padding:0;margin:8px 0 0}
.footer-links li{margin:4px 0}
.footer-links a{color:#e5e7eb;text-decoration:none;opacity:.95}
.footer-links a:hover{opacity:1}
.footer-bottom{text-align:center;border-top:1px solid rgba(255,255,255,.12);padding:12px;color:rgba(255,255,255,.85);font-size:12px}

/* PANEL CTA FIX */
.panel .actions{
  margin-top:14px;padding-top:12px;border-top:1px solid #ececec;
  display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap;
}
.panel .btn-outline{border-color:#d8dee6;background:#fff}
.panel .btn-outline:hover{background:#f6f8fa}
@media (max-width:520px){
  .panel .actions{justify-content:stretch;flex-direction:column;gap:8px}
  .panel .actions .btn{width:100%}
}

/* ANIMATIONS */
@keyframes fadeIn{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

.fade-in{
  animation:fadeIn .8s ease-out both;
}

.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity .6s ease-out, transform .6s ease-out;
}

.reveal.in{
  opacity:1;
  transform:none;
}


/* RESPONSIVE */
@media (min-width:768px){
  .links{display:flex}
  .hamburger{display:none}
  .hero-grid{grid-template-columns:1fr 1fr}
  .trust-grid{grid-template-columns:repeat(3,1fr)}
  .cards{grid-template-columns:repeat(3,1fr)}
  .grid-2{grid-template-columns:1fr 1fr}
  .allergen-grid{grid-template-columns:repeat(4,1fr)}
}

/* STORY TEXT TWEAKS */
.story-points li+li{margin-top:6px}
.signature{margin-top:16px;color:#475569;font-weight:600}
.signature span{color:#1b1f23;font-weight:700}

/* utility */
.nowrap { white-space: nowrap; }

/* ===== colourful allergen chips ===== */
.allergen-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:16px;
}
@media (min-width:640px){ .allergen-grid{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:900px){ .allergen-grid{ grid-template-columns:repeat(4,1fr); } }

.allergen{
  --chip:#cbd5e1;
  position:relative;
  padding:12px 14px 12px 38px;
  border-radius:12px;
  background:color-mix(in srgb, var(--chip) 12%, #fff);
  border:1px solid color-mix(in srgb, var(--chip) 28%, #fff);
  color:#1b1f23;
  font-size:14px;
  transition:transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.allergen::before{
  content:"";
  position:absolute; left:12px; top:50%; transform:translateY(-50%);
  width:12px; height:12px; border-radius:999px;
  background:var(--chip);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--chip) 25%, #fff);
}
.allergen:hover{ transform:translateY(-1px); box-shadow:0 6px 14px rgba(0,0,0,.06); }

/* colour map */
.allergen.is-gluten        { --chip:#f59e0b; }
.allergen.is-milk          { --chip:#3b82f6; }
.allergen.is-eggs          { --chip:#fbbf24; }
.allergen.is-tree-nuts     { --chip:#b45309; }
.allergen.is-peanuts       { --chip:#f97316; }
.allergen.is-sesame        { --chip:#e0b63f; }
.allergen.is-soya          { --chip:#10b981; }
.allergen.is-fish          { --chip:#06b6d4; }
.allergen.is-crustaceans   { --chip:#ef4444; }
.allergen.is-molluscs      { --chip:#8b5cf6; }
.allergen.is-celery        { --chip:#22c55e; }
.allergen.is-mustard       { --chip:#d97706; }
.allergen.is-sulphites     { --chip:#64748b; }
.allergen.is-lupin         { --chip:#ec4899; }


/* ===== STORY CARD UPGRADE ===== */
.story-copy{
  position:relative;
  background:linear-gradient(135deg, #ffffff 0%, color-mix(in srgb, var(--cream) 80%, #ffffff) 100%);
  border-radius:18px;
  padding:22px 22px 20px;
  border:1px solid #e5e7eb;
  box-shadow:0 14px 40px rgba(15,23,42,.06);
  overflow:hidden;
}

/* subtle accent strip on the left */
.story-copy::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:4px;
  background:linear-gradient(180deg,var(--accent),var(--gold));
  opacity:.85;
}

/* meta “chips” under the intro */
.story-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:14px 0 4px;
  font-size:12px;
  color:#64748b;
}
.story-meta span{
  padding:4px 10px;
  border-radius:999px;
  background:color-mix(in srgb, var(--accent) 6%, #ffffff);
  border:1px solid color-mix(in srgb, var(--accent) 20%, #e5e7eb);
}

/* custom bullets */
.story-points{
  list-style:none;
  margin:14px 0 0;
  padding:0;
}
.story-points li{
  position:relative;
  padding-left:22px;
  font-size:14px;
  color:#1f2937;
}
.story-points li + li{
  margin-top:8px;
}
.story-points li::before{
  content:"";
  position:absolute;
  left:0;
  top:0.72em;
  width:9px;
  height:9px;
  border-radius:999px;
  background:var(--accent);
  box-shadow:0 0 0 3px color-mix(in srgb, var(--accent) 22%, #ffffff);
  transform:translateY(-50%);
}

/* signature */
.signature{
  margin-top:16px;
  color:#475569;
  font-weight:600;
}
.signature span{
  color:#1b1f23;
  font-weight:700;
}

/* slight breathing room on small screens */
@media (max-width:767px){
  .story-copy{
    margin-bottom:20px;
  }
}
@media (max-width:640px){
  .hero-actions{
    flex-direction:column;
    align-items:flex-start;
  }
  .hero-actions .btn{
    width:100%;
    justify-content:center;
  }
}

/* ===== ORDER FORM LAYOUT TWEAKS ===== */

.form .form-intro{
  margin-bottom:1rem;
  font-size:0.95rem;
  color:var(--muted);
}

.form .hidden-field{
  display:none; /* honeypot */
}

.form .field-row{
  display:flex;
  flex-wrap:wrap;
  gap:1rem;
  margin-bottom:1rem;
}

.form .field-half{
  flex:1 1 12rem;
}

.form .field-block{
  display:block;
  margin-bottom:1rem;
}

/* Thank-you page */

.thanks-body{
  background:#f5f1eb;
}

.thanks{
  min-height:100vh;
  display:flex;
  align-items:center;
}

.thanks-inner{
  max-width:34rem;
  padding:3rem 1.5rem;
}

.thanks h1{
  margin-bottom:0.75rem;
}

.thanks-list{
  margin:0 0 1.5rem;
  padding-left:1.1rem;
  font-size:0.95rem;
}

@media (max-width:640px){
  .form .field-row{
    flex-direction:column;
  }
}
