/* ============================================================
   brand-chrome.css
   Website-1's header + footer, shared across all website-2 pages.
   Loaded LAST so it overrides page-level nav/footer styles.
   ============================================================ */

:root {
  --navy-2: #16304C;
  --navy-3: #0F2438;
  --red-2: #A32C20;
  --red-soft: #EE9B93;
  --ink-soft: #5C6B78;
  --line-2: rgba(31, 59, 95, .22);
  --periwinkle: #9DB2CE;
  --display: 'Archivo', system-ui, sans-serif;
  --body-1: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
}

/* ---------------- HEADER ---------------- */
header.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  display: block;
  padding: 18px 0;
  background: transparent;
  box-shadow: none;
  transition: background .3s, box-shadow .3s, padding .3s;
}
header.nav.scrolled {
  background: rgba(251, 246, 236, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -26px rgba(15, 36, 56, .5);
  padding: 11px 0;
}
header.nav .wrap.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
header.nav .brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
header.nav .brand-logo {
  height: 56px;
  width: auto;
  flex: none;
  display: block;
  transition: height .3s;
}
header.nav.scrolled .brand-logo {
  height: 56px;
}
header.nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
header.nav .nav-links a {
  font-family: var(--body-1);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
  opacity: 1;
  position: relative;
  padding: 4px 0;
}
header.nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width .25s;
}
header.nav .nav-links a:hover::after,
header.nav .nav-links a.active::after {
  width: 100%;
}
header.nav.scrolled .nav-links a {
  color: var(--ink-soft);
}
header.nav.scrolled .nav-links a:hover,
header.nav.scrolled .nav-links a.active {
  color: var(--navy);
}
header.nav .nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
header.nav .btn .arw {
  transition: transform .25s;
}
header.nav .btn:hover .arw {
  transform: translateX(3px);
}
header.nav .burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 38px;
  height: 38px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}
header.nav .burger span {
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: .3s;
}
header.nav.scrolled .burger span {
  background: var(--navy);
}

/* ---------------- FOOTER ---------------- */
footer {
  background: linear-gradient(120deg, var(--navy), #2C5270);
  color: #C9D8E4;
  padding: 60px 0 26px;
  border-top: 3px solid var(--red);
}
footer .wrap {
  width: min(1160px, 92vw);
  margin: 0 auto;
}
footer .ftop {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
footer .fbrand .r {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
footer .fbrand-logo {
  display: inline-block;
  margin-bottom: 16px;
}
footer .fbrand-logo img {
  height: 120px;
  width: auto;
  display: block;
}
footer .fbrand p {
  font-family: var(--body-1);
  font-size: .93rem;
  line-height: 1.6;
  max-width: 340px;
  color: #B7C8D6;
}
footer .fcol h5 {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9DB9CC;
  margin-bottom: 15px;
}
footer .fcol a {
  display: block;
  font-family: var(--body-1);
  font-size: .93rem;
  color: #CFDDE9;
  margin-bottom: 11px;
  transition: color .2s, transform .2s;
}
footer .fcol a:hover {
  color: #fff;
  transform: translateX(3px);
}
footer .fbot {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-family: var(--body-1);
  font-size: .82rem;
  color: #9DB9CC;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  footer .ftop {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
/* ---- mobile slide-in menu + backdrop ---- */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 56, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 55;
}
body.menu-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}
html.menu-open,
body.menu-open {
  overflow: hidden;
}
@media (min-width: 821px) {
  .nav-backdrop {
    display: none;
  }
}

@media (max-width: 820px) {

  /* Hamburger */
  header.nav .burger {
    display: flex;
    position: relative;
    z-index: 100;
    width: 42px;
    height: 42px;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }

  header.nav .burger span {
    display: block;
    width: 23px;
    height: 2px;
    background: #fff;
    color: #fff;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease, background .3s ease;
  }

  header.nav.scrolled .burger span {
    background: var(--navy);
  }

  /* Mobile menu */
  header.nav .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(82vw, 340px);
    height: 55vh;

    background: var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;

    gap: 0;
    padding: 85px 28px 30px;

    transform: translateX(100%);
    visibility: hidden;

    transition:
      transform .35s cubic-bezier(.22, .7, .28, 1),
      visibility .35s ease;

    box-shadow: -20px 0 50px rgba(0, 0, 0, .3);

    z-index: 90;
  }

  /* OPEN */
  header.nav .nav-links.open {
    transform: translateX(0);
    visibility: visible;
  }

  /* Menu links */
  header.nav .nav-links a {
    display: block;
    width: 100%;

    color: #fff !important;
    font-family: var(--body-1);
    font-size: 1.05rem;
    font-weight: 600;

    padding: 16px 5px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);

    text-decoration: none;
  }

  header.nav .nav-links a:hover,
  header.nav .nav-links a.active {
    color: #fff !important;
  }

  header.nav .nav-links a::after {
    display: none;
  }

  /* Close X */
  .menu-close {
    position: absolute;
    top: 20px;
    right: 22px;

    width: 40px;
    height: 40px;

    background: transparent;
    border: 0;

    color: #fff;
    font-size: 34px;
    font-weight: 300;
    line-height: 1;

    cursor: pointer;
    z-index: 95;
  }

  .menu-close:hover {
    opacity: .75;
  }

  /* Contact button inside mobile menu */
  header.nav .nav-links .mobile-contact {
    margin-top: 22px;

    background: var(--red);
    border: 0;
    border-radius: 4px;

    text-align: center;
    padding: 13px 16px;

    color: #fff !important;
  }

  header.nav .nav-links .mobile-contact span {
    margin-left: 6px;
  }

  /* Hamburger becomes X */
  body.menu-open header.nav .burger span {
    background: #fff !important;
  }

  body.menu-open header.nav .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  body.menu-open header.nav .burger span:nth-child(2) {
    opacity: 0;
  }

  body.menu-open header.nav .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Backdrop */
  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;

    background: rgba(15, 36, 56, .55);

    opacity: 0;
    visibility: hidden;

    transition: opacity .3s ease, visibility .3s ease;

    z-index: 80;
  }

  body.menu-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  html.menu-open,
  body.menu-open {
    overflow: hidden;
  }
}