/* =============================================
   HUB GOVTECH PR — CUSTOM STYLES
   Fonte: Space Grotesk (headings) / Inter (body)
   Fundo: #000000
   ============================================= */

:root {
  --hubgovpr-accent:   #E3572E;
  --hubgovpr-white:    #FFFFFF;
  --hubgovpr-muted:    #B9CCB2;
  --hubgovpr-line:     #27272A;
  --hubgovpr-bg:       #000000;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--hubgovpr-bg);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color: var(--hubgovpr-white);
}

/* ─── Page wrapper ─── */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.hubgovpr-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 72px;
  padding: 0 72px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hubgovpr-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hubgovpr-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.hubgovpr-logo { height: 32px; width: auto; display: block; }

/* Wrapper that collapses on mobile */
.hubgovpr-header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hubgovpr-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hubgovpr-nav-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.hubgovpr-nav-link:hover { color: var(--hubgovpr-white); }

.hubgovpr-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hubgovpr-register-btn {
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  color: var(--hubgovpr-white);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, border-color .18s;
}
.hubgovpr-register-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.5);
}

.hubgovpr-login-btn {
  height: 38px;
  padding: 0 18px;
  border: none;
  border-radius: 6px;
  color: #000;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  background: var(--hubgovpr-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
  transition: background .18s, transform .1s;
}
.hubgovpr-login-btn:hover { background: rgba(255, 255, 255, 0.88); }
.hubgovpr-login-btn:active { transform: scale(.985); }

/* ─── Mobile hamburger button ─── */
.hubgovpr-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hubgovpr-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--hubgovpr-white);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
/* Animated X on open */
.hubgovpr-header.nav-open .hubgovpr-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hubgovpr-header.nav-open .hubgovpr-menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hubgovpr-header.nav-open .hubgovpr-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hubgovpr-hero-section {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hubgovpr-bg-sphere {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.5;
  pointer-events: none;
}

.hubgovpr-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.97) 0%,
    rgba(0, 0, 0, 0.85) 35%,
    rgba(0, 0, 0, 0.25) 58%,
    rgba(0, 0, 0, 0.00) 80%
  );
  pointer-events: none;
}

.hubgovpr-hero-content {
  position: relative;
  z-index: 5;
  padding: 80px 72px 100px;
  max-width: 780px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hubgovpr-wordmark {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(48px, 5.5vw, 88px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -2px;
  color: var(--hubgovpr-white);
}

.hubgovpr-hero-text {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 640px;
}

.hubgovpr-tagline {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.35;
  color: var(--hubgovpr-white);
}

.hubgovpr-lede {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--hubgovpr-muted);
  text-wrap: pretty;
}

.hubgovpr-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  align-self: flex-start;
  padding: 0 36px;
  height: 48px;
  background: var(--hubgovpr-white);
  border-radius: 10px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, transform .1s;
}
.hubgovpr-cta-btn:hover { background: rgba(255, 255, 255, 0.88); }
.hubgovpr-cta-btn:active { transform: scale(.985); }

/* ══════════════════════════════════════════
   SECTOR GRID  (4 cols → 2 cols on tablet/mobile)
══════════════════════════════════════════ */
.hubgovpr-sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hubgovpr-line);
}

.hubgovpr-sector {
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  color: rgba(255, 255, 255, 0.72);
  border-right:  1px solid var(--hubgovpr-line);
  border-bottom: 1px solid var(--hubgovpr-line);
  transition: background .15s;
  cursor: default;
}
.hubgovpr-sector:hover { background: rgba(255, 255, 255, 0.03); }

/* 4-column border rules */
.hubgovpr-sector:nth-child(4n)        { border-right:  none; }
.hubgovpr-sector:nth-last-child(-n+4) { border-bottom: none; }

.hubgovpr-sector-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}
.hubgovpr-sector-icon svg { display: block; }

.hubgovpr-sector-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: var(--hubgovpr-white);
  text-align: center;
  line-height: 1.45;
}

/* ══════════════════════════════════════════
   FOOTER  (partner logos)
══════════════════════════════════════════ */
.hubgovpr-footer {
  padding: 32px 72px;
  border-top: 1px solid var(--hubgovpr-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.hubgovpr-partner { display: flex; align-items: center; opacity: .65; }
.hubgovpr-partner img { display: block; filter: brightness(0) invert(1); }

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet  (< 1024 px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hubgovpr-header       { padding: 0 40px; }
  .hubgovpr-header-right { gap: 28px; }
  .hubgovpr-nav          { gap: 24px; }
  .hubgovpr-hero-content { padding: 64px 40px 80px; }

  /* Switch to 2-column grid */
  .hubgovpr-sectors { grid-template-columns: repeat(2, 1fr); }

  /* Reset 4-col borders then apply 2-col borders */
  .hubgovpr-sector:nth-child(4n)        { border-right:  1px solid var(--hubgovpr-line); }
  .hubgovpr-sector:nth-last-child(-n+4) { border-bottom: 1px solid var(--hubgovpr-line); }
  .hubgovpr-sector:nth-child(2n)        { border-right:  none; }
  .hubgovpr-sector:nth-last-child(-n+2) { border-bottom: none; }

  .hubgovpr-footer { padding: 28px 40px; }
}

/* ══════════════════════════════════════════
   RESPONSIVE — Mobile  (< 768 px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hubgovpr-header {
    padding: 0 20px;
    height: 64px;
    position: relative; /* anchor for dropdown */
  }

  /* Hide desktop nav / actions; show hamburger */
  .hubgovpr-header-right { display: none; }
  .hubgovpr-menu-btn     { display: flex; }

  /* ─── Nav open state ─── */
  .hubgovpr-header.nav-open .hubgovpr-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: rgba(4, 4, 4, 0.98);
    border-bottom: 1px solid var(--hubgovpr-line);
    padding: 24px 20px 28px;
    z-index: 200;
  }
  .hubgovpr-header.nav-open .hubgovpr-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
  }
  .hubgovpr-header.nav-open .hubgovpr-header-actions {
    margin-top: 24px;
    border-top: 1px solid var(--hubgovpr-line);
    padding-top: 20px;
    width: 100%;
    gap: 10px;
  }

  /* Hero */
  .hubgovpr-hero-section { min-height: calc(100vh - 64px); }
  .hubgovpr-bg-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.82) 55%,
      rgba(0, 0, 0, 0.97) 100%
    );
  }
  .hubgovpr-hero-content { padding: 48px 20px 64px; }

  /* Sectors: keep 2-col on small mobile */
  .hubgovpr-sector { height: 100px; }

  /* Footer */
  .hubgovpr-footer { padding: 24px 20px; justify-content: center; gap: 20px; }
  .hubgovpr-partner img { height: 24px !important; }
}
