/* ============================================================
   Boondocks Beard Co. — getboondocks.com
   Manufacturing-first site design system
   ============================================================ */

:root {
  --pine: #1c2820;
  --pine-2: #243329;
  --pine-3: #2e4034;
  --cream: #f6f1e7;
  --cream-2: #ede5d3;
  --amber: #c08b3e;
  --amber-2: #dca653;
  --ink: #21271f;
  --muted: #67705f;
  --line: rgba(33, 39, 31, 0.14);
  --line-light: rgba(246, 241, 231, 0.16);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 30, 24, 0.10);
  --shadow-lift: 0 16px 44px rgba(24, 30, 24, 0.16);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; }

p { margin: 0 0 1em; }
.lead { font-size: 1.14rem; color: var(--muted); }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: #241b0d; }
.btn-primary:hover { background: var(--amber-2); box-shadow: 0 10px 26px rgba(192, 139, 62, 0.35); }
.btn-ghost { border-color: rgba(246, 241, 231, 0.45); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(246, 241, 231, 0.08); }
.btn-dark { background: var(--pine); color: var(--cream); }
.btn-dark:hover { background: var(--pine-3); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.topbar {
  background: var(--pine);
  color: rgba(246, 241, 231, 0.85);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 7px 16px;
}
.topbar strong { color: var(--amber-2); font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }
.brand .name {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.02rem;
  color: var(--pine);
  line-height: 1.15;
}
.brand .name small { display: block; font-size: 0.62rem; letter-spacing: 0.3em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pine);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--pine); }
@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(220, 166, 83, 0.16), transparent 60%),
    linear-gradient(160deg, var(--pine) 0%, var(--pine-2) 55%, var(--pine-3) 100%);
  color: var(--cream);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(246, 241, 231, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero .inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 24px 96px;
}
.hero .kicker { color: var(--amber-2); }
.hero .kicker::before { background: var(--amber-2); }
.hero h1 { color: var(--cream); }
.hero h1 em {
  font-style: normal;
  color: var(--amber-2);
}
.hero .lead { color: rgba(246, 241, 231, 0.78); max-width: 54ch; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero .badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.chip {
  font-size: 0.78rem;
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 15px;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: rgba(246, 241, 231, 0.85);
}
.hero-art {
  background: linear-gradient(165deg, var(--cream) 0%, var(--cream-2) 100%);
  border-radius: 22px;
  padding: 34px;
  box-shadow: var(--shadow-lift);
  transform: rotate(1.4deg);
}
.hero-art img { width: 100%; height: auto; }
.hero-art figcaption {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 18px;
}
@media (max-width: 900px) {
  .hero .inner { grid-template-columns: 1fr; padding: 60px 24px 70px; }
  .hero-art { max-width: 420px; }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.tint { background: var(--cream-2); }
.section.pine { background: var(--pine); color: var(--cream); }
.section.pine h2, .section.pine h3 { color: var(--cream); }
.section.pine .lead { color: rgba(246, 241, 231, 0.72); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker::before { display: none; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
}
.stat { background: var(--cream); padding: 26px 22px; text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pine);
  line-height: 1;
}
.stat .num span { color: var(--amber); }
.stat .lbl {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Capability cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--pine), var(--pine-3));
  color: var(--amber-2);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 0.97rem; }
.card ul li { margin-bottom: 6px; }

.section.pine .card {
  background: rgba(246, 241, 231, 0.045);
  border-color: var(--line-light);
  box-shadow: none;
}
.section.pine .card:hover { background: rgba(246, 241, 231, 0.08); }
.section.pine .card p, .section.pine .card ul { color: rgba(246, 241, 231, 0.72); }

/* ---------- Process timeline ---------- */
.process { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: none; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.1;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* ---------- Product grid (Shop the Line) ---------- */
.shop-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 40px;
  font-size: 0.95rem;
  color: var(--muted);
}
.shop-note svg { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--amber); }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 34px; }
.filter-btn {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--pine); color: var(--pine); }
.filter-btn.active { background: var(--pine); border-color: var(--pine); color: var(--cream); }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 24px;
}
.product-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-media {
  position: relative;
  background: linear-gradient(165deg, #fbf8f1 0%, var(--cream-2) 100%);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  padding: 22px;
}
.product-media img { max-height: 100%; width: auto; object-fit: contain; }
.oos-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--pine);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
}
.tag-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(192, 139, 62, 0.92);
  color: #241b0d;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
}
.product-body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 7px;
}
.product-body h3 { margin-bottom: 6px; font-size: 1.18rem; }
.product-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.16rem; color: var(--pine); }
.price .was { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; }
.price .unit { display: block; font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted); font-weight: 400; text-transform: uppercase; }
.stock-pill {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a4b2d;
  background: rgba(138, 75, 45, 0.1);
  border: 1px solid rgba(138, 75, 45, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Product galleries (multiple images per product) */
.gallery { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.gallery .gallery-main {
  width: 100%;
  height: 240px;
  object-fit: contain;
}
.gallery .gallery-main.hidden { display: none; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 46px;
  height: 46px;
  padding: 3px;
  background: #fffdf8;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: grid;
  place-items: center;
}
.gallery-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gallery-thumb:hover { border-color: var(--amber); transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--amber); box-shadow: 0 0 0 2px rgba(192, 139, 62, 0.25); }

/* Details / modal inside product cards */
.product-more { margin-top: 14px; }
.product-more summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pine);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border-bottom: 1.5px solid var(--amber);
}
.product-more summary::-webkit-details-marker { display: none; }
.product-more summary::after { content: "+"; color: var(--amber); font-size: 1rem; }
.product-more[open] summary::after { content: "\2013"; }
.product-more .detail-box {
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 12px;
}
.product-more .detail-box p { margin-bottom: 10px; }
.product-more .detail-box strong { color: var(--ink); }
.product-more .variants { margin: 0 0 10px; padding-left: 16px; }
.product-more .variants li { margin-bottom: 3px; }
.ingredients {
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--cream-2);
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.5;
}

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 320px at 15% 20%, rgba(220, 166, 83, 0.18), transparent 60%),
    linear-gradient(150deg, var(--pine-2), var(--pine));
  color: var(--cream);
  text-align: center;
  padding: 90px 24px;
}
.cta-band h2 { color: var(--cream); }
.cta-band .lead { color: rgba(246, 241, 231, 0.75); max-width: 62ch; margin: 0 auto 30px; }
.cta-band .row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background:
    radial-gradient(900px 380px at 85% -20%, rgba(220, 166, 83, 0.14), transparent 60%),
    linear-gradient(160deg, var(--pine) 0%, var(--pine-2) 100%);
  color: var(--cream);
  padding: 66px 0 58px;
}
.page-hero h1 { color: var(--cream); font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.page-hero .lead { color: rgba(246, 241, 231, 0.75); max-width: 64ch; margin: 0; }

/* ---------- Feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.split .visual {
  background: linear-gradient(165deg, var(--cream-2), #e3d9c3);
  border-radius: 20px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.split .visual img { border-radius: 12px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 0.98rem;
}
.checklist svg { flex: none; width: 20px; height: 20px; color: var(--amber); margin-top: 3px; }
.checklist li strong { color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 7px;
  color: var(--pine);
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

.contact-side .card + .card { margin-top: 18px; }
.contact-side .card h3 { margin-bottom: 8px; }
.contact-side .card p { font-size: 0.92rem; }
.contact-side a { color: var(--pine); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--amber); }
.contact-side a:hover { color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine); color: rgba(246, 241, 231, 0.72); padding: 64px 0 34px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 38px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-2);
  margin: 0 0 14px;
}
.footer-grid a { display: block; text-decoration: none; margin-bottom: 9px; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--cream); }
.footer-grid p { font-size: 0.92rem; }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px 24px 0;
  border-top: 1px solid var(--line-light);
  margin-top: 44px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(246, 241, 231, 0.5);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utility ---------- */
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 44px; }
.mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 28px; }
.note { font-size: 0.84rem; color: var(--muted); }
.small-caps {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }