/* ── Header shell ─────────────────────────────────── */
.c-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.c-header__inner {
  width: 100%;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: auto;
  transition: background 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}

.c-header.is-scrolled .c-header__inner {
  background: rgba(14, 20, 16, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 20px rgba(0,0,0,0.2);
  padding: 8px 24px;
}

/* ── Logo ─────────────────────────────────────────── */
.c-header__brand {
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
  text-decoration: none;
}

.c-header__logo {
  display: block;
  width: 60px;
  height: auto;
  transition: opacity 0.2s ease;
}

.c-header__brand:hover .c-header__logo { opacity: 0.75; }

/* ── Burger ───────────────────────────────────────── */
.c-header__toggle {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  z-index: 1002;
}

.c-header__toggleLine {
  position: absolute;
  left: 6px;
  width: 24px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.26s ease, opacity 0.18s ease, top 0.26s ease;
  transform-origin: center;
}

.c-header__toggleLine:nth-child(1) { top: 10px; }
.c-header__toggleLine:nth-child(2) { top: 18px; }
.c-header__toggleLine:nth-child(3) { top: 26px; }

.c-header__toggle[aria-expanded="true"] .c-header__toggleLine:nth-child(1) { top: 18px; transform: rotate(45deg); }
.c-header__toggle[aria-expanded="true"] .c-header__toggleLine:nth-child(2) { opacity: 0; }
.c-header__toggle[aria-expanded="true"] .c-header__toggleLine:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* ── Nav overlay ──────────────────────────────────── */
.c-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: auto;
}

.c-nav[hidden] { display: none; }

.c-nav__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.c-nav.is-open .c-nav__backdrop { opacity: 1; }

.c-nav__panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Mobile drawer ────────────────────────────────── */
.c-nav__sheet {
  pointer-events: auto;
  position: fixed;
  top: 0;
  left: 0;
  bottom: auto;
  width: 75vw;
  max-width: 280px;
  padding: 72px 20px 40px;
  background: #111a15;
  color: #fff;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: 24px 0 64px rgba(0,0,0,0.4);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 1001;
  box-sizing: border-box;
}

.c-nav.is-open .c-nav__sheet { transform: translateX(0); }

.c-nav__meta {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.c-nav__eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 5px;
}

.c-nav__intro {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.45);
}

/* ── Nav items ────────────────────────────────────── */
.c-nav__grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c-nav__item {
  display: block;
  padding: 10px 12px;
  border-radius: 7px;
  color: #fff;
  text-decoration: none;
  transition: background 0.15s ease;
}

.c-nav__item:hover { background: rgba(255,255,255,0.07); }

.c-nav__itemTitle {
  display: block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.c-nav__itemText {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.c-nav__footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.c-nav__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: 6px;
  background: #243d2e;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.c-nav__cta:hover { background: #1a2e22; }

/* ── Desktop dropdown ─────────────────────────────── */
@media (min-width: 900px) {
  .c-header__inner { padding: 16px 40px; }
  .c-header.is-scrolled .c-header__inner { padding: 12px 40px; }
  .c-header__logo { width: 68px; }

  .c-nav__sheet {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto !important;
    width: 100%;
    max-width: none;
    height: auto !important;
    min-height: 0;
    padding: 88px 40px 36px;
    transform: translateY(-110%);
    transition: transform 0.36s cubic-bezier(.2,.9,.2,1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.28);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    overflow-y: visible;
  }

  .c-nav.is-open .c-nav__sheet { transform: translateY(0); }

  .c-nav__meta {
    display: grid;
    grid-template-columns: 180px 1fr;
    align-items: end;
    gap: 24px;
    margin-bottom: 20px;
  }

  .c-nav__grid {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .c-nav__item {
    flex: 1 1 150px;
    padding: 14px 16px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
  }

  .c-nav__item:hover { background: rgba(255,255,255,0.08); }
  .c-nav__itemTitle { font-size: 16px; }

  .c-nav__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    padding-top: 18px;
  }

  .c-nav__cta {
    width: auto;
    padding: 0 28px;
  }

  .c-nav__panel {
  height: auto;
}

.c-nav {
  height: auto;
}
}

/* ── WP admin bar offsets ─────────────────────────── */
body.admin-bar .c-header { top: 32px; }

body.admin-bar .c-nav,
body.admin-bar .c-nav__backdrop,
body.admin-bar .c-nav__panel,
body.admin-bar .c-nav__sheet {
  top: 0 !important;
}

body.admin-bar .c-nav__sheet {
  height: 100vh !important;
  height: 100dvh !important;
}

@media (max-width: 782px) {
  body.admin-bar .c-header { top: 46px; }
}

.c-nav__sheet {
  z-index: 1050 !important;
}

.c-nav__backdrop {
  z-index: 1040 !important;
}

.c-nav__panel {
  z-index: 1045 !important;
}

@media (min-width: 900px) {
  .c-nav,
  .c-nav__panel,
  .c-nav__backdrop {
    height: auto !important;
    bottom: auto !important;
  }

  .c-nav__sheet {
    position: absolute !important;
    height: auto !important;
    bottom: auto !important;
    min-height: 0 !important;
  }
}