/* ============================================================
   UFJL, Site chrome (header + footer)
   ============================================================ */

/* ---------- ALERT BAR (slim, single-line) ---------- */
.alert-bar {
  background: var(--navy-ink);
  color: rgba(255,255,255,.85);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.alert-bar::before {
  content:"";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(242,168,29,.6), transparent);
}
.alert-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 16px;
  min-height: 32px;
  white-space: nowrap;
  overflow: hidden;
}
.alert-bar__pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 2px 9px 2px 7px;
  border: 1px solid rgba(242,168,29,.35);
  background: rgba(242,168,29,.08);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--gold);
}
.alert-bar__pulse {
  width: 6px; height: 6px;
  background: var(--alarm);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(200,16,46,.7);
  animation: alertPulse 2s ease-out infinite;
}
@keyframes alertPulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,16,46,.7); }
  70%  { box-shadow: 0 0 0 8px rgba(200,16,46,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,16,46,0); }
}
.alert-bar__msg {
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
  text-transform: none;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.alert-bar__msg b {
  color: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.alert-bar__sep {
  color: rgba(255,255,255,.25);
  font-family: var(--f-display);
}
.alert-bar__cta {
  color: var(--gold);
  text-decoration: none;
  letter-spacing: .14em;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s, transform .2s;
}
.alert-bar__cta:hover { color: #fff; }
.alert-bar__cta:hover span { transform: translateX(2px); }
.alert-bar__cta span { transition: transform .2s; display: inline-block; }
@media (max-width: 720px) {
  .alert-bar__sep { display: none; }
  .alert-bar__msg { display: none; }
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,242,231,.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  background: rgba(246,242,231,.94);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 1px 0 rgba(20,28,74,.04), 0 14px 30px -22px rgba(20,28,74,.22);
}
.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}

/* Logo */
.site-logo {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  color: var(--navy-ink);
  white-space: nowrap;
}
.site-logo img {
  height: 38px; width: auto;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.site-logo:hover img { transform: rotate(-3deg) scale(1.04); }
.site-logo__wordmark {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  gap: 4px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}
.site-logo__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.005em;
  color: var(--navy-ink);
}
.site-logo__sub {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
@media (max-width: 720px) {
  .site-logo__wordmark { display: none; }
}

/* ---------- Primary nav (center, plain links + sliding underline) ---------- */
.site-nav {
  justify-self: center;
  position: relative;
}
.site-nav__close { display: none; }
.site-nav__list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.site-nav__list li { margin: 0; }
.site-nav__list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -.005em;
  color: var(--navy-ink);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--navy-ink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.site-nav__list a:hover {
  color: var(--navy-ink);
  background: rgba(20,28,74,.04);
}
.site-nav__list a:hover::after {
  transform: scaleX(1);
}
.site-nav__list a.is-active {
  color: var(--navy-ink);
}
.site-nav__list a.is-active::after {
  transform: scaleX(1);
  background: var(--gold);
  height: 2.5px;
}

/* ---------- Right side: live count + CTA ---------- */
.site-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.site-header__count {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20,28,74,.04);
  border: 1px solid var(--line-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.site-header__count b {
  color: var(--navy-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.site-header__count .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--alarm);
  box-shadow: 0 0 0 0 rgba(200,16,46,.6);
  animation: alertPulse 2.4s ease-out infinite;
}
.site-header__btn {
  display: inline-flex; align-items: center; gap: 6px;
}
.site-header__btn span {
  transition: transform .2s ease;
  display: inline-block;
}
.site-header__btn:hover span { transform: translateX(3px); }

@media (max-width: 1180px) {
  .site-header__count { display: none; }
}
@media (max-width: 1024px) {
  .site-nav__list a { padding: 10px 11px; font-size: 13px; }
}

/* ---------- Mobile toggle ---------- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid var(--navy-ink);
  border-radius: 999px;
  padding: 8px 14px 8px 12px;
  color: var(--navy-ink);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 700;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background .15s, color .15s;
  justify-self: end;
}
.nav-toggle:hover { background: var(--navy-ink); color: var(--paper); }
.nav-toggle:hover .nav-toggle__bars i { background: var(--paper); }
.nav-toggle__bars {
  display: inline-flex; flex-direction: column; gap: 3px;
  width: 16px;
}
.nav-toggle__bars i {
  display: block; width: 100%; height: 2px;
  background: var(--navy-ink);
  transition: transform .25s, opacity .2s, background .15s;
  transform-origin: center;
}
.nav-toggle.is-open .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 920px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .site-nav { display: none; }
  .site-header__cta { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--navy-ink);
    color: #fff;
    padding: 24px var(--gutter);
    flex-direction: column;
    justify-content: flex-start;
    z-index: 60;
    overflow-y: auto;
    animation: navSheetIn .3s cubic-bezier(.2,.8,.2,1);
  }
  @keyframes navSheetIn {
    from { transform: translateY(-12px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
  }
  .site-nav.is-open .site-nav__close {
    display: flex; justify-content: flex-end;
  }
  .nav-close {
    background: transparent; border: none;
    color: #fff; font-size: 36px; line-height: 1;
    cursor: pointer; padding: 4px 12px;
  }
  .site-nav.is-open .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 0;
    gap: 4px;
  }
  .site-nav.is-open .site-nav__list a {
    justify-content: flex-start;
    padding: 18px 12px;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .site-nav.is-open .site-nav__list a::after { display: none; }
  .site-nav.is-open .site-nav__list a:hover { background: rgba(255,255,255,.05); color: var(--gold); }
  .site-nav.is-open .site-nav__list a.is-active { color: var(--gold); }
}

body.nav-locked { overflow: hidden; }

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-ink);
  color: rgba(255,255,255,.78);
  margin-top: 80px;
  font-size: 14px;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.site-footer h4 {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .18em;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 6px 0; }
.site-footer a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .15s;
}
.site-footer a:hover { color: var(--gold); text-decoration: none; }
.site-footer__brand img { height: 60px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.site-footer__brand p { color: rgba(255,255,255,.6); font-size: 14px; max-width: 36ch; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.site-footer__bottom a { color: rgba(255,255,255,.7); }

@media (max-width: 880px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 32px; }
  .site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- PAGE HEADER (interior pages) ---------- */
.page-head {
  padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 3px solid var(--navy-ink);
  position: relative;
}
.page-head__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: end; }
.page-head h1 {
  font-size: clamp(48px, 7vw, 96px);
  line-height: .9;
}
.page-head .meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: right;
  line-height: 1.9;
}
.page-head .meta b { color: var(--navy-ink); font-family: var(--f-display); font-size: 13px; letter-spacing: .06em; display: block; }
.page-head .lede {
  margin-top: 24px;
  font-family: var(--f-body);
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.4;
  color: var(--navy);
  font-style: normal;
  font-weight: 400;
  max-width: 60ch;
}
@media (max-width: 880px) {
  .page-head__inner { grid-template-columns: 1fr; gap: 24px; }
  .page-head .meta { text-align: left; }
}
