/* ==========================================================================
   SHN Ceylon — Dark "Legacy" Section + Service Cards
   ========================================================================== */

.shn-legacy {
  background-color: var(--shn-black);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
}

.shn-legacy__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.shn-legacy__title {
  color: var(--shn-white);
  font-size: 90px;
  font-weight: 600;
  line-height: 90px;
  letter-spacing: -2%;
}

.shn-legacy__chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 0;
  color: var(--shn-white);
  opacity: 0.85;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.shn-legacy__chevron:hover {
  opacity: 1;
}

.shn-legacy__chevron img {
  width: 74px;
  height: 39px;
  animation: shn-arrow-bounce 1.8s ease-in-out infinite;
}

@keyframes shn-arrow-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

/* ---- Cards row ---- */
.shn-cards {
  background-color: var(--shn-black);
  padding-bottom: clamp(48px, 6vw, 90px);
}

.shn-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.shn-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 638px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 28px 32px;
  border: 5px solid transparent;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-base);
}

.shn-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.shn-card > * {
  position: relative;
  z-index: 1;
}

.shn-card:hover {
  transform: translateY(-4px);
}

.shn-card--agriculture {
  border-color: var(--shn-card-border-green);
  background-image: url("../assets/images/agricuture.webp");
}

.shn-card--agriculture::before {
  background: linear-gradient(180deg, rgba(94, 161, 123, 0.6) 0%, #094F60 100%);
}

.shn-card--land-sale {
  border-color: #E2CF00;
  background-image: url("../assets/images/land-sale.webp");
}

.shn-card--land-sale::before {
  background: linear-gradient(180deg, rgba(200, 123, 0, 0.8) 0%, #C8A700 100%);
}

.shn-card--tourism {
  border-color: var(--shn-card-border-purple);
  background-image: url("../assets/images/tourism.webp");
}

.shn-card--tourism::before {
  background: linear-gradient(180deg, rgba(102, 0, 165, 0.6) 0%, #00053F 100%);
}

.shn-card--supuni-motors {
  border-color: var(--shn-card-border-red);
  background-image: url("../assets/images/supuni-motors.webp");
}

.shn-card--supuni-motors::before {
  background: linear-gradient(180deg, rgba(211, 14, 14, 0.6) 0%, #880000 100%);
}

.shn-card__title {
  color: var(--shn-white);
  font-size: 48px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: -2%;
  margin-bottom: 18px;
}

.shn-card__text {
  color: rgba(255, 255, 255, 0.92);
  font-size: 32px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: -2%;
  margin-bottom: 28px;
  max-width: 26ch;
}

.shn-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  align-self: flex-start;
  height: 60px;
  padding-inline: 30px;
  background-color: var(--shn-green-accent);
  color: var(--shn-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 42px;
  letter-spacing: -2%;
  border: none;
  border-radius: var(--radius-pill);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.shn-card__btn:hover {
  background-color: var(--shn-green-accent-hover);
  transform: translateX(2px);
}

.shn-card__btn svg {
  width: 20px;
  height: 20px;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* Tablet: 2x2 grid */
@media (max-width: 991.98px) {
  .shn-cards__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
  }

  .shn-card {
    min-height: 460px;
    padding: 28px 24px 26px;
  }

  .shn-card__title {
    font-size: clamp(1.6rem, 1.2rem + 1.6vw, 3rem);
    line-height: 1.1;
  }

  .shn-card__text {
    font-size: clamp(1.05rem, 0.9rem + 0.6vw, 2rem);
    line-height: 1.3;
  }

  .shn-card__btn {
    height: 52px;
    padding-inline: 24px;
    font-size: 1rem;
    line-height: 1.2;
  }

  .shn-legacy__title {
    font-size: clamp(3rem, 4vw, 2.4rem);
    line-height: 1;
  }
}

/* Mobile: stacked single column */
@media (max-width: 575.98px) {
  .shn-cards__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shn-card {
    min-height: 480px;
    padding: 32px 26px 28px;
  }

  .shn-card__title {
    font-size: clamp(2rem, 1.5rem + 3vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 22px;
  }

  .shn-card__text {
    font-size: clamp(1.2rem, 1rem + 1.2vw, 1.5rem);
    line-height: 1.4;
    margin-bottom: 32px;
  }

  .shn-card__btn {
    height: 56px;
    padding-inline: 26px;
    font-size: 1.1rem;
    line-height: 1.2;
  }

  .shn-legacy__row {
    align-items: flex-start;
  }

  .shn-legacy__chevron img {
    width: 52px;
    height: 27px;
  }
}
