/* ═══════════════════════════════════════════════════════════
   TILES — division cards (all widths)
   ═══════════════════════════════════════════════════════════ */

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tile {
  position: relative;
  display: block;
  min-height: 220px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card-bg);
  transition: transform 0.25s ease;
}
.tile:active { transform: scale(0.98); }

.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}
.tile:nth-child(1)::before { background-image: url('../img/panels/wellbeing.webp'); }
.tile:nth-child(2)::before { background-image: url('../img/panels/cybersecurity.jpg'); }
.tile:nth-child(3)::before { background-image: url('../img/panels/it-infrastructure.webp'); }
.tile:nth-child(4)::before { background-image: url('../img/panels/digital-solutions.jpg'); }
.tile:nth-child(5)::before { background-image: url('../img/panels/smart-business.jpg'); }

.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,43,74,0.85) 0%, rgba(11,43,74,0.55) 55%, rgba(0,0,0,0.35) 100%);
  z-index: 1;
}

.tile-inner {
  position: relative;
  z-index: 2;
  padding: 1.5rem 1.35rem;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-light);
}
.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tile-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(46, 175, 42, 0.15);
  border: 1px solid rgba(46, 175, 42, 0.4);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.tile-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}
.tile h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.tile p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}
.tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--brand-green);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tiles { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
