/* ==========================================================================
   UTILITIES — reusable primitives shared across sections and pages
   Loaded after Bootstrap's grid CSS on purpose: .container below fully
   overrides Bootstrap's breakpoint-based container so width stays
   predictable across the site instead of stepping at each Bootstrap
   breakpoint.
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-charcoal);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink-navy);
  line-height: var(--lh-tight);
  margin: 0;
  font-weight: 600;
}

p { margin: 0; }

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

input {
  font: inherit;
}

/* ---- Layout ---- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ---- Accessibility helpers ---- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--space-md);
  z-index: 2000;
  background: var(--color-ink-navy);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-small);
  transition: top var(--duration-fast) var(--ease-premium);
}

.skip-link:focus {
  top: var(--space-md);
}

/* Visible keyboard focus everywhere — required, never remove without a replacement */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-heritage-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Eyebrow label ---- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-caption);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-ink-gold);
  margin-bottom: var(--space-xs);
}

.eyebrow--on-dark {
  color: var(--color-heritage-gold);
}

/* ---- Section heading block ---- */

.section-head {
  margin-bottom: var(--space-xl);
  max-width: 640px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--on-dark .section-head__title,
.section-head__title--on-dark {
  color: var(--color-white);
}

.section-head__title {
  font-size: var(--fs-h2);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--duration-fast) var(--ease-premium),
              background-color var(--duration-fast) var(--ease-premium),
              border-color var(--duration-fast) var(--ease-premium),
              box-shadow var(--duration-fast) var(--ease-premium);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--gold {
  background-color: var(--color-heritage-gold);
  color: var(--color-ink-navy);
  box-shadow: var(--shadow-sm);
}

.btn--gold:hover {
  background-color: #FFB61A;
  box-shadow: var(--shadow-md);
}

.btn--outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--color-white);
}

.btn--outline-light:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
}

.btn--lg {
  padding: 1rem 2.1rem;
  font-size: var(--fs-body);
}

.btn--sm {
  padding: 0.65rem 1.25rem;
  font-size: var(--fs-caption);
  border-radius: var(--radius-sm);
}

/* ---- Text link with arrow (e.g. "View All Notices") ---- */

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--color-ink-navy);
  padding-block: var(--space-2xs);
  margin-top: var(--space-sm);
}

.link-arrow::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--duration-fast) var(--ease-premium);
}

.link-arrow:hover::after {
  transform: rotate(-45deg) translate(2px, -2px);
}

.link-arrow[aria-expanded="true"]::after {
  transform: rotate(45deg);
  margin-top: -4px;
}