:root{
  /* Brand Colors */
  --cp-green-500:#75ba2d;
  --cp-green-900:#2c5d3f;
  --cp-green-950:#022d23;
  --cp-cream:#fbfcf7;
  --cp-charcoal:#1d2119;

  /* Typography - Poppins */
  --cp-font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ===== GLOBAL TYPOGRAPHY (POPPINS) ===== */
body,
.site,
.ast-container,
.entry-content,
h1, h2, h3, h4, h5, h6,
.entry-title,
.product-title,
.site-title,
button,
input,
select,
textarea {
  font-family: var(--cp-font-family) !important;
}

/* Improve font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reset body/html padding on home page */
body.home,
html{
  margin:0 !important;
  padding:0 !important;
  overflow-x:hidden;
}

/* FORCE hide admin bar */
#wpadminbar{
  display:none !important;
}
body.admin-bar{
  margin-top:0 !important;
}
html{
  margin-top:0 !important;
}

/* === HEADER STYLING (ALL PAGES) === */

/* Header container layout */
.main-header-bar {
  padding: 12px 0;
}

.main-header-bar .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* DESKTOP HEADER (dark green background) */
@media (min-width: 922px) {
  .site-header{
    background: linear-gradient(135deg, var(--cp-green-950) 0%, #0a3a2e 100%) !important;
    border-bottom: 3px solid var(--cp-green-500);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1000;
  }

  /* Cannabis leaf pattern overlay */
  .site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M20 8c-2 0-3 1-3 3v6c0 1-1 2-2 2s-2-1-2-2v-6c0-3 2-5 5-5s5 2 5 5v6c0 1-1 2-2 2s-2-1-2-2v-6c0-2-1-3-3-3z" fill="rgba(117,186,45,0.05)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
  }

  /* Desktop logo - GREEN leaf with BLACK text (brand colors) */
  .site-branding .cannapeace-logo,
  .site-branding .custom-logo {
    display: block !important;
    height: 55px;
    width: auto;
    max-width: 240px;
    /* No filter needed - using original brand logo colors */
  }

  /* Desktop navigation - horizontal layout */
  .main-navigation {
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
    display: flex;
    align-items: center;
  }

  /* Hide mobile menu toggle on desktop */
  .mobile-menu-toggle {
    display: none !important;
  }

  .main-header-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .main-header-menu > li {
    width: auto !important;
    border: none !important;
  }

  /* Desktop navigation - LIGHT text for dark header */
  .main-header-menu > li > a{
    color: var(--cp-cream) !important;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
  }

  /* Desktop hover - lime green with underline */
  .main-header-menu > li > a::after{
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--cp-green-500);
    transition: width 0.25s ease;
    transform: translateX(-50%);
  }

  .main-header-menu > li > a:hover{
    color: var(--cp-green-500) !important;
    text-shadow: 0 0 20px rgba(117, 186, 45, 0.3);
  }

  .main-header-menu > li > a:hover::after{
    width: 60%;
  }

  .main-header-menu > li.current-menu-item > a,
  .main-header-menu > li.current_page_item > a{
    color: var(--cp-green-500) !important;
  }

  .main-header-menu > li.current-menu-item > a::after,
  .main-header-menu > li.current_page_item > a::after{
    width: 60%;
  }

  /* Desktop Account button */
  .main-header-menu > li:last-child > a{
    background: var(--cp-green-500) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    margin: 0 !important;
    width: auto !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    display: inline-block !important;
  }

  .main-header-menu > li:last-child > a::after{
    display: none; /* Remove underline from button */
  }

  .main-header-menu > li:last-child > a:hover{
    filter: brightness(1.1);
    background: var(--cp-green-500) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(117, 186, 45, 0.3);
    padding: 10px 20px !important;
  }

  /* Desktop language switcher */
  .cp-language-switcher {
    margin-left: 24px;
    margin-right: 0;
  }
}

/* MOBILE HEADER (dark background) */
@media (max-width: 921px) {
  .site-header{
    background: var(--cp-green-950) !important;
    border-bottom: none !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
  }

  /* Mobile logo - white text version */
  .site-branding .cannapeace-logo,
  .site-branding .custom-logo {
    display: block !important;
    height: 45px;
    width: auto;
    max-width: 180px;
  }

  /* Mobile header bar */
  .main-header-bar {
    padding: 15px 20px !important;
  }

  .main-header-bar .ast-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* Hamburger button */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10001;
  }

  .mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Hide desktop nav, show mobile nav */
  .main-navigation {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: var(--cp-green-950);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-navigation.active {
    max-height: calc(100vh - 75px);
    overflow-y: auto;
  }

  /* Mobile menu items - vertical stack */
  .main-header-menu {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .main-header-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-header-menu > li > a {
    color: white !important;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    padding: 18px 24px;
    display: block;
    width: 100%;
    transition: all 0.2s;
  }

  .main-header-menu > li > a:hover {
    background: rgba(117, 186, 45, 0.15);
    color: var(--cp-green-500) !important;
    padding-left: 32px;
  }

  .main-header-menu > li.current-menu-item > a,
  .main-header-menu > li.current_page_item > a {
    color: var(--cp-green-500) !important;
    background: rgba(117, 186, 45, 0.1);
  }

  /* Mobile Account button - full width */
  .main-header-menu > li:last-child > a {
    background: var(--cp-green-500);
    color: white !important;
    padding: 18px 24px;
    margin: 16px;
    width: calc(100% - 32px);
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
  }

  .main-header-menu > li:last-child > a:hover {
    filter: brightness(1.1);
    padding-left: 24px; /* Override the hover padding */
  }

  /* Language switcher in mobile */
  .cp-language-switcher {
    margin: 16px 16px 24px;
  }

  /* Add padding to body for fixed header */
  body {
    padding-top: 75px;
  }
}

/* Common header styles (all breakpoints) */
.main-header-bar{
  background: transparent !important;
  padding: 20px 48px !important;
}

.main-header-bar .ast-container{
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
}

/* Logo container */
.site-branding{
  display: flex;
  align-items: center;
  min-height: 50px;
}

/* Hide default site title (text) */
.site-title {
  display: none !important;
}

/* Show logo image */
.cannapeace-logo{
  display: block !important;
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 922px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* Navigation menu structure */
.main-header-menu{
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-header-menu > li{
  margin: 0;
  padding: 0;
}

/* === SHOP PAGE STYLING === */
.woocommerce .site-content,
.woocommerce-page .site-content{
  padding: 40px 20px !important;
  max-width: 1400px;
  margin: 0 auto;
}

.woocommerce ul.products{
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  padding: 20px 0 !important;
  margin: 0 !important;
}

.woocommerce ul.products li.product{
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
  margin: 0 !important;
  width: auto !important;
}

.woocommerce ul.products li.product:hover{
  box-shadow: 0 8px 24px rgba(117,186,45,0.2);
  transform: translateY(-4px);
}

.woocommerce ul.products li.product img{
  border-radius: 6px;
  margin-bottom: 15px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size: 18px;
  color: var(--cp-charcoal);
  margin-bottom: 10px;
}

.woocommerce ul.products li.product .price{
  font-size: 20px;
  font-weight: 700;
  color: var(--cp-green-900);
  margin-bottom: 15px;
}

.woocommerce ul.products li.product .button{
  background: var(--cp-green-500) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  width: 100%;
  text-align: center;
  transition: all 0.2s;
}

.woocommerce ul.products li.product .button:hover{
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(117,186,45,0.3);
}

/* Responsive shop grid */
@media (max-width: 1200px){
  .woocommerce ul.products{
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px){
  .woocommerce ul.products{
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px){
  .woocommerce ul.products{
    grid-template-columns: 1fr !important;
  }

  .woocommerce .site-content,
  .woocommerce-page .site-content{
    padding: 20px 15px !important;
  }
}

/* Shop page header */
.woocommerce .woocommerce-products-header{
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--cp-green-500);
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering{
  margin-bottom: 20px;
}

/* === CART PAGE STYLING === */
/* Fix narrow width constraint causing vertical text */
.woocommerce-cart,
.woocommerce-cart * {
  min-width: initial !important;
  width: auto !important;
}

.woocommerce-cart h1,
.woocommerce-cart h2,
.woocommerce-cart h3,
.woocommerce-cart h4,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .cart-empty {
  min-width: 300px !important;
  max-width: 100% !important;
  width: auto !important;
}

/* Ensure cart content container has proper width */
.woocommerce-cart .site-content,
.woocommerce-cart .entry-content,
.woocommerce-cart .woocommerce {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 40px 20px !important;
}

/* Empty cart message styling */
.woocommerce-cart .woocommerce-info {
  background: #f8f9fa !important;
  border: 2px solid var(--cp-green-500) !important;
  border-radius: 8px !important;
  padding: 20px 24px !important;
  text-align: center !important;
  font-size: 16px !important;
  color: var(--cp-charcoal) !important;
  margin-bottom: 40px !important;
}

.woocommerce-cart .woocommerce-info::before {
  color: var(--cp-green-500) !important;
  font-size: 20px !important;
}

/* Cart table styling */
.woocommerce-cart .woocommerce-cart-form {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 32px;
}

.woocommerce-cart table.cart {
  border: none !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.woocommerce-cart table.cart thead {
  background: var(--cp-green-950) !important;
}

.woocommerce-cart table.cart thead th {
  color: white !important;
  font-weight: 600 !important;
  padding: 16px !important;
  border: none !important;
}

.woocommerce-cart table.cart tbody tr {
  border-bottom: 1px solid #e5e7eb !important;
}

.woocommerce-cart table.cart tbody tr:last-child {
  border-bottom: none !important;
}

.woocommerce-cart table.cart td {
  padding: 20px 16px !important;
  vertical-align: middle !important;
}

.woocommerce-cart table.cart .product-thumbnail img {
  border-radius: 6px;
  max-width: 80px;
}

.woocommerce-cart table.cart .product-name a {
  color: var(--cp-charcoal) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  text-decoration: none !important;
}

.woocommerce-cart table.cart .product-name a:hover {
  color: var(--cp-green-500) !important;
}

.woocommerce-cart table.cart .product-price,
.woocommerce-cart table.cart .product-subtotal {
  font-weight: 600 !important;
  color: var(--cp-green-900) !important;
  font-size: 18px !important;
}

/* Quantity input */
.woocommerce-cart .quantity input.qty {
  border: 2px solid #e5e7eb !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 16px !important;
  width: 80px !important;
  text-align: center !important;
}

.woocommerce-cart .quantity input.qty:focus {
  border-color: var(--cp-green-500) !important;
  outline: none !important;
}

/* Update cart button */
.woocommerce-cart button[name="update_cart"] {
  background: var(--cp-green-500) !important;
  color: white !important;
  border: none !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.woocommerce-cart button[name="update_cart"]:hover {
  filter: brightness(1.1) !important;
}

/* Cart totals */
.woocommerce-cart .cart-collaterals {
  margin-top: 32px;
}

.woocommerce-cart .cart_totals {
  background: white !important;
  border-radius: 8px !important;
  padding: 24px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.woocommerce-cart .cart_totals h2 {
  color: var(--cp-charcoal) !important;
  font-size: 24px !important;
  margin-bottom: 20px !important;
  padding-bottom: 16px !important;
  border-bottom: 2px solid var(--cp-green-500) !important;
}

.woocommerce-cart .cart_totals table {
  border: none !important;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  padding: 12px 0 !important;
  border: none !important;
}

.woocommerce-cart .cart_totals .order-total th,
.woocommerce-cart .cart_totals .order-total td {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--cp-green-900) !important;
  padding-top: 20px !important;
  border-top: 2px solid #e5e7eb !important;
}

/* Proceed to checkout button */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
  background: var(--cp-green-500) !important;
  color: white !important;
  border: none !important;
  padding: 16px 32px !important;
  border-radius: 8px !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  width: 100% !important;
  text-align: center !important;
  text-decoration: none !important;
  display: block !important;
  transition: all 0.2s !important;
  box-shadow: 0 4px 12px rgba(117,186,45,0.3) !important;
}

.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
  filter: brightness(1.1) !important;
  box-shadow: 0 6px 20px rgba(117,186,45,0.4) !important;
}

/* "New in store" products section - use shop grid */
.woocommerce-cart .products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin-top: 40px !important;
}

.woocommerce-cart .products li.product {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

.woocommerce-cart .products li.product:hover {
  box-shadow: 0 8px 24px rgba(117,186,45,0.2);
  transform: translateY(-4px);
}

/* Responsive cart */
@media (max-width: 1200px) {
  .woocommerce-cart .products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .woocommerce-cart .products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .woocommerce-cart .products {
    grid-template-columns: 1fr !important;
  }

  .woocommerce-cart .site-content {
    padding: 20px 15px !important;
  }
}

/* Override Astra's CSS variables for container padding */
body.home{
  --ast-container-default-xlg-padding:0;
  --ast-container-default-lg-padding:0;
  --ast-container-default-slg-padding:0;
  --ast-container-default-md-padding:0;
  --ast-container-default-sm-padding:0;
  --ast-container-default-xs-padding:0;
  --ast-container-default-xxs-padding:0;
}

/* --- Neutralize whatever container Astra wraps around the front page --- */
/* Belt-and-suspenders: scoped to the home page so nothing else is affected. */
body.home #primary,
body.home .site-content,
body.home #content,
body.home #content .ast-container,
body.home .ast-container{
  max-width:none !important;
  padding:0 !important;
  margin:0 !important;
  width:100% !important;
}
body.home .entry-header,
body.home .ast-archive-description,
body.home h1.entry-title{ display:none; }

/* Main element full width */
.cp-home{
  width:100%;
  max-width:none;
  padding:0;
  margin:0;
}

/* === WORDPRESS BLOCK EDITOR STYLING === */
/* Style the "Shop CBD Products" button */
.wp-block-button__link,
a.wp-block-button__link {
  background: var(--cp-charcoal) !important;
  color: #fff !important;
  padding: 16px 40px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  font-family: var(--cp-font-family) !important;
}

.wp-block-button__link:hover {
  background: var(--cp-green-500) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(117, 186, 45, 0.3) !important;
}

/* "Why Choose CannaPeace?" Section - Add dark background with pattern */
.wp-block-heading + .wp-block-columns {
  background: linear-gradient(135deg, var(--cp-green-950) 0%, #0a3a2e 100%) !important;
  background-image:
    linear-gradient(135deg, rgba(2, 45, 35, 0.98) 0%, rgba(10, 58, 46, 0.98) 100%),
    url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M30 12c-3 0-5 2-5 5v9c0 2-2 3-3 3s-3-1-3-3v-9c0-5 3-8 8-8s8 3 8 8v9c0 2-2 3-3 3s-3-1-3-3v-9c0-3-2-5-5-5z" stroke="%2375BA2D" stroke-width="1.5" fill="none" opacity="0.03"/></svg>') !important;
  background-size: cover, 60px 60px !important;
  padding: 80px 20px !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.wp-block-heading + .wp-block-columns * {
  color: var(--cp-cream) !important;
}

.wp-block-heading + .wp-block-columns h3 {
  color: var(--cp-green-500) !important;
}

/* Style the "Why Choose CannaPeace?" heading */
h2.wp-block-heading {
  color: var(--cp-charcoal) !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  margin-top: 80px !important;
  margin-bottom: 0 !important;
  padding-bottom: 60px !important;
  font-family: var(--cp-font-family) !important;
}

/* Style feature cards headings */
h3.wp-block-heading {
  color: var(--cp-green-900) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  margin: 16px 0 !important;
  font-family: var(--cp-font-family) !important;
}

/* Style feature columns */
.wp-block-columns {
  max-width: 1200px;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.wp-block-column {
  padding: 32px 24px !important;
  transition: transform 0.3s ease;
}

.wp-block-column:hover {
  transform: translateY(-8px);
}

/* Style paragraphs in feature cards */
.wp-block-column p {
  color: var(--cp-charcoal) !important;
  line-height: 1.7 !important;
  font-family: var(--cp-font-family) !important;
}

/* Add spacing and background to content area */
.site-content {
  background: #fff;
  min-height: 60vh;
}

/* HIDE duplicate WordPress homepage content */
.home .entry-content > p,
.home .entry-content .wp-block-buttons,
.home .entry-content > h1,
.home .entry-content .wp-block-button {
  display: none !important;
}

/* Dark section with cannabis pattern (for comparison) */
.pattern-section-dark {
  background: var(--cp-green-950) !important;
  background-image: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M30 12c-3 0-5 2-5 5v9c0 2-2 3-3 3s-3-1-3-3v-9c0-5 3-8 8-8s8 3 8 8v9c0 2-2 3-3 3s-3-1-3-3v-9c0-3-2-5-5-5z" stroke="%2375BA2D" stroke-width="1.5" fill="none" opacity="0.1"/></svg>') !important;
  background-size: 60px 60px !important;
  padding: 80px 20px !important;
  color: var(--cp-cream) !important;
}

/* === HERO SECTION === */

.hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  height: 80vh;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 80px;
}

/* Background layers */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Video background */
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.3;
}

/* Cannabis leaf pattern */
.hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M30 12c-3 0-5 2-5 5v9c0 2-2 3-3 3s-3-1-3-3v-9c0-5 3-8 8-8s8 3 8 8v9c0 2-2 3-3 3s-3-1-3-3v-9c0-3-2-5-5-5z" stroke="rgba(117,186,45,0.15)" stroke-width="1.5" fill="none"/></svg>');
  background-size: 60px 60px;
  opacity: 0.4;
  animation: patternFloat 20s linear infinite;
}

@keyframes patternFloat {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

/* Gradient overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(2, 45, 35, 0.85) 0%,
    rgba(3, 136, 57, 0.75) 50%,
    rgba(117, 186, 45, 0.65) 100%
  );
  z-index: 2;
}

/* Content container */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  color: #fbfcf7;
}

/* Typography */
.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(251, 252, 247, 0.95);
  margin-bottom: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.button-hero-primary {
  background-color: var(--cp-green-500) !important;
  color: white !important;
  padding: 18px 40px !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(117, 186, 45, 0.4);
  border: 2px solid transparent;
}

.button-hero-primary:hover {
  background-color: #5a9122 !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(117, 186, 45, 0.6);
}

.button-hero-secondary {
  background-color: transparent !important;
  color: white !important;
  padding: 16px 38px !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s;
  border: 2px solid white;
}

.button-hero-secondary:hover {
  background-color: white !important;
  color: var(--cp-green-950) !important;
  transform: translateY(-3px);
}

/* Trust badges */
.hero-badges {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-badges .badge {
  background-color: rgba(251, 252, 247, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 252, 247, 0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero-section {
    min-height: 500px;
    height: 70vh;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .button-hero-primary,
  .button-hero-secondary {
    width: 100%;
    max-width: 300px;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* --- HERO --- */
.cp-hero{
  /* Smooth diagonal gradient from top-left to bottom-right */
  background: linear-gradient(
    135deg,
    var(--cp-green-950) 0%,
    #024232 40%,
    var(--cp-green-900) 100%
  );
  padding: 140px 0 160px; /* More vertical space */
  text-align: center;
  position: relative;
  left: 0;
  right: 0;
  margin: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  /* Remove any border/line between header and hero */
  margin-top: 0 !important;
  border-top: none !important;
}

.cp-hero__inner{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 32px;
}

.cp-hero__title{
  color: #fff;
  font-size: 64px;
  line-height: 1.15;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -0.02em; /* Tighter tracking for large text */
}

.cp-hero__subtitle{
  color: var(--cp-cream);
  font-size: 28px;
  margin: 0 0 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.cp-hero__description{
  color: rgba(251, 252, 247, 0.9); /* Slightly transparent cream */
  font-size: 19px;
  margin: 0 0 48px; /* More space before buttons */
  opacity: 1;
  line-height: 1.7;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.cp-hero__buttons{
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.cp-btn{
  display: inline-block;
  padding: 18px 40px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.01em;
}

.cp-btn--primary{
  background: var(--cp-green-500);
  color: #fff;
  box-shadow: 0 4px 20px rgba(117, 186, 45, 0.35);
}

.cp-btn--primary:hover{
  background: #81c934; /* Slightly brighter */
  color: #fff;
  box-shadow: 0 6px 28px rgba(117, 186, 45, 0.45);
  transform: translateY(-2px);
}

.cp-btn--secondary{
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cp-btn--secondary:hover{
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* --- FEATURES --- */
.cp-features{
  background: #fff;
  padding: 100px 32px;
}

.cp-section-title{
  text-align: center;
  color: var(--cp-charcoal);
  font-size: 42px;
  margin: 0 0 64px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cp-features__grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.cp-feature{
  text-align: center;
  padding: 32px 24px;
  transition: transform 0.3s ease;
}

.cp-feature:hover{
  transform: translateY(-8px);
}

.cp-feature__icon{
  font-size: 56px;
  margin-bottom: 24px;
  display: block;
}

.cp-feature h3{
  color: var(--cp-green-900);
  font-size: 22px;
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cp-feature p{
  color: #4b5563;
  font-size: 16px;
  margin: 0;
  line-height: 1.7;
}

/* --- CATEGORIES --- */
.cp-categories{
  padding: 100px 32px;
  background: var(--cp-cream);
}

.cp-categories__grid{
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.cp-card{
  display: block;
  padding: 48px 40px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid rgba(117, 186, 45, 0.15);
  text-decoration: none;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.cp-card:hover{
  border-color: var(--cp-green-500);
  box-shadow: 0 16px 48px rgba(117, 186, 45, 0.20);
  transform: translateY(-10px);
  background: linear-gradient(135deg, #fff 0%, rgba(117, 186, 45, 0.02) 100%);
}

.cp-card__icon{
  font-size: 56px;
  display: block;
  margin-bottom: 24px;
}

.cp-card h3{
  font-size: 26px;
  margin: 0 0 16px;
  color: var(--cp-charcoal);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cp-card p{
  margin: 0;
  color: #6b7280;
  font-size: 16px;
  line-height: 1.7;
}

/* === LANGUAGE SWITCHER === */
.cp-language-switcher{
  position: relative;
  display: inline-block;
  margin-left: 24px;
}

.cp-lang-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.cp-lang-toggle:hover{
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.cp-lang-flag{
  font-size: 20px;
  line-height: 1;
}

.cp-lang-name{
  font-weight: 500;
}

.cp-lang-arrow{
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.cp-language-switcher.active .cp-lang-arrow{
  transform: rotate(180deg);
}

.cp-lang-dropdown{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  overflow: hidden;
}

.cp-language-switcher.active .cp-lang-dropdown{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cp-lang-option{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--cp-charcoal);
  text-decoration: none;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
}

.cp-lang-option:last-child{
  border-bottom: none;
}

.cp-lang-option:hover{
  background: #f9fafb;
}

.cp-lang-option.active{
  background: #f0fdf4;
  color: var(--cp-green-900);
  font-weight: 600;
}

.cp-lang-check{
  margin-left: auto;
  color: var(--cp-green-500);
}

/* Flags-only style */
.cp-language-switcher-flags{
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 24px;
}

.cp-lang-flag-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 24px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  opacity: 0.6;
}

.cp-lang-flag-btn:hover{
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

.cp-lang-flag-btn.active{
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* --- RESPONSIVE --- */
@media (max-width:768px){
  .cp-hero{ padding:80px 20px; }
  .cp-hero__title{ font-size:40px; }
  .cp-hero__subtitle{ font-size:20px; }
  .cp-hero__description{ font-size:16px; }
  .cp-features__grid,
  .cp-categories__grid{ grid-template-columns:1fr; }

  .cp-language-switcher{
    margin-left: 12px;
  }

  .cp-lang-toggle{
    padding: 6px 12px;
    font-size: 14px;
  }

  .cp-lang-name{
    display: none; /* Hide language name on mobile */
  }

  .cp-lang-dropdown{
    min-width: 160px;
  }
}

/* === FOOTER STYLING === */
.site-footer {
  background: var(--cp-green-950) !important;
  background-image: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M30 12c-3 0-5 2-5 5v9c0 2-2 3-3 3s-3-1-3-3v-9c0-5 3-8 8-8s8 3 8 8v9c0 2-2 3-3 3s-3-1-3-3v-9c0-3-2-5-5-5z" stroke="%2375BA2D" stroke-width="1.5" fill="none" opacity="0.08"/></svg>') !important;
  background-size: 60px 60px !important;
  color: var(--cp-cream) !important;
  padding: 60px 20px 30px !important;
  margin-top: 80px;
  position: relative;
}

.footer-widgets {
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-widget-area {
  color: var(--cp-cream);
}

.footer-widget-area h2,
.footer-widget-area h3 {
  color: var(--cp-green-500) !important;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-widget-area ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widget-area li {
  margin-bottom: 12px;
}

.footer-widget-area a {
  color: var(--cp-cream) !important;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-widget-area a:hover {
  color: var(--cp-green-500) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(251, 252, 247, 0.2);
  padding-top: 30px;
  text-align: center;
}

.site-info {
  color: rgba(251, 252, 247, 0.8);
  font-size: 14px;
}

.site-info a {
  color: var(--cp-green-500) !important;
  text-decoration: none;
  font-weight: 600;
}

.site-info a:hover {
  color: var(--cp-cream) !important;
}

@media (max-width: 900px) {
  .footer-widgets-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .site-footer {
    margin-top: 60px;
    padding: 40px 20px 20px !important;
  }
}

/* === HOMEPAGE FIXES === */

/* FIX 1: Hide the annoying 3rem blank spacer between hero and "Why Choose" */
/* More aggressive selectors - try multiple approaches */
.wp-block-spacer[style*="height:3rem"] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
}

/* Backup selectors */
body.home .entry-content .wp-block-spacer,
body.page-id-30 .entry-content .wp-block-spacer {
  display: none !important;
}

/* FIX 2: Dark background for "Why Choose CannaPeace?" section */
/* Override .cp-features white background with dark green */
body.home .cp-features,
body.page-id-30 .cp-features {
  background: var(--cp-green-950) !important;
  padding: 100px 32px !important;
  margin-top: 0 !important; /* Remove any top margin */
}

/* FIX 3: Make "Why Choose CannaPeace?" heading dark too */
/* The heading is OUTSIDE the .cp-features section, so it needs its own dark styling */
body.home .entry-content > .wp-block-heading.has-text-align-center,
body.page-id-30 .entry-content > .wp-block-heading.has-text-align-center {
  background: var(--cp-green-950) !important;
  color: var(--cp-cream) !important;
  margin: 0 !important;
  padding: 60px 32px 20px 32px !important;
  width: 100% !important;
}

/* Make section title white on dark background */
body.home .cp-section-title,
body.page-id-30 .cp-section-title {
  color: var(--cp-cream) !important;
}

/* Make feature titles lime green on dark background */
body.home .cp-feature h3,
body.page-id-30 .cp-feature h3 {
  color: var(--cp-green-500) !important;
}

/* Make feature text cream/white on dark background */
body.home .cp-feature p,
body.page-id-30 .cp-feature p {
  color: rgba(251, 252, 247, 0.85) !important;
}

/* ===== CRITICAL FIXES: BLANK AREAS (2026-06-26) ===== */

/* FIX 1: Hide the blank white block between hero and "Why Choose" */
.wp-block-group.has-custom-color-1-background-color,
body.home .entry-content .wp-block-group.has-custom-color-1-background-color,
body.page-id-30 .entry-content .wp-block-group.has-custom-color-1-background-color {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  visibility: hidden !important;
  overflow: hidden !important;
}

/* FIX 2: Make "Why Choose" section columns truly full width */
body.home .entry-content .wp-block-heading + .wp-block-columns,
body.page-id-30 .entry-content .wp-block-heading + .wp-block-columns,
body.home .entry-content .wp-block-heading.has-text-align-center + .wp-block-columns,
body.page-id-30 .entry-content .wp-block-heading.has-text-align-center + .wp-block-columns {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
  margin-right: calc(-50vw + 50%) !important;
  box-sizing: border-box !important;
  position: relative !important;
  left: 0 !important;
  right: 0 !important;
}

/* FIX 3: Ensure parent containers don't constrain width */
body.home .entry-content,
body.home .site-content,
body.page-id-30 .entry-content,
body.page-id-30 .site-content {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* FIX 4: Hide any problematic spacer blocks */
body.home .entry-content .wp-block-spacer[style*="height:3rem"],
body.home .entry-content .wp-block-spacer[style*="height:6rem"],
body.home .entry-content .wp-block-spacer[style*="height:10rem"],
body.home .entry-content .wp-block-spacer[style*="height:15rem"],
body.page-id-30 .entry-content .wp-block-spacer[style*="height:3rem"],
body.page-id-30 .entry-content .wp-block-spacer[style*="height:6rem"],
body.page-id-30 .entry-content .wp-block-spacer[style*="height:10rem"],
body.page-id-30 .entry-content .wp-block-spacer[style*="height:15rem"] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* FIX 5: Hide entry header on homepage */
body.home .entry-header,
body.page-id-30 .entry-header {
  display: none !important;
}

/* FIX 6: Remove white gaps between sections */
body.home .entry-content > *,
body.page-id-30 .entry-content > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* FIX 7: Remove padding from sections that create white gaps */
body.home .wp-block-group,
body.page-id-30 .wp-block-group {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* FIX 8: Make sure footer connects to last section */
body.home .site-content,
body.page-id-30 .site-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* FIX 9: Remove any white space before footer */
body.home .entry-content,
body.page-id-30 .entry-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* ===== NUCLEAR OPTION: DEFINITIVE FIX FOR WHITE PANELS (2026-06-27) ===== */
/* Based on comprehensive Playwright investigation - this WILL work */

/* Set dark background on entire content area to prevent ANY white showing */
body.page-id-30 #content,
body.page-id-30 .site-content,
body.page-id-30 .entry-content {
  background-color: #022d23 !important; /* Dark green background */
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide the unwanted "Welcome to CannaPeace" block that creates confusion */
body.page-id-30 .entry-content > .wp-block-group.has-custom-color-1-background-color {
  display: none !important;
  height: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
}

/* Hide ALL spacer blocks that create white gaps */
body.page-id-30 .entry-content > .wp-block-spacer,
body.page-id-30 .entry-content .wp-block-spacer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Make "Why Choose CannaPeace?" heading have dark background and proper spacing */
body.page-id-30 .entry-content > h2.wp-block-heading,
body.page-id-30 .entry-content > .wp-block-heading {
  background-color: #022d23 !important;
  color: white !important;
  margin: 0 !important;
  padding: 60px 20px 20px 20px !important;
  width: 100% !important;
}

/* Make feature columns have dark background and connect seamlessly */
body.page-id-30 .entry-content > .wp-block-columns {
  background-color: #022d23 !important;
  margin: 0 !important;
  padding: 40px 20px 80px 20px !important;
  width: 100% !important;
}

/* Ensure individual columns maintain proper spacing */
body.page-id-30 .wp-block-column {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  padding: 32px 24px !important;
  margin: 0 8px !important;
}

/* Make column text readable on dark background */
body.page-id-30 .wp-block-column h3,
body.page-id-30 .wp-block-column p {
  color: rgba(251, 252, 247, 0.95) !important;
}

/* Remove margin from hero section to reduce top gap */
body.page-id-30 .hero-section {
  margin-bottom: 0 !important;
}

/* Ensure container doesn't add white space */
body.page-id-30 .container {
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Make article transparent so background shows through */
body.page-id-30 article {
  background-color: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Fix remaining white gap below feature columns */
body.page-id-30 .site-footer,
body.page-id-30 footer.site-footer {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Extend dark background to cover any remaining gaps */
body.page-id-30 #page,
body.page-id-30 .site {
  background-color: #022d23 !important;
}

/* CRITICAL: Remove min-height constraint that creates 171px gap before footer */
body.page-id-30 .site-content,
body.page-id-30 #content {
  min-height: 0 !important;
  height: auto !important;
}

/* Force article to hug its content */
body.page-id-30 article {
  min-height: 0 !important;
  height: auto !important;
}
