/* CMAC Trust Hub — site enhancements */

:root {
  --cmac-red: #bb000f;
  --cmac-red-glow: rgba(187, 0, 15, 0.12);
  --grain-opacity: 0.035;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Subtle grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--cmac-red);
  color: #fff;
  font-weight: 700;
  border-radius: 0.25rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.review-card-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.review-card {
  animation: cardReveal 0.5s ease both;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust-bar-glow {
  box-shadow: 0 0 0 1px rgba(187, 0, 15, 0.08), 0 8px 32px var(--cmac-red-glow);
}

.hero-mesh {
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(187, 0, 15, 0.06), transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 20%, rgba(30, 30, 30, 0.04), transparent 55%),
    #f9f9f9;
}

.filter-chip {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
}

.filter-chip:focus-visible {
  outline: 2px solid var(--cmac-red);
  outline-offset: 2px;
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

#reviews-empty:not(.hidden) {
  display: flex;
}

/* Site domain masthead */
.site-masthead {
  background: linear-gradient(135deg, #1a1c1c 0%, #2f3131 55%, #1a1c1c 100%);
  border-bottom: 3px solid var(--cmac-red);
}

.site-masthead__domain {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-decoration: none;
  line-height: 1;
}

.site-masthead__domain:hover {
  color: #ffb4ab;
}

.site-masthead__domain .tld {
  color: var(--cmac-red);
}

.site-masthead__tagline {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
