/* ============================================
   Grow Halal V2 — Premium Homepage
   Morningstar meets Apple. Research-first.
   ============================================ */

/* ── Hero Search ── */
.gh-hero-search {
  padding: 6rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}
.gh-hero-search::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4, 120, 87, 0.03) 0%, transparent 70%);
  pointer-events: none;
}
.gh-hero-search__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.gh-hero-search__headline {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
}
.gh-hero-search__desc {
  font-size: clamp(0.9rem, 1.6vw, 1.02rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 2.75rem;
}
.gh-hero-search__form {
  margin-bottom: 1.5rem;
}
.gh-hero-search__bar {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 60px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  max-width: 640px;
  margin: 0 auto;
}
.gh-hero-search__bar:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 4px 24px rgba(4, 120, 87, 0.08), 0 0 0 3px rgba(4, 120, 87, 0.06);
}
.gh-hero-search__icon {
  flex-shrink: 0;
  color: var(--color-text-subtle);
  display: flex;
  align-items: center;
  margin-right: 0.75rem;
}
.gh-hero-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  min-width: 0;
}
.gh-hero-search__input::placeholder {
  color: var(--color-text-subtle);
  font-weight: 400;
}
.gh-hero-search__btn {
  flex-shrink: 0;
  padding: 0.75rem 1.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-white);
  background: var(--color-primary);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}
.gh-hero-search__btn:hover {
  background: var(--color-primary-dark);
}
.gh-hero-search__btn:active {
  transform: scale(0.97);
}

/* Popular tags */
.gh-hero-search__popular {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.gh-hero-search__popular-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-subtle);
  margin-right: 0.15rem;
}
.gh-hero-search__tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  background: rgba(4, 120, 87, 0.04);
  border: 1px solid rgba(4, 120, 87, 0.08);
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.gh-hero-search__tag:hover {
  background: rgba(4, 120, 87, 0.08);
  border-color: rgba(4, 120, 87, 0.18);
  color: var(--color-primary);
}

/* Recent research */
.gh-hero-search__recent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: var(--color-text-subtle);
}
.gh-hero-search__recent-label {
  font-weight: 600;
}
.gh-hero-search__recent-link {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.gh-hero-search__recent-link:hover {
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 640px) {
  .gh-hero-search { padding: 4rem 1.25rem 3rem; }
  .gh-hero-search__bar {
    flex-direction: column;
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    gap: 0.5rem;
  }
  .gh-hero-search__icon { display: none; }
  .gh-hero-search__input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    font-size: 1rem;
    text-align: center;
  }
  .gh-hero-search__btn {
    width: 100%;
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }
}

/* ── Navbar Overrides (Homepage) ── */
.navbar__logo-icon { font-size: 1.3rem; }
.navbar__logo-text {
  font-size: 1rem; font-weight: 800; color: var(--color-primary);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.navbar__logo-sub {
  font-size: 0.62rem; color: var(--color-text-subtle); font-weight: 400;
  margin-left: 0.6rem; display: none;
}
@media (min-width: 900px) { .navbar__logo-sub { display: inline; } }

.navbar__cta-item { margin-left: 0.75rem; }
.navbar__cta-btn {
  display: inline-flex; align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--color-primary); color: var(--color-white) !important;
  font-weight: 600; font-size: 0.82rem;
  border-radius: var(--radius-xl); border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.navbar__cta-btn:hover {
  background: var(--color-primary-light);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
  color: var(--color-white) !important;
}

/* ── Homepage-specific: remains after hero ── */

/* ── Values Strip ── */
.values-strip {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 3.5rem 0;
}
.values-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.values-strip__item {
  display: flex; align-items: flex-start; gap: 0.85rem;
}
.values-strip__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.values-strip__item h3 {
  font-size: 0.88rem; font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}
.values-strip__item p {
  font-size: 0.78rem; color: var(--color-text-muted);
  line-height: 1.45; margin: 0;
}

/* ── Research Category Cards ── */
.research-categories { padding: 5rem 0; }
.research-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-top: 2.5rem;
}
.research-card {
  display: flex; flex-direction: column;
  padding: 2.25rem 1.75rem;
  border-radius: var(--radius-xl);
  text-decoration: none; color: var(--color-white);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  position: relative; overflow: hidden;
}
.research-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  opacity: 0; transition: opacity var(--transition-slow);
}
.research-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px -8px rgba(0, 0, 0, 0.18);
}
.research-card:hover::after { opacity: 1; }
.research-card--pensions {
  background: linear-gradient(145deg, #047857 0%, #065f46 100%);
}
.research-card--funds {
  background: linear-gradient(145deg, #7c3aed 0%, #5b21b6 100%);
}
.research-card--stocks {
  background: linear-gradient(145deg, #1d4ed8 0%, #1e40af 100%);
}
.research-card__icon {
  font-size: 2.2rem; margin-bottom: 1.25rem;
  position: relative; z-index: 1;
}
.research-card__title {
  font-size: 1.15rem; font-weight: 700;
  color: var(--color-white); margin-bottom: 0.5rem;
  position: relative; z-index: 1;
}
.research-card__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55; flex: 1;
  margin-bottom: 1.5rem;
  position: relative; z-index: 1;
}
.research-card__cta {
  font-size: 0.82rem; font-weight: 700;
  color: var(--color-white);
  padding: 0.6rem 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-sm);
  display: inline-block;
  align-self: flex-start;
  transition: all var(--transition);
  position: relative; z-index: 1;
  backdrop-filter: blur(4px);
}
.research-card:hover .research-card__cta {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ── Guides Section ── */
.guides-section { padding: 5rem 0; }
.guides-section .container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem; align-items: start;
}
.guides-section__header h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800; color: var(--color-primary-dark);
  line-height: 1.15; margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.guides-section__sub {
  font-size: 0.9rem; color: var(--color-text-muted);
  margin-bottom: 1.75rem; line-height: 1.5;
}
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.guide-card {
  display: flex; flex-direction: column;
  padding: 1.5rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--color-text);
  transition: all var(--transition-slow);
}
.guide-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.guide-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: 0.85rem;
}
.guide-card__title {
  font-size: 0.88rem; font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.4rem; line-height: 1.35;
}
.guide-card__desc {
  font-size: 0.78rem; color: var(--color-text-muted);
  line-height: 1.5; flex: 1; margin-bottom: 0.75rem;
}
.guide-card__link {
  font-size: 0.78rem; font-weight: 600;
  color: var(--color-primary); margin-top: auto;
  transition: color var(--transition);
}
.guide-card:hover .guide-card__link { color: var(--color-primary-light); }

/* ── Disclaimer ── */
.disclaimer { background: var(--color-bg); border-top: 1px solid var(--color-border); }
.disclaimer h3 { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--color-text-muted); }
.disclaimer p { font-size: 0.82rem; color: var(--color-text-subtle); max-width: 800px; margin: 0; line-height: 1.6; }

/* ── Footer ── */
.footer {
  background: var(--color-primary-dark); color: rgba(255,255,255,0.8);
  padding: 4rem 0 0;
}
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 2.5rem;
}
.footer__brand .navbar__logo {
  color: var(--color-white); font-size: 1rem;
  display: inline-flex; margin-bottom: 0.75rem;
}
.footer__brand .navbar__logo span { color: var(--color-accent); }
.footer__brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin: 0; }
.footer__links h4 {
  color: var(--color-white); font-size: 0.82rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 0.85rem;
}
.footer__links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer__links a {
  color: rgba(255,255,255,0.6); font-size: 0.85rem;
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--color-accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 1.25rem; text-align: center;
  font-size: 0.78rem; color: rgba(255,255,255,0.35);
}
.footer__founder { font-size: 0.75rem; color: rgba(255,255,255,0.3); margin-top: 0.5rem; }
.footer__feedback { font-size: 0.78rem; color: rgba(255,255,255,0.4); margin-top: 0.4rem; }
.footer__feedback a { color: var(--color-accent); text-decoration: underline; }
.footer__feedback a:hover { color: var(--color-white); }

/* ── Screen reader only ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Continue Section ── */
.continue-section { padding: 1.5rem 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.continue-section[hidden] { display: none; }
.continue-section__title { font-size: 0.95rem; font-weight: 700; color: var(--color-primary); margin-bottom: 1rem; }
.continue-cards { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.continue-section__link { font-size: 0.82rem; color: var(--color-primary); font-weight: 600; }

/* ============================================
   Responsive — Premium Mobile
   ============================================ */
@media (max-width: 1024px) {
  .values-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .guides-section .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .guides-section__header { text-align: center; }
  .guides-section__header .btn { margin: 0 auto; }
}

@media (max-width: 768px) {
  .values-strip__grid {
    grid-template-columns: 1fr; gap: 1.5rem;
  }
  .research-cards { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .research-card { padding: 1.75rem 1.5rem; }
}


/* ── Dual Search ── */
.dual-search {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 920px;
  margin: 0 auto 2rem;
}
.dual-search__box {
  position: relative;
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.4rem 1.1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.dual-search__box:focus-within {
  border-color: var(--color-primary-light);
}
.dual-search__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--color-text-subtle);
  margin-bottom: 0.6rem;
}
.dual-search__label-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dual-search__label-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-text-subtle);
  fill: none;
  stroke-width: 2;
}
.dual-search__field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border-light);
  border-radius: 10px;
  padding: 0 0.85rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dual-search__field:focus-within {
  border-color: var(--color-primary);
  background: var(--color-white);
}
.dual-search__icon {
  flex-shrink: 0;
  color: var(--color-text-subtle);
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.dual-search__field:focus-within .dual-search__icon {
  opacity: 1;
  color: var(--color-primary);
}
.dual-search__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.75rem 0;
  background: transparent;
  position: relative;
  z-index: 1;
  min-width: 0;
}
.dual-search__input::placeholder {
  color: var(--color-text-subtle);
  font-weight: 400;
  opacity: 0.8;
}
.dual-search__ghost {
  position: absolute;
  left: 2.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-border);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  z-index: 0;
}

/* Dropdown */
.dual-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: -1px;
  right: -1px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  max-height: 300px;
  overflow-y: auto;
  z-index: 200;
  padding: 0.35rem;
}
.dual-search__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.82rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.1s ease;
}
.dual-search__item:hover,
.dual-search__item--active {
  background: rgba(4, 120, 87, 0.05);
}
.dual-search__item-name {
  font-weight: 600;
  color: var(--color-primary-dark);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dual-search__item-ticker {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-text-subtle);
  background: var(--color-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  letter-spacing: 0.3px;
}
.dual-search__item-sector {
  font-size: 0.65rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}
.dual-search__empty {
  padding: 1.25rem;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* Browse links */
.dual-search__browse {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
}
.dual-search__browse-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: opacity 0.15s ease;
}
.dual-search__browse-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
  .dual-search {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.25rem;
  }
  .dual-search__box {
    padding: 1rem;
  }
  .dual-search__browse {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }
}



/* ── Search + Trust Layout ── */
.search-trust-layout {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 1.5rem;
}

/* Trust Flanks / Value Statements */
.trust-flank {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.trust-flank__statement {
  font-size: clamp(0.9rem, 1.6vw, 1.02rem);
  font-weight: 500;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}
.trust-flank--left .trust-flank__statement { text-align: right; }
.trust-flank--right .trust-flank__statement { text-align: left; }

/* Stock/Fund Colour Accents — Premium Purple & Emerald */
.dual-search__box--stock {
  border-color: rgba(88, 28, 135, 0.25);
  box-shadow: 0 6px 20px rgba(88, 28, 135, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.dual-search__box--stock:hover {
  border-color: rgba(88, 28, 135, 0.4);
  box-shadow: 0 10px 36px rgba(88, 28, 135, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}
.dual-search__box--stock:focus-within {
  border-color: rgba(88, 28, 135, 0.5);
  box-shadow: 0 10px 36px rgba(88, 28, 135, 0.18), 0 0 0 4px rgba(88, 28, 135, 0.08);
  transform: translateY(-2px);
}
.dual-search__box--stock .dual-search__label {
  color: #581c87;
}
.dual-search__box--stock .dual-search__label-icon svg {
  stroke: #7c3aed;
}
.dual-search__box--stock .dual-search__field:focus-within {
  border-color: #7c3aed;
}
.dual-search__box--stock .dual-search__field:focus-within .dual-search__icon {
  color: #7c3aed;
}

.dual-search__box--fund {
  border-color: rgba(4, 120, 87, 0.25);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
}
.dual-search__box--fund:hover {
  border-color: rgba(4, 120, 87, 0.4);
  box-shadow: 0 10px 36px rgba(4, 120, 87, 0.15), 0 4px 12px rgba(0, 0, 0, 0.04);
  transform: translateY(-2px);
}
.dual-search__box--fund:focus-within {
  border-color: rgba(4, 120, 87, 0.5);
  box-shadow: 0 10px 36px rgba(4, 120, 87, 0.18), 0 0 0 4px rgba(4, 120, 87, 0.08);
  transform: translateY(-2px);
}
.dual-search__box--fund .dual-search__label {
  color: var(--color-positive);
}
.dual-search__box--fund .dual-search__label-icon svg {
  stroke: var(--color-positive);
}
.dual-search__box--fund .dual-search__field:focus-within {
  border-color: var(--color-positive);
}
.dual-search__box--fund .dual-search__field:focus-within .dual-search__icon {
  color: var(--color-positive);
}

/* Responsive: collapse flanks on smaller screens */
@media (max-width: 900px) {
  .search-trust-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .trust-flank {
    order: 3;
    text-align: center !important;
  }
  .trust-flank--left { order: 3; }
  .trust-flank--left .trust-flank__statement { text-align: center; }
  .trust-flank--right { order: 4; }
  .trust-flank--right .trust-flank__statement { text-align: center; }
  .dual-search { order: 1; }
}
@media (max-width: 640px) {
  .trust-flank__statement { font-size: 0.68rem; }
}
