/* ==========================================================================
   CHOUSE - Chrome Layer Styles (Header, Navigation, Footer)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Top Project Bar (.project-bar)
   -------------------------------------------------------------------------- */
.project-bar {
  background-color: var(--color-navy-950, #071522);
  color: #8A96A3;
  height: 34px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 101;
}

.project-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.project-bar-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-bar-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #F28C28;
  display: inline-block;
  flex-shrink: 0;
}

.project-bar-note {
  color: #9BA7B3;
  white-space: nowrap;
}

.project-bar-tags {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.project-bar-tag {
  color: #7E8C9A;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.project-bar-tag::before {
  content: "•";
  display: inline-block;
  margin-right: 8px;
  opacity: 0.4;
}

.project-bar-tags li:first-child .project-bar-tag::before {
  display: none;
}

@media (max-width: 1040px) {
  .project-bar {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   2. Site Header & Navigation (.site-header / .site-nav)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 24px rgba(7, 21, 34, 0.05);
  border: none !important;
}

.site-nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: none !important;
}

/* 2.1 Brand / Logo */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  border: none !important;
  color: inherit;
  flex-shrink: 0;
}

.brand-symbol {
  width: 28px;
  height: 28px;
  background-color: #0B1F33;
  position: relative;
  border-radius: 2px;
  flex-shrink: 0;
}

.brand-dot {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 6px;
  height: 6px;
  background-color: #F28C28;
  border-radius: 1px;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
}

.brand-name {
  font-size: 19px;
  font-weight: 800;
  color: #0B1F33;
  letter-spacing: 0.08em;
  font-family: var(--font-sans);
}

.brand-meta {
  font-size: 9.5px;
  font-weight: 600;
  color: #8A96A3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* 2.2 Navigation Menu */
.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  font-size: 13.5px;
  font-weight: 650;
  color: #52616C;
  text-decoration: none;
  transition: color 180ms ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
  color: #0B1F33;
}

/* Navigation Line Animation (§5.5) — underline sits below the label */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  /* Anchored to the label's vertical centre, so the rule stays just under the
     text whatever height the surrounding header gives the link. */
  top: calc(50% + 13px);
  width: 100%;
  height: 2px;
  background: #F28C28;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms cubic-bezier(.2, .75, .25, 1);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* 2.3 Navigation CTA Button */
.nav-actions {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  background-color: #F28C28;
  color: #FFFFFF !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 6px;
  border: none !important;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  background-color: #E27E1A;
  transform: translateY(-1px);
}

.nav-cta:active {
  transform: translateY(0);
}

/* 2.4 Mobile Header */
@media (max-width: 1040px) {
  .site-header {
    height: 68px;
  }

  .site-nav {
    height: 68px;
  }

  .nav-menu {
    display: none;
  }

  .brand-meta {
    display: none;
  }

  .nav-cta {
    height: 42px;
    padding: 0 16px;
    font-size: 12.5px;
  }
}

/* 2.5 Compact desktop header (1041–1200px)
   Seven navigation items plus the CTA need the room: the brand tagline steps
   aside and the menu tightens before the header reaches its mobile form. */
@media (max-width: 1200px) and (min-width: 1041px) {
  .brand-meta {
    display: none;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-link {
    font-size: 13px;
  }
}

/* --------------------------------------------------------------------------
   3. Site Footer (.site-footer)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy-950, #071522);
  color: #8A96A3;
  padding-top: 80px;
  padding-bottom: 40px;
  margin-top: auto;
  border: none !important;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
}

/* 3.1 Brand column */
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 380px;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  width: fit-content;
}

.footer-brand-symbol {
  width: 32px;
  height: 32px;
  background-color: #12314D;
  position: relative;
  border-radius: 3px;
  flex-shrink: 0;
}

.footer-brand-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  background-color: #F28C28;
  border-radius: 1px;
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.08em;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #8A96A3;
  margin: 0;
}

/* 3.2 Navigation columns */
.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-link {
  font-size: 13.5px;
  color: #8A96A3;
  text-decoration: none;
  transition: color 160ms ease;
  display: inline-block;
}

.footer-nav-link:hover {
  color: #FFFFFF;
}

/* 3.3 Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: #6E7C8B;
}

.footer-copyright {
  margin: 0;
}

.footer-sub {
  margin: 0;
  text-align: right;
  letter-spacing: 0.02em;
}

/* 3.4 Responsive adjustments for Footer */
@media (max-width: 1040px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .footer-brand-col {
    max-width: 100%;
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .site-footer {
    padding-top: 60px;
    padding-bottom: 36px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 44px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .footer-sub {
    text-align: left;
  }
}

/* 3.4 Footer Legal Links */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}

.footer-legal-link {
  color: #8A96A3;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: #fff;
}

.footer-legal-sep {
  color: var(--color-orange-500);
}
