/* Shared, lightweight feedback. Content stays visible without JavaScript. */
body.ecoalga-site{
  --eco-ease:cubic-bezier(.22,.61,.36,1);
  --eco-quick:180ms;
  --eco-smooth:320ms;
  --eco-shadow:0 14px 32px -18px #173c2b45;
}
body.ecoalga-site .site-header{transition:box-shadow var(--eco-smooth) var(--eco-ease)}
body.ecoalga-site .site-header.is-scrolled{box-shadow:0 8px 24px #09271b1c}

/* Floating cards retain their original colours and dimensions. */
body.ecoalga-site :is(
  .mechanism-grid>article,.pack-grid>article,.use-card,.origin-steps>article,
  .composition-grid>article,.boundary-grid>article,.about-next a,
  .program-grid>article,.special-programs>div>article,.method-cards>article,
  .application-method-grid>article,.generic-problems article,
  .stage-photo-timeline>article,.use-group>div>a,.romania-card,
  .woocommerce ul.products li.product,.ecoalga-woocommerce ul.products li.product
){
  transition:transform var(--eco-smooth) var(--eco-ease),
    box-shadow var(--eco-smooth) var(--eco-ease),
    border-color var(--eco-smooth) ease,background-color var(--eco-smooth) ease;
}
body.ecoalga-site :is(.pack-product-image,.use-card-image,.origin-steps>article>img,
  .woocommerce ul.products li.product img,.ecoalga-woocommerce ul.products li.product img){
  transition:transform 450ms var(--eco-ease);
}
body.ecoalga-site :is(.crop-pills a,.faq-list details,.about-role-grid article,
  .instruction-grid article,.uses-mega a,.mobile-menu div a){
  transition:background-color var(--eco-quick) ease,border-color var(--eco-quick) ease,
    box-shadow var(--eco-quick) ease,color var(--eco-quick) ease;
}
body.ecoalga-site .crop-pills a span{transition:transform var(--eco-smooth) var(--eco-ease)}
body.ecoalga-site :is(.button,.shop-pill,.text-link,.ec-shop,.ec-calculate,.ff-btn-submit){
  transition:transform var(--eco-quick) var(--eco-ease),box-shadow var(--eco-quick) ease,
    background-color var(--eco-quick) ease,color var(--eco-quick) ease,border-color var(--eco-quick) ease;
}
body.ecoalga-site :is(.pack-link,.section-heading>a,footer a:not(.logo)){
  text-decoration:underline;text-decoration-color:transparent;text-underline-offset:5px;
  transition:color var(--eco-quick) ease,text-decoration-color var(--eco-quick) ease;
}

/* A calm underline connects navigation hover with the rest of the site. */
body.ecoalga-site .site-header :is(.header-inner>nav>a,.ecoalga-navigation>li>a,.header-actions>a:not(.shop-pill)){
  background-image:linear-gradient(#d8e7b5,#d8e7b5);
  background-size:0% 1px;background-position:0 100%;background-repeat:no-repeat;
  transition:background-size var(--eco-smooth) var(--eco-ease),color var(--eco-quick) ease;
}
body.ecoalga-site .site-header .header-inner>nav .ecoalga-navigation>li>a{color:#fff}

@media(hover:hover) and (pointer:fine){
  body.ecoalga-site :is(.mechanism-grid>article,.pack-grid>article,.use-card,
    .composition-grid>article,.boundary-grid>article,.about-next a,.program-grid>article,
    .special-programs>div>article,.generic-problems article,.stage-photo-timeline>article,
    .use-group>div>a,.romania-card,.woocommerce ul.products li.product,
    .ecoalga-woocommerce ul.products li.product):hover{
    transform:translateY(-4px);box-shadow:var(--eco-shadow);border-color:#9fb78b;
  }
  body.ecoalga-site :is(.origin-steps>article,.application-method-grid>article,.method-cards>article):hover{
    transform:translateY(-3px);border-color:#d8e7b580;box-shadow:0 14px 28px -18px #0006;
  }
  body.ecoalga-site .pack-grid>article:hover .pack-product-image,
  body.ecoalga-site .use-card:hover .use-card-image,
  body.ecoalga-site .origin-steps>article:hover>img,
  body.ecoalga-site :is(.woocommerce,.ecoalga-woocommerce) ul.products li.product:hover img{
    transform:scale(1.025);
  }
  body.ecoalga-site .crop-pills a:hover{background:#eaf1db;border-color:#9fb78b;box-shadow:0 5px 16px #173c2b0c}
  body.ecoalga-site .crop-pills a:hover span{transform:translateX(4px)}
  body.ecoalga-site :is(.about-role-grid article,.instruction-grid article):hover{box-shadow:inset 0 3px #8ca867;background-color:#e7edd8}
  body.ecoalga-site .faq-list details:hover{background:#f3f5eb}
  body.ecoalga-site :is(.button,.shop-pill,.text-link,.ec-shop,.ec-calculate,.ff-btn-submit):not(:disabled):not(.disabled):hover{
    transform:translateY(-2px);box-shadow:0 7px 18px #173c2b20;
  }
  body.ecoalga-site :is(.button.primary,.ec-calculate,.text-link,.ff-btn-submit):not(:disabled):hover{background:#286044}
  body.ecoalga-site :is(.button.pale,.shop-pill):hover{background:#deedc0}
  body.ecoalga-site .button.outline-light:hover{background:#ffffff14;border-color:#e6efd0}
  body.ecoalga-site :is(.pack-link,.section-heading>a,footer a:not(.logo)):hover{text-decoration-color:currentColor}
  body.ecoalga-site .site-header :is(.header-inner>nav>a,.ecoalga-navigation>li>a,.header-actions>a:not(.shop-pill)):hover{background-size:100% 1px}
  body.ecoalga-site :is(.uses-mega a,.mobile-menu div a):hover{color:#1f6b42;background-color:#edf3e3}
}

/* Keyboard feedback is not dependent on hover or movement. */
body.ecoalga-site :is(a,button,summary,input,select,textarea):focus-visible{
  outline:3px solid #87a65c;outline-offset:4px;
}
body.ecoalga-site :is(.pack-grid>article,.use-card,.about-next a,.use-group>div>a,.woocommerce ul.products li.product):focus-within{
  border-color:#87a65c;box-shadow:0 0 0 2px #87a65c33;
}
body.ecoalga-site :is(.button,.shop-pill,.text-link,.ec-shop,.ec-calculate,.ff-btn-submit):not(:disabled):active{
  transform:translateY(0);box-shadow:inset 0 2px 5px #173c2b26;
}
body.ecoalga-site :is(input.input-text,textarea,select){transition:border-color var(--eco-quick) ease,box-shadow var(--eco-quick) ease}
body.ecoalga-site .faq-list summary{cursor:pointer}

@media(hover:none),(pointer:coarse){
  body.ecoalga-site :is(.button,.use-card-image,.mechanism-grid>article):hover{transform:none}
}
@media(prefers-reduced-motion:reduce){
  html.ecoalga-document{scroll-behavior:auto!important}
  body.ecoalga-site *,body.ecoalga-site *::before,body.ecoalga-site *::after{transition:none!important;animation:none!important}
  body.ecoalga-site :is(.button,.shop-pill,.text-link,.ec-shop,.ec-calculate,.ff-btn-submit,
    .mechanism-grid>article,.pack-grid>article,.use-card,.origin-steps>article,
    .composition-grid>article,.boundary-grid>article,.about-next a,.program-grid>article,
    .special-programs>div>article,.method-cards>article,.application-method-grid>article,
    .generic-problems article,.stage-photo-timeline>article,.use-group>div>a,.romania-card,
    .woocommerce ul.products li.product,.ecoalga-woocommerce ul.products li.product,
    .pack-product-image,.use-card-image,.origin-steps>article>img,
    .woocommerce ul.products li.product img,.ecoalga-woocommerce ul.products li.product img,
    .crop-pills a span):hover{transform:none!important}
  body.ecoalga-site :is(.pack-grid>article:hover .pack-product-image,.use-card:hover .use-card-image,
    .origin-steps>article:hover>img,.woocommerce ul.products li.product:hover img,
    .ecoalga-woocommerce ul.products li.product:hover img,.crop-pills a:hover span){transform:none!important}
}
