/* Home page styles scoped to main and page-owned components */

.home-hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  height: 100vh;
  max-height: 900px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-night);
}

.home-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 26, 46, 0.55) 0%, rgba(15, 26, 46, 0.7) 50%, rgba(15, 26, 46, 0.85) 100%);
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  animation: homeFadeIn 700ms ease both;
}

.home-hero__title {
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  color: var(--color-white);
  margin-block-end: 0;
  max-width: 20ch;
  text-wrap: balance;
}

.home-hero__lead {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 65ch;
  margin-block-end: 0;
  text-wrap: pretty;
}

.home-hero__cta {
  flex-shrink: 0;
  min-width: 200px;
}

@keyframes homeFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-section {
  padding-block: var(--space-3xl);
}

.home-section--sand {
  background-color: var(--color-sand);
}

.home-section--white {
  background-color: var(--color-white);
}

.home-section--dark {
  background-color: var(--color-night);
  color: var(--color-white);
}

.home-section__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.home-section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.home-section__title {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  color: var(--color-navy);
  margin-block-end: 0;
}

.home-section__title--light {
  color: var(--color-white);
}

.home-section__divider {
  width: 64px;
  height: 3px;
  background-color: var(--color-red);
  border: none;
  margin: 0;
}

.home-section__divider--red {
  background-color: var(--color-red);
}

.home-section__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  min-width: 0;
}

.home-section__body--split {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-2xl);
  align-items: start;
}

.home-section__copy {
  min-width: 0;
  color: var(--color-ink);
}

.home-section__copy--light {
  color: rgba(255, 255, 255, 0.85);
}

.home-section__copy p {
  max-width: 65ch;
}

.home-section__copy--light p {
  color: rgba(255, 255, 255, 0.85);
}

.home-section__intro {
  max-width: 65ch;
  margin-block-end: var(--space-lg);
}

.home-section__intro--light {
  color: rgba(255, 255, 255, 0.85);
}

.home-section__link {
  display: inline-block;
  margin-block-start: var(--space-md);
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.home-section__link:hover {
  color: var(--color-red);
}

.home-section__link--light {
  color: var(--color-blue);
}

.home-section__link--light:hover {
  color: var(--color-red);
}

.home-section__aside {
  min-width: 0;
  background-color: rgba(255, 255, 255, 0.6);
  border: var(--border-thin);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

.home-section__aside--dark {
  background-color: var(--color-night-hover);
  border-color: rgba(255, 255, 255, 0.1);
}

.home-section__aside-title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  color: var(--color-navy);
  margin-block-end: var(--space-md);
}

.home-section__aside-title--light {
  color: var(--color-white);
}

.home-section__list {
  margin-block-end: 0;
}

.home-section__list--light {
  color: rgba(255, 255, 255, 0.85);
}

.home-section__list--light a {
  color: var(--color-blue);
}

.home-section__list--light a:hover {
  color: var(--color-red);
}

.home-cards {
  display: grid;
  gap: var(--space-xl);
  min-width: 0;
}

.home-cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-cards--dark {
  gap: var(--space-xl);
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  background-color: var(--surface-card);
  border: var(--border-thin);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.home-card--dark {
  background-color: var(--color-night-hover);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.home-card--dark:hover {
  background-color: #223352;
  box-shadow: none;
}

.home-card__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.home-card__title {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  color: var(--color-navy);
  margin-block-end: 0;
}

.home-card__title--light {
  color: var(--color-white);
}

.home-card__text {
  color: var(--color-muted);
  margin-block-end: 0;
  flex-grow: 1;
}

.home-card__text--light {
  color: rgba(255, 255, 255, 0.85);
}

.home-card__link {
  display: inline-block;
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
  align-self: flex-start;
}

.home-card__link:hover {
  color: var(--color-red);
}

.home-card__link--light {
  color: var(--color-blue);
}

.home-card__link--light:hover {
  color: var(--color-red);
}

.home-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
  min-width: 0;
}

.home-collage__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
  text-decoration: none;
  border-radius: var(--radius-card);
  transition: transform var(--transition-base);
}

.home-collage__item:hover {
  transform: translateY(-2px);
}

.home-collage__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
  display: block;
}

.home-collage__caption {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-muted);
  text-align: center;
}

@media (max-width: 1024px) {
  .home-hero {
    min-height: 500px;
    height: 80vh;
    max-height: 700px;
  }

  .home-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .home-section {
    padding-block: var(--space-2xl);
  }

  .home-section__body--split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
  }

  .home-cards--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-hero {
    min-height: 420px;
    height: 80vh;
    max-height: 600px;
  }

  .home-hero__content {
    padding-inline: var(--space-md);
    gap: var(--space-md);
  }

  .home-hero__title {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .home-hero__lead {
    font-size: 1rem;
  }

  .home-hero__cta {
    width: 100%;
    min-width: 0;
  }

  .home-section {
    padding-block: var(--space-xl);
  }

  .home-section__inner {
    gap: var(--space-lg);
  }

  .home-section__body {
    gap: var(--space-lg);
  }

  .home-section__body--split {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

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

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

  .home-card {
    padding: var(--space-lg);
  }

  .home-section__aside {
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  .home-hero {
    min-height: 360px;
    height: 80vh;
    max-height: 520px;
  }

  .home-hero__content {
    padding-inline: var(--space-sm);
    gap: var(--space-sm);
  }

  .home-hero__title {
    font-size: 1.5rem;
    line-height: 1.25;
  }

  .home-hero__lead {
    font-size: 0.9375rem;
  }

  .home-section {
    padding-block: var(--space-lg);
  }

  .home-section__inner {
    gap: var(--space-md);
  }

  .home-section__body {
    gap: var(--space-md);
  }

  .home-card {
    padding: var(--space-md);
  }

  .home-section__aside {
    padding: var(--space-sm);
  }

  .home-collage__image {
    aspect-ratio: 4 / 3;
  }

  .home-card__image {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__content {
    animation: none;
  }

  .home-card,
  .home-collage__item {
    transition: none;
  }

  .home-card:hover,
  .home-collage__item:hover {
    transform: none;
  }
}
