/* Higgsfield resource hub + nav accent — brand green #D1FE17 */

:root {
  --hfr-green: #d1fe17;
  --hfr-ink: #111216;
  --hfr-muted: #5a616c;
  --hfr-soft: #f6f8f0;
  --hfr-line: rgba(17, 18, 22, 0.1);
}

/* Top-nav emphasis — keep dark header readable */
.nav-item-higgsfield > .nav-dropdown-trigger,
a.nav-item-higgsfield {
  color: var(--hfr-green) !important;
  font-weight: 700;
}
.nav-item-higgsfield .nav-submenu-label span {
  color: var(--hfr-green);
}
.nav-item-higgsfield .nav-submenu a:hover strong,
.nav-item-higgsfield .nav-submenu a:focus strong {
  color: var(--hfr-ink);
}

body.hfr-hub-page {
  background: #fff;
  color: var(--hfr-ink);
}
body.hfr-hub-page .site-wrap::before {
  display: none;
}
body.hfr-hub-page .site-main {
  padding-top: var(--site-header-offset, 5rem);
  background: #fff;
}

.hfr-root {
  color: var(--hfr-ink);
  background: #fff;
}
.hfr-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hfr-muted);
  margin: 0 0 0.65rem;
}
.hfr-section-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3.75vw, 3.25rem);
}
.hfr-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.hfr-section h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  line-height: 1.25;
  font-weight: 800;
  margin: 0.35rem 0 0;
  max-width: 22em;
}
.hfr-lead {
  max-width: 42rem;
  color: var(--hfr-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-top: 0.75rem;
}

.hfr-hero {
  background: var(--hfr-green);
  color: var(--hfr-ink);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
}
.hfr-hero-inner {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 3.75vw, 3.25rem);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}
.hfr-hero .hfr-kicker {
  color: rgba(17, 18, 22, 0.72);
}
.hfr-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.12;
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
}
.hfr-hero-hook {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.7;
  margin: 1rem 0 0;
  max-width: 38rem;
  font-weight: 600;
}
.hfr-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}
.hfr-hero-note {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  color: rgba(17, 18, 22, 0.72);
}
.hfr-hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: rgba(17, 18, 22, 0.06);
  border-radius: 20px;
  padding: 1.5rem;
  min-height: 220px;
}
.hfr-hero-brand img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}
.hfr-hero-brand span {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.btn.hfr-btn-primary,
.btn.hfr-btn-wa,
.btn.hfr-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}
.btn.hfr-btn-primary {
  background: var(--hfr-ink);
  color: #fff;
}
.btn.hfr-btn-wa {
  background: #fff;
  color: var(--hfr-ink);
  border-color: rgba(17, 18, 22, 0.12);
}
.hfr-hero .btn.hfr-btn-ghost {
  background: transparent;
  color: var(--hfr-ink);
  border-color: rgba(17, 18, 22, 0.28);
}
.hfr-next .btn.hfr-btn-ghost {
  background: #fff;
  color: var(--hfr-ink);
  border-color: rgba(17, 18, 22, 0.14);
}

.hfr-pillars {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
.hfr-pillars li {
  background: var(--hfr-soft);
  border: 1px solid var(--hfr-line);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.hfr-inline-cta {
  margin-top: 1.25rem;
  font-weight: 700;
}
.hfr-inline-cta a {
  color: var(--hfr-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.hfr-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.hfr-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hfr-line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.hfr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(17, 18, 22, 0.08);
}
.hfr-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--hfr-green);
  overflow: hidden;
}
.hfr-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hfr-card-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hfr-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}
.hfr-card-title {
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1.35;
}
.hfr-card-excerpt {
  color: var(--hfr-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}
.hfr-card-cta {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.9rem;
}
.hfr-empty {
  margin-top: 1rem;
  color: var(--hfr-muted);
}

.hfr-next-panel {
  background: var(--hfr-soft);
  border: 1px solid var(--hfr-line);
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

@media (max-width: 900px) {
  .hfr-hero-inner {
    grid-template-columns: 1fr;
  }
  .hfr-hero-brand {
    min-height: 160px;
    flex-direction: row;
  }
  .hfr-hero-brand img {
    width: 72px;
    height: 72px;
  }
  .hfr-pillars,
  .hfr-grid {
    grid-template-columns: 1fr;
  }
}
