@charset "UTF-8";
.features-grid {
  margin: 4rem auto;
}

.features-grid-inner {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

/* ----------------------------------------------------------
	Base card
---------------------------------------------------------- */
.features-grid-card {
  position: relative;
  min-height: 600px;
  height: 30vh;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer; /* removed for disabled cards below */
}

/* Disabled (non-link) cards */
.features-grid-card--disabled {
  cursor: default;
}

.features-grid-card:hover {
  text-decoration: none;
  color: white;
}

/* ----------------------------------------------------------
	Background image layer
---------------------------------------------------------- */
.features-grid-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.5s ease;
  z-index: 0;
}

/* ONLY linked cards scale on hover */
.features-grid-card:not(.features-grid-card--disabled):hover::before {
  transform: scale(1.1);
}

/* ----------------------------------------------------------
	Gradient overlay
---------------------------------------------------------- */
.features-grid-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(to top right, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* ----------------------------------------------------------
	Content
---------------------------------------------------------- */
.features-grid-card-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.features-grid-card-title {
  margin: 0 0 10px;
  font-size: var(--step-2);
  text-decoration: none;
  font-weight: 500;
}

.features-grid-card-description {
  margin: 0 0 10px;
  font-size: var(--step-1) !important;
}

/* ----------------------------------------------------------
	Width modifiers
---------------------------------------------------------- */
.features-grid-card-wide {
  grid-column: span 8;
}

.features-grid-card-narrow {
  grid-column: span 4;
}

.features-grid-card-full {
  grid-column: span 12;
}

/* ----------------------------------------------------------
	1000px breakpoint → 50/50 layout
---------------------------------------------------------- */
@media (max-width: 1000px) {
  .features-grid-card-wide,
  .features-grid-card-narrow {
    grid-column: span 6;
  }
}
/* ----------------------------------------------------------
	768px breakpoint → stacked layout
---------------------------------------------------------- */
@media (max-width: 768px) {
  .features-grid-card {
    min-height: 400px;
  }
  .features-grid-inner {
    grid-template-columns: repeat(1, 1fr);
  }
  .features-grid-card,
  .features-grid-card-wide,
  .features-grid-card-narrow,
  .features-grid-card-full {
    grid-column: span 1;
  }
}
