/* ===========================================
   CHURCH WEBSITE - UTILITY & REFINEMENTS
   =========================================== */

/* Subtle background patterns */
.pattern-subtle {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(74, 123, 167, 0.06) 0%, transparent 50%);
}

/* Refined card hovering */
.card-hover {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
}

/* Card Hover Bridge Utility */
.card-hover::after {
  content: '';
  position: absolute;
  inset: -10px;
  background: transparent;
  z-index: -1;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 58, 82, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .card-hover {
    transition: none;
  }

  .card-hover:hover {
    transform: none;
  }
}

/* Enhanced focus states for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #d4a574;
  outline-offset: 2px;
}

/* Improve form input spacing */
.form-group {
  margin-bottom: 1.5rem;
}

/* Text selection styling — single source of truth */
::selection {
  background-color: #d4a574;
  color: white;
}

::-moz-selection {
  background-color: #d4a574;
  color: white;
}

/* Scrollbar styles — single source of truth */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(26, 58, 82, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 165, 116, 0.5);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 165, 116, 0.8);
}

/* Improve line breaks in text */
h1,
h2,
h3,
h4,
h5,
h6 {
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Visually hidden but accessible text */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Refined shadows for depth */
.shadow-elevation-1 {
  box-shadow: 0 2px 4px rgba(26, 58, 82, 0.06);
}

.shadow-elevation-2 {
  box-shadow: 0 4px 12px rgba(26, 58, 82, 0.08);
}

.shadow-elevation-3 {
  box-shadow: 0 8px 24px rgba(26, 58, 82, 0.12);
}

.shadow-elevation-4 {
  box-shadow: 0 12px 32px rgba(26, 58, 82, 0.15);
}

/* Color contrast improvements */
.text-contrast-high {
  color: #1a1a1a;
}

.text-contrast-medium {
  color: #4a4a4a;
}

.text-contrast-low {
  color: #767676;
  /* WCAG AA minimum contrast on white */
}

/* Print styles supplement */
@media print {
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  a[href^="#"]::after {
    content: "";
  }
}

/* Breadcrumb spacing utility */
.breadcrumb-spacing {
  padding-top: 80px;
  /* Tightened from 90px to sit closer to 64px navbar */
}