/* Reserve header space before layout.js injects content — prevents CLS */
header { min-height: 64px; }

/* ── Nav shell ── */
.wf-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
}

/* ── Logo ── */
.wf-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.wf-logo__img {
  height: 30px;
  width: auto;
}
.wf-logo__text {
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--foreground);
}
.wf-logo__accent { color: var(--primary); }

/* ── Desktop nav links ── */
.wf-nav__links {
  display: none;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
@media (min-width: 768px) {
  .wf-nav__links { display: flex; }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 8px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--foreground);
  background: var(--muted);
}
.nav-link--active {
  color: var(--primary);
  font-weight: 600;
  background: var(--accent);
}
.nav-link--active:hover {
  color: var(--primary);
  background: var(--accent);
}

/* ── Dropdown ── */
.wf-dropdown { position: relative; }
.wf-dropdown__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.wf-dropdown--open .wf-dropdown__chevron { transform: rotate(180deg); }

.wf-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px;
  list-style: none;
  margin: 0;
  z-index: 100;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25), 0 4px 12px rgba(0,0,0,0.12);
  animation: wf-dropdown-in 0.15s ease both;
}
@keyframes wf-dropdown-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.wf-dropdown__menu.wf-open { display: block; }

.wf-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  transition: background 0.15s;
}
.wf-dropdown__item:hover { background: var(--muted); }
.wf-dropdown__item--active { background: var(--accent); }
.wf-dropdown__item--active:hover { background: var(--accent); }

.wf-dropdown__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  border: 1px solid rgba(245,158,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.wf-dropdown__item--active .wf-dropdown__icon {
  background: rgba(245,158,11,0.2);
}
.wf-dropdown__label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
}
.wf-dropdown__desc {
  display: block;
  font-size: 0.72rem;
  color: var(--muted-foreground);
  line-height: 1.4;
  margin-top: 1px;
}

/* ── Right controls ── */
.wf-nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.wf-nav__cta {
  display: none;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.wf-nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245,158,11,0.3);
}
@media (min-width: 768px) {
  .wf-nav__cta { display: inline-flex; }
}

/* ── Hamburger ── */
.wf-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: var(--muted);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.wf-hamburger:hover { background: var(--accent); }
.wf-hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--foreground);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
@media (min-width: 768px) {
  .wf-hamburger { display: none; }
}

/* ── Mobile menu ── */
.wf-mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 12px 20px 16px;
}
.wf-mobile-menu.wf-open { display: block; }
.wf-mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wf-mobile-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.wf-mobile-link:hover { background: var(--muted); }
.wf-mobile-link--active { color: var(--primary); font-weight: 600; background: var(--accent); }

.wf-mobile-group { margin: 4px 0; }
.wf-mobile-group__label {
  display: block;
  padding: 8px 12px 4px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.wf-mobile-group__items {
  list-style: none;
  margin: 0 0 0 12px;
  padding: 0 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 2px solid var(--border);
}
.wf-mobile-sublink {
  display: block;
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}
.wf-mobile-sublink:hover { background: var(--muted); color: var(--foreground); }
.wf-mobile-sublink--active { color: var(--primary); font-weight: 600; }

.wf-mobile-menu__cta {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 11px 20px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 10px;
  text-decoration: none;
}

/* ── Footer ── */
.wf-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 640px) {
  .wf-footer { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .wf-footer { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.wf-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-bottom: 10px;
}
.wf-footer__logo-img { height: 26px; width: auto; }
.wf-footer__logo-text {
  font-family: var(--font-display, 'Bricolage Grotesque', sans-serif);
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.wf-footer__tagline {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin: 0 0 10px;
  max-width: 220px;
}
.wf-footer__copy {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

.wf-footer__heading {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin: 0 0 14px;
}
.wf-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wf-footer__link {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}
.wf-footer__link:hover { color: var(--primary); }

.wf-footer__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1200px;
  margin: 28px auto 0;
  padding: 16px 20px 0;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.wf-footer__bar-dot {
  color: var(--primary);
  font-size: 1rem;
  line-height: 1;
}
