/* ============================================
   Grow Halal — Premium Hero Component
   Design language: Apple × Stripe × Linear
   Reusable across all pages.
   ============================================ */

/* ── Animations ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes heroCardFloat {
  from { opacity: 0; transform: translateY(32px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* ── Hero Container ── */
.gh-hero {
  position: relative;
  padding: 7rem 1.5rem 6rem;
  overflow: hidden;
  background: var(--color-white);
}

/* Background: soft radial gradient blobs */
.gh-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(45, 106, 79, 0.04) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.gh-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.025) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* Third blob — top-left warm accent */
.gh-hero__bg-blob {
  position: absolute;
  top: 10%;
  left: 30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.02) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Layout ── */
.gh-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.gh-hero__content {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Eyebrow ── */
.gh-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(27, 67, 50, 0.06);
  border: 1px solid rgba(27, 67, 50, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.gh-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  animation: heroPulse 2s ease-in-out infinite;
}

/* Category-specific eyebrow colors */
.gh-hero--pensions .gh-hero__eyebrow {
  color: var(--color-cat-pensions);
  background: rgba(4, 120, 87, 0.06);
  border-color: rgba(4, 120, 87, 0.1);
}
.gh-hero--pensions .gh-hero__eyebrow-dot { background: var(--color-cat-pensions); }

.gh-hero--funds .gh-hero__eyebrow {
  color: var(--color-cat-funds);
  background: rgba(124, 58, 237, 0.05);
  border-color: rgba(124, 58, 237, 0.1);
}
.gh-hero--funds .gh-hero__eyebrow-dot { background: var(--color-cat-funds); }

.gh-hero--stocks .gh-hero__eyebrow {
  color: var(--color-cat-stocks);
  background: rgba(29, 78, 216, 0.05);
  border-color: rgba(29, 78, 216, 0.1);
}
.gh-hero--stocks .gh-hero__eyebrow-dot { background: var(--color-cat-stocks); }

.gh-hero--tools .gh-hero__eyebrow {
  color: var(--color-cat-faith);
  background: rgba(180, 83, 9, 0.05);
  border-color: rgba(180, 83, 9, 0.08);
}
.gh-hero--tools .gh-hero__eyebrow-dot { background: var(--color-cat-faith); }

/* ── Headline ── */
.gh-hero__headline {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  max-width: 580px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

/* ── Supporting Text ── */
.gh-hero__text {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

/* ── CTA Buttons ── */
.gh-hero__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.gh-hero__btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.15);
}
.gh-hero__btn-primary:hover {
  background: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 67, 50, 0.2);
  color: var(--color-white);
}
.gh-hero__btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.gh-hero__btn-secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(27, 67, 50, 0.03);
  transform: translateY(-2px);
}

/* ── Trust Bar ── */
.gh-hero__trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.gh-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.gh-hero__trust-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gh-hero__trust-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--color-positive);
  stroke-width: 2.5;
  fill: none;
}

/* ── Illustration Panel ── */
.gh-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

/* Glassmorphism floating cards */
.gh-hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.5rem;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 4px rgba(0, 0, 0, 0.02);
  animation: heroCardFloat 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.gh-hero__card:nth-child(1) { animation-delay: 0.4s; }
.gh-hero__card:nth-child(2) { animation-delay: 0.55s; }
.gh-hero__card:nth-child(3) { animation-delay: 0.7s; }

.gh-hero__card-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-subtle);
  margin-bottom: 0.35rem;
}
.gh-hero__card-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}
.gh-hero__card-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.2rem;
}
.gh-hero__card-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  margin-top: 0.4rem;
}
.gh-hero__card-badge--green {
  background: rgba(4, 120, 87, 0.1);
  color: var(--color-positive);
}
.gh-hero__card-badge--amber {
  background: rgba(180, 83, 9, 0.1);
  color: var(--color-warning);
}
.gh-hero__card-badge--blue {
  background: rgba(29, 78, 216, 0.08);
  color: var(--color-info);
}

/* Visual background gradient sphere */
.gh-hero__visual-bg {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.5) 0%, rgba(167, 243, 208, 0.3) 50%, rgba(110, 231, 183, 0.2) 100%);
  filter: blur(2px);
}

/* ── Page-specific visual positions ── */
/* Home */
.gh-hero--home .gh-hero__card:nth-child(1) { top: 8%; right: 5%; }
.gh-hero--home .gh-hero__card:nth-child(2) { bottom: 15%; left: 0; }
.gh-hero--home .gh-hero__card:nth-child(3) { top: 45%; right: 0; }

/* Pensions */
.gh-hero--pensions .gh-hero__card:nth-child(1) { top: 5%; right: 10%; }
.gh-hero--pensions .gh-hero__card:nth-child(2) { bottom: 10%; left: 5%; }
.gh-hero--pensions .gh-hero__card:nth-child(3) { bottom: 35%; right: 0; }

/* Funds */
.gh-hero--funds .gh-hero__card:nth-child(1) { top: 10%; left: 5%; }
.gh-hero--funds .gh-hero__card:nth-child(2) { bottom: 12%; right: 5%; }
.gh-hero--funds .gh-hero__card:nth-child(3) { top: 40%; right: 10%; }

/* Stocks */
.gh-hero--stocks .gh-hero__card:nth-child(1) { top: 5%; right: 5%; }
.gh-hero--stocks .gh-hero__card:nth-child(2) { bottom: 20%; left: 5%; }
.gh-hero--stocks .gh-hero__card:nth-child(3) { top: 50%; left: 10%; }

/* Tools */
.gh-hero--tools .gh-hero__card:nth-child(1) { top: 10%; right: 10%; }
.gh-hero--tools .gh-hero__card:nth-child(2) { bottom: 15%; left: 10%; }

/* Category-specific visual backgrounds */
.gh-hero--pensions .gh-hero__visual-bg {
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.4) 0%, rgba(167, 243, 208, 0.25) 100%);
}
.gh-hero--funds .gh-hero__visual-bg {
  background: linear-gradient(135deg, rgba(237, 233, 254, 0.4) 0%, rgba(196, 181, 253, 0.2) 100%);
}
.gh-hero--stocks .gh-hero__visual-bg {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.4) 0%, rgba(147, 197, 253, 0.2) 100%);
}
.gh-hero--tools .gh-hero__visual-bg {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.3) 0%, rgba(252, 211, 77, 0.15) 100%);
}

/* ── Search variant (Homepage) ── */
.gh-hero__search {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 14px;
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: all var(--transition-slow);
  max-width: 520px;
  margin-bottom: 1rem;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.gh-hero__search:focus-within {
  border-color: var(--color-primary-light);
  box-shadow: 0 8px 32px rgba(27, 67, 50, 0.08), 0 0 0 4px rgba(27, 67, 50, 0.04);
}
.gh-hero__search-icon {
  color: var(--color-text-subtle);
  flex-shrink: 0;
  display: flex;
}
.gh-hero__search-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; stroke-width: 2;
  fill: none;
}
.gh-hero__search-input {
  border: none; outline: none;
  font-family: var(--font-main);
  font-size: 0.92rem;
  color: var(--color-text);
  flex: 1;
  padding: 0.75rem 0.75rem;
  background: transparent;
}
.gh-hero__search-input::placeholder { color: var(--color-text-subtle); }
.gh-hero__search-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}
.gh-hero__search-btn:hover {
  background: var(--color-primary-light);
  transform: scale(1.04);
}
.gh-hero__search-btn svg {
  width: 18px; height: 18px;
  stroke: currentColor; stroke-width: 2.5;
  fill: none;
}

/* Popular searches */
.gh-hero__popular {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  margin-bottom: 2.5rem;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.gh-hero__popular-label {
  color: var(--color-text-subtle);
  font-weight: 500;
}
.gh-hero__popular a {
  color: var(--color-primary);
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: rgba(27, 67, 50, 0.04);
  border: 1px solid rgba(27, 67, 50, 0.06);
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
}
.gh-hero__popular a:hover {
  background: rgba(27, 67, 50, 0.08);
  border-color: rgba(27, 67, 50, 0.12);
}

/* ============================================
   Responsive — Mobile First
   ============================================ */
@media (max-width: 1024px) {
  .gh-hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .gh-hero__headline { max-width: 100%; margin: 0 auto 1.5rem; }
  .gh-hero__text { max-width: 540px; margin: 0 auto 2.5rem; }
  .gh-hero__actions { justify-content: center; }
  .gh-hero__trust { justify-content: center; }
  .gh-hero__search { margin: 0 auto 1rem; }
  .gh-hero__popular { justify-content: center; }
  .gh-hero__visual { min-height: 320px; }
  .gh-hero__eyebrow { margin: 0 auto 1.75rem; }
}

@media (max-width: 768px) {
  .gh-hero {
    padding: 5rem 1.25rem 4rem;
  }
  .gh-hero__headline {
    font-size: 2.25rem;
  }
  .gh-hero__text {
    font-size: 1.05rem;
  }
  .gh-hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .gh-hero__btn-primary,
  .gh-hero__btn-secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }
  .gh-hero__trust {
    gap: 1rem;
  }
  .gh-hero__visual {
    min-height: 260px;
  }
  .gh-hero__visual-bg {
    width: 280px;
    height: 280px;
  }
  .gh-hero__card {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .gh-hero__card-value {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .gh-hero {
    padding: 4rem 1rem 3rem;
  }
  .gh-hero__headline {
    font-size: 1.85rem;
    letter-spacing: -0.03em;
  }
  .gh-hero__text {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .gh-hero__trust {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
  .gh-hero__visual {
    display: none;
  }
  .gh-hero__search {
    max-width: 100%;
  }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .gh-hero__content,
  .gh-hero__eyebrow,
  .gh-hero__headline,
  .gh-hero__text,
  .gh-hero__actions,
  .gh-hero__trust,
  .gh-hero__search,
  .gh-hero__popular,
  .gh-hero__card {
    animation: none !important;
  }
  .gh-hero__eyebrow-dot {
    animation: none !important;
  }
}
