/* =========================================================
   ROOT / THEME — Warm Canadian Forest (No Blue)
   ========================================================= */

:root {
  /* Backgrounds */
  --bg-main: #151c12;        /* pine bark */
  --bg-section: #f2f4ee;     /* forest floor */
  --bg-card: #252f22;        /* mossy wood */

  /* Text */
  --text-main: #f2f4ee;
  --text-muted: #c6cfbd;
  --text-dark: #2a2f28;

  /* Accents */
  --accent: #d6a85f;         /* aged brass */
  --accent-dark: #b48a4c;

  /* Shadows */
  --shadow-strong: rgba(0,0,0,0.45);
  --shadow-light: rgba(0,0,0,0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Merriweather', serif;
  background: var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */

header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 16px 40px;
  background: transparent;
  transition: background 200ms ease, box-shadow 200ms ease;
}

header.scrolled {
  background: rgba(21,28,18,0.9);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px var(--shadow-light);
}

.logo {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bg-cream);
  display: flex;
  gap: 10px;
  align-items: center;
}

nav a {
  color: var(--bg-cream);
  text-decoration: none;
  margin-left: 26px;
  font-weight: 700;
}

nav a:hover {
  color: var(--accent);
}

.cta {
  background: var(--accent);
  color: #1c2418;
  padding: 8px 16px;
  border-radius: 999px;
}

/* Mobile nav */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 180px 20px 240px;
  color: var(--text-main);
  overflow: hidden;
}


.hero::after {
  content: "";
  position: absolute;

  /* Overscan so rotation never reveals edges */
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;

  pointer-events: none;
  z-index: 1;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg stroke='rgba(255,255,255,0.08)' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='16' y1='24' x2='32' y2='24' transform='rotate(45 24 24)'/%3E%3Cline x1='16' y1='24' x2='32' y2='24' transform='rotate(-45 24 24)'/%3E%3C/g%3E%3C/svg%3E");

  background-repeat: repeat;
  background-size: 48px 48px;
  background-position: 0 0;

  transform: rotate(14deg);
  transform-origin: center;

  animation: x-texture-drift 90s linear infinite;
}


.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Left */

.kicker {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-left h1 {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.95;
  margin: 0 0 14px;
}

.hero-left h2 {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-left p {
  max-width: 560px;
  color: var(--text-muted);
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.btn {
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.btn.primary {
  background: var(--accent);
  color: #1c2418;
}

.btn.secondary {
  border: 2px solid rgba(255,255,255,0.25);
  color: var(--bg-cream);
}

/* =========================================================
   HERO IMAGE (BIGGER SECONDARY IMAGE)
   ========================================================= */



.hero-frame {
  --hero-img: url("/assets/images/hero-canada.png");

  width: 620px;
  height: 400px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px var(--shadow-strong);
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: -25%;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  filter: blur(36px);
  transform: scale(1.2);
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  border-radius: 18px;
}

.hero-badge {
  position: absolute;
  bottom: 12%;
  right: 10%;
  background: var(--bg-cream);
  color: var(--text-dark);
  padding: 14px 18px;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  box-shadow: 0 10px 26px var(--shadow-light);
}

/* =========================================================
   HERO WAVE (KEPT)
   ========================================================= */

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  z-index: 3;
  pointer-events: none;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.categories {
  background: var(--bg-section);
  padding: 120px 20px 80px;
  text-align: center;
}

.category-grid {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.category-card {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Products */

.featured-products {
  background: var(--bg-main);
  padding: 80px 20px;
  text-align: center;
}

.products-grid {
  max-width: 1200px;
  margin: 40px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--bg-card);
  padding: 22px;
  border-radius: 14px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px var(--shadow-light);
}

.product-card img {
  width: 100%;
  border-radius: 10px;
}

.rating {
  color: var(--accent);
  font-weight: 700;
}

/* =========================================================
   NEWSLETTER / FOOTER
   ========================================================= */

.newsletter {
  background: var(--bg-section);
  padding: 80px 20px;
  text-align: center;
}

footer {
  background: #0f140d;
  color: var(--text-muted);
  padding: 50px 20px;
  text-align: center;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-frame {
    width: 100%;
    height: 300px;
  }

  .hero-badge {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: -26px;
  }
}

@media (max-width: 800px) {
  header {
    padding: 14px 20px;
  }

  .nav-toggle-label {
    display: block;
    width: 34px;
    height: 26px;
    cursor: pointer;
  }

  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    display: block;
    background: var(--bg-cream);
    height: 3px;
    border-radius: 3px;
    position: relative;
  }

  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
  }

  .nav-toggle-label span::before { top: -8px; }
  .nav-toggle-label span::after { top: 8px; }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-section);
    display: none;
    flex-direction: column;
    padding: 18px 20px;
  }

  .nav-toggle:checked + .nav-toggle-label + nav {
    display: flex;
  }

  nav a {
    margin: 10px 0;
  }
}
