/* ==========================================================================
   The Smokin' Beaver Spice Co. — styles
   ========================================================================== */

:root {
  --color-navy: #1b2a4a;
  --color-navy-light: #243560;
  --color-navy-rule: #2a3d66;
  --color-orange: #e84624;
  --color-amber: #f5a623;
  --color-cream: #faf6f1;
  --color-offwhite: #f0edeb;
  --color-ink: #1a1a1a;
  --color-gray: #5a5a5a;
  --color-gray-light: #9a9a9a;
  --color-gray-lighter: #c8c8d0;
  --color-white: #ffffff;

  --font-display: "Anton", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;

  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
dl,
dt,
dd,
p {
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9999px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 1px;
  padding: 12px 28px;
  font-size: 14px;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.btn--primary {
  background-color: var(--color-orange);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

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

.btn--sm {
  padding: 10px 24px;
  font-size: 13px;
}

.btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- Header / Nav ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background-color: var(--color-navy);
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.wordmark {
  color: var(--color-white);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 1.5px;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  gap: 32px;
}

.site-nav a {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-header > .btn {
  margin-left: auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  background-color: var(--color-navy);
  padding: 60px 24px;
  text-align: center;
}

.hero__heading {
  color: var(--color-orange);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 88px);
  letter-spacing: 2px;
  max-width: 1000px;
}

.hero__subheading {
  color: var(--color-white);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.6;
  max-width: 709px;
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.hero__image {
  width: 100%;
  max-width: 900px;
  border-radius: 24px;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: clamp(160px, 30vw, 320px);
  object-fit: cover;
}

/* ---------- Section heading ---------- */

.section-heading {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: 3px;
  text-align: center;
}

/* ---------- Products ---------- */

.products {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 56px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  width: 100%;
}

.product-card {
  background-color: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card--featured {
  background-color: var(--color-navy);
  box-shadow: 0 8px 28px 2px rgba(232, 70, 36, 0.25);
}

.product-card__image {
  height: 340px;
  overflow: hidden;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.product-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: 1px;
  color: var(--color-ink);
}

.product-card--featured .product-card__name {
  color: var(--color-orange);
}

.product-card__desc {
  color: var(--color-gray);
  font-size: 14px;
  line-height: 1.6;
}

.product-card--featured .product-card__desc {
  color: var(--color-gray-lighter);
}

.product-card__flag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card__flag .rule {
  height: 2px;
  width: 48px;
  background-color: var(--color-orange);
}

.flag-label {
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  white-space: nowrap;
}

.heat-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.heat-row__label {
  color: var(--color-gray-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.heat-row__label--amber {
  color: var(--color-amber);
}

.heat-row__flames {
  display: flex;
  align-items: center;
  gap: 4px;
}

.flame-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Brand Story ---------- */

.brand-story {
  display: flex;
  flex-wrap: wrap;
}

.brand-story__image {
  flex: 1 1 400px;
  min-height: 340px;
}

.brand-story__image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.brand-story__content {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 48px 56px;
}

.eyebrow {
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.brand-story__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.brand-story__body {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.85;
  max-width: 46ch;
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.stat__value {
  color: var(--color-orange);
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
}

.stat__label {
  margin-left: 0;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.7;
}

/* ---------- Where To Buy ---------- */

.stockists {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background-color: var(--color-offwhite);
  padding: 48px 24px;
}

.stockists__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  width: 100%;
  max-width: var(--max-width);
}

.stockist {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.05);
  padding: 16px;
}

.pin-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.stockist__name {
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 600;
}

.stockist__addr {
  color: var(--color-gray-light);
  font-size: 13px;
}

.stockists__cta {
  color: var(--color-orange);
  font-size: 16px;
  font-weight: 600;
}

.stockists__cta:hover {
  text-decoration: underline;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 48px;
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: 56px 48px 32px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
}

.footer-tag {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.55;
  max-width: 300px;
}

.social-icons {
  display: flex;
  gap: 12px;
  padding-top: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background-color: var(--color-navy-light);
}

.social-icon {
  width: 20px;
  height: 20px;
}

.footer-col__heading {
  color: var(--color-orange);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-links li a {
  display: inline-block;
  padding: 2px 0;
  font-size: 14px;
  opacity: 0.65;
}

.footer-links li a:hover {
  opacity: 1;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.65;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-rule {
  border: none;
  border-top: 1px solid var(--color-navy-rule);
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  font-size: 12px;
  opacity: 0.35;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a:hover {
  opacity: 0.8;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .site-nav,
  .site-header > .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 16px 20px;
  }

  .brand-story__content {
    padding: 40px 28px;
  }
}

/* FROM SHOPIFY  */

.cart-toggle {
    background: none;
    border: 0;
    color: var(--color-white);
    cursor: pointer;
    flex-shrink: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 4px;
    text-transform: uppercase;
    white-space: nowrap;
}
