/* ============================================================
   page-hero.css — SciencePreneur Website
   Reusable inner-page header with gradient background,
   decorative shapes, breadcrumb, title, and subtitle.
   Used by: About, Services, Contact, and all inner pages.
   ============================================================ */

/* ── CONTAINER ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(
    165deg,
    var(--primary-900) 0%,
    var(--primary-700) 60%,
    var(--primary-500) 100%
  );
  padding: 60px 0 70px;
  position: relative;
  overflow: hidden;
}

/* ── DECORATIVE CIRCLES ─────────────────────────────────────── */
.page-hero-circle-1 {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,196,182,0.06), transparent);
  pointer-events: none;
}

.page-hero-circle-2 {
  position: absolute;
  bottom: -50px;
  left: 100px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,150,196,0.05), transparent);
  pointer-events: none;
}

/* ── DECORATIVE HEX SQUARES (8 total) ───────────────────────── */
.ph-hex {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  transform: rotate(30deg);
  pointer-events: none;
}

.ph-hex-1  { left:  5%;  top: 20%; }
.ph-hex-2  { left: 17%;  top: 45%; }
.ph-hex-3  { left: 29%;  top: 20%; }
.ph-hex-4  { left: 41%;  top: 45%; }
.ph-hex-5  { left: 53%;  top: 20%; }
.ph-hex-6  { left: 65%;  top: 45%; }
.ph-hex-7  { left: 77%;  top: 20%; }
.ph-hex-8  { left: 89%;  top: 45%; }

/* ── INNER CONTENT ──────────────────────────────────────────── */
.page-hero-inner {
  position: relative;
  z-index: 2;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.page-hero-breadcrumb a {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-hero-breadcrumb a:hover {
  color: var(--accent-400);
}

.page-hero-breadcrumb .separator {
  font-size: 13px;
  color: rgba(255,255,255,0.25);
}

.page-hero-breadcrumb .current {
  font-size: 13px;
  color: var(--accent-400);
}

/* ── TITLE ──────────────────────────────────────────────────── */
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--white);
  margin: 0 0 12px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* ── SUBTITLE ───────────────────────────────────────────────── */
.page-hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  margin: 0;
  max-width: 560px;
  line-height: 1.7;
}

/* ── GOLD GRADIENT (For Investors page) ─────────────────────── */
.page-hero--gold {
  background: linear-gradient(
    165deg,
    var(--primary-900) 0%,
    #1A1005        40%,
    #3D2A08        100%
  );
}

.page-hero--gold .page-hero-circle-1 {
  background: radial-gradient(circle, rgba(234,179,8,0.05), transparent);
}

.page-hero--gold .page-hero-circle-2 {
  background: radial-gradient(circle, rgba(27,107,147,0.04), transparent);
}

/* ── AMBER GRADIENT (Marketplace page) ──────────────────────── */
.page-hero--amber {
  background: linear-gradient(
    165deg,
    var(--primary-900) 0%,
    var(--primary-800) 45%,
    #2A1800        100%
  );
}

.page-hero--amber .page-hero-circle-1 {
  background: radial-gradient(circle, rgba(245,158,11,0.07), transparent);
}

.page-hero--amber .page-hero-circle-2 {
  background: radial-gradient(circle, rgba(46,196,182,0.04), transparent);
}

.page-hero--amber .page-hero-breadcrumb .current {
  color: var(--amber-400);
}

/* ── VIOLET GRADIENT (Knowledge Hub page) ───────────────────── */
.page-hero--violet {
  background: linear-gradient(
    165deg,
    var(--primary-900) 0%,
    #1A0A30        40%,
    var(--violet-700) 100%
  );
}

.page-hero--violet .page-hero-circle-1 {
  background: radial-gradient(circle, rgba(139,92,246,0.08), transparent);
}

.page-hero--violet .page-hero-circle-2 {
  background: radial-gradient(circle, rgba(46,196,182,0.05), transparent);
}

.page-hero--violet .page-hero-breadcrumb .current {
  color: var(--violet-400);
}

/* ── GREEN GRADIENT (For Scientists page) ───────────────────── */
.page-hero--green {
  background: linear-gradient(
    165deg,
    var(--primary-900) 0%,
    #062B20        40%,
    var(--green-700) 100%
  );
}

.page-hero--green .page-hero-circle-1 {
  background: radial-gradient(circle, rgba(16,185,129,0.06), transparent);
}

.page-hero--green .page-hero-circle-2 {
  background: radial-gradient(circle, rgba(16,185,129,0.04), transparent);
}

/* ── SPLIT LAYOUT (Services hero: text left + pills right) ─── */
.page-hero--split .page-hero-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}

.page-hero--split .page-hero-text {
  flex: 1 1 55%;
}

.page-hero--split .page-hero-visual {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* hero CTA buttons (used in Services split hero) */
.page-hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.page-hero-btn-primary {
  padding: 12px 28px;
  background: var(--accent-500);
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(46,196,182,0.3);
  transition: all 0.25s ease;
}

.page-hero-btn-primary:hover {
  background: var(--accent-600);
  transform: translateY(-2px);
  color: var(--white);
}

.page-hero-btn-secondary {
  padding: 12px 28px;
  background: transparent;
  color: var(--white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.3);
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s ease;
}

.page-hero-btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

/* ── RESPONSIVE: TABLET (≤ 992px) ──────────────────────────── */
@media (max-width: 992px) {
  .page-hero {
    padding: 48px 0 56px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .page-hero-subtitle {
    font-size: 16px;
  }

  .page-hero--split .page-hero-inner {
    flex-direction: column;
    gap: 32px;
  }

  .page-hero--split .page-hero-visual {
    width: 100%;
  }
}

/* ── RESPONSIVE: MOBILE (≤ 576px) ──────────────────────────── */
@media (max-width: 576px) {
  .page-hero {
    padding: 36px 0 44px;
  }

  .page-hero h1 {
    font-size: 28px;
  }

  .page-hero-subtitle {
    font-size: 14px;
  }

  .ph-hex {
    display: none;
  }

  .page-hero-cta {
    flex-direction: column;
    gap: 10px;
  }

  .page-hero-btn-primary,
  .page-hero-btn-secondary {
    text-align: center;
  }
}
