/* Colours are set from CONFIG.colors in script.js; these are the fallbacks. */
:root {
  --c-primary: #6b3f1d;
  --c-primary-dark: #4a2a12;
  --c-accent: #2f6b3a;
  --c-accent-dark: #22502b;
  --c-cream: #fbf5ea;
  --c-sand: #f3e6d0;
  --c-text: #2b1d12;
  --c-muted: #6e5a4a;
  --c-white: #fff;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 2px 6px rgba(60, 35, 15, 0.06), 0 10px 30px rgba(60, 35, 15, 0.08);
  --shadow-lg: 0 6px 14px rgba(60, 35, 15, 0.08), 0 20px 44px rgba(60, 35, 15, 0.14);
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--c-accent); }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--c-primary-dark);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 7.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.6rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--c-primary-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.6em;
}
.lead { font-size: 1.1rem; color: var(--c-muted); }
.small { font-size: 0.9rem; color: var(--c-muted); margin: 0; }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* Scroll reveal (class added by JS only when motion is allowed) */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-reveal .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-wa {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(47, 107, 58, 0.28);
}
.btn-wa:hover { background: var(--c-accent-dark); box-shadow: 0 8px 22px rgba(47, 107, 58, 0.34); }

.btn-primary {
  background: var(--c-cream);
  color: var(--c-primary-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover { background: #fff; }

.btn-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn-light:hover { background: #fff; color: var(--c-primary-dark); }

.btn-sm { min-height: 42px; padding: 0.55em 1.1em; font-size: 0.95rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 245, 234, 0.94);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(107, 63, 29, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
  margin: 0;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  margin-right: -10px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-primary-dark);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-cream);
  border-bottom: 1px solid rgba(107, 63, 29, 0.12);
  box-shadow: 0 12px 24px rgba(60, 35, 15, 0.1);
  padding: 8px 20px 20px;
  display: none;
}
.nav-open .site-nav { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a {
  display: block;
  padding: 14px 4px;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--c-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(107, 63, 29, 0.08);
}
.site-nav .btn { width: 100%; }

@media (min-width: 900px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 28px; margin: 0; }
  .site-nav li a {
    padding: 6px 0;
    border: 0;
    font-size: 0.98rem;
    position: relative;
  }
  .site-nav li a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s var(--ease);
  }
  .site-nav li a:hover::after { transform: scaleX(1); }
  .site-nav .btn { width: auto; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  min-height: max(540px, calc(100svh - var(--header-h)));
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--c-primary-dark);
  overflow: hidden;
  isolation: isolate;
}
.hero-slides, .hero-slide, .hero-overlay { position: absolute; inset: 0; }
.hero-slides { z-index: -2; }
.hero-slide { opacity: 0; transition: opacity 1.6s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(to top, rgba(30, 17, 8, 0.88) 0%, rgba(30, 17, 8, 0.55) 45%, rgba(30, 17, 8, 0.2) 100%);
}
.hero-content { padding-top: 64px; padding-bottom: 92px; } /* room for the floating WhatsApp button */
.hero h1 {
  color: #fff;
  max-width: 15ch;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.hero .eyebrow { color: #f2d9a8; }
.hero-text {
  font-size: 1.1rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.75em;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 200px; }

@media (min-width: 700px) {
  .hero { align-items: center; }
  .hero-content { padding-bottom: 64px; }
  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(30, 17, 8, 0.85) 0%, rgba(30, 17, 8, 0.55) 50%, rgba(30, 17, 8, 0.15) 100%);
  }
  .btn-row .btn { flex: 0 0 auto; }
  .hero-text { font-size: 1.2rem; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; position: relative; }
.section-tint { background: var(--c-sand); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p:not(.eyebrow):not(.pay-note) { color: var(--c-muted); }
.section-head > :last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .section { padding: 104px 0; }
  .section-head { margin-bottom: 56px; }
}

/* Photo-background sections: colour shows until the photo loads (or if it fails) */
.section-photo {
  background-color: var(--c-sand);
  isolation: isolate;
}
.section-photo::before,
.section-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
}
.section-photo::before {
  background: var(--bg-image, none) center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.section-photo.bg-loaded::before { opacity: 1; }
.section-photo::after { background: rgba(251, 245, 234, 0.88); }

.section-photo-dark { background-color: var(--c-primary-dark); color: #fff; }
.section-photo-dark::after {
  background: linear-gradient(180deg, rgba(40, 22, 10, 0.86), rgba(40, 22, 10, 0.78));
}
.section-photo-dark h2,
.section-photo-dark h3 { color: #fff; }
.section-photo-dark .eyebrow { color: #f2d9a8; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 22px; } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: opacity 0.7s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--c-sand);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 22px;
}
.product-body p { color: var(--c-muted); font-size: 0.97rem; }
.product-body .btn { padding-left: 1em; padding-right: 1em; white-space: nowrap; }
.call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin-top: 6px;
  margin-bottom: -10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-primary);
  text-decoration: underline;
  text-decoration-color: rgba(107, 63, 29, 0.35);
  text-underline-offset: 3px;
}
.call-link:hover { color: var(--c-primary-dark); text-decoration-color: currentColor; }
.call-link .icon { width: 1em; height: 1em; }

.pay-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 8px 14px;
  background: #eef5ee;
  border: 1px solid #cfe2d1;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.35;
}
.pay-note { color: var(--c-accent-dark); }
.pay-note .icon { color: var(--c-accent); }
.product-buy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
  margin-bottom: 16px;
}
.price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0;
  white-space: nowrap;
  line-height: 48px; /* matches the select height so they line up */
}

/* Placeholder when an image fails to load */
.img-failed {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(135deg, var(--c-sand), #e4c9a0);
}
.img-failed::after {
  content: attr(data-label);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--c-primary);
  text-align: center;
  padding: 0 16px;
}
.hero-slide.img-failed { background: linear-gradient(135deg, var(--c-primary), var(--c-primary-dark)); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 0.92rem; color: var(--c-primary-dark); padding: 0; }
.field legend { margin-bottom: 8px; }
.field-inline { margin: 0; flex: 1; max-width: 140px; }
.field-inline label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-muted); }

input[type="text"], input[type="tel"], select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  font: 1rem var(--font-body);
  color: var(--c-text);
  background: var(--c-white);
  border: 1.5px solid #dcc9ae;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b3f1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 58, 0.18);
}
::placeholder { color: #a8957f; }
select:invalid { color: #a8957f; }
select option { color: var(--c-text); }

.checks { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .checks { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  background: var(--c-cream);
  border: 1.5px solid #e6d5bc;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1.3;
  transition: border-color 0.2s, background-color 0.2s;
}
.field .check { padding: 10px 12px; font-weight: 500; font-size: 0.95rem; color: var(--c-text); }
.check:hover { border-color: var(--c-primary); }
.check input { width: 20px; height: 20px; accent-color: var(--c-accent); flex-shrink: 0; margin: 0; }
.check:has(input:checked) { border-color: var(--c-accent); background: #eef5ee; }

.form-error {
  background: #fdecea;
  color: #8a1f11;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

/* ---------- Quality ---------- */
.quality-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .quality-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.quality-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(107, 63, 29, 0.1);
  border-radius: var(--radius);
  padding: 24px;
  transition: opacity 0.7s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.quality-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quality-card p { margin: 0; color: var(--c-muted); }

.quality-badges {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
@media (min-width: 760px) { .quality-badges { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.badge-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 20px 16px 22px;
  background: var(--c-white);
  border-left: 5px solid var(--c-accent);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.badge-pill strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--c-primary-dark); }
.badge-pill span { color: var(--c-muted); font-size: 0.95rem; }
.badge-kebs { border-left-color: var(--c-primary); }
.badge-kebs strong::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.4em;
  font-size: 0.8em;
  color: #fff;
  background: var(--c-primary);
  border-radius: 50%;
  vertical-align: 0.1em;
}

/* ---------- How it's made ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.step {
  position: relative;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  backdrop-filter: blur(3px);
}
.step p { margin: 0; color: rgba(255, 255, 255, 0.85); }
.step-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--c-cream);
  color: var(--c-accent);
}
.step-icon svg { width: 30px; height: 30px; }
.step-num {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f2d9a8;
  margin-bottom: 4px;
}

/* ---------- Where to buy ---------- */
.where-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .where-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; } }
.delivery-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.delivery-card h3 { margin-bottom: 0.3em; }
.delivery-card p { margin: 0; font-size: 1.05rem; }
.delivery-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef5ee;
  color: var(--c-accent);
}
.delivery-icon svg { width: 28px; height: 28px; }
@media (max-width: 479px) {
  .delivery-card { flex-direction: column; gap: 12px; }
}

/* ---------- Stockist ---------- */
.stockist-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .stockist-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }
.stockist-form {
  background: var(--c-white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
@media (min-width: 480px) { .stockist-form { padding: 32px 28px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (min-width: 980px) { .contact-grid { grid-template-columns: repeat(4, 1fr); } }
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--c-text);
  text-decoration: none;
  transition: opacity 0.7s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.contact-card .icon { width: 28px; height: 28px; color: var(--c-accent); margin-bottom: 10px; }
.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.contact-card > span:last-child { font-weight: 500; font-size: 1.05rem; }
@media (max-width: 559px) {
  .contact-card {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 16px 18px;
  }
  .contact-card .icon { grid-row: span 2; margin: 0; justify-self: center; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.82);
  padding: 44px 0 96px;
  font-size: 0.95rem;
}
.site-footer .logo { color: #fff; margin-bottom: 4px; }
.site-footer p { margin: 0 0 4px; }
.footer-inner { display: grid; gap: 20px; }
.credit { font-size: 0.85rem; opacity: 0.7; }
@media (min-width: 760px) {
  .site-footer { padding-bottom: 44px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-meta { text-align: right; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28); }
@media (min-width: 900px) { .wa-float { right: 24px; bottom: 24px; width: 62px; height: 62px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .btn:hover, .product-card:hover, .quality-card:hover, a.contact-card:hover, .wa-float:hover { transform: none; }
  .product-card:hover .product-media img { transform: none; }
}
