/* ============================================================
   components.css — Hero · Services · Mutual Funds · Why Us · CTA
   N Gram Technologies
   ============================================================ */

/* ─── HERO ─── */
.hero {
  background: linear-gradient(160deg, #F0F7FF 0%, #EBF9F4 50%, #F8FAFC 100%);
  padding: 100px 0 80px; overflow: visible;
}
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 60px; align-items: start; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px; padding: 6px 16px 6px 6px;
  font-size: 13px; font-weight: 500; color: var(--text-sub); margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.7;transform:scale(1.3)} }

.hero-title { font-family: var(--font-display); font-size: clamp(36px,5vw,58px); font-weight: 800; line-height: 1.12; color: var(--text-main); margin-bottom: 20px; }
.hero-title .accent  { color: var(--blue); }
.hero-title .accent2 { color: var(--emerald); }

.hero-sub  { font-size: 18px; color: var(--text-sub); line-height: 1.7; margin-bottom: 36px; max-width: 480px; }
.hero-cta  { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; gap: 32px; }
.hero-stat strong  { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-main); }
.hero-stat span    { font-size: 13px; color: var(--text-sub); }
.hero-stat-divider { width: 1px; background: var(--border); align-self: stretch; min-height: 40px; }

/* ─── SERVICES ─── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 20px; margin-top: 48px;
}
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 28px 22px;
  transition: all .25s; cursor: pointer;
}
.service-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card:hover .service-icon { background: var(--blue); color: #fff; }
.service-icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--blue-light);
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px; transition: all .25s;
}
.service-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.service-card p  { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 16px; }
.learn-more { font-size: 13px; font-weight: 600; color: var(--blue); display: flex; align-items: center; gap: 4px; }
.learn-more::after { content: '→'; transition: transform .2s; }
.service-card:hover .learn-more::after { transform: translateX(4px); }
.mf-featured-card:hover .mf-featured-icon { background: var(--emerald) !important; }

/* ─── MUTUAL FUNDS ─── */
.mf-section { background: linear-gradient(135deg, var(--navy) 0%, #1A3A6E 100%); color: #fff; }
.mf-grid    { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.mf-tag     { background: rgba(16,185,129,.2); color: #6EE7B7; }
.mf-title   { color: #fff; }
.mf-sub     { color: rgba(255,255,255,.7); }
.mf-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 32px 0; }
.mf-feature  { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255,255,255,.85); }
.mf-check    { width: 22px; height: 22px; border-radius: 50%; background: rgba(16,185,129,.2); color: #6EE7B7; display: flex; align-items: center; justify-content: center; font-size: 12px; flex-shrink: 0; }

/* MF highlights grid */
.mf-highlights   { display: flex; flex-direction: column; gap: 16px; }
.mf-hi-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mf-hi-card      { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-md); padding: 20px 16px; transition: background .2s; }
.mf-hi-card:hover { background: rgba(255,255,255,.12); }
.mf-hi-icon      { font-size: 24px; margin-bottom: 10px; }
.mf-hi-label     { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 6px; }
.mf-hi-val       { font-family: var(--font-display); font-size: 17px; font-weight: 800; color: #fff; }
.mf-hi-val span  { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.45); display: block; margin-top: 1px; }
.mf-hi-badge     { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.25); border-radius: var(--radius-sm); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ─── WHY US ─── */
.why-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; margin-top: 48px; }
.why-card  { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; transition: all .25s; }
.why-card:hover { box-shadow: var(--shadow-md); border-color: transparent; transform: translateY(-3px); }
.why-icon  { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 14px; }
.wi-blue   { background: var(--blue-light); }
.wi-green  { background: var(--emerald-light); }
.wi-amber  { background: #FEF3C7; }
.wi-purple { background: #F3E8FF; }
.why-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.why-card p  { font-size: 14px; color: var(--text-sub); line-height: 1.65; }

/* ─── TESTIMONIALS ─── */
.testimonials       { background: var(--slate-light); }
.testimonials-grid  { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 20px; margin-top: 48px; }
.testi-card         { background: var(--white); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow .25s; }
.testi-card:hover   { box-shadow: var(--shadow-md); }
.testi-stars        { color: #F59E0B; font-size: 16px; letter-spacing: 2px; margin-bottom: 14px; }
.testi-text         { font-size: 15px; color: var(--text-sub); line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testi-author       { display: flex; align-items: center; gap: 12px; }
.testi-avatar       { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.testi-name         { font-weight: 600; font-size: 14px; color: var(--text-main); }
.testi-role         { font-size: 12px; color: var(--text-sub); }

/* ─── CTA SECTION ─── */
.cta-section { background: linear-gradient(135deg, #1A56DB 0%, #059669 100%); color: #fff; text-align: center; }
.cta-title   { font-family: var(--font-display); font-size: clamp(28px,4vw,42px); font-weight: 800; color: #fff; margin-bottom: 16px; }
.cta-sub     { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; }
.cta-btns    { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── TOOLTIP ─── */
.info-tooltip {
  position: relative; margin-left: 6px; color: var(--blue);
  cursor: pointer; font-weight: 700;
}
.tooltip-content {
  position: absolute; left: 0; top: 24px; width: 260px;
  background: #0F172A; color: #fff; padding: 12px; border-radius: 10px;
  font-size: 12px; line-height: 1.6; opacity: 0; visibility: hidden;
  transition: .2s; z-index: 100;
}
.info-tooltip:hover .tooltip-content { opacity: 1; visibility: visible; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — full audit fixes (320px → 1920px)
   Addresses: overflow, broken grids, clipped content,
   misaligned cards, nav, modals, buttons, text wrapping.
════════════════════════════════════════════════════════════ */

/* ─── Service cards — never clip on small screens ─── */
.service-card { min-width: 0; word-break: break-word; }
.service-icon { flex-shrink: 0; }

/* ─── Prevent any element from causing horizontal overflow ─── */
.hero, .trust-bar, .section, .section-sm,
.mf-section, .cta-section, footer {
  max-width: 100%; overflow-x: hidden;
}

nav {
  overflow-x: visible;
  overflow-y: visible;
}

/* ─── MF highlights grid — fix overflow on mobile ─── */
.mf-hi-grid { overflow: hidden; }
.mf-hi-card { min-width: 0; }

/* Hamburger and mobile menu removed — nav is always visible */

/* ─── Footer responsive ─── */
.contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 13.5px; color: rgba(255,255,255,.7); }
.contact-icon { flex-shrink: 0; }

/* ─── Tablet: 768-820px ─── */
@media (max-width: 820px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .mf-features { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Mobile: ≤640px ─── */
@media (max-width: 640px) {
  .service-card { padding: 20px 18px; }
  .service-icon { width: 44px; height: 44px; font-size: 20px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 20px 18px; }
  .why-icon { width: 44px; height: 44px; font-size: 20px; }
  .cta-title { font-size: clamp(22px, 7vw, 34px); }
  .cta-sub { font-size: 15px; margin-bottom: 24px; }
  .hero-badge { font-size: 11px; padding: 6px 12px; }
  .hero-stat strong { font-size: 22px; }
  .mf-hi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mf-hi-card { padding: 14px 12px; }
  .mf-hi-icon { font-size: 22px; margin-bottom: 8px; }
  .mf-hi-val { font-size: 16px; }
  .mf-hi-badge {
    flex-direction: column; gap: 12px; text-align: center;
    padding: 16px 14px;
  }
  .tag { font-size: 11px; padding: 4px 12px; }
}

/* ─── Small mobile: ≤480px ─── */
@media (max-width: 480px) {
  .mf-hi-grid { grid-template-columns: 1fr 1fr; }
  .footer-col h4 { font-size: 12px; }
  .footer-col ul li a { font-size: 13px; }
  .footer-brand p { font-size: 13px; }
}

/* ─── Very small: ≤380px ─── */
@media (max-width: 380px) {
  .mf-hi-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { padding: 12px 16px; font-size: 13px; }
}

/* ─── PARTNER FUND HOUSES ─── */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-mid);
}
.partner-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 10px;
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}
.partners-note {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-sub);
}

@media (max-width: 768px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .partner-logo { width: 60px; height: 60px; padding: 8px; }
  .partner-name { font-size: 12px; }
}
@media (max-width: 480px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}
