/* ==========================================================================
   Hero Section 35 — Centered hero with content cards
   Adapted from shadcn-studio hero-section-35
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero wrapper
   -------------------------------------------------------------------------- */

.hp-hero35 {
  background: var(--vox-lilac);
  padding: 5.5rem 0 4rem;
}

.hp-hero35 .container {
  max-width: 72rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* --------------------------------------------------------------------------
   Hero header — centered heading + subtext
   -------------------------------------------------------------------------- */

.hp-hero35__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
  max-width: 52rem;
  align-self: center;
}

/* Heading — two-class selector beats .mainContent h1 */
.hp-hero35 .hp-hero35__title {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--vox-white);
  text-wrap: balance;
}

/* Subtext */
.hp-hero35__body {
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 36rem;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Content cards grid
   -------------------------------------------------------------------------- */

.hp-hero35__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Card */
.hp-hero35__card {
  background: var(--vox-white);
  border: 1px solid var(--vox-gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.hp-hero35__card:hover {
  border-color: var(--vox-lilac);
  box-shadow: 0 8px 24px rgba(149, 86, 158, 0.08);
}

.hp-hero35__card-inner {
  display: grid;
  grid-template-columns: 1fr;
  height: 100%;
}

@media (min-width: 1024px) {
  .hp-hero35__card-inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card image */
.hp-hero35__card-media {
  padding: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-hero35__card-img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.hp-hero35__card:hover .hp-hero35__card-img {
  transform: scale(1.03);
}

/* Square video with drop shadow (featured card) */
.hp-hero35__card-media video.hp-hero35__card-img {
  aspect-ratio: 1;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(52, 28, 76, 0.25);
}

/* Card content — grid rows keep title / desc / footer aligned across cards */
.hp-hero35__card-content {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 0.5rem;
  padding: 1.5rem;
}

.hp-hero35__card-footer {
  align-self: end;
}

/* Meta row — date + category badge */
.hp-hero35__card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.hp-hero35__card-date {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: var(--vox-cool-gray);
  flex: 1;
}

.hp-hero35__card-date svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.hp-hero35__card-badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--vox-lilac);
  background: rgba(149, 86, 158, 0.08);
  border-radius: 9999px;
  padding: 0.25rem 0.625rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hp-hero35__card-badge:hover {
  background: rgba(149, 86, 158, 0.15);
  color: var(--vox-lilac);
}

/* Card title — two-class selector (0-2-0) beats .mainContent h3 (0-1-1) */
.hp-hero35__card .hp-hero35__card-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--vox-charcoal);
  margin: 0;
  line-height: 1.35;
  text-wrap: balance;
}

/* Featured card — matches front door card title size (1.375rem / 600) */
.hp-hero35__card--featured .hp-hero35__card-title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--vox-purple);
  line-height: 1.3;
}

.hp-hero35__card-title a {
  color: inherit;
  text-decoration: none;
}

.hp-hero35__card-title a:hover {
  color: var(--vox-purple);
}

/* Card description */
.hp-hero35__card-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--vox-cool-gray);
  margin: 0;
  text-wrap: pretty;
}

/* Card footer — author + arrow button */
.hp-hero35__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

.hp-hero35__card-author {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--vox-charcoal);
  text-decoration: none;
}

.hp-hero35__card-author:hover {
  color: var(--vox-purple);
}

/* Inline text link with arrow (featured card CTA) */
.hp-hero35__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--vox-purple);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.hp-hero35__card-link svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hp-hero35__card-link:hover {
  color: var(--vox-lilac);
}

.hp-hero35__card-link:hover svg {
  transform: translate(2px, -2px);
}

/* Arrow icon button */
.hp-hero35__card-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--vox-gray-200);
  background: transparent;
  color: var(--vox-charcoal);
  text-decoration: none;
  transition: all 0.2s ease;
}

.hp-hero35__card-arrow svg {
  width: 1rem;
  height: 1rem;
}

.hp-hero35__card:hover .hp-hero35__card-arrow,
.hp-hero35__card-arrow:hover {
  background: var(--vox-purple);
  border-color: var(--vox-purple);
  color: var(--vox-white);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
  .hp-hero35 {
    padding: 3.5rem 0 3rem;
  }

  .hp-hero35 .container {
    gap: 2.5rem;
  }

  .hp-hero35__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .hp-hero35__card-inner {
    grid-template-columns: 2fr 3fr;
  }

  .hp-hero35__card-media {
    padding: 0.75rem;
  }

  .hp-hero35__card-img {
    height: auto;
    max-height: 10rem;
  }

  .hp-hero35__card-media video.hp-hero35__card-img {
    max-height: 10rem;
  }

  .hp-hero35__card-content {
    padding: 0.75rem;
    gap: 0.25rem;
  }

  .hp-hero35__card--featured .hp-hero35__card-title {
    font-size: 0.95rem;
    min-height: 3.75rem;
  }

  .hp-hero35__card-desc {
    font-size: 0.75rem;
  }

  .hp-hero35__card-link {
    font-size: 0.75rem;
  }
}

@media (max-width: 767px) {
  .hp-hero35 {
    padding: 3.5rem 0 3rem;
  }

  .hp-hero35 .container {
    gap: 3rem;
  }

  .hp-hero35__grid {
    grid-template-columns: 1fr;
    max-width: 32rem;
    margin: 0 auto;
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .hp-hero35__card,
  .hp-hero35__card-img,
  .hp-hero35__card-arrow {
    transition: none;
  }

  .hp-hero35__card:hover .hp-hero35__card-img {
    transform: none;
  }
}
