/**
 * Motion + uniformity layer. Scroll-reveals, micro-interactions, and the
 * systemic uniformity fixes (news cards, galleries, images, footer CTA).
 */

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }
[data-reveal].is-visible {
  opacity: 1; transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(min(var(--reveal-i, 0), 6) * 70ms);
}

/* ---------- Micro-interactions ---------- */
/* image hover zoom inside any framed container */
.wp-block-image, .wp-block-gallery .wp-block-image, .wp-block-post-featured-image,
.sc-projects .wp-block-column figure { overflow: clip; }
.wp-block-gallery .wp-block-image img,
.wp-block-post-featured-image img,
.entry-content .wp-block-image img {
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.wp-block-gallery .wp-block-image:hover img,
.wp-block-post-featured-image:hover img,
.entry-content .wp-block-image:hover img { transform: scale(1.04); }

/* arrow nudge on coral link-buttons that end in an arrow */
.sc-footer__cta, .sc-btn { will-change: transform; }
.sc-footer__cta:hover { transform: translateY(-2px); }

/* nav link underline slide */
header .wp-block-navigation a { position: relative; }
header .wp-block-navigation a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px;
  background: var(--sc-coral, #FB5A4B); transition: right .25s cubic-bezier(.2,.7,.2,1);
}
header .wp-block-navigation a:hover::after { right: 0; }

/* ---------- Footer CTA crop fix ---------- */
.sc-footer__cta { white-space: nowrap; width: fit-content; }

/* ---------- Latest News — uniform text cards (drop the odd single image) ---------- */
.wp-block-post-template li.wp-block-post .wp-block-post-featured-image { display: none !important; }
.wp-block-post-template li.wp-block-post {
  position: relative; padding-top: 1.5rem;
}
.wp-block-post-template li.wp-block-post::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sc-coral, #FB5A4B), var(--sc-coral-dark, #E24A3B));
}
.wp-block-post-template li.wp-block-post .wp-block-post-title { margin-top: .9rem; }

/* ---------- Galleries: keep native layout, just round + polish ---------- */
.wp-block-gallery .wp-block-image img,
.wp-block-gallery figure img { border-radius: 10px !important; }

/* ---------- Uniform content images ---------- */
.entry-content img, .wp-block-post-content img { max-width: 100%; height: auto; }
.entry-content .wp-block-image:not(.alignfull):not(.alignwide) img { border-radius: var(--sc-radius, 14px); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .wp-block-gallery .wp-block-image:hover img,
  .wp-block-post-featured-image:hover img,
  .entry-content .wp-block-image:hover img { transform: none; }
}

/* About: only size the seal; leave galleries & photos at native rendering */
.page-id-2 img[src*="SEBS-NA-Inc-Logo"]:not([src*="Light"]) { width: 130px !important; height: auto !important; }
