/*
  Shared Hero Component
  ---------------------
  Goal:
  - one hero system for all rebuilt pages
  - preserve the current visual feel of the site
  - keep hero-specific behavior out of page-level styles whenever possible
  - allow page-level image assignment and focal-point tuning with modifier classes

  Notes:
  - keep the implementation intentionally simple
  - do not reintroduce multiple competing hero systems
  - desktop and mobile tuning should happen here first, not inside individual pages
*/

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 52px 20px 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
  background-color: #2c1e16;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(26, 16, 11, 0.48), rgba(26, 16, 11, 0.48)),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.14));
  z-index: -1;
}

.page-hero__content {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f5e6d7;
}

.page-hero__title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.page-hero__text {
  max-width: 720px;
  margin: 0 auto;
  font-family: Arial, Helvetica, sans-serif;
  color: #f3e9df;
  font-size: 1rem;
  line-height: 1.45;
}

.page-hero__actions {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Page modifiers
   Assign image and focal-point tuning here. */
.page-hero--home { background-image: url("../../images/heroes/hero-home.jpg"); }
.page-hero--shop { background-image: url("../../images/heroes/hero-shop.jpg"); }
.page-hero--gallery { background-image: url("../../images/heroes/hero-gallery.jpg"); }
.page-hero--contact { background-image: url("../../images/heroes/hero-contact.jpg"); }
.page-hero--cart { background-image: url("../../images/heroes/hero-cart.jpg"); }
.page-hero--custom-order { background-image: url("../../images/heroes/hero-custom-order.jpg"); }

@media (max-width: 600px) {
  .page-hero {
    min-height: 210px;
    padding: 40px 16px 30px;
  }

  .page-hero__eyebrow {
    margin-bottom: 12px;
    font-size: 0.78rem;
  }

  .page-hero__title {
    font-size: clamp(1.9rem, 8vw, 2.8rem);
    margin-bottom: 8px;
  }

  .page-hero__text {
    font-size: 0.95rem;
  }
}
