/* ============================================================
   HERMES Connect Hub — Header / Footer chrome
   ============================================================ */

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.hdr--scrolled { border-color: var(--line); box-shadow: 0 4px 22px rgba(20,40,70,.06); background: rgba(255,255,255,.93); }
.hdr__inner { height: var(--nav-h); display: flex; align-items: center; gap: 22px; }
.hdr__logo { flex: none; }

.hdr__nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.hdr__link {
  position: relative; background: none; border: 0;
  font-family: var(--font-head); font-weight: 500; font-size: 15.5px; color: var(--ink);
  padding: 9px 14px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease, background .15s ease;
}
.hdr__link:hover { color: var(--hc-blue); background: rgba(10,86,148,.06); }
.hdr__link.is-active { color: var(--hc-blue); }
.hdr__link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--hc-blue); border-radius: 2px;
}
.caret { transition: transform .2s ease; margin-top: 1px; }
.caret.up { transform: rotate(180deg); }

.hdr__dropwrap { position: relative; }
.hdr__drop {
  position: absolute; top: calc(100% + 10px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow-l); padding: 8px; width: 320px;
  display: flex; flex-direction: column; gap: 2px;
  animation: dropIn .18s ease;
}
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hdr__dropitem {
  text-align: left; background: none; border: 0; border-radius: 10px;
  padding: 11px 14px; display: flex; flex-direction: column; gap: 2px;
  transition: background .14s ease;
}
.hdr__dropitem:hover { background: var(--bg-soft); }
.hdr__dropitem-t { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.hdr__dropitem-d { font-size: 13.5px; color: var(--muted); }

.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.langsw { display: inline-flex; align-items: center; gap: 2px; background: var(--bg-soft); border-radius: 999px; padding: 3px; }
.langsw__b {
  border: 0; background: none; font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  color: var(--muted); padding: 5px 9px; border-radius: 999px; letter-spacing: .03em; transition: all .15s ease;
}
.langsw__b:hover { color: var(--hc-blue); }
.langsw__b.on { background: #fff; color: var(--hc-blue); box-shadow: var(--shadow-s); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.on span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile { display: none; overflow: hidden; max-height: 0; background: #fff; border-bottom: 1px solid var(--line); transition: max-height .35s ease; }
.mobile--open { max-height: 720px; box-shadow: var(--shadow-m); }
.mobile__inner { padding: 18px var(--gutter) 30px; display: flex; flex-direction: column; gap: 4px; }
.mobile__link { text-align: left; background: none; border: 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; color: var(--ink); padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mobile__link.is-active { color: var(--hc-blue); }
.mobile__sub { display: flex; flex-direction: column; padding: 4px 0 8px 14px; }
.mobile__sublink { text-align: left; background: none; border: 0; font-family: var(--font-body); font-size: 16px; color: var(--muted); padding: 8px 4px; }
.mobile__sublink.is-active { color: var(--hc-blue); }
.langsw--mobile { margin-top: 18px; align-self: flex-start; }

@media (max-width: 1080px) {
  .hdr__nav { display: none; }
  .hdr__cta { display: none; }
  .burger { display: block; }
  .mobile { display: block; }
  .langsw:not(.langsw--mobile) { display: none; }
}

/* ---------- Footer ---------- */
.ftr { background: var(--bg-navy); color: #c3c7df; padding-block: clamp(54px, 7vw, 86px) 30px; }
.ftr h4 { color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.ftr__top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; padding-bottom: 46px; border-bottom: 1px solid rgba(255,255,255,.12); }
.ftr__brand img { filter: none; }
.ftr__tag { margin: 22px 0 20px; font-size: 16px; color: #aeb3cf; max-width: 34ch; }
.ftr__li { display: inline-flex; align-items: center; gap: 9px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; border: 1px solid rgba(255,255,255,.2); padding: 9px 16px; border-radius: 999px; transition: background .18s ease, border-color .18s ease; }
.ftr__li:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.4); }
.ftr__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.ftr__col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.ftr__link { background: none; border: 0; padding: 0; text-align: left; color: #c3c7df; font-family: var(--font-body); font-size: 15.5px; transition: color .15s ease; }
.ftr__link:hover { color: #fff; }
.ftr__txt { font-size: 15.5px; color: #aeb3cf; }
.ftr__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; font-size: 14px; color: #8e93b4; flex-wrap: wrap; }
.ftr__legal { display: flex; gap: 22px; }
.ftr__legal .ftr__link { font-size: 14px; }

@media (max-width: 860px) {
  .ftr__top { grid-template-columns: 1fr; gap: 40px; }
  .ftr__cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .ftr__cols { grid-template-columns: 1fr; }
  .ftr__bottom { flex-direction: column; align-items: flex-start; }
}
