/* Pixel Hub Host - shared header and footer */

.phh-topbar {
  display: none;
}

.phh-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 26px 16px 10px;
  background: rgba(3, 6, 18, 0.92);
  border-bottom: 0;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  font-family: Inter, "AR One Sans", "Segoe UI", system-ui, sans-serif;
}

html {
  scroll-padding-top: 185px;
}

#planos,
#diferenciais,
#faq {
  scroll-margin-top: 185px;
}

.phh-container {
  width: 100%;
  max-width: 1490px;
  min-height: 94px;
  margin: 0 auto;
  padding: 18px 28px 18px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2vw, 34px);
  position: relative;
  border: 1px solid rgba(56, 189, 248, 0.52);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(7, 12, 31, 0.96) 0%, rgba(4, 7, 21, 0.98) 100%);
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.08) inset,
    0 0 34px rgba(56, 189, 248, 0.22),
    0 22px 50px rgba(0, 0, 0, 0.36);
}

.phh-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #f8fafc;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  min-width: 245px;
}

.phh-logo:hover {
  color: #f8fafc;
  text-decoration: none !important;
}

.phh-logo img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  border-radius: 12px;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.35));
}

.phh-logo-text {
  display: grid;
  gap: 3px;
  line-height: 1;
}

.phh-logo-word {
  color: #f8fafc;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.phh-logo-word span {
  color: #2fb8ff;
}

.phh-logo-sub {
  color: rgba(248, 250, 252, 0.78);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 8px;
  padding-left: 2px;
}

.phh-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  margin: 0;
}

.phh-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2vw, 38px);
  margin: 0;
  padding: 0;
  justify-content: center;
}

.phh-menu > li {
  position: relative;
}

.phh-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  transition: color .2s, transform .2s;
  font-family: Inter, "AR One Sans", "Segoe UI", system-ui, sans-serif;
}

.phh-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.8);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .2s ease;
}

.phh-menu > li > a:hover,
.phh-menu > li > a:focus-visible {
  color: #f8fafc;
  transform: translateY(-1px);
  outline: none;
}

.phh-menu > li > a:hover::after,
.phh-menu > li > a:focus-visible::after,
.phh-menu > li > a.is-active::after {
  transform: scaleX(1);
}

.phh-menu a.is-active {
  color: #38bdf8;
}

.phh-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 10020;
  width: 280px;
  padding: 10px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.12), transparent 38%),
    rgba(5, 10, 26, 0.98);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36), 0 0 24px rgba(56, 189, 248, 0.14);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.phh-dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.phh-has-dropdown:hover .phh-dropdown,
.phh-has-dropdown:focus-within .phh-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.phh-dropdown a {
  display: grid;
  gap: 2px;
  min-height: 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: #edf6ff;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
}

.phh-dropdown a::after {
  display: none;
}

.phh-dropdown a:hover,
.phh-dropdown a:focus-visible {
  color: #fff;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.22);
  transform: none;
}

.phh-dropdown span {
  font-size: 15px;
  font-weight: 850;
}

.phh-dropdown small {
  color: rgba(203, 213, 225, 0.76);
  font-size: 12px;
  font-weight: 600;
}

.phh-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 430px;
}

.phh-discord-btn,
.phh-client-btn,
.phh-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.phh-discord-btn {
  width: 44px;
  min-width: 44px;
  color: #f8fafc;
  background: transparent;
  border: 0;
  font-size: 25px;
}

.phh-discord-btn .fa-brands,
.phh-mobile-menu .fa-brands {
  font-family: "Font Awesome 6 Brands" !important;
  font-weight: 400 !important;
}

.phh-client-btn {
  gap: 10px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.phh-cta-btn {
  gap: 10px;
  padding: 0 22px;
  background: linear-gradient(135deg, #1eb5ff 0%, #0b74e8 100%);
  border: 1px solid rgba(125, 211, 252, 0.44);
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.3);
}

.phh-discord-btn:hover,
.phh-client-btn:hover,
.phh-cta-btn:hover,
.phh-discord-btn:focus-visible,
.phh-client-btn:focus-visible,
.phh-cta-btn:focus-visible {
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}

.phh-client-btn:hover,
.phh-client-btn:focus-visible {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}

.phh-cta-btn:hover,
.phh-cta-btn:focus-visible {
  background: linear-gradient(135deg, #4fd8ff 0%, #0b8feb 100%);
  box-shadow: 0 16px 32px rgba(14, 165, 233, 0.42);
}

.phh-mobile-menu a i {
  width: 20px;
  margin-right: 10px;
  color: #38bdf8;
  text-align: center;
}

.phh-burger {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
  width: 50px;
  height: 50px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.phh-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #dbeafe;
  margin: 2px 0;
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease;
}

.phh-burger:hover,
.phh-burger:focus-visible {
  border-color: rgba(56,189,248,0.48);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.16);
  outline: none;
}

.phh-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.phh-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.phh-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.phh-mobile {
  width: min(100% - 32px, 1490px);
  margin: 10px auto 0;
  background: rgba(7, 12, 31, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.phh-mobile-menu {
  list-style: none;
  margin: 0;
  padding: 8px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phh-mobile-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 12px;
  color: #dce6f4;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(255,255,255,0.03);
}

.phh-mobile-menu a:hover {
  background: rgba(56,189,248,0.08);
  color: #f8fafc;
}

.phh-mobile-submenu {
  display: grid;
  gap: 6px;
  padding-left: 12px;
}

.phh-mobile-submenu a {
  min-height: 40px;
  padding-left: 14px;
  background: rgba(56, 189, 248, 0.04);
}

body.phh-scrolled .phh-container {
  min-height: 82px;
  padding-top: 14px;
  padding-bottom: 14px;
}

body.phh-scrolled .phh-logo img {
  width: 56px;
  height: 56px;
}

.phh-footer {
  background: #070b14;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 50px 20px 20px;
  color: #a8b3c5;
}

.phh-foot-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.phh-foot-brand {
  flex: 1;
  min-width: 260px;
}

.phh-foot-brand .phh-logo img {
  width: 55px;
  height: 55px;
  border-radius: 8px;
}

.phh-foot-brand p {
  color: #a8b3c5;
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.phh-foot-links {
  flex: 1;
  min-width: 160px;
}

.phh-foot-links h4,
.phh-foot-social h4 {
  color: #f8fafc;
  font-size: 15px;
  margin-bottom: 12px;
}

.phh-foot-links a {
  color: #a8b3c5;
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  transition: color .2s;
  text-decoration: none;
}

.phh-foot-links a:hover {
  color: #38bdf8;
}

.phh-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #151f2e;
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: 0.2s;
  text-decoration: none;
}

.phh-socials a img {
  width: 24px;
  height: 24px;
}

.phh-socials a:hover {
  background: #1687c7;
  transform: translateY(-2px);
}

.phh-copy {
  text-align: center;
  color: #a8b3c5;
  font-size: 13px;
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 15px;
}

body.minecraft-page .phh-footer {
  padding: 48px 20px 24px;
}

body.minecraft-page .phh-footer .phh-foot-container {
  width: min(960px, calc(100% - 48px));
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(300px, 1.35fr) minmax(140px, 0.6fr) minmax(130px, 0.55fr);
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(72px, 8vw, 150px);
}

body.minecraft-page .phh-footer .phh-foot-brand,
body.minecraft-page .phh-footer .phh-foot-links,
body.minecraft-page .phh-footer .phh-foot-social {
  flex: initial;
  min-width: 0;
  text-align: left;
}

body.minecraft-page .phh-footer .phh-copy {
  width: min(960px, calc(100% - 48px));
  margin: 42px auto 0;
}

@media (max-width: 1240px) {
  .phh-container {
    padding-left: 28px;
    padding-right: 22px;
  }

  .phh-logo {
    min-width: 210px;
  }

  .phh-logo-word {
    font-size: 22px;
  }

  .phh-logo-sub {
    font-size: 12px;
    letter-spacing: 6px;
  }

  .phh-actions {
    min-width: 360px;
  }

  .phh-client-btn,
  .phh-cta-btn {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 14.5px;
  }
}

@media (max-width: 1040px) {
  .phh-nav,
  .phh-actions {
    display: none;
  }

  .phh-container {
    min-height: 82px;
    justify-content: space-between;
    padding: 14px 18px 14px 22px;
    border-radius: 20px;
  }

  .phh-logo {
    min-width: 0;
  }

  .phh-burger {
    display: flex;
    width: 48px;
    height: 48px;
  }

  .phh-burger span {
    width: 22px;
    height: 2px;
    margin: 2px 0;
  }
}

@media (max-width: 900px) {
  .phh-foot-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  body.minecraft-page .phh-footer .phh-foot-container {
    width: min(520px, calc(100% - 32px));
    max-width: 520px;
    display: flex;
    gap: 28px;
  }

  body.minecraft-page .phh-footer .phh-foot-brand,
  body.minecraft-page .phh-footer .phh-foot-links,
  body.minecraft-page .phh-footer .phh-foot-social {
    text-align: center;
  }

  body.minecraft-page .phh-footer .phh-logo,
  body.minecraft-page .phh-footer .phh-socials {
    justify-content: center;
  }

  body.minecraft-page .phh-footer .phh-copy {
    width: min(520px, calc(100% - 32px));
  }
}

@media (max-width: 640px) {
  .phh-header {
    padding: 14px 10px 8px;
  }

  .phh-container {
    min-height: 74px;
    padding: 12px 14px;
  }

  .phh-logo img {
    width: 48px;
    height: 48px;
  }

  .phh-logo-word {
    font-size: 18px;
  }

  .phh-logo-sub {
    font-size: 10px;
    letter-spacing: 5px;
  }

}
