/* ============================================================
   WHITE BOX KILL — HEADER LOGO
   WordPress default styles inject white backgrounds on logo
   anchor/image elements. These rules nuke all sources.
   ============================================================ */
a.site-logo,
.site-logo,
.header-left a,
.header-left img,
.custom-logo-link,
.custom-logo-link img,
.site-logo img {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Also kill any white background on the header-left container */
.header-left {
    background: transparent !important;
    background-color: transparent !important;
}

/* ============================================================
   GLASSMORPHISM & BRAND SIGNATURE (COMPONENT 1)
   ============================================================ */
body a.mocion-signature-btn,
body .mocion-signature-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 999999 !important;
    background: rgba(0, 123, 255, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #FFFFFF !important;
    padding: 10px 18px !important;
    border-radius: 9999px !important;
    text-decoration: none !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: bold !important;
    font-size: 0.8rem !important;
    box-shadow: 0 8px 32px 0 rgba(0, 123, 255, 0.37) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    opacity: 0.85 !important;
}

.mocion-signature-btn:hover {
    transform: translateY(-3px) !important;
    background: rgba(0, 123, 255, 0.7) !important;
    box-shadow: 0 12px 40px 0 rgba(0, 123, 255, 0.5) !important;
    opacity: 1 !important;
}

/* On mobile: move it well above the sticky SHOP NOW bar (80px) + safe gap */
@media (max-width: 768px) {
    body a.mocion-signature-btn,
    body .mocion-signature-btn {
        bottom: 100px !important;
        right: 12px !important;
        padding: 8px 14px !important;
        font-size: 0.7rem !important;
        z-index: 100 !important; /* Below SHOP NOW (z-90 = 90) — won't obscure primary CTA */
    }
}

/* ============================================================
   FLEXIBLE MOBILE HEADER (COMPONENT 2) — UNIVERSAL FIX
   ============================================================ */

/* 
   The mobile header has 3 rows of nav links (~300px total height).
   We use a CSS variable so it can be updated in one place.
   Applied universally to catch all page templates.
*/
:root {
    --mobile-header-offset: 300px;
}

/* Make the header fixed so it doesn't push content */
header.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
}

@media (max-width: 767px) {
    :root {
        --mobile-header-offset: 310px;
    }

    header.site-header {
        background-color: #000000 !important;
    }

    /* ---- UNIVERSAL CONTENT OFFSET ---- 
       Targets every common WordPress content wrapper AND
       any direct children that hold page content.
       This ensures NO template is missed. */
    body > div,
    body > main,
    #page,
    #content,
    #primary,
    main#main,
    div.site-content,
    div[class*="page-template"] > *:first-child,
    section.showroom-content,
    div.shop-container,
    .relative.z-10.min-h-screen,
    /* About Us and other custom template wrappers */
    div[style*="min-height: 100vh"],
    div[style*="min-height:100vh"],
    .page-template-page-about #page,
    .page-template-page-about #content,
    .page-template-page-about main,
    .page-template-template-showroom main#main {
        padding-top: var(--mobile-header-offset) !important;
    }

    /* Tighten Hero Section — offset is handled by wrapper above */
    .hero-section {
        min-height: 50vh !important;
        padding-top: 0 !important;
        padding-bottom: 2rem !important;
    }

    .hero-description {
        margin-bottom: 2rem !important;
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }

    .trust-indicator {
        padding: 1rem 0 !important;
        margin-top: -1rem !important;
    }

    /* Reduce gap between Hero and Showroom (Logo area) */
    #shop.showroom-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .hero-content div[style*="margin-bottom: 5rem"] {
        margin-bottom: 2rem !important;
    }
}

/* Desktop — reset any mobile-only overrides */
@media (min-width: 768px) {
    :root {
        --mobile-header-offset: 100px;
    }
}

/* ============================================================
   GREEN PULSE MAGAZINE (COMPONENT 3)
   ============================================================ */
/* 3-column desktop grid for The Green Pulse */
.pulse-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
}

/* 2-col on tablet */
@media (max-width: 1200px) and (min-width: 768px) {
    .pulse-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 1-col on mobile */
@media (max-width: 767px) {
    .pulse-grid {
        grid-template-columns: 1fr !important;
    }
}

.pulse-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 1.5rem !important;
    padding: 2.5rem !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

.pulse-card:hover {
    border-color: #39FF14 !important;
    background: rgba(255, 255, 255, 0.05) !important;
    transform: translateY(-8px) !important;
}

.pulse-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 2.25rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    color: #FFFFFF !important;
}

.pulse-meta {
    font-family: 'Inter', sans-serif !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    letter-spacing: 0.1em !important;
    font-size: 0.8rem !important;
    color: #39FF14 !important;
    margin-bottom: 0.5rem !important;
}

.pulse-excerpt {
    font-family: 'Inter', sans-serif !important;
    color: #d1d5db !important;
    line-height: 1.7 !important;
    margin-bottom: 2rem !important;
    flex-grow: 1 !important;
}

.pulse-excerpt ul {
    margin-left: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.pulse-excerpt li {
    margin-bottom: 0.5rem !important;
    color: #fff !important;
}

.pulse-button {
    display: inline-block !important;
    color: #000 !important;
    background: #39FF14 !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 999px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    align-self: flex-start !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.pulse-button:hover {
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.6) !important;
    transform: scale(1.05) !important;
}

/* ============================================================
   SEO & TYPOGRAPHY
   ============================================================ */
.mocion-signature-line {
    font-size: 0.8rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic !important;
    margin-top: 1.5rem !important;
}

/* ============================================================
   GS LOGO SLIDER — UNIFORM PRODUCT CARD LAYOUT (COMPONENT 5)
   ============================================================ */

/* Wrapper for each logo/image item */
.gs-logo-slider .gs-logo-item,
.gslogo-slider-wrap .gs-logo-item,
.slick-slide .gs-logo-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.75rem !important;
}

/* The image container — acts as the 'product card' */
.gs-logo-slider .gs-logo-item a,
.gslogo-slider-wrap .gs-logo-item a,
.slick-slide .gs-logo-item a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 260px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 1rem !important;
    padding: 1rem !important;
    transition: border-color 0.3s ease, background 0.3s ease !important;
    overflow: hidden !important;
}

.gs-logo-slider .gs-logo-item a:hover,
.gslogo-slider-wrap .gs-logo-item a:hover,
.slick-slide .gs-logo-item a:hover {
    border-color: rgba(57, 255, 20, 0.4) !important;
    background: rgba(57, 255, 20, 0.04) !important;
}

/* Force all images to fit uniformly without stretching */
.gs-logo-slider .gs-logo-item img,
.gslogo-slider-wrap .gs-logo-item img,
.slick-slide .gs-logo-item img {
    width: 100% !important;
    height: 100% !important;
    max-height: 220px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Title/caption below image — centered */
.gs-logo-slider .gs-logo-item .gs-logo-title,
.gslogo-slider-wrap .gs-logo-item .gs-logo-title,
.slick-slide .gs-logo-item .gs-logo-title {
    margin-top: 0.75rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Mobile: bigger images */
@media (max-width: 767px) {
    .gs-logo-slider .gs-logo-item a,
    .gslogo-slider-wrap .gs-logo-item a,
    .slick-slide .gs-logo-item a {
        height: 200px !important;
    }

    .gs-logo-slider .gs-logo-item img,
    .gslogo-slider-wrap .gs-logo-item img,
    .slick-slide .gs-logo-item img {
        max-height: 160px !important;
    }
}

/* ============================================================
   ULTIMATE MEMBER — SURGICAL DEDUPLICATION (UPGRADED)
   Hides the 'ghost' fragments leaking out of the header while
   keeping the main form inside our styled card.
   ============================================================ */
.um-page .um {
    display: none !important;
}
.um-page .page-content .um,
.um-page .entry-content .um,
.um-page .glass-card .um,
.um-page .bento-card .um {
    display: block !important;
}

/* Force the signature button to the bottom-right corner */
body .mocion-signature-btn,
#page .mocion-signature-btn,
.site-content .mocion-signature-btn {
    left: auto !important;
    right: 30px !important;
}

/* Hide the duplicate title that WP sometimes renders separately */
.um-page .page-content h1.entry-title,
.um-page h1.page-title + .page-content h1.entry-title {
    display: none !important;
}

/* ============================================================
   HERO → SHOWROOM SPACING — TIGHTEN THE GAP
   Reduces the large gap between "Trusted by 1k+ Stoners" and
   the CannaCrazy logo / Collective Drops section below it.
   ============================================================ */
.hero-section {
    padding-bottom: 1rem !important;
}

.trust-indicator {
    margin-top: 1rem !important;
    margin-bottom: 0 !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0 !important;
}

/* ============================================================
   AUDIT FIX 1 — GLOBAL OVERFLOW KILL
   Prevents any wide carousel/grid from creating X-axis scroll
   ============================================================ */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ============================================================
   NAV MENU — BASE DESKTOP STYLES
   (replaces the removed inline style on the <ul> element)
   ============================================================ */
.main-navigation .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: center !important;
}

.main-navigation .nav-menu li {
    display: block !important;
}

/* ============================================================
   AUDIT FIX 2 — MOBILE HAMBURGER NAVIGATION
   CSS-only collapsible nav. The checkbox toggle is injected by
   header.php. On screens ≤768px the nav links collapse behind
   a hamburger icon and expand on click.
   ============================================================ */
#mobile-nav-toggle {
    display: none;
}

.hamburger-label {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    gap: 5px;
    z-index: 99999;
}

.hamburger-label span {
    display: block;
    width: 26px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animate to X when open */
#mobile-nav-toggle:checked + .hamburger-label span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#mobile-nav-toggle:checked + .hamburger-label span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
#mobile-nav-toggle:checked + .hamburger-label span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .hamburger-label {
        display: flex;
    }

    .main-navigation {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background: rgba(0, 0, 0, 0.95) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 9998 !important;
        border-top: 1px solid rgba(57,255,20,0.2) !important;
    }

    #mobile-nav-toggle:checked ~ nav.main-navigation,
    header.site-header #mobile-nav-toggle:checked ~ .main-navigation {
        max-height: 400px !important;
    }

    .main-navigation ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 1rem 1.5rem !important;
    }

    .main-navigation ul li a {
        display: block !important;
        padding: 0.85rem 0 !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        font-size: 1rem !important;
    }

    .main-navigation ul li:last-child a {
        border-bottom: none !important;
    }
}

/* ============================================================
   AUDIT FIX 3 — GS LOGO SLIDER ARROW TOUCH TARGETS
   WCAG / mobile UX: all nav arrows must be ≥ 44×44px
   ============================================================ */
.slick-prev,
.slick-next,
.gs-slider-arrow,
[class*="slider"] .slick-arrow {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

/* Ensure arrows are separated enough to avoid accidental taps */
.slick-prev {
    left: -8px !important;
}
.slick-next {
    right: -8px !important;
}

@media (max-width: 767px) {
    .slick-prev {
        left: 4px !important;
    }
    .slick-next {
        right: 4px !important;
    }
}
