/* Zambezi brand site
   Layout: white label ground, one centred column (max 1240px), condensed display type
   from the label wordmark, the triangle band as the only divider.
   Single light look by design: the bottles and labels are white. */

:root {
  --ground: #ffffff;
  --ground-soft: #f5f3ee;   /* warm off-white panels */
  --ink: #1a1a18;           /* text and primary buttons */
  --ink-body: #3d3d39;
  --ink-quiet: #5f5f5a;     /* captions, labels (4.5:1 on both grounds) */
  --rule: #e4e2dc;
  --rum: #1f6e38;           /* jungle green */
  --gin: #a61e29;           /* bee-eater red */
  --whiskey: #a5430f;       /* kudu rust */
  --accent: var(--ink);     /* set per product page */

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.0625rem;   /* 17px body */
  --step-1: 1.25rem;
  --step-2: 1.875rem;
  --step-3: 2.5rem;
  --step-4: clamp(3rem, 6vw, 3.5rem);
  --step-5: clamp(3.25rem, 8vw, 7rem);

  --radius: 16px;
  --pill: 999px;
  color-scheme: light;
}

.is-rum { --accent: var(--rum); }
.is-gin { --accent: var(--gin); }
.is-whiskey { --accent: var(--whiskey); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--ink-body); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
[hidden] { display: none !important; }

/* Market visibility: set on <html data-market="buy|nobuy"> by site.js */
html[data-market="nobuy"] .buy-only { display: none !important; }
html:not([data-market="nobuy"]) .nobuy-only { display: none !important; }

/* ---------- Layout ---------- */
.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 88px; }
.section--soft { background: var(--ground-soft); }
.section--dark { background: var(--ink); color: var(--ground); }
.band {
  height: 36px;
  background: url("../img/band.png") repeat-x center / auto 100%;
}
.band--thin { height: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ground); padding: 8px 12px; }

/* ---------- Type ---------- */
.eyebrow {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-quiet);
}
.eyebrow--accent { color: var(--accent); }
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  text-transform: uppercase;
}
.h2 { font-size: var(--step-4); margin: 0 0 12px; line-height: 1; }
.h3 { font-size: var(--step-3); margin: 0 0 20px; line-height: 1; }
.lede { font-size: var(--step-1); color: var(--ink-body); max-width: 40ch; }
.prose { max-width: 62ch; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  border-radius: var(--pill); border: 1.5px solid var(--ink);
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--ink); color: var(--ground);
}
.btn:hover { background: var(--ink-body); border-color: var(--ink-body); color: var(--ground); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ground-soft); color: var(--ink); border-color: var(--ink); }
.btn--accent { background: var(--accent); border-color: var(--accent); font-size: 18px; min-height: 52px; padding-inline: 32px; }
.btn--accent:hover { filter: brightness(0.92); background: var(--accent); border-color: var(--accent); }
.btn--light { background: var(--ground); color: var(--ink); border-color: var(--ground); }
.btn--light:hover { background: var(--ground-soft); color: var(--ink); border-color: var(--ground-soft); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px; padding-block: 20px;
}
.wordmark { display: inline-flex; align-items: center; text-decoration: none; line-height: 1; }
.wordmark img { height: 30px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-weight: 500; }
.site-nav a { text-decoration: none; padding-block: 10px; }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.site-nav .btn { padding-block: 10px; }

/* ---------- Home ---------- */
.hero { text-align: center; padding-block: 56px 48px; }
.hero .display { font-size: var(--step-5); max-width: 15ch; margin-inline: auto; }
.hero .lede { margin: 28px auto 0; max-width: 38ch; }
.hero .btn-row { justify-content: center; margin-top: 32px; }

.range-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 40px; }
.range-card {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 14px;
}
.range-card img { width: 100%; aspect-ratio: 760 / 700; object-fit: contain; }
.range-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; }
.range-card h3 { margin: 0; font: 700 30px/1 var(--font-display); text-transform: uppercase; }
.range-card__meta { font-size: 14px; font-weight: 600; color: var(--accent); }
.range-card p { margin: 0; color: var(--ink-body); }
.range-card .btn-row { margin-top: auto; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > * { flex: 1 1 400px; min-width: 0; }
.split__art { display: flex; justify-content: center; }
.split__art img { width: 100%; max-width: 560px; }

.buyband .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.buyband h2 { color: var(--ground); }
.buyband p { margin: 0; color: #d6d4cd; }

/* ---------- Product pages ---------- */
.p-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: 32px 72px; }
.p-hero__art {
  flex: 1 1 440px; min-width: 0; background: var(--ground-soft);
  border-radius: 24px; padding: clamp(24px, 4vw, 48px); display: flex; justify-content: center;
}
.p-hero__art img { width: 100%; max-width: 480px; }
.p-hero__text { flex: 1 1 400px; min-width: 0; }
.p-hero .display { font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: 0.9; }
.p-hero__style { margin: 6px 0 24px; font: 600 18px/1.2 var(--font-display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-quiet); }
.p-hero__headline { margin: 0 0 16px; font: 600 var(--step-2)/1.15 var(--font-display); }
.p-hero__story { margin: 0 0 28px; color: var(--ink-body); }

.facts {
  margin: 0 0 32px; padding-block: 18px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  border-block: 1px solid var(--rule);
}
.facts dt { font-size: 13px; color: var(--ink-quiet); }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 520px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.notes__summary { margin: 0 0 20px; font: 600 24px/1.2 var(--font-display); }
.notes dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.notes dt { font-weight: 600; }
.notes dd { margin: 0; color: var(--ink-body); }

.serve-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.serve-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; padding: 16px 20px; background: var(--ground-soft);
  border-radius: 12px; text-decoration: none;
}
.serve-list a:hover { background: var(--rule); color: var(--ink); }
.arrow-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-weight: 600; }

.quote { margin: 0; font: 500 clamp(1.5rem, 3vw, 2rem)/1.2 var(--font-display); }
.label-shot { width: 100%; max-width: 420px; border-radius: 12px; background: var(--ground); }
.bottle-shot { width: 100%; max-width: 420px; border-radius: 16px; box-shadow: 0 20px 50px rgba(26,26,24,.18); }
.bottle-shot--wide { max-width: 560px; }
.showcase { margin-top: 8px; }
.showcase img { width: 100%; max-height: 82vh; object-fit: cover; object-position: center 60%; }

.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.more-card {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; gap: 20px; text-decoration: none; min-width: 0;
}
.more-card img { width: 120px; flex: none; }
.more-card strong { display: block; font: 700 28px/1 var(--font-display); text-transform: uppercase; }
.more-card span { color: var(--ink-quiet); }

/* ---------- Cocktails ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filter {
  min-height: 44px; padding: 10px 22px; border-radius: var(--pill);
  border: 1.5px solid var(--ink); background: var(--ground); color: var(--ink);
  font: 600 16px/1.2 var(--font-body); cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.recipe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.recipe {
  border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px;
  display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 24px;
}
.recipe:target { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.recipe__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.tag { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: var(--pill); }
.tag--rum { color: var(--rum); background: #e6f1e9; }
.tag--gin { color: var(--gin); background: #f8e6e7; }
.tag--whiskey { color: var(--whiskey); background: #f6e9e1; }
.recipe__glass { font-size: 14px; color: var(--ink-quiet); }
.recipe h2 { margin: 0; font: 700 32px/1 var(--font-display); text-transform: uppercase; }
.recipe p { margin: 0; color: var(--ink-body); }
.recipe h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-quiet); }
.recipe ul, .recipe ol { margin: 0; padding-left: 20px; }
.recipe .buy-only { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px;
  padding-block: 48px 56px; font-size: 14px; line-height: 1.7; color: var(--ink-quiet);
}
.site-footer p { margin: 0; }
.site-footer .responsibly { margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.footer-links { display: flex; flex-direction: column; gap: 4px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }

/* ---------- Age gate ---------- */
.gate {
  position: fixed; inset: 0; z-index: 50;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  overflow-y: auto;
}
.gate__card { width: 100%; max-width: 560px; margin: auto; background: var(--ground); border-radius: 20px; overflow: hidden; text-align: center; }
.gate__body { padding: 40px clamp(20px, 5vw, 32px) 32px; }
.gate__art { width: 150px; margin: 0 auto; }
.gate__mark { width: 190px; height: auto; margin: 16px auto 0; }
.gate__field { margin: 24px auto 20px; max-width: 320px; text-align: left; }
.gate__field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.gate__field select {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit;
  border: 1.5px solid var(--ink); border-radius: 12px; background: var(--ground); color: var(--ink);
}
.gate h2 { margin: 0 0 8px; font: 600 30px/1.1 var(--font-display); text-transform: uppercase; }
.gate__sub { margin: 0 auto 24px; max-width: 36ch; color: var(--ink-quiet); }
.gate .btn-row { justify-content: center; }
.gate .btn { min-width: 140px; }
.gate__note { margin: 24px auto 0; max-width: 42ch; padding: 14px 18px; background: var(--ground-soft); border-radius: 12px; font-size: 14px; line-height: 1.55; color: var(--ink-body); }
.gate__small { margin: 20px 0 0; font-size: 13px; color: var(--ink-quiet); }
html.gate-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
