/**
 * Perpetual Marketing — Mazette.co-style overrides
 * Tailwind custom utilities, hero gradient, 60fps-friendly animations
 */

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ---- Hero ---- */
#hero {
  isolation: isolate;
}

.hero-bg {
  will-change: transform;
}

.hero-parallax {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.hero-gradient-mask {
  background: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    rgba(30, 58, 138, 0.3) 40%,
    rgba(30, 58, 138, 0.5) 70%
  );
  transition: opacity 0.2s ease;
}

/* Logo hover: subtle glow */
.logo-hover {
  transition: filter 0.3s ease, transform 0.2s ease;
}

.logo-hover:hover {
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.35));
  transform: scale(1.02);
}

/* ---- Cards: 1.05x hover scale (Mazette-style) ---- */
.expertise-card {
  will-change: transform;
  transform: translateZ(0);
}

.expertise-card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* ---- Buttons: smooth scale ---- */
a[href*="audit"],
button[id^="carousel"] {
  will-change: transform;
  transform: translateZ(0);
}

/* ---- Section reveal: reduce motion when preferred ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-parallax,
  .hero-gradient-mask,
  .section-reveal,
  .expertise-card {
    animation: none !important;
    transition: none !important;
  }

  .hero-line {
    opacity: 1 !important;
  }
}

/* ---- Focus visible (a11y) ---- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* ---- Custom Tailwind-style utilities (if not in config) ---- */
.text-shadow-hero {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.15);
}

/* ---- Carousel track: GPU layer ---- */
#testimonials-track {
  will-change: transform;
  transform: translateZ(0);
}
