/*
 * Handwriting Heroes — 2026 nav only.
 * For pages that use header.php (.hhnew .nav) but do not load full style2.css.
 * Do not apply .hhnew * resets — content lives inside .hhnew on those pages.
 */

.hhnew {
  --hh-blue: #29ABE2;
  --hh-red: #E24B4A;
  --font-body: "Quicksand", sans-serif;
  --font-heading: "Roboto", sans-serif;
}

.hhnew .nav {
  background: var(--hh-blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-sizing: border-box;
}

.hhnew .nav *,
.hhnew .nav *::before,
.hhnew .nav *::after {
  box-sizing: border-box;
}

.hhnew .nav-logo {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-heading);
}

.hhnew .nav-logo img {
  width: 200px;
  aspect-ratio: 200 / 94;
  display: block;
  padding: 10px;
}

.hhnew .nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hhnew .nav-links a {
  white-space: nowrap;
}

.hhnew .nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.hhnew .nav-login {
  margin-left: 0;
}

.hhnew .nav-links a,
.hhnew .nav-login {
  color: #fff;
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  font-family: var(--font-body);
}

.hhnew .nav-cta {
  background: var(--hh-red);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 24px;
  text-decoration: none;
  font-family: var(--font-heading);
}

@media (max-width: 600px) {
  .hhnew .nav {
    padding: 6px 12px 10px;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 6px;
  }

  .hhnew .nav-logo {
    order: 1;
    width: auto;
    flex-shrink: 0;
  }

  .hhnew .nav-logo img {
    width: 110px;
    padding: 4px;
  }

  .hhnew .nav-actions {
    order: 2;
    margin-left: auto;
    gap: 12px;
  }

  .hhnew .nav-cta {
    order: 2;
    flex-shrink: 0;
    font-size: 11px;
    padding: 6px 12px;
    margin-left: 0;
  }

  .hhnew .nav-links {
    order: 3;
    flex: none;
    width: 100%;
    flex-basis: 100%;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hhnew .nav-links a,
  .hhnew .nav-login {
    font-size: 14px;
    white-space: nowrap;
  }

  .hhnew .nav-login {
    margin-left: 0;
  }
}
