/*
 * Hero / intro section: yellow box, logo, intro text, social icons.
 */

.hero {
  width: var(--container-width);
  max-width: 100%;
  min-height: 90vh;
  background-color: var(--color-hero-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-bubbles-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-social {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 1rem;
  z-index: 2;
}

.hero-social-link {
  color: var(--color-text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.hero-social-link:hover {
  opacity: 0.7;
}

.hero-social-icon {
  width: 28px;
  height: 28px;
}

.hero-logo {
  width: 90%;
  max-width: 90%;
  height: auto;
  display: block;
  z-index: 1;
  margin-bottom: 1.5rem;
}

.hero-text {
  font-family: var(--font-hero-text, var(--font-body));
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  text-align: center;
  width: 100%;
  max-width: var(--hero-text-max-width, 60%);
  margin: 0;
  z-index: 1;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc((1 - var(--hero-text-vertical-position, 0)) * 40%);
}

@media (max-width: 767px) {
  .hero {
    min-height: 80vh;
    padding: 1.5rem 1rem;
  }

  .hero-social-icon {
    width: 24px;
    height: 24px;
  }

  .hero-logo {
    margin-bottom: 1rem;
  }

  .hero-text {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    margin-top: 1rem;
    margin-bottom: 0;
    font-size: 0.75rem !important;
    max-width: min(var(--hero-text-max-width, 60%), 90vw);
  }
}
