/* =========================================================
   Home Indicator Bar
   - 4 columns
   - vertical dividers
   - centered text
   - fully responsive (4 -> 2x2 -> 1)
   FIXED: All items top-aligned (no sinking titles)
   ========================================================= */

.home-indicator{
  background: var(--gc-white);
  padding: clamp(18px, 2.2vw, 34px) 0;
}

/* Bar wrapper */
.home-indicator__bar{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch; /* FIX */
  background: var(--gc-white);
  border-radius: var(--radius-md);
}

/* Each item */
.home-indicator__item{
  text-align: center;
  padding: clamp(14px, 1.7vw, 22px) var(--space-md);
  position: relative;

  display: flex;              /* FIX */
  flex-direction: column;     /* FIX */
  justify-content: flex-start;/* FIX */
  height: 100%;               /* FIX */
}

/* Vertical divider between items */
.home-indicator__item:not(:last-child)::after{
  content:"";
  position:absolute;
  top: 18%;
  bottom: 18%;
  right: 0;
  width: 1px;
  background: rgba(0,0,0,0.22);
}

/* Title */
.home-indicator__title{
  font-weight: 800;
  color: var(--gc-text);
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  line-height: 1.15;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
}

/* Subtitle */
.home-indicator__sub{
  color: var(--gc-muted);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  line-height: 1.25;
  margin: 0;
  max-width: 34ch;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Tablet: 2x2 layout ===== */
@media (max-width: 980px){
  .home-indicator__bar{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-indicator__item::after{ display:none; }

  .home-indicator__item{
    border-right: 1px solid rgba(0,0,0,0.18);
    border-bottom: 1px solid rgba(0,0,0,0.18);
  }

  .home-indicator__item:nth-child(2n){
    border-right: 0;
  }

  .home-indicator__item:nth-last-child(-n+2){
    border-bottom: 0;
  }
}

/* ===== Mobile: stacked ===== */
@media (max-width: 560px){
  .home-indicator__bar{
    grid-template-columns: 1fr;
  }

  .home-indicator__item{
    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.18);
    padding: clamp(14px, 3.8vw, 18px) var(--space-md);
  }

  .home-indicator__item:last-child{
    border-bottom: 0;
  }

  .home-indicator__sub{
    max-width: 40ch;
  }
}
