/* ── Themes page ── */

/* Hero */
.themes-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.75rem max(24px, calc((100vw - 1200px) / 2 + 24px));
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

.themes-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #c8860a;
}

.themes-hero-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.themes-hero-sub {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.6;
  max-width: 34rem;
}

.themes-hero-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  border-left: 1px solid var(--color-border);
  padding-left: 2rem;
}

.themes-feat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.themes-feat-icon {
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}

.themes-feat-icon svg {
  width: 20px;
  height: 20px;
}

.themes-feat strong {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.themes-feat span {
  font-size: 0.74rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ── Theme rows ── */
.theme-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(280px, 32vw, 400px);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.theme-row-media {
  overflow: hidden;
  background: #111;
  height: 100%;
}

.theme-row-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  box-sizing: border-box;
  transition: transform 0.6s ease;
  filter: brightness(0.92);
}

.theme-row:hover .theme-row-media img {
  transform: scale(1.04);
  filter: brightness(1);
}

.theme-row-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--color-white);
  height: 100%;
  overflow: hidden;
}

.theme-num {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #c8860a;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.theme-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: #c8860a;
}

.theme-row-title {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.theme-row-desc {
  margin: 0 0 2rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
  max-width: 34rem;
}

.theme-row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-sm-theme {
  padding: 0.75rem 1.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .themes-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .themes-hero-right {
    border-left: none;
    border-top: 1px solid var(--color-border);
    padding-left: 0;
    padding-top: 2rem;
  }

  .theme-row {
    grid-template-columns: 1fr;
    height: auto;
  }

  .theme-row-media {
    height: clamp(240px, 60vw, 380px);
  }

  /* On mobile, image always comes first visually */
  .theme-row--reverse .theme-row-copy { order: 2; }
  .theme-row--reverse .theme-row-media { order: 1; }

  .theme-row-copy {
    padding: 2.25rem 1.5rem;
    height: auto;
  }
}

@media (max-width: 768px) {
  .themes-feat {
    align-items: center;
    text-align: center;
  }

  .themes-feat strong,
  .themes-feat span {
    text-align: center;
  }
}

@media (max-width: 560px) {
  .themes-hero-right {
    grid-template-columns: 1fr;
  }

  .theme-row-btns {
    flex-direction: column;
  }

  .btn-sm-theme {
    width: 100%;
    justify-content: center;
  }
}
