/* ==========================================================================
   Sticky navigation + footer
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, .94);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background .3s;
}
.site-header.is-scrolled { box-shadow: 0 8px 28px -20px rgba(32, 38, 49, .45); background: rgba(248, 250, 252, .98); }
.nav { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--graphite); flex: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; background: var(--cobalt); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; letter-spacing: -.02em; position: relative; }
.brand__mark::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 10px; height: 10px; background: var(--copper); }
.brand__text { display: grid; line-height: 1.12; }
.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.brand__role { font-size: .64rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-text); }
.brand:hover { color: var(--cobalt); }

.nav__menu { display: flex; align-items: stretch; gap: .1rem; list-style: none; margin: 0; padding: 0; height: 100%; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__btn, .nav__link {
  display: inline-flex; align-items: center; gap: .4rem; height: 44px; padding: 0 .75rem; background: none; border: 0;
  font-size: .86rem; font-weight: 700; color: var(--graphite); text-decoration: none; letter-spacing: .005em; position: relative; white-space: nowrap;
}
.nav__btn::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; opacity: .7; }
.nav__btn[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }
.nav__btn:hover, .nav__link:hover, .nav__btn[aria-expanded="true"] { color: var(--cobalt); }
.nav__item.is-active > .nav__btn, .nav__item.is-active > .nav__link { color: var(--cobalt); }
.nav__item.is-active > .nav__btn::before, .nav__item.is-active > .nav__link::before { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -12px; height: 2px; background: var(--cobalt); }
.nav__cta { margin-left: .6rem; }
.nav__cta .btn { min-height: 42px; padding: .55rem 1.05rem; font-size: .84rem; }

/* dropdown panel */
.nav__panel {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); min-width: 520px;
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 1.4rem 1.5rem 1.2rem;
  opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s var(--ease), visibility .2s; z-index: 120;
}
.nav__panel::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item.is-open .nav__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .8rem; margin-bottom: .6rem; }
.nav__panel-head strong { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cobalt); }
.nav__panel-head span { font-size: .78rem; color: var(--steel-text); }
.nav__panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.2rem; }
.nav__panel a { display: grid; grid-template-columns: 2.1rem minmax(0, 1fr); align-items: baseline; padding: .55rem .4rem; text-decoration: none; color: var(--graphite); font-size: .9rem; font-weight: 650; border-bottom: 1px solid transparent; }
.nav__panel a span { font-size: .7rem; color: var(--steel-text); font-weight: 800; font-variant-numeric: tabular-nums; }
.nav__panel a:hover { color: var(--cobalt); background: var(--ice); }
.nav__panel a[aria-current="page"] { color: var(--cobalt); background: var(--ice); }
.nav__panel a[aria-current="page"] span { color: var(--copper-text); }

.nav__toggle { display: none; align-items: center; gap: .6rem; height: 44px; padding: 0 .9rem; border: 1px solid var(--graphite); background: transparent; font-weight: 800; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); }
.nav__toggle-bars { width: 18px; height: 12px; position: relative; display: inline-block; }
.nav__toggle-bars::before, .nav__toggle-bars::after, .nav__toggle-bars i { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s, opacity .2s, top .25s; }
.nav__toggle-bars::before { top: 0; } .nav__toggle-bars i { top: 5px; } .nav__toggle-bars::after { top: 10px; }
.nav-open .nav__toggle-bars::before { top: 5px; transform: rotate(45deg); }
.nav-open .nav__toggle-bars::after { top: 5px; transform: rotate(-45deg); }
.nav-open .nav__toggle-bars i { opacity: 0; }

/* mobile drawer */
.drawer { display: none; }

@media (max-width: 1180px) {
  .nav__menu, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
  .drawer {
    display: block; position: fixed; z-index: 99; left: 0; right: 0; top: var(--nav-h); bottom: 0; background: var(--white); overflow-y: auto;
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 1rem var(--gutter) 3rem; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s var(--ease), visibility .25s; border-top: 1px solid var(--line);
  }
  .nav-open .drawer { opacity: 1; visibility: visible; transform: none; }
  .nav-open { overflow: hidden; }
  .drawer details { border-bottom: 1px solid var(--line); }
  .drawer summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 1.05rem 0; font-weight: 800; font-size: 1.15rem; color: var(--graphite); cursor: pointer; min-height: 48px; }
  .drawer summary::-webkit-details-marker { display: none; }
  .drawer summary small { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-text); font-weight: 750; margin-left: auto; margin-right: 1rem; }
  .drawer summary::after { content: "+"; font-size: 1.4rem; color: var(--cobalt); font-weight: 600; width: 1rem; text-align: center; }
  .drawer details[open] summary::after { content: "–"; }
  .drawer ul { list-style: none; margin: 0 0 1rem; padding: 0; }
  .drawer li a { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); padding: .75rem 0; text-decoration: none; color: var(--charcoal); font-weight: 600; min-height: 44px; border-top: 1px solid var(--line); }
  .drawer li a span { color: var(--steel-text); font-size: .75rem; font-weight: 800; padding-top: .15rem; }
  .drawer li a[aria-current="page"] { color: var(--cobalt); }
  .drawer__cta { margin-top: 1.6rem; display: grid; gap: .7rem; }
  .drawer__cta .btn { justify-content: center; }
}
@media (max-width: 520px) {
  .brand__role { display: none; }
  .nav__toggle-label { display: none; }
  .nav__toggle { padding: 0 .8rem; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--graphite); color: #C9D2DD; position: relative; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mint); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--graphite-line); }
.footer__statement { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); font-weight: 800; line-height: .98; letter-spacing: -.045em; color: #fff; text-transform: uppercase; margin: 0 0 1.4rem; }
.footer__statement span { display: block; color: var(--mint); }
.footer__statement span:last-child { color: var(--electric); }
.footer__disclaimer { font-size: .82rem; color: #AEB9C7; max-width: 44ch; margin: 0; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.footer__h { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: var(--mint); margin: 0 0 1rem; display: flex; align-items: center; gap: .55rem; }
.footer__h::before { content: ""; width: 8px; height: 8px; background: var(--copper); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .9rem; }
.footer__contact { font-style: normal; display: grid; gap: .55rem; font-size: .95rem; }
.footer__contact strong { color: #fff; font-size: 1.05rem; }
.footer__contact a { display: inline-flex; gap: .55rem; align-items: center; word-break: break-all; }
.footer__contact svg { width: 16px; height: 16px; flex: none; color: var(--mint); }
.social { display: flex; flex-wrap: wrap; gap: .55rem; list-style: none; margin: 0 0 .9rem; padding: 0; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(220, 237, 231, .28); color: #fff; transition: background .2s, border-color .2s, color .2s; }
.social a:hover { background: var(--mint); border-color: var(--mint); color: var(--graphite); text-decoration: none; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social-note { font-size: .78rem; color: #AEB9C7; line-height: 1.5; margin: 0; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; padding-block: 1.4rem 1.8rem; font-size: .82rem; color: #AEB9C7; }
.footer__bottom p { margin: 0; }
.footer__signout { background: none; border: 1px solid rgba(220, 237, 231, .3); color: #fff; padding: .45rem .9rem; font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; min-height: 40px; }
.footer__signout:hover { background: var(--mint); color: var(--graphite); border-color: var(--mint); }
.footer__credit a { color: var(--mint); }

@media (max-width: 960px) {
  .footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .footer__cols { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
.social__off { width: 44px; height: 44px; display: grid; place-items: center; border: 1px dashed rgba(220, 237, 231, .22); color: rgba(255, 255, 255, .38); cursor: not-allowed; }
.social__off svg { width: 18px; height: 18px; fill: currentColor; }

/* keep outer dropdowns inside the viewport */
.nav__item:nth-last-child(-n+2) .nav__panel { left: auto; right: -1rem; transform: translateY(6px); }
.nav__item:nth-last-child(-n+2).is-open .nav__panel { transform: none; }
.nav__item:first-child .nav__panel { left: -1rem; transform: translateY(6px); }
.nav__item:first-child.is-open .nav__panel { transform: none; }
