/* ===== RESET ===== */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

/* ===== BASE ===== */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.2px;
  background-color: #000;
  position: relative;
}

/* ===== CLS FIXES ===== */
.site-header,
.ct-header,
header,
#masthead {
  min-height: 80px;
}

.elementor-section:first-of-type,
.elementor-top-section:first-of-type {
  min-height: 620px;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== BACKGROUND IMAGE ===== */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("https://cannabishut.ca/wp-content/uploads/2026/04/cannabishut-final-background.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  z-index: -2;
  will-change: transform;
}

/* ===== DARK OVERLAY ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.60),
    rgba(0, 0, 0, 0.40),
    rgba(0, 0, 0, 0.72)
  );
  z-index: -1;
  pointer-events: none;
}

/* ===== TRANSPARENT CONTENT ===== */
.site,
.site-content,
.site-main,
.entry-content,
.elementor,
.elementor-section,
.elementor-container,
.elementor-column,
.elementor-widget-wrap,
.elementor-widget-container,
main {
  background: transparent !important;
}

/* ===== SMOKE ===== */
.smoke-overlay {
  position: fixed !important;
  inset: 0;
  background: url("https://cannabishut.ca/wp-content/uploads/2026/04/CH_smoke.jpg") center/cover no-repeat;
  opacity: 0.07;
  filter: blur(2px);
  z-index: 5;
  pointer-events: none !important;
  animation: smokeFlow 24s ease-in-out infinite;
  will-change: transform;
  contain: layout paint;
}

.smoke-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://cannabishut.ca/wp-content/uploads/2026/04/CH_smoke.jpg") center/cover no-repeat;
  opacity: 0.035;
  filter: blur(5px);
  animation: smokeFlowReverse 28s ease-in-out infinite;
  will-change: transform;
}

@keyframes smokeFlow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(20px, -35px, 0) scale(1.05); }
  100% { transform: translate3d(0, -70px, 0) scale(1.08); }
}

@keyframes smokeFlowReverse {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-20px, -40px, 0) scale(1.06); }
  100% { transform: translate3d(18px, -75px, 0) scale(1.09); }
}

/* ===== HEADER ===== */
.ct-header {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
}

.ct-header.scrolled {
  background: rgba(0, 0, 0, 0.78) !important;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  font-size: 44px !important;
  line-height: 1.1;
  margin-bottom: 12px !important;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 10px !important;
}

p {
  line-height: 1.6;
}

/* ===== PRODUCT / DUTCHIE SECTION ===== */
.products,
.swiper {
  background: rgba(255, 255, 255, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 20px !important;
  padding-bottom: 20px !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  margin-bottom: 0 !important;
}

.elementor-widget-container:has(.swiper),
.elementor-widget-container:has(.products),
.elementor-widget:has(.swiper),
.elementor-widget:has(.products) {
  height: auto !important;
  min-height: unset !important;
  max-height: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.swiper-wrapper {
  align-items: stretch !important;
}

iframe,
.dutchie-embed,
[id*="dutchie"],
[class*="dutchie"] {
  min-height: 420px !important;
  height: auto !important;
}

.elementor-widget,
.elementor-column,
.elementor-section {
  height: auto !important;
}

/* ===== MOBILE: SHOW MULTIPLE PRODUCTS WHILE SCROLLING ===== */
@media (max-width: 768px) {
  .swiper {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .swiper-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 12px !important;
    transform: none !important;
  }

  .swiper-slide {
    width: 46% !important;
    min-width: 46% !important;
    max-width: 46% !important;
    margin-right: 0 !important;
    scroll-snap-align: start;
  }

  .swiper-slide > * {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .swiper-slide {
    width: 52% !important;
    min-width: 52% !important;
    max-width: 52% !important;
  }
}

/* ===== BUTTONS ===== */
.elementor-button {
  border-radius: 40px !important;
  padding: 12px 30px !important;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* ===== LEAVES ===== */
.leaf-overlay {
  position: fixed !important;
  inset: 0;
  z-index: 10;
  pointer-events: none !important;
  overflow: hidden;
  contain: layout paint;
}

.leaf {
  position: absolute;
  top: -120px;
  width: 48px;
  height: 48px;
  background-image: url("https://cannabishut.ca/wp-content/uploads/2026/04/8deca7e9-2ad6-4f8e-b3eb-cba5461b380b.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.18;
  animation: leafFall linear infinite;
  will-change: transform;
}

.leaf.leaf-1  { left: 2%;  animation-duration: 18s; animation-delay: 0s; }
.leaf.leaf-2  { left: 5%;  animation-duration: 16s; animation-delay: 2s; }
.leaf.leaf-3  { left: 8%;  animation-duration: 20s; animation-delay: 4s; }
.leaf.leaf-4  { left: 3%;  animation-duration: 17s; animation-delay: 1s; }
.leaf.leaf-5  { left: 6%;  animation-duration: 21s; animation-delay: 5s; }
.leaf.leaf-6  { left: 9%;  animation-duration: 19s; animation-delay: 3s; }
.leaf.leaf-7  { left: 91%; animation-duration: 18s; animation-delay: 1s; }
.leaf.leaf-8  { left: 94%; animation-duration: 16s; animation-delay: 3s; }
.leaf.leaf-9  { left: 97%; animation-duration: 20s; animation-delay: 5s; }
.leaf.leaf-10 { left: 92%; animation-duration: 17s; animation-delay: 2s; }
.leaf.leaf-11 { left: 95%; animation-duration: 21s; animation-delay: 6s; }
.leaf.leaf-12 { left: 98%; animation-duration: 19s; animation-delay: 4s; }

@keyframes leafFall {
  0% {
    transform: translate3d(0, -120px, 0) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.18;
  }
  50% {
    transform: translate3d(-18px, 50vh, 0) rotate(160deg);
  }
  100% {
    transform: translate3d(-14px, 110vh, 0) rotate(320deg);
    opacity: 0;
  }
}

/* ===== CTA ===== */
.sticky-cta {
  position: fixed !important;
  bottom: 25px !important;
  right: 25px !important;
  z-index: 2147483647 !important;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff !important;
  padding: 14px 22px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  pointer-events: auto !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  animation: ctaPulse 2.6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  contain: layout paint;
}

.sticky-cta:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 8px rgba(34, 197, 94, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.32);
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.28),
      0 0 0 0 rgba(34, 197, 94, 0.18);
  }
  50% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.28),
      0 0 0 10px rgba(34, 197, 94, 0);
  }
}

/* ===== TABLET ===== */
@media (max-width: 1024px) {
  body::after {
    background-position: center top;
  }

  h1 {
    font-size: 36px !important;
  }

  h2 {
    font-size: 26px !important;
  }

  .products,
  .swiper {
    padding: 18px !important;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .site-header,
  .ct-header,
  header,
  #masthead {
    min-height: 80px;
  }

  .elementor-section:first-of-type,
  .elementor-top-section:first-of-type {
    min-height: 660px;
  }

  body::after {
    background-size: cover;
    background-position: center top;
  }

  body::before {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.54),
      rgba(0, 0, 0, 0.38),
      rgba(0, 0, 0, 0.70)
    );
  }

  .smoke-overlay {
    opacity: 0.045;
    filter: blur(1px);
    animation: smokeFlow 30s ease-in-out infinite;
    background-position: center top;
  }

  .smoke-overlay::after {
    opacity: 0.02;
    filter: blur(3px);
    animation: none;
  }

  h1 {
    font-size: 28px !important;
    line-height: 1.2;
  }

  h2 {
    font-size: 22px !important;
  }

  p {
    font-size: 15px;
  }

  .products,
  .swiper {
    padding: 14px !important;
    padding-bottom: 14px !important;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  iframe,
  .dutchie-embed,
  [id*="dutchie"],
  [class*="dutchie"] {
    min-height: 360px !important;
  }

  .leaf {
    width: 24px;
    height: 24px;
    opacity: 0.08;
    animation-duration: 22s;
  }

  .sticky-cta {
    bottom: 12px !important;
    right: 12px !important;
    padding: 10px 14px;
    font-size: 12px;
    animation: ctaPulse 3s ease-in-out infinite;
  }
}

/* ===== SMALL PHONES ===== */
@media (max-width: 480px) {
  body::after {
    background-position: center top;
  }

  .smoke-overlay,
  .smoke-overlay::after,
  .leaf-overlay {
    display: none;
  }

  .elementor-section:first-of-type,
  .elementor-top-section:first-of-type {
    min-height: 600px;
  }

  iframe,
  .dutchie-embed,
  [id*="dutchie"],
  [class*="dutchie"] {
    min-height: 320px !important;
  }

  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }

  p {
    font-size: 14px;
  }

  .sticky-cta {
    font-size: 11px;
    padding: 9px 12px;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  .smoke-overlay,
  .smoke-overlay::after,
  .leaf,
  .sticky-cta {
    animation: none !important;
    transition: none !important;
  }
}