/* ===========================================================================
 * Section: Business Types / Apartment-Type Showcase
 * Inspired by Nayax homepage "Business Types" block.
 * Layout:
 *   - Header centered (kicker + title + CTA)
 *   - Below: asymmetric image grid with 2 tall cards on the edges
 *   - Mobile: stacks to 2 columns, CTA moves below the grid
 * =========================================================================== */

.biz-types{
  background: #fff;
  padding: clamp(60px, 9vw, 110px) 0;
}

/* ---------------- Header (kicker, title, CTA) ---------------- */
.biz-types__head{
  text-align: center;
  max-width: 880px;
  margin: 0 auto clamp(40px, 5vw, 70px);
}
.biz-types__kicker{
  display: inline-block;
  background: var(--yellow-15);
  color: var(--yellow);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.biz-types__title{
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #1c1c1c;
  margin: 0 0 32px;
}

/* CTA button (shared visual) */
.biz-types__cta{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow, #e49e00);
  color: #111;
  padding: 16px 30px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.biz-types__cta:hover{
  background: #cf8e00;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(228,158,0,.35);
}

/* Show only one CTA at a time: desktop = top, mobile = bottom */
.biz-types__cta--bottom{
  display: none;
}
.biz-types__footer{
  text-align: center;
  margin-top: 30px;
}

/* ---------------- Scattered Flex Layout ---------------- */
.biz-types__grid{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;        /* vertical centering = scattered look */
  gap: 16px;
}
.biz-card{
  position: relative;
  display: block;
  width: calc((100% - 4 * 16px) / 5);  /* 5 columns on desktop */
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.biz-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,.14);
}

/* Individual heights for the scattered effect.
   With align-items:center, taller cards extend above AND below
   the shorter ones — creating the Nayax-style wave. */
.biz-types__grid > .biz-card:nth-child(1){ height: 300px; }
.biz-types__grid > .biz-card:nth-child(2){ height: 200px; }
.biz-types__grid > .biz-card:nth-child(3){ height: 250px; }
.biz-types__grid > .biz-card:nth-child(4){ height: 190px; }
.biz-types__grid > .biz-card:nth-child(5){ height: 310px; }
.biz-types__grid > .biz-card:nth-child(6){ height: 210px; }
.biz-types__grid > .biz-card:nth-child(7){ height: 260px; }
.biz-types__grid > .biz-card:nth-child(8){ height: 200px; }
.biz-types__grid > .biz-card:nth-child(9){ height: 290px; }
.biz-types__grid > .biz-card:nth-child(10){ height: 220px; }

/* legacy modifier kept for back-compat (no longer required) */
.biz-card--tall{ height: 300px; }
.biz-card__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.biz-card:hover .biz-card__img{
  transform: scale(1.05);
}
.biz-card__label{
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(255,255,255,.95);
  color: #111;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

/* ---------------- Tablet ---------------- */
@media (max-width: 1100px){
  .biz-card{
    width: calc((100% - 2 * 14px) / 3);
  }
}

/* ---------------- Mobile ---------------- */
@media (max-width: 720px){
  .biz-types{
    padding: 60px 0;
  }
  .biz-types__head{
    text-align: left;
    margin-bottom: 30px;
  }
  .biz-types__title{
    font-size: 1.7rem;
  }
  /* Hide top CTA, show bottom one */
  .biz-types__cta--top{
    display: none;
  }
  .biz-types__cta--bottom{
    display: inline-flex;
    width: 100%;
    max-width: 460px;
    padding: 18px 24px;
    font-size: 1.05rem;
  }
  .biz-types__footer{
    margin-top: 30px;
  }
  .biz-types__grid{
    gap: 12px;
    align-items: stretch;
  }
  .biz-card{
    width: calc((100% - 12px) / 2);
    height: 180px;
  }
  /* Reset all per-card heights so mobile is uniform */
  .biz-types__grid > .biz-card[class]{
    height: 180px;
  }
  .biz-card--tall{
    grid-row: span 1;
  }
}
