/* OUR REACH section */

.reach-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  position: relative;
  overflow: visible;
}

.reach-section .container {
  max-width: 80rem;
}

.reach-section::before,
.reach-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.reach-section::before {
  width: 420px;
  height: 420px;
  top: 8%;
  left: -120px;
  background: rgba(13, 148, 136, 0.06);
  filter: blur(40px);
}

.reach-section::after {
  width: 360px;
  height: 360px;
  bottom: 10%;
  right: -80px;
  background: rgba(139, 92, 246, 0.05);
  filter: blur(50px);
}

/* Header — ensure eyebrow/title are never clipped */
.reach-section .container > .text-center {
  padding-top: 0.25rem;
}

.reach-section .home-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.reach-section .home-section-copy {
  line-height: 1.65;
}

/* Active tab pill */
.reach-section button.border-claps-navy {
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.28) !important;
}

/* Main feature card */
.reach-feature-card {
  border-radius: 28px !important;
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .reach-feature-card > .grid {
    display: grid;
    grid-template-columns: minmax(300px, 360px) 1fr;
    min-height: 420px;
    isolation: isolate;
  }
}

/* Dark sidebar — straight edge, sits behind the card grid */
.reach-sidebar {
  background: linear-gradient(160deg, #0f2744 0%, #0f172a 55%, #111827 100%) !important;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.reach-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
  mask-image: linear-gradient(180deg, transparent 35%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 35%, black 100%);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .reach-sidebar {
    border-radius: 28px 0 0 28px;
    clip-path: none;
    padding-right: 2rem !important;
  }

  /* Vertical accent divider — not a diagonal into the grid */
  .reach-sidebar::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12%;
    bottom: 12%;
    width: 3px;
    background: linear-gradient(180deg, transparent 0%, #2dd4bf 20%, #0d9488 50%, #2dd4bf 80%, transparent 100%);
    border-radius: 999px;
    z-index: 2;
    opacity: 0.85;
    box-shadow: none;
  }
}

.reach-sidebar-glow {
  display: none;
}

.reach-sidebar-icon {
  width: 4.5rem !important;
  height: 4.5rem !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 2px solid rgba(13, 148, 136, 0.55) !important;
}

.reach-sidebar-icon svg {
  width: 2rem !important;
  height: 2rem !important;
}

/* Card grid panel — opaque layer in front of sidebar */
.reach-feature-card .bg-slate-50\/90 {
  background: #f4f7fa !important;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .reach-feature-card .bg-slate-50\/90 {
    border-radius: 0 28px 28px 0;
    padding: 1.75rem 1.75rem 1.75rem 2rem !important;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.06);
  }
}

/* Item cards — equal height rows, arrow pinned to bottom */
.reach-feature-card .bg-slate-50\/90 > .grid {
  align-items: stretch;
}

@media (min-width: 1024px) {
  .reach-feature-card .bg-slate-50\/90 > .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.reach-item-card {
  border-radius: 16px !important;
  border: 1px solid #e8edf2 !important;
  min-height: 148px !important;
  height: 100%;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
  gap: 0.25rem;
}

.reach-item-card:hover {
  border-color: rgba(13, 148, 136, 0.4) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.1) !important;
  transform: translateY(-2px);
}

.reach-item-card:focus-visible {
  border-color: rgba(13, 148, 136, 0.55) !important;
  background: #f0fdfa !important;
}

/* Consistent default border — no stray teal on a single card */
.reach-item-card:not(:hover):not(:focus-visible) {
  border-color: #e8edf2 !important;
  background: #ffffff !important;
}

.reach-item-desc {
  margin-bottom: 0.75rem;
}

.reach-item-arrow {
  width: 2rem !important;
  height: 2rem !important;
  margin-top: auto !important;
  background: #0d9488 !important;
  flex-shrink: 0;
}

.reach-item-arrow svg {
  width: 1rem !important;
  height: 1rem !important;
}

/* Board icons — crisp SVG/img sizing */
.reach-item-icon {
  width: 2.75rem !important;
  height: 2.75rem !important;
  border-radius: 12px !important;
  background: #ecfdf8 !important;
  border: 1px solid #ccfbf1 !important;
}

.reach-item-icon img {
  width: 2rem !important;
  height: 2rem !important;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.reach-item-icon svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
}

/* Carousel nav — category switcher, not per-card swipe */
.reach-nav-controls {
  flex-wrap: wrap;
  row-gap: 0.5rem;
}

.reach-nav-hint {
  flex: 1 1 100%;
  line-height: 1.4;
}

@media (min-width: 1024px) {
  .reach-nav-hint {
    flex: 0 1 auto;
  }

  .reach-nav-hint::before {
    content: "· ";
    opacity: 0.5;
  }
}

@media (max-width: 1023px) {
  .reach-nav-hint {
    font-size: 0.8125rem;
  }
}

/* CTA */
.reach-section .mt-10 a.inline-flex {
  width: 100%;
  max-width: 48rem;
  border-radius: 16px !important;
  padding: 1rem 1.5rem !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
  box-shadow: 0 14px 32px rgba(13, 148, 136, 0.28) !important;
}

.reach-section .mt-10 a.inline-flex:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(13, 148, 136, 0.34) !important;
}
