/*
 * blocks/page-hero/style.css
 * Editorial hero for interior pages.
 */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 10vw, 9rem) 0;
  background: var(--color-beige);
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero__media,
.page-hero__overlay {
  position: absolute;
  inset: 0;
}

.page-hero__media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(0.82) contrast(1.02) brightness(0.58);
}

.page-hero__overlay {
  background:
    linear-gradient(90deg, rgba(21, 11, 7, 0.72) 0%, rgba(21, 11, 7, 0.5) 34%, rgba(21, 11, 7, 0.22) 68%, rgba(21, 11, 7, 0.18) 100%),
    radial-gradient(circle at 78% 30%, rgba(180, 154, 108, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(15, 7, 4, 0.25), rgba(15, 7, 4, 0.45));
}

.page-hero__inner {
  max-width: 40rem;
  width: 100%;
}

.page-hero--center .page-hero__inner {
  margin: 0 auto;
  text-align: center;
}

.page-hero--left .page-hero__inner {
  margin: 0;
  text-align: left;
}

.page-hero__label {
  margin-bottom: 0;
}

.page-hero__divider {
  display: block;
  width: 2.2rem;
  height: 1px;
  margin-top: var(--space-sm);
  margin-bottom: 1.35rem;
  background-color: var(--color-accent);
  opacity: 0.55;
}

.page-hero--center .page-hero__divider {
  margin-inline: auto;
}

.page-hero__title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-style: normal;
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.page-hero__subtitle {
  max-width: 34rem;
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--color-text-soft);
}

.page-hero__description {
  max-width: 30rem;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.8;
  color: var(--color-muted);
}

.page-hero__actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.page-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.25rem;
  min-height: 3.15rem;
  padding: 0.8rem 1.5rem;
  border: 1px solid rgba(26, 10, 0, 0.18);
  border-radius: 999px;
  background: rgba(252, 248, 242, 0.92);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  transition:
    background-color var(--duration-base) var(--ease-default),
    color var(--duration-base) var(--ease-default),
    border-color var(--duration-base) var(--ease-default);
}

.page-hero--center .page-hero__actions {
  justify-content: center;
}

.page-hero__cta:hover {
  border-color: rgba(180, 154, 108, 0.45);
  background: var(--color-gold);
  color: var(--color-primary);
}

.page-hero__cta--secondary {
  background: transparent;
  border-color: rgba(26, 10, 0, 0.18);
}

.page-hero--dark .page-hero__cta--secondary,
.page-hero--with-media .page-hero__cta--secondary {
  background: transparent;
  color: var(--color-ivory);
  border-color: rgba(252, 248, 242, 0.2);
}

.page-hero--dark .page-hero__cta--secondary:hover,
.page-hero--with-media .page-hero__cta--secondary:hover {
  background: rgba(252, 248, 242, 0.08);
  color: var(--color-ivory);
  border-color: rgba(180, 154, 108, 0.42);
}

.page-hero--catalogue {
  padding: clamp(7.5rem, 12vw, 10rem) 0 clamp(5rem, 8vw, 6.5rem);
  background:
    linear-gradient(180deg, rgba(252, 248, 242, 0.92) 0%, rgba(245, 240, 232, 1) 100%);
}

.page-hero--catalogue .container {
  max-width: min(100%, 1440px);
}

.page-hero--catalogue .page-hero__inner {
  max-width: 46rem;
}

.page-hero--catalogue .page-hero__label {
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: rgba(61, 53, 48, 0.54);
}

.page-hero--catalogue .page-hero__divider {
  width: 4rem;
  margin-top: 1rem;
  margin-bottom: 1.6rem;
  background-color: rgba(180, 154, 108, 0.72);
}

.page-hero--catalogue .page-hero__title {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.15rem;
  font-size: clamp(3.8rem, 7vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.page-hero--catalogue .page-hero__subtitle {
  max-width: 26rem;
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.9;
  color: rgba(61, 53, 48, 0.68);
}

.page-hero--catalogue .page-hero__description {
  max-width: 20rem;
  margin: 1.3rem auto 0;
  font-size: 0.72rem;
  line-height: 1.8;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(61, 53, 48, 0.44);
}

.page-hero--catalogue .page-hero__actions {
  margin-top: 1.35rem;
}

.page-hero--catalogue .page-hero__cta {
  min-width: auto;
  min-height: auto;
  padding: 0 0 0.15rem;
  border: none;
  border-bottom: 1px solid rgba(26, 10, 0, 0.18);
  border-radius: 0;
  background: transparent;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
}

.page-hero--catalogue .page-hero__cta:hover {
  border-color: rgba(139, 38, 53, 0.55);
  background: transparent;
  color: var(--color-accent);
}

.page-hero--contact {
  padding: clamp(6.5rem, 10vw, 8.75rem) 0 clamp(5.25rem, 9vw, 7.25rem);
}

.page-hero--contact .page-hero__inner {
  max-width: 43rem;
}

.page-hero--contact .page-hero__label {
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  color: rgba(245, 240, 232, 0.54);
}

.page-hero--contact .page-hero__divider {
  width: 5rem;
  margin-top: 1.1rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, rgba(180, 154, 108, 0.14) 0%, rgba(180, 154, 108, 0.84) 42%, rgba(180, 154, 108, 0.14) 100%);
  opacity: 1;
}

.page-hero--contact .page-hero__title {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(3.3rem, 6.8vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.page-hero--contact .page-hero__subtitle {
  max-width: 34rem;
  margin-bottom: 1.1rem;
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.78;
}

.page-hero--contact .page-hero__description {
  max-width: 25rem;
  margin-top: 1.5rem;
  font-size: 0.68rem;
  line-height: 1.85;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(252, 248, 242, 0.48);
}

.page-hero--contact .page-hero__actions {
  margin-top: 2rem;
}

.page-hero--contact .page-hero__cta {
  min-width: 12.8rem;
}

.page-hero--contact .page-hero__cta--primary {
  background: rgba(252, 248, 242, 0.96);
}

.page-hero--contact .page-hero__cta--secondary {
  background: transparent;
}

.page-hero--dark {
  background: var(--color-primary);
}

.page-hero--dark .page-hero__label,
.page-hero--with-media .page-hero__label {
  color: rgba(245, 240, 232, 0.62);
}

.page-hero--dark .page-hero__divider,
.page-hero--with-media .page-hero__divider {
  background-color: var(--color-gold);
  opacity: 0.7;
}

.page-hero--dark .page-hero__title,
.page-hero--with-media .page-hero__title {
  color: var(--color-ivory);
}

.page-hero--dark .page-hero__subtitle,
.page-hero--with-media .page-hero__subtitle {
  color: rgba(252, 248, 242, 0.84);
}

.page-hero--dark .page-hero__description,
.page-hero--with-media .page-hero__description {
  color: rgba(252, 248, 242, 0.68);
}

.page-hero--dark .page-hero__cta,
.page-hero--with-media .page-hero__cta {
  border-color: rgba(252, 248, 242, 0.18);
  background: rgba(252, 248, 242, 0.92);
}

.page-hero--center.page-hero--with-media .page-hero__subtitle,
.page-hero--center.page-hero--with-media .page-hero__description {
  margin-inline: auto;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 5.5rem 0;
  }

  .page-hero--catalogue {
    padding: 6rem 0 4rem;
  }

  .page-hero--contact {
    padding: 5.75rem 0 4.75rem;
  }

  .page-hero__overlay {
    background:
      linear-gradient(180deg, rgba(21, 11, 7, 0.78) 0%, rgba(21, 11, 7, 0.58) 100%),
      linear-gradient(90deg, rgba(21, 11, 7, 0.45), rgba(21, 11, 7, 0.2));
  }

  .page-hero__inner,
  .page-hero__subtitle,
  .page-hero__description {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-hero {
    padding: 4.75rem 0;
  }

  .page-hero--catalogue {
    padding: 5.25rem 0 3.5rem;
  }

  .page-hero--contact {
    padding: 5rem 0 4rem;
  }

  .page-hero__title {
    font-size: clamp(2.6rem, 13vw, 3.5rem);
  }

  .page-hero--contact .page-hero__title {
    max-width: 100%;
    font-size: clamp(2.85rem, 13vw, 4rem);
  }

  .page-hero__subtitle {
    font-size: 1rem;
    line-height: 1.65;
  }

  .page-hero__cta {
    width: 100%;
  }

  .page-hero__actions {
    flex-direction: column;
  }
}
