/* ============================================================
   MS ENGLAND — Beekeeping Suit (single product) site stylesheet
   Fluid system: clamp()-based type and spacing, intrinsic grids,
   no fixed-width cards, no overflow-by-construction layout.
   ============================================================ */

:root {
  /* palette */
  --bg: #f6f3ec;
  --bg-deep: #ebe6da;
  --ink: #221d15;
  --ink-soft: #5c5546;
  --line: rgba(34, 29, 21, 0.14);
  --amber: #c98a1e;
  --amber-deep: #a06d12;
  --charcoal: #1b1913;
  --charcoal-2: #26221a;
  --paper: #fffdf7;

  /* fluid rhythm */
  --gutter: clamp(16px, 4vw, 64px);
  --section-y: clamp(56px, 9vw, 130px);
  --header-h: 72px;

  /* type */
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --fs-hero: clamp(2.35rem, 1.4rem + 5vw, 4.6rem);
  --fs-h2: clamp(1.7rem, 1.2rem + 2.4vw, 2.7rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.9vw, 1.5rem);
  --fs-body: clamp(0.98rem, 0.92rem + 0.35vw, 1.09rem);
  --fs-small: 0.89rem;
  --fs-micro: 0.74rem;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(34, 29, 21, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; }

/* containers */
.wrap {
  width: min(100% - 2 * var(--gutter), 1240px);
  margin-inline: auto;
}
.wide {
  width: min(100% - 2 * var(--gutter), 1480px);
  margin-inline: auto;
}

.skip {
  position: absolute; left: 12px; top: -48px;
  background: var(--charcoal); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 90;
  transition: top .2s;
}
.skip:focus-visible { top: 12px; }

:focus-visible { outline: 2px solid var(--amber-deep); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(12px, 2.5vw, 32px);
  width: min(100% - 2 * clamp(14px, 3vw, 56px), 1480px);
  margin-inline: auto;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; min-width: 0; }
.brand img { height: 42px; width: auto; max-width: min(52vw, 240px); object-fit: contain; }
@media (max-width: 320px) { .brand-word { display: none; } }
.brand-word {
  font: 600 clamp(0.78rem, 0.7rem + 0.5vw, 0.95rem)/1 var(--font-display);
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.nav-center { display: flex; gap: clamp(14px, 2vw, 30px); justify-self: center; }
.nav-item {
  font: 500 var(--fs-small)/1 var(--font-body);
  text-decoration: none; color: var(--ink-soft);
  padding: 8px 2px; border-bottom: 2px solid transparent;
}
.nav-item:hover, .nav-item:focus-visible { color: var(--ink); border-bottom-color: var(--amber); }
.nav-right { display: flex; gap: 10px; justify-self: end; align-items: center; }
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 10px;
  background: none; cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-burger { transition: background .2s, border-color .2s; }
.nav-burger i, .nav-burger i::before, .nav-burger i::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .22s, top .22s, background .22s;
}
.nav-burger i { position: relative; }
.nav-burger i::before, .nav-burger i::after { content: ""; position: absolute; left: 0; }
.nav-burger i::before { top: -6px; }
.nav-burger i::after { top: 6px; }
.nav-burger[aria-expanded="true"] { background: var(--bg-deep); border-color: var(--amber); }
.nav-burger[aria-expanded="true"] i { background: transparent; }
.nav-burger[aria-expanded="true"] i::before { top: 0; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] i::after { top: 0; transform: rotate(-45deg); }

/* header CTAs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--fs-small)/1 var(--font-body);
  padding: 13px 20px; border-radius: 999px;
  background: var(--charcoal); color: #fff;
  border: 1px solid var(--charcoal);
  text-decoration: none; cursor: pointer;
  white-space: nowrap; min-width: 0;
}
.btn:hover { background: var(--charcoal-2); }
.btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-outline {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-outline:hover { background: rgba(34,29,21,.05); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-deep); border-color: var(--amber-deep); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline-ink {
  background: transparent; color: var(--ink); border-color: rgba(34,29,21,.35);
}
.btn-outline-ink:hover { background: rgba(34,29,21,.06); border-color: var(--ink); }
.btn-quiet {
  background: transparent; color: var(--ink); border-color: transparent;
  padding-inline: 8px; text-decoration: underline; text-underline-offset: 4px;
}
.btn-quiet:hover { background: rgba(34,29,21,.06); }
.btn-wa { background: #25d366; border-color: #25d366; color: #04331a; }
.btn-wa:hover { background: #1fbd5a; border-color: #1fbd5a; }

/* mobile menu */
.mobile-panel {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 55;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 10px var(--gutter) 22px;
  transform: translateY(-8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s, transform .22s, visibility .22s;
  box-shadow: 0 24px 50px rgba(34,29,21,.14);
}
.mobile-panel.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-nav { display: grid; gap: 2px; }
.mobile-nav a {
  font: 600 1rem/1 var(--font-body); color: var(--ink);
  text-decoration: none; padding: 15px 6px; border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-cta { margin-top: 14px; display: grid; gap: 10px; }

/* type helpers */
.eyebrow {
  font: 600 var(--fs-micro)/1 var(--font-body);
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber-deep);
}
.on-dark .eyebrow { color: #e9b54a; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
.hero-h { font-size: var(--fs-hero); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.lead { font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.19rem); color: var(--ink-soft); line-height: 1.65; }
.on-dark .lead { color: rgba(250, 247, 240, 0.78); }
.section-head { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: end; justify-content: space-between; margin-bottom: clamp(26px, 4vw, 48px); }
.section-head p { max-width: 46ch; margin: 0; color: var(--ink-soft); }

/* sections */
.section { padding-block: var(--section-y); }
.section-deep { background: var(--charcoal); color: #faf7f0; }
.on-dark { color: #faf7f0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  background: var(--charcoal);
  color: #faf7f0;
  overflow: clip;
}
.hero-img {
  width: 100%;
  height: clamp(480px, calc(100svh - var(--header-h)), 860px);
  object-fit: cover;
  object-position: center 38%;
  display: block;
}
/* never let the hero copy rise above the header line */
.hero-overlay {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vw, 72px);
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, min(620px, 100%)) 1fr;
  align-items: end;
  top: auto;
  max-height: calc(100% - (var(--header-h) + 8px));
  transform: none;
  padding-left: clamp(22px, 3.4vw, 72px);
  padding-right: clamp(22px, 3.4vw, 72px);
  overflow: visible;
}
.hero-copy { max-width: 640px; min-height: 0; }
.hero-copy .eyebrow { color: #e9b54a; }
.hero-copy h1 { margin-top: 18px; text-shadow: 0 2px 24px rgba(15,12,6,.7), 0 1px 3px rgba(15,12,6,.85); }
.hero-copy .lead {
  margin-top: 18px;
  max-width: 46ch;
  color: rgba(250, 247, 240, 0.85);
  text-shadow: 0 1px 14px rgba(15,12,6,.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(22px, 3vw, 34px); margin-bottom: var(--section-y); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(20px, 2.6vw, 30px);
}
.hero-badges span {
  font: 500 var(--fs-micro)/1 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #d8cfae;
  border: 1px solid rgba(250, 247, 240, 0.22);
  border-radius: 999px; padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
}

/* ---------- product presentation ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(26px, 4.5vw, 80px);
  align-items: center;
}
.split-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--bg-deep);
}
.split-media img { width: 100%; height: auto; }
.split-copy h2 { margin-top: 12px; }
.split-copy .lead { margin-top: 16px; }
/* spec table: one shared label column so every value starts on the same line */
.spec-list {
  list-style: none; padding: 0;
  margin: clamp(20px, 2.6vw, 30px) 0 0;
  --spec-label: clamp(94px, 17vw, 148px);
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: grid; grid-template-columns: var(--spec-label) minmax(0, 1fr);
  gap: clamp(10px, 2vw, 24px);
  padding: 12px 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list b {
  font: 600 var(--fs-micro)/1.6 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.spec-list span { color: var(--ink); font-size: var(--fs-small); line-height: 1.5; }

/* light saffron accent for section captions on light backgrounds */
.eyebrow-soft { color: #b98922; }

/* ---------- gallery ---------- */
.gallery-grid {
  display: grid;
  gap: clamp(12px, 2vw, 22px);
}
.gallery-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .gallery-2 { grid-template-columns: 1fr; } }
.gallery-grid figure { margin: 0; position: relative; }
.gal-btn {
  padding: 0; border: 0; background: none; cursor: zoom-in; width: 100%; display: block;
}
.gal-btn img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 30%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform .3s;
  background: var(--paper);
}
.gal-btn:hover img, .gal-btn:focus-visible img { transform: translateY(-3px); }
.gal-cap {
  font: 500 var(--fs-micro)/1.5 var(--font-body);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
  padding: 10px 2px 0;
}

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 17, 12, 0.92);
  display: grid; place-items: center;
  padding: clamp(12px, 4vw, 48px);
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: min(84vh, 1000px); width: auto; height: auto; border-radius: var(--radius); }
.lb-close {
  position: absolute; top: 14px; right: 14px;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.4); color: #fff;
  font-size: 20px; cursor: pointer;
}

/* ---------- details / facts ---------- */
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}
.fact {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(250, 247, 240, 0.14);
  border-radius: var(--radius); padding: clamp(18px, 2.4vw, 28px);
}
.fact h3 { font-size: 1.02rem; }
.fact p { margin: 8px 0 0; color: rgba(250, 247, 240, 0.72); font-size: var(--fs-small); line-height: 1.6; }

/* marketplace tiles */
.market-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.market-note { font-size: var(--fs-micro); color: rgba(250, 247, 240, 0.55); margin-top: 12px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 2px;
}
.faq summary {
  cursor: pointer; list-style: none;
  font: 600 var(--fs-body)/1.45 var(--font-body);
  padding: 15px 0;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--font-display); color: var(--amber-deep); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 0 18px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- inquiry ---------- */
.inq-grid {
  display: grid;
  grid-template-columns: minmax(0, min(560px, 100%)) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 70px);
  align-items: start;
}
.inq-card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--shadow);
}
.inq-card .eyebrow { color: var(--amber-deep); }
.inq-card .h3 { color: var(--ink); }
/* every text element inside the inquiry card is dark ink on paper */
.inq-card, .inq-card .lead, .inq-card label, .inq-card p, .inq-card b, .inq-card .qty-line span, .inq-card .inq-preview { color: var(--ink); }
.inq-card .btn-amber { color: var(--ink); } /* amber pill keeps dark ink text on paper */
.inq-card .field small { color: #4c4638; }
.inq-card .field .err { color: #a33c19; }
.field { display: grid; gap: 7px; margin-top: 16px; }
.field:first-child { margin-top: 0; }
.field label { font: 600 var(--fs-small)/1.3 var(--font-body); }
.field small { color: var(--ink-soft); font-size: var(--fs-micro); }
.field input, .field select, .field textarea {
  font: 400 var(--fs-body)/1.4 var(--font-body);
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  width: 100%; min-width: 0;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--amber); outline-offset: 0; border-color: var(--amber); }
.field .err { color: #a33c19; font-size: var(--fs-micro); font-weight: 600; min-height: 1em; }
.field-bad input, .field-bad select { border-color: #a33c19 !important; }
.field-bad label { color: #a33c19; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 0 14px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes label {
  display: inline-flex; gap: 7px; align-items: center;
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px;
  font: 500 var(--fs-small)/1 var(--font-body); cursor: pointer;
  background: #fff;
}
.sizes input { accent-color: var(--amber); }
.size-qty { margin-top: 12px; display: grid; gap: 8px; }
.qty-line { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 10px; align-items: center; font-size: var(--fs-small); }
.qty-line input { max-width: 92px; padding: 8px 10px; }
.inq-actions { display: grid; gap: 10px; margin-top: 22px; }
.inq-preview {
  margin-top: 16px; border: 1px dashed var(--line); border-radius: 12px;
  padding: 14px 16px; background: var(--bg);
  font: 500 var(--fs-micro)/1.7 var(--font-body); white-space: pre-wrap;
  max-height: 240px; overflow: auto;
  color: var(--ink);
}
.copied-note { color: #1f6b3a; font-weight: 600; }
.inq-side h2 { margin-top: 12px; }
.inq-side .lead { margin-top: 14px; }
.alt-contact { margin-top: 26px; display: grid; gap: 14px; font-size: var(--fs-small); }
.fine { font-size: var(--fs-micro); color: rgba(250, 247, 240, 0.6); margin-top: 18px; line-height: 1.7; }

/* dark-section selection pill inputs (inquiry form on dark bg) */
.on-dark select, .on-dark option { background: var(--paper); color: var(--ink); }
.sizes label { background: #fff; color: var(--ink); }

/* floating WhatsApp */
.wa-float {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 70;
  display: inline-flex; align-items: center; gap: 10px;
  background: #25d366; color: #062; /* body text kept dark for contrast */
  color: #04331a;
  border-radius: 999px; padding: 12px 18px 12px 14px;
  box-shadow: 0 10px 30px rgba(6, 60, 30, 0.35);
  text-decoration: none; font: 600 var(--fs-small)/1 var(--font-body);
  isolation: isolate;
}
.wa-float svg { width: 22px; height: 22px; fill: #fff; }
.wa-float:hover { filter: brightness(1.05); }

/* ---------- footer ---------- */
.footer { background: #131109; color: #cfc7b4; padding-block: clamp(40px, 6vw, 72px) 34px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 60px); }
.foot-grid h4 { color: #faf7f0; font: 600 var(--fs-small)/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
.foot-grid a { display: block; color: #cfc7b4; text-decoration: none; padding: 5px 0; font-size: var(--fs-small); }
.foot-addr { color: #cfc7b4; font-size: var(--fs-small); line-height: 1.6; margin: 10px 0 0; }
.foot-grid a:hover { color: #fff; }
.foot-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.foot-brand p { max-width: 40ch; font-size: var(--fs-small); }
.foot-bottom {
  border-top: 1px solid rgba(250, 247, 240, 0.12);
  margin-top: clamp(30px, 4vw, 48px); padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  font-size: var(--fs-micro); color: rgba(207, 199, 180, 0.75);
}

/* h2 inside dark inquiry side panel — brighter so it reads on charcoal */
.on-dark .h2 { color: #faf7f0; }

/* ============================================================
   Responsive behavior
   ============================================================ */
@media (max-width: 940px) {
  .nav-center { display: none; }
  .nav-burger { display: grid; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav-cta { display: none; }
  .split, .inq-grid { grid-template-columns: 1fr; }
  .split-media { max-width: 560px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .hero-img { height: clamp(560px, 96svh, 760px); object-position: center 62%; }
  .hero-h { font-size: clamp(2rem, 1.35rem + 3.4vw, 2.6rem); }
  .hero-copy .lead { display: none; } /* mobile hero copy kept tight */
  .hero-badges { display: none; } /* keep mobile hero focused */
  .hero-overlay {
    grid-template-columns: 1fr;
    bottom: clamp(24px, 7vw, 56px);
    max-height: none;
  }
  /* clear the fixed WhatsApp button so it never sits on the hero CTAs */
  .hero-actions { margin-bottom: clamp(96px, 24vw, 140px); }
  .wa-float { padding: 12px; gap: 0; }
  .wa-float span { display: none; }
}
