.hero {
  display: flex;
  align-items: center;              /* was flex-start — now centers vertically */
  gap: 2rem;
  padding: 30px;
  background: hsl(0, 0%, 100%);
  border-radius: 36px;
  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.hero__img {
  flex: 0 0 360px;
  max-width: 360px;
  display: flex;                    /* new */
  justify-content: center;          /* centers image horizontally in its space */
  align-items: center;              /* centers vertically if height changes */
}

.hero__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 36px;
}

.hero__text {
  flex: 1 1 0;
  text-align: left;
}

.hero__text h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.hero__text p {
  line-height: 1.6;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

/* Tablet adjustments */
@media (max-width: 992px) {
  .hero {
    gap: 1.25rem;
    padding: 24px;
  }
  .hero__text h1 {
    font-size: 1.6rem;
  }
}

/* Mobile layout */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  .hero__img {
    flex: 0 0 auto;
    max-width: 380px;
    margin-bottom: 1rem;            /* space between image & text on mobile */
  }
  .hero__text {
    width: 100%;
    padding: 0 12px;
    text-align: left;             /* optional: centers text on mobile */
  }
}
