/*
 * JMHOF 2027 — Components
 * Hero, category cards, section headers, ceremony CTA.
 */

/* ─── HERO ────────────────────────────────────────────────────────── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-color: var(--stage);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: var(--section-pad-y);
}

[dir="ltr"] .hero__inner {
  align-items: flex-start;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--ember);
}

[dir="rtl"] .hero__eyebrow::before {
  order: 2;
}

.hero__headline {
  max-width: 18ch;
  color: var(--off-white);
}

.hero__sub {
  max-width: 48ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-block-start: 0.5rem;
}

/* ─── SECTION HEADER ──────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-block-end: 2.5rem;
  flex-wrap: wrap;
}

/* ─── CATEGORY CARD ───────────────────────────────────────────────── */
.category-card {
  position: relative;
}

.category-card__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--off-white);
  height: 100%;
  transition: color var(--duration-fast) var(--ease-ceremony);
}

.category-card__image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background-color: var(--stage-lift);
  position: relative;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-default) var(--ease-ceremony);
}

.category-card__link:hover .category-card__image img {
  transform: scale(1.04);
}

.category-card__image-placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--stage-lift);
  background-image:
    linear-gradient(
      135deg,
      var(--stage-mid) 25%,
      transparent 25%
    ),
    linear-gradient(
      225deg,
      var(--stage-mid) 25%,
      transparent 25%
    );
  background-size: 40px 40px;
}

.category-card__body {
  padding-block: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.category-card__title {
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.category-card__link:hover .category-card__title {
  color: var(--ember);
}

/* ─── SECTION VARIANTS ────────────────────────────────────────────── */
.section--dark {
  background-color: var(--stage-deep);
}

.section--paper {
  background-color: var(--paper);
  color: var(--ink);
}

.section--paper h1,
.section--paper h2,
.section--paper h3 {
  color: var(--ink);
}

/* ─── TEXT HELPERS ────────────────────────────────────────────────── */
.text-center { text-align: center; }

/* Centered ceremony CTA */
.ceremony-cta .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

/* ─── PAGE CONTENT ────────────────────────────────────────────────── */
.page-header {
  background-color: var(--stage);
  padding-block-end: 3rem;
}

.page-body {
  background-color: var(--stage);
}

.page-featured-image img {
  width: 100%;
  aspect-ratio: 2/1;
  object-fit: cover;
  display: block;
}

.entry-content > * + * {
  margin-block-start: 1.5em;
}

.entry-content a {
  color: var(--ember);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: var(--off-white);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .category-grid .col-4 {
    grid-column: span 6;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 70vh;
  }

  .category-grid .col-4 {
    grid-column: span 12;
  }

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