/* ============================================================
   WULFHARBOR — wulfharbor.com
   Brand palette pulled from live site reference
   ============================================================ */

:root {
  --navy: #0a1628;
  --navy-2: #121f33;
  --ink: #1a1f2e;
  --paper: #f5efe1;       /* warm cream used in hero */
  --paper-2: #efe6d2;
  --gold: #c9a961;
  --muted: #6b7280;
  --line: rgba(255,255,255,0.08);
  --line-dark: rgba(10,22,40,0.12);
  --maxw: 1180px;
  --r: 10px;
  --shadow: 0 8px 30px rgba(0,0,0,0.18);
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-quote: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button { font: inherit; cursor: pointer; border: none; background: none; }

ul { list-style: none; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  color: var(--navy);
}
h1 { font-size: clamp(36px, 6vw, 72px); font-weight: 900; line-height: 1.05; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: 0.02em; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: #d6d2c5;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
  padding: 9px 16px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.topbar .dot { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 48px);
  background: var(--paper);
  border-bottom: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.wolf-icon { width: 28px; height: 28px; color: var(--navy); }
.wordmark {
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 18px;
}
.nav {
  display: flex;
  gap: 36px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 12.5px;
  color: var(--navy);
}
.nav a { transition: color .15s; }
.nav a:hover { color: var(--gold); }
.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 12px;
  transition: transform .12s ease, background .15s;
}
.cart-btn:hover { background: var(--gold); color: var(--navy); }
.cart-btn:active { transform: scale(0.97); }
.cart-count {
  background: var(--gold);
  color: var(--navy);
  font-size: 10.5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: 0;
}

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 120px) clamp(18px, 4vw, 48px); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin: 10px 0 14px; }
.section-sub { color: var(--muted); font-size: 16px; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 60px;
  padding: clamp(40px, 7vw, 90px) clamp(20px, 4vw, 48px);
  background: var(--navy);
  color: #efeae0;
}
.hero-text .eyebrow { margin-bottom: 18px; color: var(--gold); }
.hero-text h1 { color: #f5efe1; }
.hero-text .lede {
  margin: 22px 0 30px;
  font-size: 17px;
  max-width: 480px;
  color: #d6d2c5;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-primary { background: var(--gold); color: var(--navy); border: 1px solid var(--gold); }
.hero .btn-primary:hover { background: #f5efe1; color: var(--navy); border-color: #f5efe1; }
.hero .btn-ghost { color: #f5efe1; border: 1px solid rgba(245,239,225,0.4); background: transparent; }
.hero .btn-ghost:hover { background: rgba(245,239,225,0.1); color: #f5efe1; }
.hero-art { display: flex; justify-content: center; align-items: center; }
.wolf-mark { width: min(380px, 80%); filter: drop-shadow(0 4px 18px rgba(0,0,0,0.4)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 12.5px;
  transition: transform .12s ease, background .15s, color .15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--gold); color: var(--navy); }
.btn-ghost {
  color: var(--navy);
  background: transparent;
  border: 1px solid var(--navy);
}
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-block { width: 100%; justify-content: center; padding: 16px; }
.btn:active { transform: scale(0.98); }

/* ---------- Shop / products ---------- */
.shop { background: var(--paper); }
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.product {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 8px 30px rgba(10,22,40,0.06);
  transition: transform .18s ease, box-shadow .18s;
}
.product:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 14px 38px rgba(10,22,40,0.10); }
.product-img {
  aspect-ratio: 1 / 1;
  background: #efeae0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.badge-new {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--gold);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  padding: 5px 9px;
  border-radius: 4px;
  font-weight: 800;
}
.product-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 10.5px; letter-spacing: 0.22em; color: var(--muted); font-weight: 700; }
.product-name { margin: 8px 0; color: var(--navy); font-weight: 800; font-size: 19px; }
.product-desc { color: var(--muted); font-size: 14px; flex: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.price { font-weight: 800; font-size: 22px; color: var(--navy); }
.add-cart {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 11.5px;
  transition: background .15s, color .15s;
}
.add-cart:hover { background: var(--gold); color: var(--navy); }
.add-cart.added { background: var(--gold); color: var(--navy); }

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--paper-2);
  text-align: center;
}
.manifesto blockquote {
  max-width: 880px;
  margin: 0 auto;
  font-family: var(--font-quote);
  font-size: clamp(22px, 3.4vw, 36px);
  font-style: italic;
  color: var(--navy);
  line-height: 1.35;
}
.manifesto cite {
  display: block;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: 24px;
  font-weight: 700;
}

/* ---------- Journal ---------- */
.journal { background: var(--navy); color: #efeae0; }
.journal .section-head h2,
.journal .section-head .section-sub { color: #efeae0; }
.journal .section-head .section-sub { color: #b9b3a6; }
.posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.post-img {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(10,22,40,0) 0%, rgba(10,22,40,0.85) 100%),
    url('/assets/images/wolf-light.png') center/55% no-repeat,
    linear-gradient(135deg, #1c2942 0%, #0a1628 100%);
  border-radius: var(--r);
  margin-bottom: 18px;
  border: 1px solid rgba(201,169,97,0.18);
  position: relative;
  overflow: hidden;
}
.post-img::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 60px;
  background: var(--gold);
}
.post:nth-child(2) .post-img {
  background:
    linear-gradient(225deg, rgba(10,22,40,0) 0%, rgba(10,22,40,0.85) 100%),
    url('/assets/images/wolf-light.png') center/55% no-repeat,
    linear-gradient(225deg, #1c2942 0%, #0a1628 100%);
}
.post-date { font-size: 11px; letter-spacing: 0.2em; color: var(--gold); font-weight: 700; }
.post h3 { color: #efeae0; margin: 8px 0 10px; }
.post p { color: #b9b3a6; font-size: 14.5px; }
.read-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--gold);
}

/* ---------- Free tool ---------- */
.free-tool { background: var(--navy); color: #efeae0; }
.free-tool .section-head h2,
.free-tool .section-head .section-sub { color: #efeae0; }
.free-tool .section-head .section-sub { color: #b9b3a6; }
.free-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.free-preview img {
  width: 100%;
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
.free-info h3 { color: #efeae0; margin-bottom: 18px; letter-spacing: 0.2em; }
.free-info ul { margin-bottom: 28px; }
.free-info li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: #d6d2c5;
}
.free-info li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-weight: 800;
}

/* ---------- About ---------- */
.about { background: var(--paper); }
.about-body {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 17px;
  color: var(--ink);
}
.about-body p + p { margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #b9b3a6;
  padding: clamp(50px, 7vw, 90px) clamp(18px, 4vw, 48px) 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  max-width: var(--maxw);
  margin: 0 auto 40px;
}
.brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #efeae0;
  font-weight: 800;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}
.brand-line .wolf-icon { color: #efeae0; width: 24px; height: 24px; }
.site-footer h4 {
  color: #efeae0;
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
  font-weight: 800;
}
.site-footer ul li { margin-bottom: 8px; }
.site-footer a:hover { color: var(--gold); }
.copyright {
  text-align: center;
  font-size: 12px;
  color: #6f6960;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

/* ---------- Cart drawer ---------- */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.cart-drawer.open { pointer-events: auto; visibility: visible; }
.cart-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.55);
  opacity: 0;
  transition: opacity .25s;
}
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(440px, 100%);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -10px 0 40px rgba(0,0,0,0.25);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line-dark);
}
.cart-head h2 { font-size: 18px; letter-spacing: 0.22em; }
#cart-close {
  font-size: 28px;
  color: var(--navy);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#cart-close:hover { background: var(--line-dark); }

.cart-items { flex: 1; overflow-y: auto; padding: 18px 22px; }
.cart-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-dark);
  align-items: center;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  background: #efeae0;
  background-size: cover;
  background-position: center;
}
.cart-item-name { font-weight: 700; color: var(--navy); font-size: 14px; }
.cart-item-meta { color: var(--muted); font-size: 12px; margin-top: 4px; }
.cart-size-select {
  margin-top: 6px;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
.cart-item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 26px;
  height: 26px;
  background: var(--paper-2);
  border-radius: 4px;
  font-weight: 800;
  color: var(--navy);
}
.qty-btn:hover { background: var(--gold); }
.cart-item-price { font-weight: 800; color: var(--navy); font-size: 14px; min-width: 50px; text-align: right; }
.remove-item {
  background: none;
  color: var(--muted);
  font-size: 18px;
  margin-left: 6px;
}
.remove-item:hover { color: #b91c1c; }

.cart-foot {
  padding: 22px;
  border-top: 1px solid var(--line-dark);
  background: var(--paper);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.cart-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  letter-spacing: 0.04em;
}

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 30px; text-align: left; }
  .hero-art { order: -1; }
  .wolf-mark { width: 220px; }
  .nav { display: none; }
  .posts { grid-template-columns: 1fr; }
  .free-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar { font-size: 10px; gap: 8px; }
  .wordmark { font-size: 16px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .cart-btn { padding: 9px 12px; }
}

/* ---------- Loading state on checkout ---------- */
.btn.loading { opacity: 0.7; pointer-events: none; }
.btn.loading::after {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-left: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
