/* ELEM SOLUTIONS — CUSTOM STYLES (WOW UTILITIES) */

/* === DUOTONE HELPER === */
.duotone {
  position: relative;
}
.duotone::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f7503e 0%, #302fa8 100%);
  mix-blend-mode: multiply;
  opacity: 0.65;
  pointer-events: none;
}
.duotone img {
  display: block;
  filter: grayscale(100%) contrast(1.15);
}

/* === UNDERLINE SWIPE === */
.underline-swipe {
  position: relative;
  display: inline-block;
}
.underline-swipe::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #f7503e;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.underline-swipe:hover::after {
  transform: scaleX(1);
}

/* === DIAGONAL TOP === */
.diag-top::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: 0;
  width: 100%;
  height: 4rem;
  background: inherit;
  transform: skewY(-2deg);
  transform-origin: top left;
  z-index: 1;
}

/* === DIAGONAL BOTTOM === */
.diag-bottom::after {
  content: '';
  position: absolute;
  bottom: -3rem;
  left: 0;
  width: 100%;
  height: 4rem;
  background: inherit;
  transform: skewY(-2deg);
  transform-origin: bottom right;
  z-index: 1;
}

/* === HERO KNOCKOUT TEXT === */
.hero-knockout {
  text-shadow:
    0 0 60px rgba(247, 80, 62, 0.4),
    0 0 120px rgba(48, 47, 168, 0.3),
    0 4px 24px rgba(0, 0, 0, 0.5);
}

/* === TESTIMONIAL SCROLL === */
.testimonials-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #f7503e #1a1a1a;
}

.testimonials-scroll::-webkit-scrollbar {
  height: 8px;
}

.testimonials-scroll::-webkit-scrollbar-track {
  background: rgba(26, 26, 26, 0.1);
  border-radius: 4px;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
  background: #f7503e;
  border-radius: 4px;
}

.testimonials-scroll::-webkit-scrollbar-thumb:hover {
  background: #ff5e4a;
}

/* === REVEAL ON SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 300ms ease-out, transform 300ms ease-out;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* === FOCUS STYLES === */
*:focus-visible {
  outline: 3px solid #f7503e;
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #f7503e;
  outline-offset: 4px;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .duotone img {
    transform: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* === MOBILE MENU ANIMATION === */
@media (max-width: 767px) {
  #mobile-menu {
    transition: opacity 200ms ease;
  }
  #mobile-menu.hidden {
    opacity: 0;
    pointer-events: none;
  }
  #mobile-menu:not(.hidden) {
    opacity: 1;
    pointer-events: all;
  }
}

/* === PROSE STYLES FOR BLOG CONTENT === */
.prose {
  max-width: 65ch;
}

.prose h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.prose p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.prose ul,
.prose ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  font-weight: 700;
  color: #1a1a1a;
}

/* === FORM STABILITY FIXES === */
form {
  position: relative;
  will-change: auto;
}

form input,
form select,
form textarea {
  box-sizing: border-box;
  transition: border-color 200ms ease, background-color 200ms ease;
}

form input:focus,
form select:focus,
form textarea:focus {
  transform: none;
}

form button[type="submit"] {
  touch-action: manipulation;
}
