/* Homepage hero path buttons + learn-more modals */

.hero-cta {
  flex-direction: column;
  align-items: center;
}

.hero-cta-path {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  max-width: min(100%, 36rem);
  padding: 0.55rem 0.55rem 0.55rem 0.65rem;
  border-radius: 8px;
  text-decoration: none !important;
  box-sizing: border-box;
}

.hero-cta-path__main,
a.hero-cta-path__main:is(:link, :visited, :hover, :active, :focus-visible) {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none !important;
  font-weight: inherit;
  line-height: 1.25;
}

.hero-cta-path__icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.hero-cta-path__label {
  text-align: left;
}

.hero-cta-path__pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta-path.btn-primary .hero-cta-path__pill {
  background: rgba(5, 5, 5, 0.22);
  border-color: rgba(5, 5, 5, 0.28);
  color: #050505;
}

.hero-cta-path__pill:hover,
.hero-cta-path__pill:focus-visible {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(30, 41, 59, 0.72);
  color: #f8fafc;
  outline: none;
}

.hero-cta-path.btn-primary .hero-cta-path__pill:hover,
.hero-cta-path.btn-primary .hero-cta-path__pill:focus-visible {
  background: rgba(5, 5, 5, 0.38);
  color: #050505;
}

.hero-cta-brief {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted, #94a3b8);
}

.hero-cta-brief__link,
a.hero-cta-brief__link:is(:link, :visited, :hover, :active, :focus-visible) {
  color: #cbd5e1;
  text-decoration: none !important;
  border-radius: 4px;
}

.hero-cta-brief__link:hover,
.hero-cta-brief__link:focus-visible {
  color: #f8fafc;
  outline: 2px solid rgba(147, 197, 253, 0.65);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .hero-cta-path {
    width: 100%;
    max-width: 320px;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0.75rem;
  }

  .hero-cta-path__main {
    justify-content: center;
    text-align: center;
  }

  .hero-cta-path__label {
    text-align: center;
  }

  .hero-cta-path__pill {
    align-self: center;
  }
}

/* Modal — pattern aligned with direction-gallery-modal */
.hero-cta-modal[hidden] {
  display: none;
}

.hero-cta-modal {
  position: fixed;
  inset: 0;
  z-index: 1250;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem;
  overflow-y: auto;
}

.hero-cta-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(6px);
}

.hero-cta-modal__shell {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  margin: 2vh auto 4vh;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #0b1220;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.hero-cta-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.hero-cta-modal__head-title {
  margin: 0;
  font-size: 1.15rem;
}

.hero-cta-modal__close {
  border: 0;
  background: transparent;
  color: #e2e8f0;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

.hero-cta-modal__close:hover,
.hero-cta-modal__close:focus-visible {
  background: rgba(148, 163, 184, 0.15);
}

.hero-cta-modal__panel h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.hero-cta-modal__panel p {
  margin: 0 0 0.75rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
}

.hero-cta-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.hero-cta-modal__actions .btn-primary,
.hero-cta-modal__actions .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  white-space: normal;
  text-align: center;
}

body.hero-cta-modal-open {
  overflow: hidden;
}
