﻿/* ==========================================================================
   HIREMATH FINVEST - HERO HIGHLIGHTS COMPONENT STYLES
   Three icon-based visual benefit highlights strip in Hero section.
   Strict adherence to color discipline, typography scale & responsive rules.
   ========================================================================== */

/* Host element styling when used as custom tag <HeroHighlights> */
HeroHighlights,
hero-highlights {
  display: block;
  width: 100%;
}

/* Benefit Strip Container */
.hero-highlights {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  max-width: 580px;
  background-color: var(--color-white, #FFFFFF);
  border: 1px solid var(--color-border, #DCE5DB);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(24, 35, 29, 0.04), 0 1px 3px rgba(24, 35, 29, 0.02);
  margin-bottom: 24px;
  box-sizing: border-box;
}

/* Individual Highlight Item (Equal Visual Weight) */
.hero-highlight-item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px 8px;
  border-radius: 12px;
  background-color: transparent;
  transition: background-color 0.2s ease, transform 0.2s ease;
  cursor: default;
  box-sizing: border-box;
}

/* Desktop Hover State */
@media (hover: hover) and (pointer: fine) {
  .hero-highlight-item:hover {
    background-color: var(--color-soft-mint, #EAF3E8);
  }

  .hero-highlight-item:hover .hero-highlight-icon-box {
    transform: scale(1.03);
  }
}

/* Icon Container Box (40–48px) */
.hero-highlight-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border-radius: 10px;
  background-color: rgba(36, 92, 60, 0.05);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

/* Vector SVG Icon (24–28px) */
.hero-highlight-svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* Typography Title (Bold, 15–18px Desktop, Space Grotesk) */
.hero-highlight-title {
  font-family: var(--font-heading, 'Space Grotesk', -apple-system, sans-serif);
  font-size: 0.9375rem; /* 15px */
  font-weight: 700;
  color: var(--color-text-primary, #18231D);
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

/* Typography Line Spans for Desktop Line Balancing */
.hero-highlight-phrase {
  display: block;
}

.hero-highlight-sep {
  display: none;
}

/* Subtle Hairline Vertical Separators Between Items */
.hero-highlight-divider {
  width: 1px;
  background-color: var(--color-border, #DCE5DB);
  margin: 4px 0;
  flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* --------------------------------------------------------------------------
   TABLET BREAKPOINT (max-width: 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .hero-highlights {
    max-width: 600px;
    padding: 12px 14px;
    margin-bottom: 22px;
  }

  .hero-highlight-icon-box {
    width: 42px;
    height: 42px;
    margin-bottom: 7px;
  }

  .hero-highlight-svg {
    width: 26px;
    height: 26px;
  }

  .hero-highlight-title {
    font-size: 0.875rem; /* 14px */
    letter-spacing: 0.025em;
  }
}

/* --------------------------------------------------------------------------
   MOBILE STACKED BREAKPOINT (max-width: 640px)
   Compact 3-row layout with icon on left and text on right.
   No cramped horizontal row. Natural wrapping allowed. No horizontal scroll.
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  .hero-highlights {
    flex-direction: column;
    padding: 6px 14px;
    border-radius: 16px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-highlight-item {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 11px 6px;
    width: 100%;
    border-radius: 8px;
  }

  .hero-highlight-divider {
    width: 100%;
    height: 1px;
    margin: 0;
    background-color: var(--color-border, #DCE5DB);
  }

  .hero-highlight-icon-box {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
    margin-right: 14px;
    border-radius: 9px;
  }

  .hero-highlight-svg {
    width: 24px;
    height: 24px;
  }

  .hero-highlight-title {
    font-size: 0.875rem; /* 14px */
    line-height: 1.25;
    letter-spacing: 0.02em;
  }

  /* On mobile: items 1 & 2 flow as single line phrases */
  .hero-highlight-phrase {
    display: inline;
  }

  .hero-highlight-sep {
    display: inline;
  }

  /* For PAN INDIA SERVICE, break naturally before SERVICE */
  .hero-highlight-phrase-india {
    display: block;
  }
}

/* --------------------------------------------------------------------------
   COMPACT MOBILE SCREENS (max-width: 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .hero-highlights {
    padding: 4px 10px;
    border-radius: 14px;
  }

  .hero-highlight-item {
    padding: 9px 4px;
  }

  .hero-highlight-icon-box {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .hero-highlight-svg {
    width: 22px;
    height: 22px;
  }

  .hero-highlight-title {
    font-size: 0.8125rem; /* 13px */
  }
}
