/*
Theme Name: Eco-Balkan
Theme URI: 
Author: Eco
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: eco-balkan
Tags: 
*/

/* * NOTE: For modern block themes like Twenty Twenty-Five, it is highly 
 * recommended to manage global styles via theme.json.
 * Use this file for highly specific overrides or custom utility classes.
 */
html {
  scroll-padding-top: 100px; /* Remember to adjust 100px to your actual header height */
  scroll-behavior: smooth; 
} 

/* ==========================================================================
   Global & Layout Fixes
   ========================================================================== */

/* 1. Fix Gutenberg template wrapper preventing position: sticky */
header:has(>.is-position-sticky), 
.wp-block-template-part:has(>.is-position-sticky) {
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Push the sticky header down slightly when the WP admin bar is present */
.admin-bar header:has(>.is-position-sticky),
.admin-bar.wp-block-template-part:has(>.is-position-sticky) {
    top: 32px;
}

/* 2. Prevent WordPress global wrapper divs from breaking position: sticky 
   (Note: overflow-x: clip on html/body was removed as it breaks sticky positioning) */
.wp-site-blocks {
    overflow: visible!important;
}


/* ==========================================================================
   Hero Call-to-Action Component (Strict BEM)
   ========================================================================== */

.hero-cta {
    background-color: var(--wp--preset--color--base);
    padding-top: var(--wp--preset--spacing--80);
    padding-bottom: var(--wp--preset--spacing--80);
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-cta__headline {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--xx-large);
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--30);
}

.hero-cta__description {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--large);
    max-width: 40rem;
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--50);
}

.hero-cta__actions {
    display: flex;
    gap: var(--wp--preset--spacing--30);
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta__button {
    background-color: var(--wp--preset--color--primary);
    color: var(--wp--preset--color--base);
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 700;
    padding-top: var(--wp--preset--spacing--20);
    padding-bottom: var(--wp--preset--spacing--20);
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
    border-radius: 0.5rem;
    text-decoration: none;
    border: 0.125rem solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.hero-cta__button:hover,
.hero-cta__button:focus {
    background-color: transparent;
    color: var(--wp--preset--color--primary);
    border-color: var(--wp--preset--color--primary);
}

.hero-cta__button--secondary {
    background-color: transparent;
    color: var(--wp--preset--color--tertiary);
    border-color: var(--wp--preset--color--tertiary);
}

.hero-cta__button--secondary:hover,
.hero-cta__button--secondary:focus {
    background-color: var(--wp--preset--color--tertiary);
    color: var(--wp--preset--color--base);
}


/* ==========================================================================
   Services Bento Grid Component (Strict BEM)
   ========================================================================== */

.bento-grid {
    background-color: var(--wp--preset--color--base);
    padding-top: var(--wp--preset--spacing--80);
    padding-bottom: var(--wp--preset--spacing--80);
    padding-left: var(--wp--preset--spacing--40);
    padding-right: var(--wp--preset--spacing--40);
}

.bento-grid__layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: var(--wp--preset--spacing--40);
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

.bento-grid__item {
    background-color: var(--wp--preset--color--surface);
    padding: var(--wp--preset--spacing--40);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    border: 0.125rem solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-grid__item:hover {
    transform: translateY(-0.25rem);
    border-color: var(--wp--preset--color--secondary);
}

.bento-grid__item--featured {
    grid-column: 1 / -1;
    background-color: var(--wp--preset--color--secondary);
    flex-direction: row;
    align-items: center;
    gap: var(--wp--preset--spacing--40);
}

.bento-grid__icon {
    color: var(--wp--preset--color--primary);
    font-size: var(--wp--preset--font-size--large);
    margin-bottom: var(--wp--preset--spacing--30);
}

.bento-grid__icon--featured {
    color: var(--wp--preset--color--base);
    font-size: var(--wp--preset--font-size--xx-large);
    margin-bottom: 0;
}

.bento-grid__title {
    color: var(--wp--preset--color--primary);
    font-size: var(--wp--preset--font-size--large);
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--20);
}

.bento-grid__title--featured {
    color: var(--wp--preset--color--base);
    font-size: var(--wp--preset--font-size--x-large);
}

.bento-grid__excerpt {
    color: var(--wp--preset--color--contrast);
    font-size: var(--wp--preset--font-size--medium);
    margin-top: 0;
    margin-bottom: var(--wp--preset--spacing--40);
    flex-grow: 1;
}

.bento-grid__excerpt--featured {
    color: var(--wp--preset--color--base);
}

.bento-grid__link {
    color: var(--wp--preset--color--tertiary);
    font-size: var(--wp--preset--font-size--small);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    align-self: flex-start;
}

.bento-grid__link:hover,
.bento-grid__link:focus {
    text-decoration: underline;
}

.bento-grid__link--featured {
    color: var(--wp--preset--color--base);
}
.bg-magenta-node {
   background-color: var(--wp--preset--color--base, #082427);
   background-image: radial-gradient(circle at 100% 100%, rgba(255, 20, 147, 0.1) 0%, transparent 40%), radial-gradient(circle at 0% 0%, rgba(72, 229, 194, 0.1) 0%, transparent 40%);
 }
.bg-magenta-node {
   background-color: var(--wp--preset--color--base, #082427);
   background-image: radial-gradient(circle at 100% 100%, rgba(255, 20, 147, 0.1) 0%, transparent 40%), radial-gradient(circle at 0% 0%, rgba(72, 229, 194, 0.1) 0%, transparent 40%);
   /* Fix 1: Force explicit bounds so Firefox doesn't fail the rendering math */
   background-size: 100% 100%;
   background-repeat: no-repeat;

   /* Fix 2: Force Hardware Acceleration / Repaint */
   transform: translateZ(0);
   will-change: transform, background;
 }
.bg-eco-glow {
   background-color: var(--wp--preset--color--base, #082427);
   background-image: radial-gradient(circle at 20% 50%, rgba(72, 229, 194, 0.082) 0%, transparent 50%), radial-gradient(circle at 80% 90%, rgba(242, 201, 76, 0.063) 0%, transparent 50%);
   /* Fix 1: Force explicit bounds so Firefox doesn't fail the rendering math */
   background-size: 100% 100%;
   background-repeat: no-repeat;

   /* Fix 2: Force Hardware Acceleration / Repaint */
   transform: translateZ(0);
   will-change: transform, background;
 }
.bg-blueprint-grid {
   background-color: var(--wp--preset--color--surface, #113a3e);
   background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
   background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
   /* Fix 2: Force Hardware Acceleration / Repaint */
   transform: translateZ(0);
   will-change: transform, background;
 }
.bg-eco-circuit {
   background-color: var(--wp--preset--color--base, #082427);
   background-image: radial-gradient(circle at 50% 0%, rgba(72, 229, 194, 0.082) 0%, transparent 50%), linear-gradient(0deg, rgb(17, 58, 62) 1px, transparent 1px), linear-gradient(90deg, rgb(17, 58, 62) 1px, transparent 1px);
   background-size: 100% 100%, 40px 40px, 40px 40px;
   /* Fix 2: Force Hardware Acceleration / Repaint */
   transform: translateZ(0);
   will-change: transform, background;
 }
.bg-neon-accent {
   background-color: var(--wp--preset--color--surface, #113a3e);
   background-image: linear-gradient(to right, rgb(72, 229, 194), rgb(242, 201, 76), rgb(255, 20, 147));
   background-size: 100% 4px;
   background-position: center bottom;
   background-repeat: no-repeat;
   /* Fix 2: Force Hardware Acceleration / Repaint */
   transform: translateZ(0);
   will-change: transform, background;
 }
.btn-solid-primary.wp-block-button__link, .btn-solid-primary.wp-element-button, .btn-solid-primary .wp-block-button__link, .btn-solid-primary .wp-element-button, button.btn-solid-primary {
  background-color: var(--wp--preset--color--primary, #48e5c2) !important;
  color: var(--wp--preset--color--base, #082427) !important;
  border: 2px solid var(--wp--preset--color--primary, #48e5c2) !important;
  border-radius: 4px !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}
.btn-solid-primary.wp-block-button__link:hover, .btn-solid-primary.wp-element-button:hover, .btn-solid-primary:hover .wp-block-button__link, .btn-solid-primary:hover .wp-element-button, button.btn-solid-primary:hover,
.btn-solid-primary.wp-block-button__link:focus, .btn-solid-primary.wp-element-button:focus, .btn-solid-primary:focus .wp-block-button__link, .btn-solid-primary:focus .wp-element-button, button.btn-solid-primary:focus {
  background-color: transparent !important;
  color: var(--wp--preset--color--primary, #48e5c2) !important;
}
.btn-underline-secondary.wp-block-button__link, .btn-underline-secondary.wp-element-button, .btn-underline-secondary .wp-block-button__link, .btn-underline-secondary .wp-element-button, button.btn-underline-secondary {
  background-color: transparent !important;
  color: var(--wp--preset--color--secondary, #f2c94c) !important;
  border: none !important;
  position: relative;
  padding-bottom: 10px !important;
  text-decoration: none !important;
}
.btn-underline-secondary.wp-block-button__link::after, .btn-underline-secondary.wp-element-button::after, .btn-underline-secondary .wp-block-button__link::after, .btn-underline-secondary .wp-element-button::after, button.btn-underline-secondary::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--wp--preset--color--secondary, #f2c94c);
  transition: width 0.3s ease;
}
.btn-underline-secondary.wp-block-button__link:hover::after, .btn-underline-secondary.wp-element-button:hover::after, .btn-underline-secondary:hover .wp-block-button__link::after, .btn-underline-secondary:hover .wp-element-button::after, button.btn-underline-secondary:hover::after {
  width: 100%;
}
.btn-ghost-secondary.wp-block-button__link,.btn-ghost-secondary.wp-element-button,.btn-ghost-secondary.wp-block-button__link,.btn-ghost-secondary.wp-element-button, button.btn-ghost-secondary {
  background-color: rgba(242, 201, 76, 0.1)!important;
  color: var(--wp--preset--color--secondary, #f2c94c)!important;
  border: 1px solid rgba(242, 201, 76, 0.2)!important;
  border-radius: 6px!important;
  transition: all 0.3s ease!important;
  text-decoration: none!important;
}
.btn-ghost-secondary.wp-block-button__link:hover,.btn-ghost-secondary.wp-element-button:hover,.btn-ghost-secondary:hover.wp-block-button__link,.btn-ghost-secondary:hover.wp-element-button, button.btn-ghost-secondary:hover,
.btn-ghost-secondary.wp-block-button__link:focus,.btn-ghost-secondary.wp-element-button:focus,.btn-ghost-secondary:focus.wp-block-button__link,.btn-ghost-secondary:focus.wp-element-button, button.btn-ghost-secondary:focus {
  background-color: rgba(242, 201, 76, 0.25)!important;
  border-color: var(--wp--preset--color--secondary, #f2c94c)!important;
}
.eco-custom-shadow {
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6)!important;
    border-radius: 16px!important;
    border: 1px solid rgba(72, 229, 194, 0.15); /* Optional: Adds the subtle cyan border too */
}
/* ==========================================================================
   State-of-the-Art CSS Scroll Snap Slider
   ========================================================================== */

/* 1. Master Wrapper (Holds Arrows + Slider Track) */
.eco-slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    /* Prevent wrapper from hiding drop shadows */
    padding: 1rem 0; 
}

/* 2. The Scrolling Track */
.eco-package-slider {
    display: flex!important;
    flex-wrap: nowrap!important;
    
    /* FIX: Force all cards to stretch to the exact same height */
    align-items: stretch!important; 
    
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    
    /* Removed scroll-padding, as true center padding handles this now */
    
    /* Take up remaining space between the arrows */
    flex: 1; 
    
    /* FIX: Apply a transparent gradient mask to the edges so cards fade out smoothly instead of hard-clipping */
    -webkit-mask-image: linear-gradient(to right, transparent, black 4rem, black calc(100% - 4rem), transparent);
    mask-image: linear-gradient(to right, transparent, black 4rem, black calc(100% - 4rem), transparent);
    
    gap: 2rem;
    
    /* FIX: Mathematically perfect centering for 650px cards on Desktop! 
       (50% of the screen minus half of the card width [325px]) */
    padding: 3rem calc(50% - 325px)!important; 
    
    /* Custom Scrollbar to maintain navigation cues */
    scrollbar-color: #48e5c2 rgba(17, 58, 62, 0.5); 
    scrollbar-width: thin;
}

/* Webkit Scrollbar Styling */
.eco-package-slider::-webkit-scrollbar {
    height: 8px;
}
.eco-package-slider::-webkit-scrollbar-track {
    background: rgba(17, 58, 62, 0.5); 
    border-radius: 8px;
    margin: 0 2rem;
}
.eco-package-slider::-webkit-scrollbar-thumb {
    background: #48e5c2; 
    border-radius: 8px;
}

/* 3. The Individual Card Groups */
.eco-package-card {
    /* FIX: Re-enable perfect center snapping for ALL screens because the empty space allows it */
    scroll-snap-align: center!important;
    
    /* Prevent shrinking/stretching of the container width based on content */
    flex: 0 0 auto!important;
    flex-shrink: 0!important; /* Explicitly tell Flexbox NOT to shrink this */
    
    /* EXACT SIZING: Forces all cards to be exactly the same width */
    width: 650px!important; 
    max-width: 85vw!important; /* Keeps it responsive on small mobile screens */
    min-width: min(650px, 85vw)!important; /* ABSOLUTE FORCE: Prevents 3rd+ cards from collapsing */
    
    /* FIX: Ensure borders don't push outside the calculated width */
    box-sizing: border-box!important;
    
    /* FIX: Reset margins to zero so the snap mathematically aligns */
    margin: 0!important;
    
    /* FIX: Hardware acceleration prevents browsers from clipping borders during scroll */
    transform: translate3d(0, 0, 0);
    will-change: transform;
    
    /* FIX: Force card to stretch to 100% of the tallest card's height */
    height: 100%!important; 
    display: flex;
    flex-direction: column;
}

/* 4. Navigation Buttons */
.eco-slider-nav-btn {
    /* Flex-shrink prevents buttons from getting squished by the slider */
    flex-shrink: 0; 
    background-color: #113a3e;
    color: #48e5c2;
    border: 2px solid #48e5c2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    user-select: none; 
    
    /* Margin separates buttons from the track */
    margin: 0 10px; 
}

.eco-slider-nav-btn:hover {
    background-color: #48e5c2;
    color: #082427;
    box-shadow: 0 0 20px #48e5c2;
}

/* 5. Mobile Adjustments */
@media screen and (max-width: 850px) {
    /* Convert arrows to floating overlaps instead of hiding them */
  .eco-slider-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 35px; /* Slimmer for mobile to reduce overlap */
        height: 60px; /* Taller to make them easy to tap */
        font-size: 24px;
        margin: 0;
        z-index: 20;
        opacity: 0.95; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.8); 
    }
    
    /* Pin left button to the extreme edge, shape it as a flush tab */
    #slide-left {
        left: -10px; /* Push outwards to counteract theme container padding */
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
        border-left: none; /* Remove left border to look flush with the screen */
    }
    
    /* Pin right button to the extreme edge, shape it as a flush tab */
    #slide-right {
        right: -10px; /* Push outwards to counteract theme container padding */
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right: none; /* Remove right border to look flush with the screen */
    }

  .eco-package-slider {
        /* FIX: 7.5vw on the left/right exactly centers an 85vw card on the screen (100 - 85 = 15. 15 / 2 = 7.5) */
        padding: 3rem 7.5vw!important;
        width: 100%; /* Ensure track takes full width when arrows are absolute */
        
        /* FIX: Tighter mask fade for mobile screens so it doesn't blur the active card */
        -webkit-mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
        mask-image: linear-gradient(to right, transparent, black 2rem, black calc(100% - 2rem), transparent);
    }
}
/* ==========================================================================
   Native Sticky Scroll Slider (No Scroll Trapping)
   ========================================================================== */

/* 1. Master Runway */
.process-slider-container {
    position: relative;
    width: 100%;
    /* NO overflow-y hidden or scroll-snap here! Native page scroll is fully unlocked */
}

/* 2. Sticky Viewport (Created by JS) */
.process-slider-viewport {
    position: sticky;
    /* Centers the 60vh container perfectly on the screen (100 - 60 = 40 / 2 = 20) */
    top: 20vh; 
    height: 60vh;
    width: 100%;
    overflow: hidden; 
    
    /* The Gradient Mask - Pushed to 5% / 95% to make it much less aggressive */
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 5%, black 95%, transparent);
}

/* 3. The Moving Track (Created by JS) */
.process-slider-track {
    display: flex;
    flex-direction: column;
    gap: 10vh; /* Distance between cards */
    
    /* Padding is now dynamically injected by JavaScript to perfectly wrap differently sized cards! */
    
    will-change: transform;
}

/* 4. The Individual Cards */
.process-card {
    position: relative;
    /* Aesthetics */
    margin: 0!important;
    border-top: 2px solid var(--wp--preset--color--primary, #48e5c2)!important;
    border-radius: 12px;
    background-color: var(--wp--preset--color--base, #ffffff);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);

    /* CRITICAL: Ensures the flow arrow can render entirely outside the card */
    overflow: visible!important; 

    /* Resting State - Bumped opacity to 0.55 so it's less intensely dimmed */
    transform: scale(0.92);
    opacity: 0.55;
    
    /* Hardware acceleration and smooth transitions */
    will-change: transform, opacity;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 5. Active State (Triggered by JS when card hits center) */
.process-card.is-active {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* 6. Process Flow Arrows */
.process-card:not(:last-child)::after {
    content: '';
    position: absolute;
    /* Centers the arrow perfectly in the 10vh gap between cards */
    bottom: -6.5vh; 
    left: 50%;
    width: 24px;
    height: 24px;
    
    /* Create a downward pointing chevron */
    border-right: 4px solid var(--wp--preset--color--primary, #48e5c2);
    border-bottom: 4px solid var(--wp--preset--color--primary, #48e5c2);
    
    /* Initial hidden state */
    transform: translateX(-50%) translateY(-2vh) rotate(45deg);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    
    /* Prevents the arrow from capturing accidental clicks */
    pointer-events: none; 
}

/* Reveal and animate the arrow when the card is active */
.process-card.is-active:not(:last-child)::after {
    opacity: 1;
    /* Subtle downward bounce to guide the user's eye */
    animation: process-arrow-bounce 1.5s infinite ease-in-out;
    animation-delay: 0.4s; /* Wait for card to pop into focus first */
}

@keyframes process-arrow-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
    50% {
        transform: translateX(-50%) translateY(1.5vh) rotate(45deg);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .process-card {
        transform: none!important;
        opacity: 1!important;
        transition: none!important;
    }
    
  .process-card::after {
        animation: none!important;
        transform: translateX(-50%) translateY(0) rotate(45deg)!important;
    }
}
.btn-bracket-secondary.wp-block-button__link, .btn-bracket-secondary.wp-element-button, .btn-bracket-secondary .wp-block-button__link, .btn-bracket-secondary .wp-element-button, button.btn-bracket-secondary {
  background-color: transparent !important;
  color: var(--wp--preset--color--secondary, #f2c94c) !important;
  border: none !important;
  position: relative;
  transition: color 0.3s ease !important;
  text-decoration: none !important;
}
.btn-bracket-secondary.wp-block-button__link::before, .btn-bracket-secondary.wp-element-button::before, .btn-bracket-secondary .wp-block-button__link::before, .btn-bracket-secondary .wp-element-button::before, button.btn-bracket-secondary::before,
.btn-bracket-secondary.wp-block-button__link::after, .btn-bracket-secondary.wp-element-button::after, .btn-bracket-secondary .wp-block-button__link::after, .btn-bracket-secondary .wp-element-button::after, button.btn-bracket-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  width: 10px;
  height: 100%;
  border: 2px solid var(--wp--preset--color--secondary, #f2c94c);
  transition: all 0.3s ease;
}
.btn-bracket-secondary.wp-block-button__link::before, .btn-bracket-secondary.wp-element-button::before, .btn-bracket-secondary .wp-block-button__link::before, .btn-bracket-secondary .wp-element-button::before, button.btn-bracket-secondary::before { border-right: none; left: 0; }
.btn-bracket-secondary.wp-block-button__link::after, .btn-bracket-secondary.wp-element-button::after, .btn-bracket-secondary .wp-block-button__link::after, .btn-bracket-secondary .wp-element-button::after, button.btn-bracket-secondary::after { border-left: none; right: 0; }
.btn-bracket-secondary.wp-block-button__link:hover::before, .btn-bracket-secondary.wp-element-button:hover::before, .btn-bracket-secondary:hover .wp-block-button__link::before, .btn-bracket-secondary:hover .wp-element-button::before, button.btn-bracket-secondary:hover::before,
.btn-bracket-secondary.wp-block-button__link:hover::after, .btn-bracket-secondary.wp-element-button:hover::after, .btn-bracket-secondary:hover .wp-block-button__link::after, .btn-bracket-secondary:hover .wp-element-button::after, button.btn-bracket-secondary:hover::after {
  width: 50%;
  background-color: rgba(242, 201, 76, 0.1);
}
.btn-float-primary.wp-block-button__link, .btn-float-primary.wp-element-button, .btn-float-primary .wp-block-button__link, .btn-float-primary .wp-element-button, button.btn-float-primary {
  background-color: var(--wp--preset--color--surface, #113a3e) !important;
  color: var(--wp--preset--color--primary, #48e5c2) !important;
  border: none !important;
  border-radius: 50px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}
.btn-float-primary.wp-block-button__link:hover, .btn-float-primary.wp-element-button:hover, .btn-float-primary:hover .wp-block-button__link, .btn-float-primary:hover .wp-element-button, button.btn-float-primary:hover,
.btn-float-primary.wp-block-button__link:focus, .btn-float-primary.wp-element-button:focus, .btn-float-primary:focus .wp-block-button__link, .btn-float-primary:focus .wp-element-button, button.btn-float-primary:focus {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(72, 229, 194, 0.3) !important;
  background-color: var(--wp--preset--color--primary, #48e5c2) !important;
  color: var(--wp--preset--color--base, #082427) !important;
}
/* ==========================================================================
   Dynamic Floating Popup (Zero-Dependency)
   ========================================================================== */
.eco-dynamic-popup {
    position: absolute !important; /* Force absolute positioning */
    top: 0; left: 0; width: 340px;
    width: min(340px, calc(100vw - 32px));
    background-color: var(--wp--preset--color--base);
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 20, 147, 0.2);
    color: var(--wp--preset--color--contrast);
    opacity: 0; visibility: hidden; transform: translateY(-5px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 999999 !important; /* Maximum z-index to stay above sticky headers */
}
.eco-dynamic-popup.is-open {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.eco-popup-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.eco-popup-header h3 {
    margin: 0; font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--primary);
}
.eco-popup-close {
    background: none; border: none; color: var(--wp--preset--color--secondary);
    font-size: 24px; line-height: 1; cursor: pointer; padding: 0; transition: color 0.3s ease;
}
.eco-popup-close:hover { color: var(--wp--preset--color--tertiary); }
.eco-popup-body { padding: 20px; }
.eco-form-group { margin-bottom: 16px; }
.eco-form-group label {
    display: block; font-size: var(--wp--preset--font-size--small, 13px);
    margin-bottom: 6px; color: var(--wp--preset--color--secondary); font-weight: 500;
}
.eco-popup-input, .eco-popup-textarea {
    width: 100%; background-color: var(--wp--preset--color--surface);
    border: 1px solid rgba(255, 20, 147, 0.5); border-radius: 4px;
    color: var(--wp--preset--color--contrast); padding: 12px 16px;
    font-size: var(--wp--preset--font-size--small, 14px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-sizing: border-box; font-family: inherit;
}
.eco-popup-input::placeholder, .eco-popup-textarea::placeholder { color: rgba(255, 255, 255, 0.5); }
.eco-popup-input:focus, .eco-popup-textarea:focus {
    outline: none; border-color: var(--wp--preset--color--primary);
    box-shadow: 0 0 0 3px rgba(72, 229, 194, 0.2);
}
.eco-popup-textarea { resize: vertical; min-height: 100px; }
.btn-solid-primary:disabled { opacity: 0.7; cursor: not-allowed; }
.eco-popup-success {
    display: none; text-align: center; padding: 20px 0;
    animation: ecoFadeIn 0.4s ease forwards;
}
.eco-popup-success svg { width: 48px; height: 48px; color: var(--wp--preset--color--primary); margin-bottom: 12px; }
.eco-popup-success p { margin: 0; color: var(--wp--preset--color--contrast); font-weight: 500; }
@keyframes ecoFadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

