/* ABOUTME: Hero section styles for the home page.
   ABOUTME: Full-viewport grid layout with title, subtitles, and featured image. */

.hero {
  height: 100vh;
  display: grid;
  grid-template-columns: 4fr 2fr;
  overflow: hidden;
}

.hero__left {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  min-height: 0;
  overflow: visible;
}

.hero__left > * {
  min-width: 0;
  min-height: 0;
  overflow: visible;
}

.hero__subtitle {
  padding: 1rem;
}

.hero__subtitle--top {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero__subtitle-line {
  background: var(--color-black);
  color: var(--color-bg);
  font-family: 'Satoshi', var(--font-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  padding: 0.2em 0.5em;
  line-height: 1.3;
  width: fit-content;
  white-space: nowrap;
}

.hero__subtitle-line + .hero__subtitle-line {
  padding-top: 0;
}

.hero__subtitle-line:not(:last-child) {
  padding-bottom: 0;
}

.hero__menu {
  grid-column: 4;
  grid-row: 1;
  padding: 1rem;
  font-family: var(--font-primary);
  font-size: 2.1rem;
  text-align: right;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  text-box-trim: both;
  text-box-edge: cap alphabetic;
  justify-self: end;
  align-self: start;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.hero__title {
  grid-column: 2 / 4;
  grid-row: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero__title-flower {
  position: absolute;
  top: -30%;
  left: -10%;
  width: 75%;
  height: auto;
  pointer-events: none;
}

.hero__title-text {
  position: relative;
  font-family: var(--font-primary);
  font-style: italic;
  font-size: 15vw;
  line-height: 0.65;
  white-space: nowrap;
  text-align: right;
  text-box-trim: both;
  text-box-edge: cap alphabetic;
}

.hero__title-tanc,
.hero__title-forum {
  position: relative;
  z-index: 1;
}

.hero__title-tanc {
  font-style: normal;
}

.hero__title-forum {
  padding-right: 1rem;
}

.hero__logo {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.hero__logo-img {
  width: 3.5em;
  height: 3.5em;
}

.hero__subtitle--bottom {
  grid-column: 4;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero__right {
  position: relative;
  padding: 1rem;
}

.hero__right-image {
  position: absolute;
  inset: 1rem;
  overflow: hidden;
}

.hero__right-image > .parallax-wrap {
  width: 100%;
  height: 100%;
}

.hero__right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__right-flowers {
  position: absolute;
  inset: 1rem;
  width: calc(100% - 2rem);
  height: calc(100% - 2rem);
  object-fit: contain;
  object-position: right;
  pointer-events: none;
}

/* ===========================
   Responsive
   =========================== */

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .hero__left {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 60vh;
  }

  .hero__subtitle--top {
    grid-column: 1;
    grid-row: 1;
  }

  .hero__menu {
    grid-column: 2;
    grid-row: 1;
  }

  .hero__title {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .hero__title-text {
    font-size: clamp(4rem, 20vw, 8rem);
    text-align: center;
  }

  .hero__title-forum {
    padding-right: 0;
  }

  .hero__title-flower {
    top: -20%;
    left: -15%;
    width: 60%;
  }

  .hero__logo {
    grid-column: 1;
    grid-row: 3;
  }

  .hero__subtitle--bottom {
    grid-column: 2;
    grid-row: 3;
  }

  .hero__right {
    height: 50vh;
  }
}

@media (max-width: 480px) {
  .hero__title-text {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .hero__right {
    height: 40vh;
  }
}

