/* ============================================================
   Livingston Associates — Production niceties on top of site.css
   ============================================================ */

/* Brand wordmark in the header */
.la-brand-wordmark {
  display: block;
  height: 36px;
  width: auto;
  max-width: 70vw;
}
@media (max-width: 480px) {
  .la-brand-wordmark { height: 28px; }
}

/* Skip link for keyboard / screen reader users */
.la-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--la-ink-900);
  color: var(--fg-on-dark);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  z-index: 200;
}
.la-skip:focus { left: 16px; }

/* Mobile nav toggle (hidden on desktop) */
.la-nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-1);
}
.la-nav-toggle:hover { background: var(--la-paper-100); }

/* Nav becomes a dropdown panel on mobile when toggled */
@media (max-width: 640px) {
  .la-nav-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .la-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
    border-bottom: 1px solid var(--rule-soft);
    box-shadow: var(--shadow-2);
  }
  .la-nav.is-open { display: flex; }
  .la-nav-item { width: 100%; }
  .la-nav-link {
    padding: 14px 24px;
    width: 100%;
    border-bottom: 1px solid var(--rule-soft);
  }
  .la-nav-menu {
    position: static;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    background: var(--la-paper-50);
    padding: 4px 0;
  }
  .la-nav-menu-item {
    padding: 12px 40px;
  }
}

/* Make dropdowns work without JS via :focus-within (still enhanced with JS) */
.la-nav-item .la-nav-menu { display: none; }
.la-nav-item:hover .la-nav-menu,
.la-nav-item:focus-within .la-nav-menu,
.la-nav-item.is-open .la-nav-menu { display: block; }
@media (max-width: 640px) {
  .la-nav-item .la-nav-menu { display: none; }
  .la-nav-item.is-open .la-nav-menu { display: block; }
  .la-nav-item:hover .la-nav-menu,
  .la-nav-item:focus-within .la-nav-menu { display: none; }
}

/* Hero photograph — when a real image is supplied, drop it as background-image
   on the .la-photo--hero variant. Otherwise the navy gradient placeholder shows. */
.la-photo--hero {
  background: linear-gradient(180deg, #1F3450 0%, #0E1E2E 100%);
  background-size: cover;
  background-position: center;
  min-height: 420px;
}

/* ============================================================
   Cover hero — full-bleed, cross-fading blurred background
   with the headline overlaid on a navy scrim (homepage).
   ============================================================ */
.la-hero--cover {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: center;
  background: var(--la-ink-900);   /* fallback before slides paint */
  isolation: isolate;
}

.la-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.la-hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Blur softens the imagery (imsearch.com look); the scale hides the soft
     edge the blur creates and gives a slow ken-burns drift. Blur matters most
     once real photographs replace the placeholder gradients. */
  filter: blur(10px);
  transform: scale(1.14);
  opacity: 0;
  transition: opacity 1500ms var(--ease-standard);
  will-change: opacity, transform;
}
.la-hero-slide.is-active {
  opacity: 1;
  animation: la-hero-drift 14000ms var(--ease-standard) forwards;
}
@keyframes la-hero-drift {
  from { transform: scale(1.14) translate3d(0, 0, 0); }
  to   { transform: scale(1.22) translate3d(-1.5%, -1.5%, 0); }
}

.la-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Darkest where the copy sits (left), lifting toward the right, plus a
     gentle top-and-bottom fade. Guarantees text legibility over any slide. */
  background:
    linear-gradient(90deg, rgba(14,30,46,0.88) 0%, rgba(14,30,46,0.66) 46%, rgba(14,30,46,0.40) 100%),
    linear-gradient(180deg, rgba(14,30,46,0.30) 0%, rgba(14,30,46,0.10) 40%, rgba(14,30,46,0.55) 100%);
}

.la-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 32px;
}
.la-hero--cover .la-hero-copy { max-width: 720px; }
.la-hero--cover .la-display   { color: var(--la-paper-50); }
.la-hero--cover .la-eyebrow   { color: var(--la-amber-500); }
.la-hero--cover .la-lede      { color: #D6DEE8; max-width: 60ch; }

/* CTAs over the dark hero */
.la-hero--cover .la-btn--primary { background: var(--la-paper-50); color: var(--la-ink-900); }
.la-hero--cover .la-btn--primary:hover { background: #ffffff; color: var(--la-ink-900); }
.la-hero--cover .la-btn--secondary {
  background: transparent;
  color: var(--la-paper-50);
  border-color: rgba(251, 248, 242, 0.55);
}
.la-hero--cover .la-btn--secondary:hover {
  background: rgba(251, 248, 242, 0.12);
  color: #ffffff;
  border-color: var(--la-paper-50);
}

@media (max-width: 640px) {
  .la-hero--cover { min-height: clamp(460px, 70vh, 620px); }
  .la-hero-inner { padding: 72px 24px; }
}

/* Honor reduced-motion: hold the first slide, no drift, no auto-rotate
   (the rotator in site.js also bails out under this preference). */
@media (prefers-reduced-motion: reduce) {
  .la-hero-slide.is-active { animation: none; transform: scale(1.14); }
}

/* Accessibility-visible focus rings on interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.la-filter-chip:focus-visible {
  outline: 2px solid var(--la-amber-600);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Small typography tightening for very large displays */
.la-display { text-wrap: balance; }
.la-h, .la-h--display { text-wrap: balance; }

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visually hidden, available to screen readers */
.la-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Print: minimal, legible */
@media print {
  .la-header, .la-footer, .la-mailing-cta, .la-cta-row { display: none !important; }
  .la-section, .la-band, .la-page-head { padding: 24px 0 !important; }
  body { background: #fff !important; color: #000 !important; }
}
