/* ------------------------------------------------------------------
   BulletproofK9s — runtime styles that replace Next.js-specific pieces
   (next/font variables, framer-motion entrance animations).
   Loaded AFTER theme.css.
   ------------------------------------------------------------------ */

:root {
  --font-bebas: "Bebas Neue";
  --font-dm-sans: "DM Sans";
  --font-inter: "Inter";
  --font-oswald: "Oswald";
}

html,
body {
  background: var(--black);
  color: var(--text);
}

body {
  font-family: var(--font-dm-sans), sans-serif;
  margin: 0;
}

/* --- FadeUp: replaces framer-motion's initial{opacity:0,y:40} whileInView ---
   Matches duration 0.6s / easeOut / viewport margin -80px / once:true.       */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s cubic-bezier(0, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0, 0, 0.2, 1);
  transition-delay: var(--fade-delay, 0s);
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* If JS is unavailable, never hide content. */
.no-js .fade-up {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Services dropdown (replaces AnimatePresence fade/slide) --- */
.bpk9-dropdown {
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.bpk9-dropdown.is-open {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* --- Collapsible panels (mobile menu, mobile services, service accordion) --- */
.bpk9-collapse {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transition:
    height 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

.bpk9-collapse.is-open {
  opacity: 1;
}

/* --- Review carousel: hide the scrollbar (parity with scrollbar-hide) --- */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.line-clamp-6 {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Keep anchor styling predictable against WordPress core blocks --- */
a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* WordPress admin bar must not cover the fixed navbar. */
body.admin-bar .bpk9-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .bpk9-header {
    top: 46px;
  }
}
