/*
 * ALAN theme — upgrade layer.
 *
 * Additive overrides layered after assets/css/site.css and the per-page feature
 * styles (see functions.php, enqueued at priority 20). Sourced from the
 * externally edited site.css, curated so it does not regress later work.
 *
 * Deliberately NOT included here: careers/industrial/blogs/contact-page blocks
 * (already newer in the feature stylesheets), .get-in-touch-dialog (live class is
 * .contact-dialog), and the comparison-table / product-detail-tabs rules that
 * would revert the current behaviour.
 *
 * The header is intentionally left alone. Its sticky behaviour lives in
 * site.css and a bare `header` selector here would also match the nested
 * <header class="wp-block-group site-header">, breaking it. Do not add
 * header rules to this file.
 */

/* ------------------------------------------------------------------ *
 * A. Animated gradient buttons
 *
 * The gradient must be written inline here, NOT stored in a :root custom
 * property: var() inside an inherited custom property is substituted where
 * that property is declared, so --gradient-angle changed on the button would
 * never repaint it. --gradient-angle is @property-registered so it can
 * transition, and is also set explicitly so browsers without @property still
 * render the gradient (they just skip the animation).
 * ------------------------------------------------------------------ */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 216.56deg;
  inherits: false;
}

.button { --gradient-angle: 216.56deg; transition: background .3s ease-in-out, color .15s ease-in-out; }
.button:hover { background: linear-gradient(var(--gradient-angle), #ffdb85 4.12%, #f7b487 11.74%, #ef8f89 21.53%, #e9728b 30.24%, #e55d8c 40.03%, #e2518d 48.74%, #e24d8e 57.45%, #df4c8e 75.95%, #d74a90 87.93%, #c84792 97.72%, #b44396 105.34%, #af4298 107.52%); color: #fff; }
.button.button--primary { border-color: transparent; color: #fff; background: linear-gradient(var(--gradient-angle), #ffdb85 4.12%, #f7b487 11.74%, #ef8f89 21.53%, #e9728b 30.24%, #e55d8c 40.03%, #e2518d 48.74%, #e24d8e 57.45%, #df4c8e 75.95%, #d74a90 87.93%, #c84792 97.72%, #b44396 105.34%, #af4298 107.52%); transition: --gradient-angle .6s ease-in-out; }
.button.button--primary:hover { --gradient-angle: 146.56deg; }
/* Keep the light variants readable; they are not redeclared here so the
   generic .button:hover above would otherwise paint them with the gradient. */
.button.button--light:hover { border-color: #fff; color: var(--pink); background: #fff; }
.button.button--outline-light:hover { border-color: #fff; color: #fff; background: transparent; }

.wp-block-button.button--primary .wp-block-button__link { --gradient-angle: 216.56deg; border-color: transparent; color: #fff; background: linear-gradient(var(--gradient-angle), #ffdb85 4.12%, #f7b487 11.74%, #ef8f89 21.53%, #e9728b 30.24%, #e55d8c 40.03%, #e2518d 48.74%, #e24d8e 57.45%, #df4c8e 75.95%, #d74a90 87.93%, #c84792 97.72%, #b44396 105.34%, #af4298 107.52%); transition: --gradient-angle .6s ease-in-out; }
.wp-block-button.button--primary .wp-block-button__link:hover { --gradient-angle: 146.56deg; }
/* Hero CTA: drive its own Figma gradient (246.56deg) through the shared
   --gradient-angle animation so hover smooths to 146.56deg (rule below).
   Same stops as site.css, so the resting appearance is unchanged. */
.hero-home .wp-block-button.button--primary .wp-block-button__link { --gradient-angle: 246.56deg; background: linear-gradient(var(--gradient-angle), #ffdb85 4.12%, #f7b487 11.74%, #ef8f89 21.53%, #e9728b 30.24%, #e55d8c 40.03%, #e2518d 48.74%, #e24d8e 57.45%, #df4c8e 75.95%, #d74a90 87.93%, #c84792 97.72%, #b44396 105.34%, #af4298 107.52%); }
.hero-home .wp-block-button.button--primary .wp-block-button__link:hover { --gradient-angle: 146.56deg; }

/* ------------------------------------------------------------------ *
 * B. Category cards now live in medical/style.css (medical page only).
 * ------------------------------------------------------------------ */
<
/* ------------------------------------------------------------------ *
 * C. Hero title size
 *
 * Sized so the longest slide title ("Built with purpose, / backed by
 * principle") stays on its two lines inside the 620px text column and the
 * whole block fits the 705px-tall hero vector. Comfortaa measures 579px at
 * 56px; 60px is the hard ceiling before it wraps to four lines.
 * ------------------------------------------------------------------ */
.hero__title { font-size: clamp(2.25rem, 4vw, 4rem); }
/* @media (max-width: 720px) { .hero__title { font-size: clamp(2rem, 9vw, 4rem) ; } } */

/* ------------------------------------------------------------------ *
 * D. Hero dots positioning
 *
 * Pinned to the Figma position (y = 754px), just below the fixed-scale
 * 705px hero vector. From 1280 to 1439 the hero frame scales through
 * --hero-unit (see site.css), so the top follows it and the dots keep their
 * 1440 gap below the vector and above the band. Below 1280 the unit is not
 * defined and the 1px fallback keeps the original top. Below the desktop
 * breakpoint the vector is hidden and the hero is content-height, so the
 * dots fall back to the container bottom.
 * ------------------------------------------------------------------ */
.hero-dots { display: flex; align-items: center; gap: 1.875rem; margin: 0 0 2rem; padding: 0;     position: absolute; top: calc(754 * var(--hero-unit, 1px)); }
@media (max-width: 1024px) {
  .hero-dots { top: auto; bottom: 0; }
}

/* ------------------------------------------------------------------ *
 * E. Product gallery slide — deliberately NOT overridden here.
 *
 * site.css already centres the image (flex column + justify/align centre)
 * and lets the shadow flow directly beneath it, so the product sits centred
 * on every product page. The previous block/absolute rules here
 * (display:block, shadow pinned at left:52.69%) pulled products off-centre.
 * ------------------------------------------------------------------ */


 @media (max-width: 720px) { 
  .hero-dots {
    width: 100%;
    justify-content: center;
  }
 }