/* ==========================================================================
   BHN Software — Portfolio Wrapper Layout (Brand Color Palette)
   Scoped under .bhn-pfp-page
   ========================================================================== */

.bhn-pfp-body {
  background: #f8fafc;
}

.bhn-pfp-page {
  font-family: 'Poppins', sans-serif;
  color: #061E47;
  overflow-x: clip;
}

.bhn-pfp-page h1,
.bhn-pfp-page h2,
.bhn-pfp-page h3,
.bhn-pfp-page h4 {
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.025em;
}

.bhn-pfp-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.pfp-grad {
  background: linear-gradient(120deg, #ffffff 0%, #38bdf8 50%, #FF8C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pfp-grad-dark {
  background: linear-gradient(120deg, #061E47 0%, #0066FF 55%, #FF6B00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bhn-pfp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(0, 102, 255, 0.18);
  border: 1px solid rgba(255, 140, 0, 0.44);
  color: #ffb84d;
  margin-bottom: 18px;
}

.bhn-pfp-eyebrow--light {
  background: rgba(0, 102, 255, 0.08);
  border-color: rgba(0, 102, 255, 0.22);
  color: #0052CC;
}

.bhn-pfp-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FF8C00 0%, #FF6B00 100%);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.96rem;
  border: 1px solid rgba(255, 184, 77, 0.45);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.36);
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bhn-pfp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(255, 107, 0, 0.5);
}

.bhn-pfp-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  background: rgba(0, 102, 255, 0.14);
  color: #f8fafc !important;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1px solid rgba(0, 136, 255, 0.44);
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.25s ease;
}

.bhn-pfp-btn-secondary:hover {
  background: rgba(0, 102, 255, 0.28);
  border-color: #FF8C00;
}

/* 1. HERO */
.pfp-hero {
  position: relative;
  background:
    radial-gradient(circle at 82% 20%, rgba(0, 102, 255, 0.34) 0%, transparent 48%),
    radial-gradient(circle at 12% 84%, rgba(255, 140, 0, 0.16) 0%, transparent 44%),
    linear-gradient(125deg, #061E47 0%, #08285E 58%, #04122E 100%);
  color: #f8fafc;
  padding: 2rem 0 64px;
  overflow: hidden;
}

.pfp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}

.pfp-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}

.pfp-breadcrumb a:hover {
  color: #FF8C00;
}

.pfp-hero-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
}

.pfp-hero h1 {
  font-size: clamp(2.15rem, 4.1vw, 3.45rem);
  font-weight: 700;
  line-height: 1.09;
  color: #ffffff;
  margin-bottom: 18px;
}

.pfp-hero-lead {
  font-size: 1.06rem;
  color: #cbd5e1;
  max-width: 585px;
  margin-bottom: 26px;
}

.pfp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.pfp-hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.pfp-hero-metrics strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  color: #ffffff;
  line-height: 1.1;
}

.pfp-hero-metrics span {
  font-size: 0.78rem;
  color: #93c5fd;
}

.pfp-collage {
  display: grid;
  gap: 12px;
}

.pfp-shot-primary,
.pfp-shot-mini {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 136, 255, 0.34);
  background: #041028;
  box-shadow: 0 20px 44px rgba(2, 10, 30, 0.5);
}

.pfp-shot-primary img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.pfp-shot-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pfp-shot-mini img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.pfp-shot-primary span,
.pfp-shot-mini span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(6, 30, 71, 0.92);
  border: 1px solid rgba(255, 140, 0, 0.45);
  color: #ffb84d;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* 2. CASE SPOTLIGHT */
.pfp-spotlight {
  background: #ffffff;
  border-bottom: 1px solid #dbeafe;
  padding: 44px 0;
}

.pfp-spot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pfp-spot-card {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-top: 3px solid #0066FF;
  border-radius: 16px;
  padding: 20px;
}

.pfp-spot-card:nth-child(2n) {
  border-top-color: #FF8C00;
}

.pfp-spot-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0052CC;
  margin-bottom: 6px;
}

.pfp-spot-card h3 {
  font-size: 1.05rem;
  color: #061E47;
  margin-bottom: 6px;
}

.pfp-spot-card p {
  font-size: 0.84rem;
  color: #475569;
  margin-bottom: 10px;
}

.pfp-spot-card strong {
  color: #FF6B00;
  font-size: 0.86rem;
}

/* 3. GALLERY HEADER & SEARCH */
.pfp-gallery-wrap {
  background: #f8fafc;
  padding-top: 64px;
}

.pfp-gallery-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 10px;
}

.pfp-gallery-head h2 {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #061E47;
  margin-bottom: 0;
}

.pfp-search-box {
  position: relative;
  width: 340px;
  max-width: 100%;
}

.pfp-search-box i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 0.9rem;
}

.pfp-search-box input {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 40px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  color: #061E47;
  font-size: 0.9rem;
}

.pfp-search-box input:focus {
  outline: none;
  border-color: #0066FF;
}

.pfp-no-match {
  text-align: center;
  background: #ffffff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 40px 20px;
  margin-bottom: 48px;
}

.pfp-no-match i {
  font-size: 2rem;
  color: #FF8C00;
  margin-bottom: 10px;
}

.pfp-no-match h4 {
  color: #061E47;
  margin-bottom: 6px;
}

.pfp-no-match p {
  color: #475569;
  margin: 0;
}

/* 4. TECH STACK & 5. FINAL CTA */
.pfp-tech-sec {
  background: linear-gradient(180deg, #061E47 0%, #04122E 100%);
  color: #ffffff;
  padding: 84px 0;
}

.pfp-head-center {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 40px;
}

.pfp-head-center h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  color: #ffffff;
}

.pfp-final-cta {
  background: #f8fafc;
  padding: 72px 0 84px;
}

.pfp-final-box {
  background: linear-gradient(135deg, #061E47 0%, #0052CC 100%);
  border: 1px solid rgba(255, 140, 0, 0.36);
  border-radius: 24px;
  padding: 44px;
  color: #ffffff;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pfp-final-box h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: #ffffff;
  margin-bottom: 8px;
}

.pfp-final-box p {
  color: #dbeafe;
  margin: 0;
  max-width: 600px;
}

.pfp-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1100px) {
  .pfp-hero-grid {
    grid-template-columns: 1fr;
  }

  .pfp-spot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .pfp-hero {
    padding: 36px 0 52px;
  }

  .pfp-hero-metrics,
  .pfp-spot-grid,
  .pfp-shot-row {
    grid-template-columns: 1fr;
  }

  .pfp-final-box {
    padding: 26px 20px;
  }
}