.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Add an adaptive darkening layer for small screens
   to improve text contrast over busy images. */
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.10), rgba(0,0,0,.28));
}

@media (max-width: 760px) {
  .hero-overlay::after {
    background: linear-gradient(to bottom, rgba(0,0,0,.22), rgba(0,0,0,.45));
  }
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1rem;
  color: white;
  text-align: left;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.hero-header {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Improve readability of inline links in hero text */
.hero-content a:not(.button) {
  display: inline;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
  background: rgba(233, 185, 73, .18); /* fallback tint */
  background: color-mix(in srgb, var(--primary-color) 24%, transparent); /* if supported */
  border: 0;
  border-radius: 6px;
  padding: 0 .25rem;
  text-shadow: 0 2px 6px rgba(0,0,0,.7);
  backdrop-filter: blur(1px);
}
.hero-content a:not(.button):hover {
  text-decoration-thickness: 3px;
  background: rgba(233, 185, 73, .26);
}
.hero-content a:not(.button):focus-visible {
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 2px;
}

.hero-image {
  float: left;
  width: 150px;
  aspect-ratio: 1 / 1;
  margin: 0 1rem 1rem 0;
  overflow: hidden;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  shape-outside: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  shape-margin: 0.5rem;
  background: transparent;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 600px) {
  .hero-content {
    padding-top: 3.5rem;
  }
  .hero-image {
    width: 110px;
  }
}
