/* =========================================================================
   HOMEPAGE
   Homepage-specific sections. Consumes tier 2 theme tokens only.
   ========================================================================= */

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

.hero {
  padding-block: var(--theme-space-region);
  position: relative;
  overflow: hidden;
  background-image: url("/assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero .container--body {
  max-width: none;
}

.hero h1 {
  font-size: 3rem;
  max-width: 63ch;
  margin-inline: auto;
  text-transform: uppercase;
}

.hero .lead {
  max-width: 52ch;
  margin-inline: auto;
  color: var(--theme-color-text-default);
}

.center-cluster {
  justify-content: center;
  margin-top: var(--theme-space-stack-md);
}

/* -------------------------------------------------------------------------
   Mission
   ------------------------------------------------------------------------- */

.mission h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem);
}

.mission__body {
  max-width: var(--theme-measure-prose);
  margin-inline: auto;
}

.mission__body p {
  font-size: var(--theme-font-size-lead);
  line-height: var(--theme-line-height-loose);
  color: var(--theme-color-text-default);
  max-width: none;
}

/* -------------------------------------------------------------------------
   Quote block
   ------------------------------------------------------------------------- */

.quote {
  position: relative;
  background-image: url("/assets/images/quote-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--theme-color-text-inverse);
  overflow: hidden;
  padding-block: var(--theme-space-region);
}

.quote::before,
.quote::after {
  position: absolute;
  font-family: var(--theme-font-family-display);
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 1;
  color: var(--theme-color-brand-emphasis);
  pointer-events: none;
}

.quote::before {
  content: "\201C";
  top: var(--theme-space-stack-md);
  left: var(--theme-space-stack-lg);
}

.quote::after {
  content: "\201D";
  bottom: var(--theme-space-stack-md);
  right: var(--theme-space-stack-lg);
  line-height: 0.5;
}

.quote blockquote {
  border: 0;
  padding: 0;
  font-size: var(--theme-font-size-heading-sm);
  line-height: var(--theme-line-height-loose);
  max-width: none;
  color: var(--theme-color-text-inverse);
  font-style: italic;
}

.quote blockquote cite {
  color: var(--theme-color-brand-emphasis);
  font-style: normal;
  letter-spacing: var(--theme-letter-spacing-wide, 0.04em);
}

/* Services grid + cards moved to components/service-card.css (shared with
   the /services page). */

/* -------------------------------------------------------------------------
   Groups & Events — featured event
   ------------------------------------------------------------------------- */

.groups {
  background-color: var(--theme-color-brand-quiet);
  background-image: linear-gradient(
    135deg,
    var(--theme-color-brand-quiet),
    color-mix(in srgb, var(--theme-color-brand-quiet) 70%, #000)
  );
}

.groups .eyebrow {
  color: var(--theme-color-brand-primary);
}

.groups h2 {
  color: var(--theme-color-text-inverse);
}

.groups p {
  color: var(--theme-color-text-inverse);
}

.featured-event {
  max-width: 42rem;
  margin-inline: auto;
  padding: var(--theme-space-stack-xl);
  background-color: color-mix(in srgb, #ffffff 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--theme-color-brand-primary) 40%, transparent);
  border-radius: var(--theme-radius-soft);
  display: grid;
  gap: var(--theme-space-stack-md);
}

.featured-event h3 {
  color: var(--theme-color-text-inverse);
  font-size: var(--theme-font-size-heading-md);
  font-family: var(--theme-font-family-display);
  font-weight: var(--theme-font-weight-heading);
  letter-spacing: var(--theme-letter-spacing-heading);
}

.featured-event__details {
  display: grid;
  gap: var(--theme-space-stack-xs);
  margin: 0;
  color: var(--theme-color-text-inverse);
  font-size: var(--theme-font-size-body);
}

.featured-event__details dd {
  margin: 0;
}

.featured-event__description {
  color: var(--theme-color-text-inverse);
  max-width: none;
}

/* -------------------------------------------------------------------------
   Values — rotating carousel
   Default (no JS): all five slides stack vertically as a readable list.
   Enhanced (JS adds .values-carousel--enhanced): single-slide carousel
     with prev/next, dot indicators, and play/pause auto-rotate.
   ------------------------------------------------------------------------- */

.values-carousel__slides {
  display: grid;
  gap: var(--theme-space-stack-xl);
  list-style: none;
  padding: 0;
  margin: var(--theme-space-stack-lg) 0 0;
}

.values-carousel__slide {
  display: grid;
  gap: var(--theme-space-stack-md);
  align-items: center;
}

@media (min-width: 44rem) {
  .values-carousel__slide {
    grid-template-columns: 1fr 1fr;
    gap: var(--theme-space-stack-xl);
  }
}

.values-carousel__figure {
  margin: 0;
}

.values-carousel__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 487 / 273;
  object-fit: contain;
}

.values-carousel__name {
  font-size: var(--theme-font-size-heading-md);
  font-family: var(--theme-font-family-display);
  font-weight: var(--theme-font-weight-heading);
  letter-spacing: var(--theme-letter-spacing-heading);
  color: var(--theme-color-text-heading);
  margin: 0 0 var(--theme-space-stack-sm);
}

.values-carousel__description {
  font-size: var(--theme-font-size-lead);
  line-height: var(--theme-line-height-loose);
  color: var(--theme-color-text-default);
  max-width: none;
  margin: 0;
}

/* Enhanced state — JS swaps stacked list for single-slide carousel */

.values-carousel--enhanced .values-carousel__slides {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}

.values-carousel--enhanced .values-carousel__slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--theme-duration-default) var(--theme-easing-default),
    visibility 0s linear var(--theme-duration-default);
}

.values-carousel--enhanced .values-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--theme-duration-default) var(--theme-easing-default),
    visibility 0s linear 0s;
}

.values-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--theme-space-inline-sm);
  margin-top: var(--theme-space-stack-lg);
}

.values-carousel__nav,
.values-carousel__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--theme-radius-pill);
  border: 1px solid var(--theme-color-border-default);
  background-color: var(--theme-color-background-surface);
  color: var(--theme-color-text-default);
  font-size: var(--theme-font-size-lead);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition:
    background-color var(--theme-duration-fast) var(--theme-easing-default),
    border-color var(--theme-duration-fast) var(--theme-easing-default),
    color var(--theme-duration-fast) var(--theme-easing-default);
}

.values-carousel__nav:hover,
.values-carousel__nav:focus-visible,
.values-carousel__play:hover,
.values-carousel__play:focus-visible {
  background-color: var(--theme-color-brand-primary);
  border-color: var(--theme-color-brand-primary);
  color: var(--theme-color-text-heading);
}

.values-carousel__dots {
  display: flex;
  align-items: center;
  gap: var(--theme-space-inline-xs);
  list-style: none;
  padding: 0;
  margin: 0;
}

.values-carousel__dot {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: var(--theme-radius-pill);
  border: 1px solid var(--theme-color-border-default);
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  transition:
    background-color var(--theme-duration-fast) var(--theme-easing-default),
    border-color var(--theme-duration-fast) var(--theme-easing-default);
}

.values-carousel__dot:hover,
.values-carousel__dot:focus-visible {
  background-color: var(--theme-color-brand-primary);
  border-color: var(--theme-color-brand-primary);
}

.values-carousel__dot[aria-current="true"] {
  background-color: var(--theme-color-brand-emphasis);
  border-color: var(--theme-color-brand-emphasis);
}

/* -------------------------------------------------------------------------
   Reach out — consolidated single-card contact invitation
   ------------------------------------------------------------------------- */

.reach-out h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  max-width: 28ch;
  margin-inline: auto;
}

.reach-out__card {
  max-width: 36rem;
  margin-inline: auto;
  margin-top: var(--theme-space-stack-lg);
  padding: var(--theme-space-stack-xl);
  background-color: var(--theme-color-background-surface);
  border: 1px solid var(--theme-color-border-subtle);
  border-radius: var(--theme-radius-surface);
  box-shadow: var(--theme-shadow-card);
  display: grid;
  gap: var(--theme-space-stack-md);
  text-align: center;
}

.reach-out__phone {
  display: block;
  font-family: var(--theme-font-family-display);
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  color: var(--theme-color-brand-emphasis);
  text-decoration: none;
  line-height: 1.1;
}

.reach-out__phone:hover,
.reach-out__phone:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.reach-out__phone-label {
  display: block;
  font-family: var(--theme-font-family-body);
  font-size: var(--theme-font-size-small);
  font-weight: var(--theme-font-weight-emphasis);
  text-transform: uppercase;
  letter-spacing: var(--theme-letter-spacing-eyebrow);
  color: var(--theme-color-text-muted);
  margin-bottom: var(--theme-space-stack-xs);
}

.reach-out__divider {
  display: flex;
  align-items: center;
  gap: var(--theme-space-inline-sm);
  color: var(--theme-color-text-muted);
  font-size: var(--theme-font-size-small);
  text-transform: uppercase;
  letter-spacing: var(--theme-letter-spacing-eyebrow);
}

.reach-out__divider::before,
.reach-out__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--theme-color-border-subtle);
}

.reach-out__form-cta {
  justify-self: center;
}
