/* ==========================================================================
   HookHuggers.com — styles.css
   Built on the HookHuggers Design System.
   Brand accent: HAZARD YELLOW (#F5C518). Originally specified PETG orange,
   but Bambu Lab PETG Basic doesn't ship in orange — yellow is what we print.
   Yellow has poor contrast on white, so it's used as a FILL with black text
   on light surfaces, and only as text on dark backgrounds.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Barlow:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Base palette */
  --hh-black:        #0E0E0E;
  --hh-iron:         #1F1F1F;
  --hh-graphite:     #2E2E2E;
  --hh-steel:        #6B6B6B;
  --hh-chalk:        #B8B5AE;
  --hh-concrete:     #E8E5DF;
  --hh-bone:         #F5F2EC;
  --hh-paper:        #FFFFFF;

  /* Brand accent: hazard yellow (PETG-printable color) */
  --hh-yellow:       #F5C518;
  --hh-yellow-dark:  #D9AC0E;
  --hh-yellow-deep:  #B8920B;

  /* Semantic tokens */
  --accent:          var(--hh-yellow);
  --accent-fg:       var(--hh-black);  /* text color when sitting on yellow */

  /* Type */
  --font-display:    'Anton', 'Bebas Neue', 'Impact', sans-serif;
  --font-body:       'Barlow', 'Inter', system-ui, sans-serif;
  --font-condensed:  'Barlow Condensed', 'Barlow', sans-serif;
  --font-mono:       'JetBrains Mono', 'Menlo', monospace;

  /* Motion */
  --ease:            cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur:             180ms;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--hh-bone);
  color: var(--hh-black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* --- Layout container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* --- Eyebrow text ---
   On light bg: black uppercase, weight does the work (yellow text won't read).
   On dark bg: yellow text — high contrast on near-black. */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hh-black);
  margin: 0 0 24px;
}
.section--dark .eyebrow,
.hero .eyebrow,
.wholesale .eyebrow {
  color: var(--hh-yellow);
}

h1, h2, h3, h4 { margin: 0; }

/* --- Accent words inside headings ---
   On dark bg: yellow text.
   On light bg: yellow highlighter (fill behind black text). */
.accent { color: var(--hh-yellow); }

/* Light-bg headings get more line-height so the highlighter boxes
   don't visually press up against the line above. */
.section:not(.section--dark) .section-head h2,
.compare-card:not(.bad) h3,
.buy-block h2 {
  line-height: 1.18;
}

.section .section-head h2 .accent,
.compare-card:not(.bad) h3 .accent,
.section:not(.section--dark) h2 .accent {
  color: var(--hh-black);
  /* Constrain the yellow fill to ~75% of the line-box height so it
     doesn't visually touch the line above or below. */
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 14%,
    var(--hh-yellow) 14%,
    var(--hh-yellow) 92%,
    transparent 92%,
    transparent 100%
  );
  padding: 0 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--hh-bone);
  border-bottom: 1px solid var(--hh-black);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand-mark {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--hh-black);
}
/* On light header background, "HUGGERS" gets a yellow underline instead of yellow text */
.brand-mark .accent {
  color: var(--hh-black);
  background: var(--hh-yellow);
  padding: 0 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hh-black);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.nav a:hover { border-bottom-color: var(--hh-yellow); }

.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* --- Tags / pills --- */
.tag {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--hh-black);
  color: var(--hh-bone);
  display: inline-block;
}
.tag--yellow { background: var(--hh-yellow); color: var(--hh-black); }
.tag--outline { background: transparent; color: var(--hh-black); border: 1px solid var(--hh-black); }
.tag--outline-inverse { background: transparent; color: var(--hh-bone); border: 1px solid var(--hh-graphite); }

/* --- Buttons --- */
.btn {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--hh-black);
  background: var(--hh-black);
  color: var(--hh-bone);
  padding: 16px 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { background: var(--hh-iron); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

/* Primary CTA: yellow bg, black text (high contrast, signature). */
.btn--primary {
  background: var(--hh-yellow);
  color: var(--hh-black);
  border-color: var(--hh-yellow);
}
.btn--primary:hover { background: var(--hh-yellow-dark); border-color: var(--hh-yellow-dark); }
.btn--primary:active { background: var(--hh-yellow-deep); border-color: var(--hh-yellow-deep); }

.btn--ghost {
  background: transparent;
  color: var(--hh-black);
  border-color: var(--hh-black);
}
.btn--ghost:hover { background: var(--hh-black); color: var(--hh-bone); }

.btn--ghost-inverse {
  background: transparent;
  color: var(--hh-bone);
  border-color: var(--hh-bone);
}
.btn--ghost-inverse:hover { background: var(--hh-bone); color: var(--hh-black); }

.btn--lg { padding: 18px 36px; font-size: 18px; }

/* --- Hero --- */
.hero {
  background: var(--hh-black);
  color: var(--hh-bone);
  border-bottom: 1px solid var(--hh-black);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 96px 32px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 6.5vw, 104px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--hh-bone);
  padding-bottom: 8px;
}
/* Hero is on dark bg, so accent stays as yellow text — high contrast */
.hero h1 .accent {
  color: var(--hh-yellow);
  background: transparent;
  padding: 0;
}
.hero .lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--hh-chalk);
  max-width: 480px;
  margin-top: 32px;
}
.hero .ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero .stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  color: var(--hh-yellow);
}
.stat-label {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hh-chalk);
  margin-top: 4px;
}
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--hh-iron);
  border: 1px solid var(--hh-graphite);
}
.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-art .new-drop {
  position: absolute;
  top: 24px;
  left: 24px;
  background: var(--hh-yellow);
  color: var(--hh-black);
  padding: 10px 16px;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--hh-bone);
}

/* --- Generic section --- */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--hh-black);
}
.section--dark {
  background: var(--hh-black);
  color: var(--hh-bone);
  border-bottom-color: var(--hh-yellow);
}
.section--concrete {
  background: var(--hh-concrete);
}

.section-head {
  margin-bottom: 64px;
  max-width: 800px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
/* On dark sections, accent stays as yellow text */
.section--dark .section-head h2 .accent,
.hero h1 .accent {
  color: var(--hh-yellow);
  background: transparent;
  padding: 0;
}
.section-head .lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--hh-iron);
  margin-top: 24px;
  max-width: 640px;
}
.section--dark .section-head .lead { color: var(--hh-chalk); }

/* --- Problem section: side-by-side comparison --- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.compare-card {
  background: var(--hh-bone);
  border: 1px solid var(--hh-black);
  padding: 40px;
}
.compare-card.bad {
  background: var(--hh-iron);
  color: var(--hh-bone);
  border-color: var(--hh-graphite);
}
.compare-card .label {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--hh-black);
}
.compare-card.bad .label { color: var(--hh-yellow); }
.compare-card h3 {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.compare-card p { font-size: 16px; line-height: 1.6; }

/* --- Specs grid --- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--hh-black);
  border-left: 1px solid var(--hh-black);
}
.spec-grid--dark {
  border-top-color: var(--hh-graphite);
  border-left-color: var(--hh-graphite);
}
.spec {
  padding: 32px;
  border-right: 1px solid var(--hh-black);
  border-bottom: 1px solid var(--hh-black);
}
.spec-grid--dark .spec {
  border-right-color: var(--hh-graphite);
  border-bottom-color: var(--hh-graphite);
}
.spec .num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  color: var(--hh-black);
  margin-bottom: 12px;
}
/* On dark spec grid, big numerals are yellow */
.spec-grid--dark .spec .num {
  color: var(--hh-yellow);
}
.spec h4 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.spec p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--hh-iron);
}
.section--dark .spec p { color: var(--hh-chalk); }

/* --- Use case list --- */
.use-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--hh-black);
}
.use-list li {
  padding: 24px 32px;
  border-bottom: 1px solid var(--hh-black);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
}
.use-list li:nth-child(odd) { border-right: 1px solid var(--hh-black); }
/* Yellow checkmark in a black square — readable on light bg */
.use-list .check {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hh-black);
  color: var(--hh-yellow);
  font-size: 18px;
  line-height: 1;
}

/* --- Buy block (final CTA) — yellow with black text --- */
.buy-block {
  background: var(--hh-yellow);
  color: var(--hh-black);
  padding: 96px 32px;
  text-align: center;
}
.buy-block h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.buy-block .price {
  font-family: var(--font-mono);
  font-size: 18px;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.buy-block .btn {
  background: var(--hh-black);
  border-color: var(--hh-black);
  color: var(--hh-bone);
}
.buy-block .btn:hover { background: var(--hh-iron); border-color: var(--hh-iron); }

/* --- Wholesale strip --- */
.wholesale {
  background: var(--hh-black);
  color: var(--hh-bone);
  padding: 64px 32px;
  border-bottom: 2px solid var(--hh-yellow);
}
.wholesale .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.wholesale h3 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.wholesale h3 .accent {
  color: var(--hh-yellow);
  background: transparent;
  padding: 0;
}
.wholesale p {
  font-size: 16px;
  color: var(--hh-chalk);
  margin-top: 8px;
  max-width: 520px;
}

/* --- Footer --- */
.site-footer {
  background: var(--hh-black);
  color: var(--hh-bone);
  border-top: 2px solid var(--hh-yellow);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand-mark {
  font-family: var(--font-display);
  font-size: 40px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 0.92;
}
/* Dark bg, so yellow text works here */
.footer-brand-mark .accent {
  color: var(--hh-yellow);
  background: transparent;
  padding: 0;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: var(--hh-chalk);
  max-width: 320px;
  margin-top: 14px;
}
.footer-tags {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hh-bone);
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col a {
  font-size: 14px;
  color: var(--hh-chalk);
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--hh-yellow); }

.footer-rule {
  height: 1px;
  background: var(--hh-graphite);
  border: 0;
  margin: 40px 0 18px;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--hh-steel);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding: 64px 32px; gap: 32px; }
  .compare { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .use-list { grid-template-columns: 1fr; }
  .use-list li:nth-child(odd) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 540px) {
  .header-meta .tag { display: none; }
  .container { padding: 0 20px; }
  .hero .container { padding: 48px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { flex-direction: column; }
}
