@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

.yay-philosophy {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  background: transparent;
}

.yay-philosophy__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin: 0;
  padding: clamp(3.5rem, 8vw, 5.5rem) clamp(2rem, 10vw, 8rem)
    clamp(3.5rem, 8vw, 5.5rem) clamp(1.25rem, 5vw, 5.5rem);
}

.yay-philosophy__content {
  max-width: min(580px, 88vw);
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.yay-philosophy__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.yay-philosophy__divider {
  display: block;
  width: 46px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.yay-philosophy__text {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 1.52vw, 1.15rem);
  font-weight: 400;
  line-height: 1.72;
  margin-bottom: 1.75rem;
  max-width: 88ch;
  text-wrap: balance;
}

.yay-philosophy__btn {
  display: inline-block;
  padding: clamp(0.8rem, 1.6vw, 0.95rem) clamp(1.65rem, 3.2vw, 2.1rem);
/*   background-color: #fdf6ee; */
/*   color: #006d5b; */
  font-family: "Elms Sans", sans-serif;
  font-size: clamp(0.72rem, 1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.yay-philosophy__btn:hover,
.yay-philosophy__btn:focus-visible {
  background-color: #ffffff;
  color: #005a4a;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .yay-philosophy {
    align-items: flex-start;
    min-height: auto;
    background-color: #fdf6ee;
  }

  .yay-philosophy__inner {
    align-items: flex-start;
    padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 4vw, 1.75rem)
      clamp(2.5rem, 6vw, 3.5rem) clamp(1.1rem, 4vw, 2.5rem);
  }

  .yay-philosophy__content {
    max-width: min(600px, 100%);
    color: #3d4947;
    text-shadow: none;
  }

  .yay-philosophy__title {
    color: #191c1d;
  }

  .yay-philosophy__divider {
    background-color: #2a9d8f;
  }

  .yay-philosophy__text {
    color: #3d4947;
  }
}

@media (max-width: 640px) {
  .yay-philosophy__inner {
    padding: clamp(1.75rem, 5vw, 2.5rem) clamp(1rem, 4vw, 1.25rem)
      clamp(2rem, 5vw, 2.75rem) clamp(1rem, 4vw, 1.5rem);
  }

  .yay-philosophy__content {
    max-width: 100%;
    text-align: left;
  }

  .yay-philosophy__divider {
    margin-left: 0;
    margin-right: auto;
  }

  .yay-philosophy__text {
    max-width: none;
    font-size: clamp(1rem, 3.6vw, 1.12rem);
  }

  .yay-philosophy__title {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }
}

@media (max-width: 400px) {
  .yay-philosophy__btn {
    padding: 0.85rem 1.85rem;
    font-size: 0.72rem;
  }
}
