@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --green-dark: #003a36;
  --green: #4e9b2e;
  --green-light: #8fcb5a;
  --gold-start: #ebc17d;
  --gold-mid: #c08329;
  --gold-end: #eedcc3;
  --border-radius-card: 64px;
  --border-radius-full: 999px;
  --text-dark: #f5f5f5;
  --text-muted: #6b6b6b;
  --text-white: #ffffff;
  --bg: #ffffff;
  --max-width: 1240px;
  --box-border: #ededed;
  --box-border-green: #024743;
  --box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
  --thc-accent: #8b2c7e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--green-dark);
}

body {
  font-family: "Poppins", Arial, sans-serif;
  color: var(--text-dark);
  background: var(--green-dark);
  -webkit-font-smoothing: antialiased;
  position: relative;
  background: var(--green-dark);
}

/* Full-screen background video (homepage only — see index.php) */
body.home-page {
  overflow: hidden;
  /* background: #fff; */
}

.bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

.bg-black {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0.2;
  z-index: 2;
  pointer-events: none;
  background: #000;
}

@media (max-width: 640px) {
  body.home-page {
    overflow-y: auto;
  }

  .bg-video {
    z-index: 0;
    height: 115vh;
  }
  .bg-black {
    height: 115vh;
  }
}

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

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

p {
  padding: 0;
  margin: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 10;
}

/* Header */
.site-header {
  padding: 24px 0;
  position: relative;
  z-index: 100; /* keep header (and its lang dropdown) above .container's z-index:10 stacking context on <main> */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-hor {
  height: 44px;
  width: auto;
}

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
  margin-right: 32px;
  font-weight: 500;
}

.main-nav a {
  color: var(--text-white);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-muted);
  border-bottom-color: var(--gold-mid);
}

.lang-switcher {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--box-border);
  border-radius: var(--border-radius-full);
  padding: 8px 16px;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  color: var(--green-dark);
}

.lang-arrow {
  width: 14px;
  height: 14px;
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--box-border);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  min-width: 90px;
  z-index: 20;
  color: var(--green-dark);
}

.lang-menu.open {
  display: block;
}

.lang-menu a {
  display: block;
  padding: 10px 18px;
  font-weight: 500;
  font-size: 14px;
}

.lang-menu a:hover,
.lang-menu a.active {
  background: #f4f8ef;
  color: var(--green-dark);
}

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

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-white);
}

/* Footer */
.site-footer {
  /* margin-top: 80px; */
  position: relative;
  padding: 48px 0 48px;
  background: var(--green-dark);
  z-index: 10;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 48px;
  text-align: right;
}

.footer-col p {
  margin: 0 0 4px;
  font-size: 12px;
  color: #f5f5f5;
}

@media (max-width: 640px) {
  .site-footer {
    /* margin-top: 128px; */
  }
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--green-dark), var(--green-dark));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--border-radius-full);
  border: solid 1px var(--box-border-green);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

/* Home hero cards */
.home-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 60px 0 40px;
}

.home-card {
  border: 1px solid var(--box-border-green);
  border-radius: var(--border-radius-card);
  padding: 64px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--box-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.home-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.home-card .card-logo {
  width: 120px;
  max-width: 70%;
  margin-bottom: 36px;
}

.home-card h2 {
  font-size: 3rem;
  color: var(--text-white);
  margin: 0 0 28px;
  font-weight: 300;
}

@media (max-width: 640px) {
  .home-card {
    padding: 48px 24px;
  }
  .home-cards .card-logo {
    max-width: 40%;
    margin-bottom: 24px;
  }

  .home-card h2 {
    font-size: 1.75rem;
  }
}

/* Page hero (B2B / Products) */
.page-hero {
  text-align: center;
  padding: 40px 0 20px;
}

.page-hero .hero-logo {
  width: 320px;
  max-width: 100%;
  margin: 8rem auto 24px;
}

.page-hero h1 {
  font-size: 32px;
  color: var(--green-dark);
  margin: 0 0 16px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .page-hero .hero-logo {
    margin: 4rem auto 16px;
  }
}

/* B2B page */
.b2b-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 0 80px;
  text-align: center;
}

.b2b-content p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
}

.b2b-content .contact-line {
  margin-top: 28px;
  font-weight: 600;
}

.b2b-content .contact-line a {
  color: var(--text-dark);
  border-bottom: 2px solid var(--gold-mid);
}

/* Products grid */
.products-intro {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
  color: var(--text-dark);
  font-size: 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(540px, 1fr));
  gap: 28px;
  padding-bottom: 90px;
}

.product-card {
  display: flex;
  width: 100%;
  flex-direction: column;
  border: 1px solid #024743;
  border-radius: 40px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--green-dark);
  box-shadow: var(--box-shadow);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

.product-image-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(
    135deg,
    #f4f8ef,
    #f4f8ef 10px,
    #eff5e8 10px,
    #eff5e8 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.product-image-placeholder span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Label used only for products without a real photo yet (name below the placeholder box) */
.product-card-label {
  margin: 0;
  padding: 20px 16px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--green-dark);
}

/* Layered product tile: 1) bg color, 2) product photo, 3) bottom gradient scrim, 4) bottom-right text */
.product-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--green-dark); /* layer 1: bg color */
  container-type: inline-size;
}

.product-tile-image {
  position: absolute;
  inset: 0;
  width: 70%;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; /* layer 2: product photo */
}

.product-tile-placeholder {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    #f4f8ef,
    #f4f8ef 10px,
    #eff5e8 10px,
    #eff5e8 20px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
}

.product-tile-placeholder span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.product-tile-gradient {
  position: absolute;
  inset: 0;
  z-index: 2; /* layer 3: gradient, solid green at the bottom fading to 0% opacity at mid-height */
  background: linear-gradient(
    to top,
    var(--green-dark) 0%,
    rgba(5, 72, 40, 0) 50%
  );
  pointer-events: none;
}

.product-tile-text {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 3; /* layer 4: text */
  text-align: right;
  max-width: calc(100% - 160px);
}

.product-tile-text h3 {
  font-size: clamp(18px, 6cqi, 32px);
  margin: 0;
  color: #fff;
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(22px, 9cqi, 56px);
}

.product-tile-thc {
  margin: 8px 0 0;
  color: var(--thc-accent);
  font-weight: 700;
  line-height: 1;
  font-size: clamp(15px, 4.6cqi, 30px);
}

@media (max-width: 480px) {
  .product-tile-text {
    right: 32px;
    bottom: 32px;
    max-width: calc(100% - 64px);
  }
}

/* Single product page */
.product-back {
  display: inline-block;
  margin: 32px 0;
  font-weight: 500;
  color: var(--green-dark);
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 100px;
}

.product-detail .product-image-placeholder {
  border-radius: 40px;
  border: 1px solid var(--box-border);
  box-shadow: var(--box-shadow);
  aspect-ratio: 1 / 1;
}

.product-detail-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 40px;
  border: 1px solid var(--box-border);
  box-shadow: var(--box-shadow);
}

.product-detail h1 {
  font-size: 34px;
  color: var(--green-dark);
  margin: 0 0 20px;
}

.product-detail p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-dark);
    flex-direction: column;
    gap: 0;
    padding: 8px 32px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    display: none;
    margin: 0;
  }

  .main-nav.open {
    display: flex;
    z-index: 100 !important;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-header {
    position: relative;
    z-index: 100;
  }

  .nav-toggle {
    display: flex;
  }

  .home-cards {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  /* .products-grid's 540px column minimum (set for the 2-up desktop
       layout) is wider than a phone viewport, so the track — and the
       product-card inside it — overflows past the edge instead of
       shrinking. Collapse to a single flexible column below this breakpoint. */
  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .home-card {
    padding: 48px 24px;
    border-radius: 40px;
  }

  .page-hero h1 {
    font-size: 26px;
  }
}

/* Rich product detail page (includes/product-detail.php) */
.product-title-block {
  text-align: center;
  padding: 24px 0 32px;
}

.product-title-block h1 {
  font-size: 6rem;
  color: var(--text-white);
  margin: 0 0 8px;
  font-weight: 700;
}

.thc-badge {
  color: var(--thc-accent);
  font-weight: 700;
  font-size: 2.5rem;
}

.product-hero-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  overflow: hidden;
  background: var(--green-dark);
  border-radius: 32px;
  /* box-shadow: var(--box-shadow); */
  margin-bottom: 32px;
}

.product-hero-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
}

/* THC scale: thick gradient pill with ticks/numbers embedded inside it, and a
   marker (connector line + dot + label) hanging below at this product's THC range */
.thc-scale {
  background: var(--green-dark);
  border-radius: 32px;
  /* border: 1px solid var(--box-border);
    box-shadow: var(--box-shadow); */
  padding: 40px 48px 72px;
  margin-bottom: 56px;
  position: relative;
}

.thc-scale-track {
  position: relative;
  height: 72px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(90deg, #eab6dc 0%, #9b3f9e 45%, #3e1652 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
}

.thc-scale-tick {
  display: flex;
  align-items: center;
  gap: 6px;
}

.thc-scale-tick-mark {
  width: 2px;
  height: 16px;
  background: #fff;
  border-radius: 1px;
  flex-shrink: 0;
}

.thc-scale-tick-number {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.thc-scale-marker-wrap {
  position: absolute;
  top: 100%;
}

.thc-scale-connector {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  width: 2px;
  height: 20px;
  background: #fff;
  display: block;
}

.thc-scale-marker-row {
  position: absolute;
  top: 20px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.thc-scale-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--thc-accent);
  margin-left: -11px;
  flex-shrink: 0;
  display: block;
}

.thc-scale-label {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}

.product-section-heading {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 0 0 28px;
}

.product-section-heading h2 {
  color: var(--green-dark);
  font-size: 32px;
  font-weight: 700;
  margin: 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.info-card {
  background: var(--green-dark);
  border: 1px solid #024743;
  box-shadow: var(--box-shadow);
  border-radius: 32px;
  padding: 32px;
}

.info-card h3 {
  margin: 0 0 6px;
  color: var(--text-white);
  font-size: 28px;
  font-weight: 700;
}

.info-card .info-sub {
  font-size: 28px;
  margin: 0 0 20px;
  color: var(--text-dark);
}

.info-card-wide {
  margin-bottom: 24px;
}

/* Dominance: two layers — a light bg track (full range) and a top slider
   fill anchored to the indica/moon side, sized by value (0-100) */
.dominance-slider {
  position: relative;
  height: 44px;
  border-radius: var(--border-radius-full);
  overflow: hidden;
  background: linear-gradient(90deg, #f1c6e4 0%, #c98fd1 100%); /* bg layer */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.dominance-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    #b25cc0 0%,
    #5b2170 100%
  ); /* top slider fill */
  z-index: 1;
}

.dominance-icon {
  position: relative;
  z-index: 2;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dominance-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.flower-color-swatch {
  width: 100%;
  max-width: 100%;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-full);
  overflow: hidden;
}

.flower-color-swatch img {
  width: 400% !important;
  height: auto;
  max-width: 400%;
  aspect-ratio: 1 / 1;
  object-position: center center;
  filter: blur(20px);
}

.terpene-list {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-dark);
  line-height: 1.9;
  font-size: 28px;
}

.aroma-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 28px;
}

.aroma-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 28px;
}

.aroma-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
  padding: 10px;
}

.aroma-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.effects-chips {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.effect-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--border-radius-full);
  font-weight: 600;
}

.effect-icon {
  font-size: 16px;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.effect-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.description-card p {
  color: var(--text-dark);
  line-height: 1.8;
  font-size: 16px;
  margin: 0;
}

/* Packaging: bar chart (bottle/box weight vs. relative height) sitting
   above a small PZN lookup table, columns aligned via a shared grid */
.packaging-title {
  text-align: left;
  letter-spacing: 1px;
  font-size: 2rem;
  margin: 0 0 32px;
}

.packaging-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  align-items: end;
  gap: 16px;
}

.packaging-bars-row {
  height: 220px;
  margin-bottom: 24px;
}

.packaging-bar-col {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 100%;
}

.packaging-bar {
  width: 100%;
  max-width: 120px;
  min-height: 56px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
}

.packaging-bar-weight {
  background: var(--green-dark);
  border: 1px solid var(--box-border-green);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 18px;
  border-radius: var(--border-radius-full);
  white-space: nowrap;
}

.packaging-pzn-row {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.packaging-label-col {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 16px;
}

.packaging-pzn-value {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-align: center;
}

@media (max-width: 860px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .packaging-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .packaging-bars-row .packaging-label-col {
    display: none;
  }

  .packaging-pzn-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .thc-scale {
    padding: 32px 20px 56px;
  }

  .product-title-block h1 {
    font-size: 4rem;
  }

  .product-section-heading h2 {
    font-size: 2.5rem;
  }
}
