@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: "WixMadeforText";
  src:
    url("../../assets/fonts/WixMadeforText-VariableFont_wght.ttf")
      format("truetype"),
    url("../../assets/fonts/WixMadeforText-Italic-VariableFont_wght.ttf")
      format("truetype");
  font-weight: 100 900;
  font-style: normal, italic;
  font-display: swap;
}

/*
 * Hero block — full-width banner; overlay layout matches Figma reference.
 */

.hero-block {
  box-sizing: border-box;
  width: min(95vw, 2439px);
  margin-inline: auto;
  padding: 0;
  background-color: transparent;
}

.hero-block__inner {
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.hero-block__figure {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  width: 100%;
}

.hero-block__figure-shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(15, 15, 15, 0.5) 0%,
      rgba(102, 102, 102, 0) 100%
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0.92;
}

.hero-block__img {
  display: block;
  position: relative;
  z-index: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 2439 / 839;
  object-fit: cover;
  object-position: center center;
}

.hero-block__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 45px;
  width: 100%;
  box-sizing: border-box;
  padding-block: clamp(2.75rem, 5vw + 1.75rem, 5rem)
    clamp(2.75rem, 4vw + 1.75rem, 4.5rem);
  padding-inline: clamp(1.25rem, 7.5vw, 184px);
  margin-top: 0;
}

.hero-block__title {
  margin: 0;
  color: #a3b199;
  font-family: "Futura", "WixMadeforText", "Raleway", system-ui, sans-serif;
  font-weight: 200;
  font-size: clamp(2.625rem, 1.55rem + 4.85vw, 8.125rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.hero-block__description {
  margin: 0;
  width: 100%;
  max-width: none;
  color: #fff;
  font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(0.9375rem, 0.35vw + 0.82rem, 1.6875rem);
  line-height: 1.375;
  text-align: center;
}

.hero-block__description p {
  margin: 0 0 1em;
  width: 100%;
  max-width: none;
  color: inherit;
  font: inherit;
}

.hero-block__description p:last-child {
  margin-bottom: 0;
}

.hero-block__divider {
  flex-shrink: 0;
  width: min(345px, 100%);
  height: 1px;
  background-color: rgba(163, 177, 153, 0.5);
}

.hero-block__buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1rem);
  margin: 0;
}

.hero-block__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 1.65em;
  border-radius: 40px;
  box-sizing: border-box;
  font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
  font-size: clamp(0.8125rem, 0.3rem + 1.1vw, 0.9375rem);
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hero-block__button--primary {
  background-color: #a3b199;
  color: #1c1c1c;
}

.hero-block__button--primary:hover {
  background: #79896d;
  box-shadow:
    0 5px 6px rgba(0, 0, 0, 0.42) inset,
    3px 3px 10px rgba(255, 255, 255, 0.2);
  color: #1c1c1c;
}

.hero-block__button--secondary {
  background-color: transparent;
  color: #fff;
  border: 1px solid #a3b199;
  box-shadow: -3px -3px 5px rgba(255, 255, 255, 0.2);
}

.hero-block__button--secondary:hover {
  background-color: rgba(163, 177, 153, 0.12);
  color: #fff;
}

.hero-block__button:focus-visible {
  outline: 2px solid #a3b199;
  outline-offset: 3px;
}

/* Overlay layout — full-width image, copy bottom-left */
.hero-block--text-overlay {
  --hero-overlay-pad-x: clamp(1.5rem, 5vw, 5rem);
  --hero-overlay-pad-y: clamp(2rem, 4.5vw, 4.75rem);
  --hero-desc-max-width: 40%;
  --hero-title-size: clamp(2.5rem, 1.35rem + 2.2vw, 5.5rem);
  --hero-desc-size: clamp(0.9375rem, 0.82rem + 0.35vw, 1.125rem);
  --hero-label-size: clamp(0.6875rem, 0.55rem + 0.2vw, 0.8125rem);
  --hero-min-height: clamp(22rem, 34vw, 839px);
}

.hero-block--text-overlay .hero-block__inner {
  position: relative;
  padding: 0;
}

.hero-block--text-overlay .hero-block__figure {
  width: 100%;
  margin: 0;
  aspect-ratio: 2439 / 839;
  min-height: var(--hero-min-height);
}

.hero-block--text-overlay .hero-block__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: unset;
  object-fit: cover;
  object-position: 72% center;
}

.hero-block--text-overlay .hero-block__figure-shade {
  opacity: 1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 10, 10, 0.82) 0%,
      rgba(10, 10, 10, 0.45) 38%,
      rgba(10, 10, 10, 0.08) 68%,
      rgba(10, 10, 10, 0) 100%
    ),
    linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-block--text-overlay .hero-block__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  padding: var(--hero-overlay-pad-y) var(--hero-overlay-pad-x);
  margin: 0;
  box-sizing: border-box;
}

.hero-block--text-overlay .hero-block__label {
  margin: 0;
  color: #a3b199;
  font-family: "WixMadeforText", "Raleway", system-ui, sans-serif;
  font-size: var(--hero-label-size);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-block--text-overlay .hero-block__copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  margin-top: auto;
}

.hero-block--text-overlay .hero-block__title-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.625rem, 1.25vw, 0.875rem);
  width: 100%;
}

.hero-block--text-overlay .hero-block__title-line {
  display: block;
  width: clamp(4.5rem, 8vw, 7.5rem);
  height: 1px;
  background-color: rgba(163, 177, 153, 0.55);
}

.hero-block--text-overlay .hero-block__title {
  width: 100%;
  max-width: none;
  color: #a3b199;
  font-family: "Futura", "WixMadeforText", "Raleway", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--hero-title-size);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
  text-wrap: balance;
}

.hero-block--text-overlay .hero-block__description {
  width: 100%;
  max-width: var(--hero-desc-max-width);
  color: rgba(255, 255, 255, 0.92);
  font-size: var(--hero-desc-size);
  line-height: 1.5;
  text-align: left;
}

.hero-block--text-overlay .hero-block__buttons {
  justify-content: flex-start;
  margin-top: clamp(0.25rem, 1vw, 0.75rem);
}

@media (max-width: 1440px) {
  .hero-block--text-overlay {
    --hero-desc-max-width: 48%;
    --hero-title-size: clamp(2.25rem, 1.2rem + 2.4vw, 4.75rem);
  }
}

@media (max-width: 1200px) {
  .hero-block--text-overlay {
    --hero-desc-max-width: 55%;
    --hero-overlay-pad-x: clamp(1.25rem, 4vw, 3.5rem);
    --hero-overlay-pad-y: clamp(1.75rem, 3.5vw, 3.5rem);
    --hero-min-height: clamp(20rem, 38vw, 680px);
  }

  .hero-block--text-overlay .hero-block__img {
    object-position: 68% center;
  }
}

@media (max-width: 1050px) {
  .hero-block__content {
    gap: clamp(1.5rem, 4vw, 2.5rem);
    padding-block: clamp(2rem, 4vw, 3.5rem)
      clamp(2rem, 3.5vw, 3rem);
    padding-inline: clamp(1rem, 4vw, 3rem);
  }

  .hero-block__title {
    font-size: clamp(2rem, 1.15rem + 3.5vw, 4.5rem);
  }

  .hero-block__description {
    font-size: clamp(1rem, 0.88rem + 0.75vw, 1.375rem);
  }

  .hero-block--text-overlay {
    --hero-desc-max-width: 62%;
    --hero-title-size: clamp(2rem, 1rem + 2.8vw, 3.75rem);
    --hero-desc-size: clamp(0.875rem, 0.8rem + 0.4vw, 1rem);
    --hero-min-height: clamp(18rem, 42vw, 560px);
  }

  .hero-block--text-overlay .hero-block__figure-shade {
    background:
      linear-gradient(
        90deg,
        rgba(10, 10, 10, 0.88) 0%,
        rgba(10, 10, 10, 0.55) 45%,
        rgba(10, 10, 10, 0.12) 72%,
        rgba(10, 10, 10, 0) 100%
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
  }
}

@media (max-width: 900px) {
  .hero-block--text-overlay {
    --hero-desc-max-width: 72%;
    --hero-title-size: clamp(1.875rem, 0.95rem + 3vw, 3rem);
    --hero-overlay-pad-x: clamp(1.25rem, 4vw, 2rem);
    --hero-overlay-pad-y: clamp(1.5rem, 3.5vw, 2.5rem);
    --hero-min-height: clamp(17rem, 48vw, 480px);
  }

  .hero-block--text-overlay .hero-block__copy {
    gap: clamp(0.875rem, 2.5vw, 1.25rem);
  }

  .hero-block--text-overlay .hero-block__img {
    object-position: 62% center;
  }
}

@media (max-width: 768px) {
  .hero-block--text-overlay {
    --hero-desc-max-width: 88%;
    --hero-title-size: clamp(1.75rem, 0.85rem + 4.5vw, 2.5rem);
    --hero-desc-size: clamp(0.875rem, 0.78rem + 0.5vw, 1rem);
    --hero-min-height: clamp(16rem, 52vw, 420px);
    --hero-overlay-pad-x: clamp(1rem, 4vw, 1.5rem);
    --hero-overlay-pad-y: clamp(1.25rem, 4vw, 2rem);
  }

  .hero-block--text-overlay .hero-block__title-line {
    width: clamp(3.5rem, 12vw, 5rem);
  }
}

@media (max-width: 699px) {
  .hero-block__figure {
    border-radius: clamp(14px, 4vw, 20px);
  }

  .hero-block__content {
    gap: clamp(1.75rem, 6vw, 2.8125rem);
    padding-inline: clamp(1rem, 4vw, 1.75rem);
  }

  .hero-block--text-overlay {
    --hero-desc-max-width: 100%;
    --hero-title-size: clamp(1.625rem, 0.75rem + 5vw, 2.25rem);
    --hero-desc-size: clamp(0.8125rem, 0.75rem + 0.45vw, 0.9375rem);
    --hero-min-height: clamp(15rem, 58vw, 22rem);
    --hero-overlay-pad-x: clamp(0.875rem, 4vw, 1.25rem);
    --hero-overlay-pad-y: clamp(1rem, 3.5vw, 1.5rem);
  }

  .hero-block--text-overlay .hero-block__title {
    line-height: 1.08;
  }

  .hero-block--text-overlay .hero-block__copy {
    gap: clamp(0.75rem, 3vw, 1rem);
  }

  .hero-block--text-overlay .hero-block__title-line {
    width: clamp(3rem, 14vw, 4.5rem);
  }

  .hero-block--text-overlay .hero-block__img {
    object-position: 58% center;
  }

  .hero-block--text-overlay .hero-block__figure-shade {
    background:
      linear-gradient(
        90deg,
        rgba(10, 10, 10, 0.92) 0%,
        rgba(10, 10, 10, 0.65) 50%,
        rgba(10, 10, 10, 0.2) 80%,
        rgba(10, 10, 10, 0) 100%
      ),
      linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 100%);
  }

  .hero-block--text-overlay .hero-block__buttons {
    justify-content: flex-start;
    width: 100%;
  }

  .hero-block--text-overlay .hero-block__button {
    width: auto;
    max-width: none;
  }

  .hero-block__divider {
    width: min(280px, 85%);
  }
}

@media (max-width: 480px) {
  .hero-block--text-overlay {
    --hero-title-size: clamp(1.5rem, 1rem + 4vw, 1.875rem);
    --hero-label-size: 0.6875rem;
    --hero-min-height: clamp(14rem, 62vw, 18rem);
  }

  .hero-block--text-overlay .hero-block__figure {
    border-radius: clamp(12px, 3vw, 16px);
  }
}

@media (max-width: 380px) {
  .hero-block--text-overlay {
    --hero-title-size: clamp(1.125rem, 4.8vw, 1.375rem);
    --hero-desc-size: clamp(0.6875rem, 2.9vw, 0.8125rem);
    --hero-label-size: clamp(0.5625rem, 2.4vw, 0.625rem);
    --hero-min-height: clamp(17.5rem, 92vw, 21rem);
    --hero-overlay-pad-x: clamp(0.75rem, 3.5vw, 1rem);
    --hero-overlay-pad-y: clamp(0.75rem, 3vw, 1rem);
  }

  .hero-block--text-overlay .hero-block__inner {
    overflow: hidden;
  }

  .hero-block--text-overlay .hero-block__content {
    overflow: hidden;
    height: 100%;
  }

  .hero-block--text-overlay .hero-block__copy {
    gap: 0.5rem;
    min-height: 0;
    max-height: 100%;
  }

  .hero-block--text-overlay .hero-block__title-group {
    gap: 0.375rem;
  }

  .hero-block--text-overlay .hero-block__title {
    line-height: 1.06;
  }

  .hero-block--text-overlay .hero-block__title-line {
    width: clamp(2.5rem, 18vw, 3.5rem);
  }

  .hero-block--text-overlay .hero-block__description {
    line-height: 1.4;
  }

  .hero-block--text-overlay .hero-block__description p {
    margin-bottom: 0.65em;
  }

  .hero-block--text-overlay .hero-block__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.375rem;
    margin-top: 0;
    width: 100%;
  }

  .hero-block--text-overlay .hero-block__button {
    width: 100%;
    padding: 0.65em 1em;
    font-size: clamp(0.6875rem, 2.8vw, 0.75rem);
  }
}
