/* ==========================================
   FRANZ Hero
========================================== */

.franz-hero {
  position: relative;
  isolation: isolate;
  min-height: min(900px, 92vh);
  display: flex;
  align-items: center;
  padding: clamp(128px, 11vw, 188px) 0 clamp(120px, 10vw, 176px);
  background:
    radial-gradient(circle at 82% 18%, rgba(31, 27, 22, 0.045), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(168, 127, 43, 0.035), transparent 32%),
    linear-gradient(
      120deg,
      #fbf8f2 0%,
      var(--franz-cream) 52%,
      #f1e8dc 100%
    );
  color: var(--franz-dark);
  overflow: hidden;
}

.franz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 34%),
    repeating-radial-gradient(circle at 20% 30%, rgba(31, 27, 22, 0.018) 0 1px, transparent 1px 6px);
  opacity: 0.9;
}

.franz-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(31, 27, 22, var(--franz-hero-overlay-opacity, 0));
}

.franz-hero--text-light {
  color: var(--franz-white);
}

.franz-hero--text-light .franz-eyebrow,
.franz-hero--text-light .franz-hero__title,
.franz-hero--text-light .franz-hero__title span,
.franz-hero--text-light .franz-hero__subtitle,
.franz-hero--text-light .franz-hero__link {
  color: currentColor;
}

.franz-hero__inner {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(500px, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(44px, 5vw, 88px);
}

.franz-hero__content {
  max-width: 880px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.franz-hero .franz-eyebrow {
  margin-bottom: clamp(20px, 2.5vw, 30px);
  font-size: var(--franz-text-xs);
  font-weight: 600;
  letter-spacing: var(--franz-letter-spacing-label);
  text-transform: uppercase;
  color: rgba(168, 127, 43, 0.76);
}

.franz-hero__title {
  width: 100%;
  max-width: 100%;
  margin: 0 0 clamp(34px, 4vw, 56px);
  font-family: var(--franz-font-heading);
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 650;
  color: var(--franz-dark);
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: keep-all;
  hyphens: manual;
}

.franz-hero__title span {
  display: block;
  color: var(--franz-green);
  font-weight: 550;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: manual;
}

.franz-hero__subtitle {
  max-width: 62ch;
  margin: 0 0 clamp(38px, 4vw, 52px);
  font-size: 1.1875rem;
  line-height: var(--franz-line-height-body);
  color: rgba(31, 27, 22, 0.72);
  text-wrap: balance;
}

.franz-hero--text-light .franz-hero__subtitle {
  color: rgba(255, 255, 255, 0.82);
}

.franz-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 30px;
  margin-top: 0;
}

.franz-hero__button {
  min-height: 54px;
  padding-inline: 30px;
}

.franz-hero__link {
  min-height: 44px;
  color: rgba(31, 27, 22, 0.72);
  font-size: var(--franz-text-sm);
}

.franz-hero__visual {
  position: relative;
  width: 100%;
  justify-self: end;
  margin-right: clamp(-44px, -2.5vw, -16px);
}

.franz-hero__image {
  position: relative;
  width: min(100%, 640px);
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--franz-image-radius);
  background: var(--franz-image-background);
  box-shadow: none;
}

.franz-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.38);
  pointer-events: none;
}

.franz-hero__image::before {
  content: "";
  position: absolute;
  inset: 32% 0 0 24%;
  z-index: 1;
  background: linear-gradient(145deg, transparent 18%, rgba(20, 18, 15, 0.46) 100%);
  pointer-events: none;
}

.franz-hero__image img,
.franz-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.02) saturate(0.96);
  transform: scale(1.01);
  transition: transform var(--motion-image, 240ms) var(--ease-standard, ease);
}

.franz-hero__image:hover img {
  transform: scale(1.03);
}

.franz-hero__statement {
  position: absolute;
  right: clamp(18px, 4vw, 56px);
  bottom: clamp(22px, 4vw, 58px);
  width: min(330px, calc(100% - 36px));
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0 0;
  z-index: 3;
  color: var(--franz-white);
  text-shadow: 0 1px 18px rgba(31, 27, 22, 0.34);
}

.franz-hero__statement-line {
  flex: 0 0 56px;
  height: 1px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.franz-hero__statement p {
  margin: 0;
  font-family: var(--franz-font-heading);
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  line-height: 1.18;
  color: currentColor;
}

@media (max-width: 980px) {
  .franz-hero {
    min-height: auto;
  }
  .franz-hero__title {
    max-width: 100%;
    font-size: clamp(3rem, 7vw, 4.2rem);
  }

  .franz-hero__inner {
    grid-template-columns: 1fr;
    gap: 58px;
  }

  .franz-hero__content {
    max-width: 900px;
  }

  .franz-hero__visual {
    justify-self: start;
    width: min(720px, 100%);
    margin-right: 0;
  }

  .franz-hero__image {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .franz-hero {
    min-height: auto;
    padding: 96px 0 84px;
  }

  .franz-hero__inner {
    gap: 34px;
  }

  .franz-hero__content {
    display: contents;
  }

  .franz-hero .franz-eyebrow {
    order: 1;
    margin-bottom: 18px;
  }

  .franz-hero__title {
    order: 2;
    max-width: 100%;
    margin-bottom: 32px;
    font-size: clamp(2.6rem, 8.5vw, 4.2rem);
    line-height: 0.96;
  }

  .franz-hero__visual {
    order: 3;
    width: 100%;
  }

  .franz-hero__subtitle {
    order: 4;
    margin-top: 2px;
    margin-bottom: 34px;
    max-width: 34rem;
  }

  .franz-hero__actions {
    order: 5;
  }

  .franz-hero__subtitle {
    font-size: var(--franz-text-lg);
  }
}

@media (max-width: 640px) {
  .franz-hero__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 28px;
  }

  .franz-hero__button {
    width: 100%;
    text-align: center;
  }

  .franz-hero__link {
    width: 100%;
  }

  .franz-hero__image {
    aspect-ratio: 16 / 9;
    border-radius: var(--franz-image-radius);
  }

  .franz-hero__title {
    max-width: 100%;
  }

  .franz-hero__statement {
    right: 18px;
    bottom: 18px;
    width: min(260px, calc(100% - 36px));
    gap: 12px;
    padding-top: 0;
    color: var(--franz-white);
    text-shadow: 0 1px 16px rgba(31, 27, 22, 0.38);
  }

  .franz-hero__statement-line {
    flex-basis: 34px;
    background: rgba(255, 255, 255, 0.72);
  }

  .franz-hero__statement p {
    font-size: clamp(1.25rem, 5.7vw, 1.55rem);
    line-height: 1.22;
    max-width: 18ch;
  }

}

@media (prefers-reduced-motion: reduce) {
  .franz-hero__image img,
  .franz-hero__img {
    transition-duration: 0.01ms;
  }

  .franz-hero__image:hover img {
    transform: scale(1.01);
  }
}

@media (max-width: 420px) {
  .franz-hero__title {
    font-size: clamp(2.35rem, 9.5vw, 2.75rem);
  }
}
