/* ============================================================
   Sharp Foam Child — overrides & interaction styles
   Loaded after reference.css + vars.css.
   ============================================================ */

/* Safety reset (in case parent/Divi base styles leak in) */
body.sfc-home { margin: 0; overflow-x: hidden; }
body.sfc-home *, body.sfc-home *::before, body.sfc-home *::after { box-sizing: border-box; }

/* ---- Fixed header: transparent at top, opaque + bordered on scroll ---- */
#sfc-header { will-change: background-color, border-color; }
#sfc-header.sfc-scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: #E4E4E7 !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

/* ---- Mobile navigation panel ---- */
#sfc-mobile-nav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  background: #ffffff;
  border-top: 1px solid transparent;
}
#sfc-mobile-nav.sfc-open {
  max-height: 80vh;
  border-top-color: #E4E4E7;
}

/* Keep the fixed header below the WP admin bar for logged-in users */
@media screen and (min-width: 783px) {
  body.admin-bar #sfc-header { top: 32px; }
}
@media screen and (max-width: 782px) {
  body.admin-bar #sfc-header { top: 46px; }
}

/* ---- Scroll reveal (progressive enhancement; only active once JS adds the class) ---- */
.sfc-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.sfc-reveal.sfc-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .sfc-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---- Form validation message helpers ---- */
.sfc-field-error { color: #DC2626; font-size: 0.72rem; margin-top: 0.35rem; }
