.home-directions {
  padding: clamp(38px, 4.2vw, 72px) 24px;
  background: #f4f6f8;
}

.home-directions__shell {
  width: min(var(--max, 1550px), 100%);
  margin: 0 auto;
}

.home-directions__heading {
  margin: 0 0 clamp(24px, 2.5vw, 38px);
}

.home-directions__heading > p {
  margin: 0 0 10px;
  color: #e86120;
  font: 800 14px/1.2 Inter, Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-directions__heading h2 {
  max-width: 1260px;
  margin: 0;
  color: #111c27;
  font: 800 clamp(30px, 3vw, 52px)/1.05 Inter, Arial, sans-serif;
  letter-spacing: -.035em;
}

.home-directions__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-direction-card {
  position: relative;
  min-width: 0;
  min-height: clamp(310px, 21vw, 390px);
  overflow: hidden;
  border: 1px solid rgba(18, 43, 61, .58);
  border-radius: 12px;
  background-image:
    linear-gradient(90deg, rgba(8, 25, 38, .88) 0%, rgba(8, 25, 38, .66) 48%, rgba(8, 25, 38, .10) 100%),
    var(--direction-image);
  background-position: center;
  background-size: cover;
  box-shadow: 0 15px 30px rgba(17, 34, 47, .12);
  isolation: isolate;
}

.home-direction-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(4, 15, 24, .28), transparent 55%);
}

.home-direction-card__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(73%, 390px);
  min-height: 100%;
  padding: clamp(28px, 2.4vw, 40px);
  box-sizing: border-box;
  color: #fff;
}

.home-direction-card__eyebrow {
  margin: 0 0 14px;
  color: #ff6a27;
  font: 800 clamp(12px, .9vw, 15px)/1.2 Inter, Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-direction-card h3 {
  margin: 0 0 16px;
  color: #fff;
  font: 800 clamp(26px, 2vw, 38px)/1.02 Inter, Arial, sans-serif;
  letter-spacing: -.035em;
  text-transform: uppercase;
}

.home-direction-card__description {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, .94);
  font: 500 clamp(14px, 1.05vw, 18px)/1.48 Inter, Arial, sans-serif;
}

.home-direction-card a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 164px;
  margin-top: auto;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 6px;
  background: #126b9e;
  color: #fff;
  font: 800 15px/1 Inter, Arial, sans-serif;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color .2s ease, transform .2s ease;
}

.home-direction-card a:hover,
.home-direction-card a:focus-visible {
  background: #0f82bc;
  transform: translateY(-2px);
}

@media (max-width: 1180px) {
  .home-directions__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-direction-card__content { width: min(70%, 420px); }
}

@media (max-width: 680px) {
  .home-directions { padding: 34px 14px; }
  .home-directions__grid { grid-template-columns: 1fr; gap: 14px; }
  .home-direction-card { min-height: 340px; }
  .home-direction-card__content { width: 82%; padding: 28px 24px; }
}
