html, body {
  scroll-behavior: smooth;
}

.themes-page {
  padding-bottom: var(--space-16);
}

.themes-hero {
  padding: var(--space-16) 0 var(--space-10);
}

.themes-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr);
  gap: var(--space-10);
  align-items: center;
}

.themes-hero__title {
  margin-top: var(--space-4);
  margin-bottom: var(--space-4);
}

.themes-hero__text {
  max-width: 620px;
}

.themes-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.themes-hero__highlight {
  display: flex;
  justify-content: flex-end;
}

.themes-hero__stats {
  width: 100%;
}

.themes-hero__stats-title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}

.themes-hero__stats-text {
  margin-bottom: var(--space-4);
}

.themes-hero__stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  font-size: var(--font-size-xs);
}

.themes-hero__stat-label {
  display: block;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-1);
}

.themes-hero__stat-value {
  font-weight: 500;
}

.themes-overview {
  padding: 0 0 var(--space-12);
}

.themes-section-header {
  max-width: 760px;
  margin: 0 auto var(--space-8);
  text-align: center;
}

.themes-section-header h2 {
  margin-bottom: var(--space-3);
}

.themes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.theme-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr);
  gap: var(--space-5);
  align-items: stretch;
}

.theme-card__media-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.theme-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.theme-card__title {
  margin-bottom: var(--space-2);
}

.theme-card__subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.theme-card__highlights {
  display: grid;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-4);
}

.theme-card__highlights li::before {
  content: "\2022";
  margin-right: 0.35rem;
  color: var(--color-primary);
}

.theme-card__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.theme-card__cta--stacked {
  flex-direction: column;
  align-items: flex-start;
}

.theme-card--highlight {
  border: 1px solid rgba(212, 175, 55, 0.6);
  box-shadow: var(--shadow-glow-gold);
}

.themes-cta {
  padding-bottom: var(--space-12);
}

.themes-cta__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
}

.themes-cta__content h2 {
  margin-bottom: var(--space-3);
}

.themes-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.themes-secondary-nav {
  border-top: 1px solid var(--color-border-subtle);
  padding: var(--space-6) 0 var(--space-4);
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.1), transparent 55%);
}

.themes-secondary-nav__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.themes-secondary-nav__label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.themes-secondary-nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.themes-secondary-nav__link {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

@media (max-width: 1024px) {
  .themes-hero {
    padding-top: var(--space-12);
  }

  .themes-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-hero__highlight {
    justify-content: flex-start;
  }

  .themes-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .theme-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .themes-hero__actions,
  .theme-card__cta,
  .themes-cta__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .themes-hero__stats-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .themes-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .themes-secondary-nav__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
