/* Utility Advisor Inc — shared custom styles */
html { scroll-behavior: smooth; }
body { font-family: 'Public Sans', system-ui, sans-serif; }
.font-display { letter-spacing: -0.02em; }
::selection { background: #F0A93F; color: #0E1728; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #F0A93F; outline-offset: 3px; border-radius: 4px;
}

/* Lifeline: a power line that becomes a pulse (signature) */
.lifeline-base { stroke: rgba(109,139,197,0.45); stroke-width: 1.75; fill: none; }
.lifeline-glow {
  stroke: #F0A93F; stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 160 1240; stroke-dashoffset: 1400;
  filter: drop-shadow(0 0 6px rgba(240,169,63,0.9));
  animation: pulse-travel 5.5s linear infinite;
}
@keyframes pulse-travel { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: -1400; } }
.lifeline-mini { stroke: #D98E1B; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* Entrances */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.rise   { animation: rise 0.7s cubic-bezier(0.22,1,0.36,1) both; }
.rise-2 { animation: rise 0.7s 0.12s cubic-bezier(0.22,1,0.36,1) both; }
.rise-3 { animation: rise 0.7s 0.24s cubic-bezier(0.22,1,0.36,1) both; }
.rise-4 { animation: rise 0.7s 0.36s cubic-bezier(0.22,1,0.36,1) both; }
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1); }
.js .reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lifeline-glow { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; opacity: 0.85; }
  .rise, .rise-2, .rise-3, .rise-4 { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn { transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease; }
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

/* Surfaces */
.grain::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero-glow {
  background:
    radial-gradient(52rem 30rem at 78% 18%, rgba(109,139,197,0.16), transparent 65%),
    radial-gradient(40rem 26rem at 12% 88%, rgba(240,169,63,0.10), transparent 60%),
    radial-gradient(30rem 22rem at 45% 110%, rgba(72,95,136,0.25), transparent 70%);
}
.logo-white { filter: brightness(0) invert(1); }
.plaque-rule { background: linear-gradient(90deg, transparent, rgba(240,169,63,0.7), transparent); height: 1px; }

/* Donation widget */
.freq-btn[aria-pressed="true"] { background: #16233C; color: #fff; box-shadow: inset 0 0 0 1px #485F88; }
.amt-btn[aria-pressed="true"] { background: #F0A93F; border-color: #F0A93F; color: #0E1728; box-shadow: 0 2px 8px rgba(217,142,27,0.35); }

/* Resource guide */
.guide-nav a { transition: color 0.15s ease, border-color 0.15s ease; }
.guide-nav a.active { color: #16233C; border-color: #F0A93F; }
.prose-ua p + p { margin-top: 1rem; }
.prose-ua ul { margin-top: 0.75rem; }
.prose-ua li + li { margin-top: 0.5rem; }
.tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.35rem 0.7rem; border-radius: 999px; }

/* Forms */
.field { width: 100%; border: 2px solid #DFE8F4; border-radius: 0.75rem; padding: 0.85rem 1rem; font-weight: 500; color: #16233C; background: #fff; transition: border-color 0.15s ease; }
.field::placeholder { color: rgba(22,35,60,0.4); }
.field:focus { border-color: #485F88; outline: none; }
.field-label { display: block; font-size: 0.875rem; font-weight: 700; color: #16233C; margin-bottom: 0.4rem; }
.choice { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; border: 2px solid #DFE8F4; border-radius: 0.75rem; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.choice:hover { border-color: #6D8BC5; }
.choice:has(input:checked) { border-color: #485F88; background: #EEF3FA; }
.choice input { margin-top: 0.25rem; accent-color: #485F88; width: 1.1rem; height: 1.1rem; }
