/* ==========================================================================
   Layout: site header and site footer shared by every page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
}

.site-header__logo { display: flex; align-items: center; }

.site-header__logo img {
  height: 100px;
  width: auto;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav__link {
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 6px;
  transition: all var(--transition);
}

.site-nav__link:hover {
  color: var(--red);
  background: rgba(30, 43, 122, 0.06);
}

.site-nav__link[aria-current="page"] {
  color: var(--red);
  font-weight: 700;
}

.site-nav__link--cta,
.site-nav__link--cta[aria-current="page"] {
  background: var(--red);
  color: var(--white);
  font-weight: 700;
}

.site-nav__link--cta:hover {
  background: var(--red-dark);
  color: var(--white);
}

/* Offsets page content so it starts below the fixed header. */
.site-main { padding-top: var(--header-height); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy-dark);
  border-top: 4px solid var(--red);
  padding: 64px var(--gutter) 32px;
}

.site-footer__grid {
  max-width: var(--content-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.site-footer__logo {
  display: block;
  height: 56px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.site-footer__about {
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.site-footer__social { display: flex; gap: 12px; }

.site-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 18px;
  text-decoration: none;
  transition: all var(--transition);
}

.site-footer__social a:hover {
  background: var(--red);
  border-color: var(--red);
}

.site-footer__heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.site-footer__list { list-style: none; }
.site-footer__list li { margin-bottom: 12px; }

.site-footer__list a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__list a:hover { color: var(--white); }

.site-footer__bottom {
  max-width: var(--content-width);
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer__copyright {
  color: rgba(255, 255, 255, 0.32);
  font-size: 13px;
}

.site-footer__bottom-links { display: flex; gap: 20px; }

.site-footer__bottom-links a {
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__bottom-links a:hover { color: var(--red-light); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .site-footer { padding: 48px var(--gutter) 28px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 600px) {
  :root { --header-height: 80px; }

  .site-header__logo img { height: 64px; }
  .site-nav { gap: 2px; }
  .site-nav__link { font-size: 13px; padding: 6px 8px; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .site-footer__bottom { flex-direction: column; text-align: center; }
}
