/* =========================================================
   HOMEPAGE
   Shared container and logo rules are defined in styles.css.
   ========================================================= */

.home-page .home-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 var(--site-gutter);
  min-height: 100vh;
  min-height: 100svh;
}

.home-page .home-main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 0 auto;
  width: 100%;
  min-height: 0;
}

.home-page .home-navigation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: clamp(18px, 3.5vw, 64px);
  width: 100%;
  padding: clamp(28px, 5vh, 64px) 0;
}

.home-page .home-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  overflow: visible;
  border-radius: 2px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.home-page .home-nav-link img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 38vh;
  height: auto;
  object-fit: contain;
  transform: scale(1);
  transform-origin: center;
  filter: brightness(1) saturate(1);
  transition:
    transform 320ms ease,
    filter 320ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .home-page .home-nav-link:hover img {
    transform: scale(1.04);
    filter: brightness(1.08) saturate(1.12);
  }
}

.home-page .home-nav-link:focus-visible {
  outline: 2px solid #2F4F4F;
  outline-offset: 8px;
}

@media screen and (max-width: 760px) {
  .home-page .home-main {
    align-items: center;
  }

  .home-page .home-navigation {
    grid-template-columns: 1fr;
    gap: clamp(20px, 4vh, 34px);
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 36px 0;
  }

  .home-page .home-nav-link img {
    width: 100%;
    max-width: 420px;
    max-height: 23vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-nav-link img {
    transition: none;
  }
}
