/* ============================================================
   DIY Tool HQ — Main Stylesheet
   Rugged hardware-store aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Barlow+Condensed:wght@500;600;700&display=swap');

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --steel:    #1a1c1e;
  --steel2:   #22252a;
  --steel3:   #2d3138;
  --iron:     #3a3f47;
  --orange:   #f97316;
  --orange2:  #ea6a0a;
  --yellow:   #fbbf24;
  --text:     #f0ede8;
  --text2:    #a8a29e;
  --text3:    #6b7280;
  --border:   #3a3f47;
  --green:    #22c55e;
  --blue:     #3b82f6;
  --radius:   6px;
  --radius-lg: 10px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Barlow', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
}

/* ── Base ───────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--steel);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-cond); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-family: var(--font-display); font-size: clamp(2.5rem,5vw,4rem); letter-spacing: 2px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
p  { color: var(--text2); margin-bottom: 1rem; }
strong { color: var(--text); font-weight: 600; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 56px 0; }
.section-sm { padding: 32px 0; }

/* ── Section header ─────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--text);
}
.section-title span { color: var(--orange); }
.section-link {
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  transition: opacity .15s;
}
.section-link:hover { opacity: .75; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange2); }
.btn-ghost  { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ── Badge / label ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}
.badge-orange { background: var(--orange);  color: #fff; }
.badge-green  { background: var(--green);   color: #fff; }
.badge-dark   { background: rgba(0,0,0,.6); color: var(--orange); backdrop-filter: blur(4px); }
.badge-outline { background: rgba(249,115,22,.1); border: 1px solid rgba(249,115,22,.4); color: var(--orange); }

/* ── Rating stars ────────────────────────────────────────────── */
.rating { display: flex; align-items: center; gap: 6px; }
.stars  { color: var(--yellow); font-size: 13px; letter-spacing: 1px; }
.rating-count { font-size: 12px; color: var(--text3); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  background: var(--steel2);
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 200;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
}
.nav-logo-icon {
  width: 28px;
  height: 28px;
  background: var(--orange);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-icon svg { width: 16px; height: 16px; fill: #fff; }
.nav-logo span { color: var(--orange); }
.nav-menu { display: flex; list-style: none; gap: 2px; }
.nav-menu a {
  color: var(--text2);
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all .15s;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--orange); background: rgba(249,115,22,.1); }
.nav-hamburger { display: none; background: none; border: none; color: var(--text); cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #111316 0%, var(--steel2) 60%, #1e2228 100%);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255,255,255,.018) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255,255,255,.018) 40px);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-cond);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 18px;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 span { color: var(--orange); }
.hero-desc { font-size: 16px; max-width: 460px; margin-bottom: 32px; line-height: 1.7; }
.hero-cta  { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-num   { font-family: var(--font-display); font-size: 2rem; color: var(--orange); letter-spacing: 1px; }
.stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-cond); font-weight: 600; }

/* Hero featured card */
.hero-card {
  background: var(--steel3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-card-img {
  background: linear-gradient(135deg, #2a2d32, #1e2025);
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.hero-card-body { padding: 20px; }
.hero-card-body .price { font-family: var(--font-display); font-size: 28px; color: var(--green); letter-spacing: 1px; }
.hero-card-body .price-old { font-size: 14px; color: var(--text3); text-decoration: line-through; margin-left: 6px; }
.affl-btn {
  display: block;
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 11px;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 14px;
  transition: background .15s;
}
.affl-btn:hover { background: var(--orange2); }

/* ============================================================
   CATEGORY GRID
   ============================================================ */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-card {
  background: var(--steel2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 16px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
}
.cat-card:hover { border-color: var(--orange); background: var(--steel3); transform: translateY(-2px); }
.cat-icon { font-size: 30px; margin-bottom: 10px; }
.cat-name { font-family: var(--font-cond); font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text); }
.cat-count { font-size: 11px; color: var(--text3); margin-top: 3px; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card {
  background: var(--steel2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: var(--orange); transform: translateY(-3px); }
.product-img {
  background: linear-gradient(135deg, #25282e, #1c1f24);
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.product-img img { max-height: 150px; width: auto; object-fit: contain; mix-blend-mode: lighten; }
.product-img-placeholder { opacity: .5; }
.product-badge-wrap { position: absolute; top: 10px; left: 10px; }
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-family: var(--font-cond); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.product-name  { font-family: var(--font-cond); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 6px; line-height: 1.25; }
.product-meta  { font-size: 12px; color: var(--text3); margin-bottom: 10px; line-height: 1.5; flex: 1; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.product-price { font-family: var(--font-display); font-size: 24px; color: var(--green); letter-spacing: 1px; }
.product-price-old { font-size: 13px; font-family: var(--font-body); color: var(--text3); text-decoration: line-through; margin-left: 6px; }

/* ============================================================
   ARTICLE CARDS (list page)
   ============================================================ */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-card {
  background: var(--steel2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .2s;
}
.article-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.article-thumb {
  height: 170px;
  background: linear-gradient(135deg, #22252a, #1a1c20);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-thumb-placeholder { color: var(--text3); font-size: 48px; opacity: .3; }
.article-cat-badge { position: absolute; top: 10px; left: 10px; }
.article-body { padding: 18px; }
.article-body h3 { font-family: var(--font-cond); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.article-body h3 a { color: inherit; }
.article-body h3 a:hover { color: var(--orange); }
.article-excerpt { font-size: 13px; color: var(--text2); margin-bottom: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-footer { display: flex; align-items: center; justify-content: space-between; }
.article-meta { font-size: 11px; color: var(--text3); font-family: var(--font-cond); font-weight: 600; letter-spacing: .5px; }
.article-read-link { font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--orange); }

/* ============================================================
   SINGLE ARTICLE PAGE
   ============================================================ */
.article-hero {
  background: linear-gradient(135deg, #111316, var(--steel2));
  border-bottom: 1px solid var(--border);
  padding: 48px 0 40px;
}
.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-hero h1 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); letter-spacing: 1px; margin-bottom: 16px; max-width: 800px; }
.article-hero .subtitle { font-size: 18px; color: var(--text2); max-width: 720px; margin-bottom: 0; }
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 48px 0; }
.article-content { min-width: 0; }
.article-sidebar { }

/* Prose styles */
.prose h2 { font-family: var(--font-display); font-size: 1.9rem; letter-spacing: 1px; color: var(--text); margin: 2.5rem 0 1rem; padding-bottom: 8px; border-bottom: 2px solid var(--orange); }
.prose h3 { font-family: var(--font-cond); font-size: 1.3rem; color: var(--text); margin: 2rem 0 .75rem; }
.prose p  { color: var(--text2); margin-bottom: 1.2rem; line-height: 1.75; }
.prose ul, .prose ol { color: var(--text2); padding-left: 1.4rem; margin-bottom: 1.2rem; }
.prose li { margin-bottom: .4rem; line-height: 1.7; }
.prose blockquote { border-left: 3px solid var(--orange); padding-left: 1.2rem; margin: 1.5rem 0; color: var(--text2); font-style: italic; }
.prose strong { color: var(--text); }
.prose a { color: var(--orange); }
.prose a:hover { text-decoration: underline; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 14px; }
.prose th { background: var(--steel3); color: var(--text); font-family: var(--font-cond); font-size: 13px; letter-spacing: 1px; text-transform: uppercase; padding: 10px 14px; border: 1px solid var(--border); text-align: left; }
.prose td { padding: 10px 14px; border: 1px solid var(--border); color: var(--text2); }
.prose tr:nth-child(even) td { background: rgba(255,255,255,.02); }
.prose img { border-radius: var(--radius); border: 1px solid var(--border); margin: 1.5rem 0; }
.prose code { background: var(--steel3); color: var(--orange); font-size: 13px; padding: 2px 6px; border-radius: 3px; }
.prose pre { background: var(--steel3); padding: 16px; border-radius: var(--radius); overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); }

/* Sidebar */
.sidebar-widget { background: var(--steel2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 20px; }
.sidebar-widget-title { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.toc-list { list-style: none; }
.toc-list li { border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { display: block; padding: 8px 0; font-size: 13px; color: var(--text2); transition: color .15s; }
.toc-list a:hover { color: var(--orange); }

/* ============================================================
   COMPARISON TABLE (shortcode)
   ============================================================ */
.comparison-table { overflow-x: auto; margin: 2rem 0; }
.comparison-table table { width: 100%; border-collapse: collapse; }
.comparison-table th { background: var(--iron); }
.comparison-table .winner { color: var(--green); font-weight: 700; }
.comparison-table .loser  { color: var(--text3); }

/* ============================================================
   PRODUCT SHORTCODE (inline in articles)
   ============================================================ */
.product-shortcode {
  background: var(--steel2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  align-items: center;
}
.product-shortcode-img {
  background: var(--steel3);
  border-radius: var(--radius);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-shortcode-img img { max-height: 110px; object-fit: contain; mix-blend-mode: lighten; }
.product-shortcode-info .brand { font-family: var(--font-cond); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); }
.product-shortcode-info h4 { font-family: var(--font-cond); font-size: 19px; font-weight: 700; color: var(--text); margin: 4px 0 6px; }
.product-shortcode-info .specs { font-size: 13px; color: var(--text3); margin-bottom: 12px; }
.product-shortcode-footer { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.product-shortcode-price { font-family: var(--font-display); font-size: 26px; color: var(--green); letter-spacing: 1px; }

/* ============================================================
   SHED BUILDER SHORTCODE
   ============================================================ */
.shed-builder-wrap {
  background: var(--steel2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 2rem 0;
}
.shed-builder-bar {
  height: 3px;
  background: var(--iron);
}
.shed-builder-bar-fill {
  height: 100%;
  background: var(--orange);
  transition: width .4s ease;
}
.shed-builder-header {
  background: var(--iron);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.shed-builder-header h3 { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 2px; }
.shed-builder-header h3 span { color: var(--orange); }
.shed-builder-body { display: grid; grid-template-columns: 1fr 300px; }
.shed-canvas-wrap { background: #111316; min-height: 380px; display: flex; align-items: center; justify-content: center; }
.shed-canvas-wrap canvas { display: block; max-width: 100%; }
.shed-steps { border-left: 1px solid var(--border); overflow-y: auto; max-height: 420px; }
.shed-step {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.shed-step:last-child { border-bottom: none; }
.shed-step:hover { background: rgba(249,115,22,.05); }
.shed-step.active { background: rgba(249,115,22,.08); }
.shed-step.done .shed-step-num  { background: var(--green);  color: #fff; }
.shed-step.active .shed-step-num { background: var(--orange); color: #fff; }
.shed-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--iron);
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-cond); font-size: 13px; font-weight: 700;
  color: var(--text3);
  flex-shrink: 0;
  transition: all .15s;
}
.shed-step-name { font-family: var(--font-cond); font-size: 14px; font-weight: 700; color: var(--text2); }
.shed-step.active .shed-step-name { color: var(--text); }
.shed-step-desc { font-size: 12px; color: var(--text3); margin-top: 2px; }
.shed-tools-row { padding: 14px 20px; border-top: 1px solid var(--border); }
.shed-tools-label { font-family: var(--font-cond); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.shed-tool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.shed-tool-chip {
  background: var(--iron);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 11px;
  font-family: var(--font-cond);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
}
.shed-tool-chip.active { background: rgba(249,115,22,.12); border-color: rgba(249,115,22,.5); color: var(--orange); }
.shed-nav-row { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--border); }
.shed-nav-row button {
  flex: 1; padding: 10px;
  font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  border: none; border-radius: var(--radius); cursor: pointer; transition: all .15s;
}
.shed-btn-prev { background: var(--iron); color: var(--text2); }
.shed-btn-prev:hover { color: var(--text); }
.shed-btn-next { background: var(--orange); color: #fff; }
.shed-btn-next:hover { background: var(--orange2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--steel2);
  border-top: 2px solid var(--orange);
  margin-top: 80px;
  padding: 48px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand p { font-size: 13px; color: var(--text3); line-height: 1.7; margin-top: 12px; }
.footer-col h4 { font-family: var(--font-cond); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text3); font-size: 13px; transition: color .15s; }
.footer-col ul li a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text3); margin: 0; }
.amazon-badge {
  background: rgba(251,191,36,.1);
  border: 1px solid rgba(251,191,36,.3);
  color: var(--yellow);
  font-family: var(--font-cond);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner         { grid-template-columns: 1fr; }
  .hero-card          { display: none; }
  .cat-grid           { grid-template-columns: repeat(3,1fr); }
  .product-grid       { grid-template-columns: repeat(2,1fr); }
  .article-grid       { grid-template-columns: repeat(2,1fr); }
  .article-layout     { grid-template-columns: 1fr; }
  .article-sidebar    { display: none; }
  .shed-builder-body  { grid-template-columns: 1fr; }
  .shed-steps         { max-height: 300px; border-left: none; border-top: 1px solid var(--border); }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .nav-menu           { display: none; }
  .nav-hamburger      { display: block; }
}
@media (max-width: 600px) {
  .cat-grid           { grid-template-columns: repeat(2,1fr); }
  .product-grid       { grid-template-columns: 1fr; }
  .article-grid       { grid-template-columns: 1fr; }
  .product-shortcode  { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; }
  .hero-stats         { gap: 20px; flex-wrap: wrap; }
}
 
