/* ==========================================================================
   Stratum Module: Schedule Inspection (#stratum-schedule-inspection)
   ========================================================================== */

#stratum-schedule-inspection {
  position: relative;
  width: 100%;
  background-color: var(--stratum-white);
  padding-top: 101px;
  padding-bottom: 105px;
}

.stratum-schedule-grid {
  display: grid;
  grid-template-columns: 570px 570px;
  gap: 30px;
  align-items: start;
}

/* Left Column */
.stratum-schedule-left {
  padding-top: 41px;
}

.stratum-schedule-title {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--stratum-heading);
  margin: 0 0 28px 0;
  letter-spacing: -0.01em;
}

.stratum-emergency-subtitle {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 26px;
}

.stratum-emergency-subtitle h3 {
  font-size: 23px;
  font-weight: 700;
  color: #3b3b3b;
  margin: 0;
  line-height: 1.2;
}

.stratum-schedule-desc {
  color: var(--stratum-text);
  font-size: 13.8px;
  font-weight: 400;
  line-height: 1.82;
  margin-bottom: 42px;
  max-width: 555px;
}

.stratum-schedule-desc p {
  margin: 0 0 24px 0;
}

.stratum-schedule-desc p:last-child {
  margin-bottom: 0;
}

.stratum-btn-about {
  background-color: var(--stratum-orange);
  color: var(--stratum-white);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  width: 158px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.stratum-btn-about:hover {
  background-color: var(--stratum-orange-hover);
  color: var(--stratum-white);
}

/* Right Column: 2x2 Staggered Service Cards Grid */
.stratum-service-cards-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 270px 270px;
  gap: 30px;
  align-items: start;
}

/* Decorative Dot Pattern behind bottom-right of Card 4 */
.stratum-dots-pattern {
  position: absolute;
  right: -99px;
  bottom: -75px;
  width: 180px;
  height: 260px;
  background-image: radial-gradient(#dcdcdc 2px, transparent 2px);
  background-size: 22px 22px;
  z-index: 1;
  pointer-events: none;
}

.stratum-cards-col {
  display: flex;
  flex-direction: column;
  gap: 30px;
  position: relative;
  z-index: 2;
}

.stratum-cards-col-right {
  margin-top: 30px;
}

.stratum-service-card {
  background-color: var(--stratum-white);
  border: 1px solid var(--stratum-border);
  border-radius: 4px;
  padding: 40px 24px 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 250px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

/* Rayita naranja inferior en hover o activo */
.stratum-service-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background-color: var(--stratum-orange, #f35c27);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 3;
}

.stratum-service-card:hover::after,
.stratum-service-card.active::after {
  opacity: 1;
}

.stratum-service-card.card-tall {
  min-height: 275px;
}

/* Stagger layout: columna derecha desplazada hacia abajo y tarjetas altas */
.stratum-service-cards-wrap .stratum-service-card:nth-of-type(2) {
  min-height: 275px;
  margin-top: 30px;
}

.stratum-service-cards-wrap .stratum-service-card:nth-of-type(3) {
  min-height: 275px;
  margin-top: -55px;
}

.stratum-service-card-title {
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.32;
  color: var(--stratum-heading);
  margin: 0 0 12px 0;
  transition: color 0.25s ease;
}

.stratum-service-card-text {
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--stratum-text);
  margin: 0;
  transition: color 0.25s ease;
}

.stratum-service-card-icon {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--stratum-orange);
}

.stratum-service-card-icon svg {
  width: 48px;
  height: 48px;
  color: var(--stratum-orange);
  stroke: var(--stratum-orange);
}

.stratum-service-card-icon img {
  max-height: 55px;
  width: auto;
  display: block;
}

/* Hover: dark overlay keeps text readable over the card image. */
.stratum-service-card:hover {
  background-color: #0e1b2c;
  background-image:
    linear-gradient(rgba(14, 27, 44, 0.60), rgba(14, 27, 44, 0.72)),
    var(--stratum-card-bg, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transform: translateY(-4px);
}

.stratum-service-card:hover .stratum-service-card-title {
  color: var(--stratum-white);
}

.stratum-service-card:hover .stratum-service-card-text {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1199.98px) {
  .stratum-schedule-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .stratum-service-cards-wrap {
    justify-content: center;
  }
  .stratum-dots-pattern {
    display: none;
  }
}

@media (max-width: 640px) {
  .stratum-service-cards-wrap {
    grid-template-columns: 1fr;
  }
  .stratum-service-cards-wrap .stratum-service-card:nth-of-type(2),
  .stratum-service-cards-wrap .stratum-service-card:nth-of-type(3) {
    margin-top: 0;
    min-height: auto;
  }
  .stratum-cards-col-right {
    margin-top: 0;
  }
}
