/* ========== Header ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  /* No backdrop-filter / heavy paint during scroll */
  background: transparent;
}

.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--header-surface);
  box-shadow: 0 1px 0 var(--header-border);
}

.site-header.is-scrolled .nav__link,
.site-header.is-solid .nav__link {
  color: var(--text);
}

.site-header.is-scrolled .nav__link:hover,
.site-header.is-scrolled .nav__link.is-active,
.site-header.is-solid .nav__link:hover,
.site-header.is-solid .nav__link.is-active {
  color: var(--navy);
}

.site-header.is-scrolled .header-search,
.site-header.is-solid .header-search {
  color: var(--text);
  border-color: var(--header-border);
}

.site-header.is-scrolled .header-search:hover,
.site-header.is-solid .header-search:hover {
  color: var(--gold-hover);
  border-color: rgba(196, 163, 90, 0.45);
  background: rgba(10, 30, 54, 0.04);
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-solid .nav-toggle {
  color: var(--navy);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  color: var(--white);
}

.logo__mark-img {
  width: 42px;
  height: 48px;
  flex-shrink: 0;
  display: block;
}

.logo__full-img {
  display: block;
  height: 58px;
  width: auto;
  flex-shrink: 0;
}

.logo__full-img--on-light {
  display: none;
}

.site-header.is-scrolled .logo__full-img--on-dark,
.site-header.is-solid .logo__full-img--on-dark {
  display: none;
}

.site-header.is-scrolled .logo__full-img--on-light,
.site-header.is-solid .logo__full-img--on-light {
  display: block;
}

.footer-brand .logo__full-img {
  height: 44px;
}

.logo__wordmark {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  border-left: 1px solid var(--gold);
  padding-left: 0.65rem;
}

.logo__text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  line-height: 1;
}

.logo__sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.65);
  max-width: 11rem;
  margin-top: 0.15rem;
  line-height: 1.3;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.05rem;
}

.nav__link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.96);
  padding: 0.5rem 0.65rem;
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.team-card__photo--placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #1a2744 0%, #2c3e5a 100%);
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  aspect-ratio: 3 / 4;
}

.header-search {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.header-search svg {
  width: 20px;
  height: 20px;
}

.header-search:hover {
  color: var(--gold);
  border-color: rgba(196, 163, 90, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--white);
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--transition);
}

.nav-toggle__bar::before {
  top: -7px;
}

.nav-toggle__bar::after {
  top: 7px;
}

/* ========== Footer ========== */
.site-footer {
  background: var(--footer-surface);
  color: var(--text-muted);
  padding-top: clamp(2.75rem, 5vw, 4rem);
  border-top: 1px solid var(--gray-200);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.05fr) minmax(280px, 1.55fr) minmax(160px, 0.85fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2rem, 4vw, 2.75rem);
  align-items: start;
}

.footer-brand .logo {
  margin-bottom: 1.1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 18rem;
}

.footer-brand__tagline {
  margin-top: 0.35rem;
}

.socials {
  display: flex;
  gap: 0.65rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  display: grid;
  place-items: center;
  color: var(--navy);
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.socials a:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 1.15rem;
}

.footer-contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.7rem 0;
  border-top: 1px solid var(--gray-200);
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-contact li:last-child {
  border-bottom: 1px solid var(--gray-200);
}

.footer-contact__label {
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding-top: 0.1rem;
}

.footer-contact__value {
  color: var(--text);
}

.footer-contact__value a {
  color: var(--navy);
  font-weight: 600;
}

.footer-contact__value a:hover {
  color: var(--gold);
}

.footer-nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-col ul li + li {
  margin-top: 0;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-qr {
  background: var(--white);
  padding: 1rem;
  text-align: center;
}

.footer-qr__box {
  aspect-ratio: 1;
  background:
    repeating-conic-gradient(#0a1e36 0% 25%, #fff 0% 50%) 0 0 / 12px 12px;
  margin-bottom: 0.75rem;
  position: relative;
}

.footer-qr__box::after {
  content: "QR";
  position: absolute;
  inset: 28%;
  background: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.85rem;
}

.footer-qr p {
  font-size: 0.72rem;
  color: var(--navy);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding: 1.15rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gray-600);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem 2.5rem;
  }

  .footer-col--nav {
    grid-column: 1 / -1;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 12rem));
    column-gap: 2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand p {
    max-width: none;
  }

  .footer-contact li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .logo__sub {
    display: none;
  }
}
