/*
==========================================================
 SENTRASKY
 Cards
 Version: 1.0.0
==========================================================
*/

/*
==========================================================
 BASE CARD
==========================================================
*/

.card {
  position: relative;

  overflow: hidden;

  padding: 32px;

  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);

  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  box-shadow: var(--shadow-soft);

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);

  border-color: rgba(46, 230, 214, 0.34);

  background: rgba(255, 255, 255, 0.095);

  box-shadow: var(--shadow-strong);
}


/*
==========================================================
 CARD CONTENT
==========================================================
*/

.card h3 {
  margin-bottom: 14px;
}

.card p {
  color: var(--muted);
}

.card-icon {
  width: 52px;
  height: 52px;

  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: 24px;

  border-radius: 18px;

  background: rgba(46, 230, 214, 0.1);
  border: 1px solid rgba(46, 230, 214, 0.22);

  color: var(--accent);

  font-size: 1.35rem;
  font-weight: 800;
}


/*
==========================================================
 CARD GRID
==========================================================
*/

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 24px;
}

.card-grid.two-columns {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid.four-columns {
  grid-template-columns: repeat(4, 1fr);
}


/*
==========================================================
 FEATURE CARD
==========================================================
*/

.feature-card {
  min-height: 100%;

  display: flex;
  flex-direction: column;
}

.feature-card p {
  margin-top: auto;
}


/*
==========================================================
 SERVICE CARD
==========================================================
*/

.service-card {
  min-height: 320px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card-top {
  display: flex;
  flex-direction: column;
}

.service-card-footer {
  margin-top: 28px;
}


/*
==========================================================
 IMAGE CARD
==========================================================
*/

.image-card {
  overflow: hidden;

  padding: 0;
}

.image-card img {
  width: 100%;
  height: 260px;

  object-fit: cover;
}

.image-card-content {
  padding: 28px;
}


/*
==========================================================
 INFO CARD
==========================================================
*/

.info-card {
  background: var(--panel-soft);
}

.info-card strong {
  display: block;

  margin-bottom: 8px;

  color: var(--text);
  font-size: 1rem;
}


/*
==========================================================
 STAT CARD
==========================================================
*/

.stat-card {
  padding: 30px;

  text-align: left;
}

.stat-card-number {
  display: block;

  margin-bottom: 10px;

  color: var(--accent);

  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
}

.stat-card-label {
  color: var(--muted);

  font-size: 0.95rem;
}

/*
==========================================================
 FLEET IMAGE
==========================================================
*/
/*
==========================================================
 FLEET IMAGE
==========================================================
*/

.fleet-image {
  position: relative;

  width: 170px;
  height: 210px;

  flex-shrink: 0;
  overflow: hidden;

  background: #ffffff;
  border: 1px solid #ffffff;

  cursor: zoom-in;
}

.fleet-image::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 3;

  border: 4px solid #ffffff;

  pointer-events: none;
}

.fleet-image img {
  position: absolute;
  inset: 0;
  z-index: 1;

  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1);
  transform-origin: 50% 50%;

  transition: transform 0.3s ease;

  pointer-events: none;
  will-change: transform, transform-origin;
}

.fleet-image:hover img {
  transform: scale(2);
}
/*
==========================================================
 RESPONSIVE
==========================================================
*/

@media (max-width: 1100px) {

  .card-grid.four-columns {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (max-width: 980px) {

  .card-grid,
  .card-grid.two-columns,
  .card-grid.four-columns {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 28px;
  }

}

@media (max-width: 620px) {

  .card {
    padding: 24px;
    border-radius: 22px;
  }

  .card-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 20px;

    border-radius: 16px;
  }

  .service-card {
    min-height: auto;
  }

  .image-card {
    padding: 0;
  }

  .image-card-content {
    padding: 24px;
  }

}