/* Whiffle isobar presets — Vincent's per-section values from his sections.css.
   Elementor: give the section container the CSS classes "has-isobars has-isobars--{preset}".
   The seed (which weather pattern is drawn) is set per preset in whiffle-iso-hero.php. */

/* "Why Whiffle", the light top part: muted Blue/200 */
.has-isobars.has-isobars--why {
  --isobar: 186, 193, 251;
  --isobar-alpha: .55;
  --fade-x: 70%; --fade-y: 45%; --fade-w: 75%; --fade-h: 110%;
}

/* "Have a weather-driven challenge?" CTA on dark blue: Blue/200, subtle */
.has-isobars.has-isobars--cta {
  --isobar: 186, 193, 251;
  --isobar-alpha: .3;
  --fade-x: 50%; --fade-y: 50%; --fade-w: 75%; --fade-h: 140%;
}

/* Product hero on light grey (Whiffle Wind & Atlas): neutral-200 at full opacity */
.has-isobars.has-isobars--product-hero {
  --isobar: 224, 225, 233;
  --isobar-alpha: 1;
  --fade-x: 50%; --fade-y: 35%; --fade-w: 110%; --fade-h: 110%;
}

@media (max-width: 959px) {
  .has-isobars.has-isobars--why { --fade-x: 50%; --fade-y: 40%; --fade-w: 110%; --fade-h: 70%; }
  .has-isobars.has-isobars--cta { --fade-w: 120%; --fade-h: 110%; }
  .has-isobars.has-isobars--product-hero { --fade-w: 140%; --fade-h: 90%; }
}

/* The site's static isobars (kit CSS G3, class "wh-isobars", drawn with ::after) make way once the
   animated layer is in place. Without JavaScript, and in the Elementor editor, the static ones stay. */
.e-con.wh-isobars:has(> .isobars)::after {
  content: none;
}

/* Sections that get the animated isobars automatically (every "wh-isobars" section) may hold
   Elementor elements positioned absolute or fixed; isobars.css would make every child relative. */
.has-isobars > .elementor-element.elementor-absolute { position: absolute; }
.has-isobars > .elementor-element.elementor-fixed { position: fixed; }

/* The animated layer follows rounded corners (e.g. the purple "special content" boxes),
   like the static isobars do. */
.has-isobars > .isobars { border-radius: inherit; overflow: hidden; }
