/* WCC V6.29 — Explore WCC hanging heritage cards
   Scope: Home-page .route-section only. No content or route changes. */

.route-section {
  position: relative;
  overflow: visible;
  isolation: isolate;
  padding-top: clamp(70px, 7vw, 108px);
  padding-bottom: clamp(82px, 8vw, 124px);
  background:
    radial-gradient(circle at 11% 18%, rgba(155,123,66,.08) 0 1px, transparent 2px),
    radial-gradient(circle at 83% 72%, rgba(109,48,40,.055) 0 1px, transparent 2px),
    linear-gradient(180deg, rgba(255,255,255,.26), rgba(222,214,192,.18)),
    var(--paper, #f4ecd9);
  background-size: 31px 31px, 37px 37px, auto, auto;
}

.route-section > .section-heading {
  position: relative;
  z-index: 2;
  width: min(860px, calc(100% - 40px));
  margin-inline: auto;
  margin-bottom: 2px;
  text-align: center;
}

.route-section > .section-heading::after {
  content: "";
  display: block;
  width: min(520px, 76vw);
  height: 11px;
  margin: 24px auto 0;
  background:
    radial-gradient(circle at 50% 50%, #8c692a 0 3px, transparent 4px),
    linear-gradient(90deg, transparent, #b38b43 14%, #8a672a 50%, #b38b43 86%, transparent) center/100% 1px no-repeat;
  opacity: .9;
}

.route-section > .section-heading .eyebrow {
  letter-spacing: .2em;
}

.route-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(88px, 7vw, 116px) clamp(34px, 3.6vw, 58px);
  width: min(1280px, calc(100% - 54px));
  margin: 0 auto;
  padding: clamp(92px, 7vw, 112px) 0 14px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}

.route-grid > a {
  --hang-tilt: -.32deg;
  position: relative;
  display: flex;
  min-height: 310px;
  padding: 46px 34px 30px;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: visible;
  isolation: isolate;
  transform-origin: 50% -68px;
  transform: rotate(var(--hang-tilt));
  border-radius: 3px 12px 4px 10px;
  border: 2px solid rgba(137,101,42,.72);
  background:
    radial-gradient(circle at 18% 20%, rgba(155,123,66,.08) 0 1px, transparent 2px),
    radial-gradient(circle at 78% 67%, rgba(109,48,40,.055) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(255,255,255,.7), rgba(255,255,255,.08) 38%, rgba(176,140,71,.07) 100%),
    #f1e7cf;
  background-size: 29px 29px, 41px 41px, auto, auto;
  box-shadow:
    0 14px 18px rgba(62,43,20,.15),
    0 4px 0 rgba(142,103,40,.18),
    inset 0 0 0 4px rgba(255,250,235,.46),
    inset 0 0 0 5px rgba(142,103,40,.16);
  transition: transform .32s ease, box-shadow .32s ease, background-color .32s ease;
}

.route-grid > a:nth-child(even) { --hang-tilt: .32deg; }
.route-grid > a:nth-child(3n) { --hang-tilt: -.18deg; }

/* Twin rope + brass eyelet assemblies. */
.route-grid > a::before,
.route-grid > a::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -82px;
  width: 24px;
  height: 100px;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 6px, #e0be71 0 3px, #6f4c1d 4px 5px, transparent 6px),
    radial-gradient(circle at 50% calc(100% - 9px), #24170d 0 4px, #d0a957 5px 8px, #68461b 9px 11px, transparent 12px),
    repeating-linear-gradient(135deg, #5e3f24 0 2px, #c39150 2px 4px, #6c4726 4px 6px) center 12px / 4px calc(100% - 29px) no-repeat;
  filter: drop-shadow(1px 2px 1px rgba(50,31,14,.24));
}

.route-grid > a::before { left: 20%; }
.route-grid > a::after { right: 20%; }

.route-grid > a > span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  min-height: 30px;
  margin-bottom: 4px;
  padding: 3px 13px;
  border-top: 1px solid rgba(155,123,66,.58);
  border-bottom: 1px solid rgba(155,123,66,.58);
  color: #7b5b20;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
}

.route-grid > a h3 {
  margin: 18px 0 14px;
  color: #123f30;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 500;
  line-height: 1.18;
}

.route-grid > a p {
  width: min(100%, 330px);
  margin: 0 auto;
  color: #5b5448;
  font-size: 16px;
  line-height: 1.62;
}

/* Existing Explore text becomes the card's visible action control.
   The whole card remains the single accessible anchor. */
.route-grid > a b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  margin-top: auto;
  padding: 10px 19px 11px;
  border: 3px double #b98e3f;
  border-radius: 2px;
  background: #0c3b2c;
  box-shadow: 0 3px 0 rgba(55,37,16,.25), inset 0 0 0 1px rgba(255,245,214,.12);
  color: #e2bb66;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.route-grid > a:hover,
.route-grid > a:focus-visible {
  background-color: #f8eed8;
  transform: translateY(-5px) rotate(0deg);
  box-shadow:
    0 19px 24px rgba(62,43,20,.2),
    0 5px 0 rgba(142,103,40,.17),
    inset 0 0 0 4px rgba(255,250,235,.58),
    inset 0 0 0 5px rgba(142,103,40,.2);
}

.route-grid > a:hover b,
.route-grid > a:focus-visible b {
  background: #154e3b;
  color: #f0cf85;
  transform: translateY(-1px);
  box-shadow: 0 4px 0 rgba(55,37,16,.24), inset 0 0 0 1px rgba(255,245,214,.16);
}

.route-grid > a:focus-visible {
  outline: 3px solid #946f2d;
  outline-offset: 7px;
}

@media (max-width: 1050px) {
  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(880px, calc(100% - 46px));
    gap: 86px 38px;
  }
}

@media (max-width: 680px) {
  .route-section {
    padding-top: 58px;
    padding-bottom: 76px;
  }

  .route-section > .section-heading {
    width: min(100% - 32px, 620px);
  }

  .route-grid {
    grid-template-columns: 1fr;
    width: min(500px, calc(100% - 36px));
    gap: 84px;
    padding-top: 88px;
  }

  .route-grid > a {
    --hang-tilt: 0deg !important;
    min-height: 282px;
    padding: 43px 26px 26px;
  }

  .route-grid > a::before { left: 19%; }
  .route-grid > a::after { right: 19%; }
}

@media (max-width: 420px) {
  .route-grid {
    width: min(100% - 24px, 390px);
  }
  .route-grid > a {
    padding-inline: 20px;
  }
  .route-grid > a p {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-grid > a,
  .route-grid > a b {
    transition: none;
  }
}
