/* Keep the photo and type on the same centered canvas as the original site header. */
.eco-hero {
  max-width: 1600px;
  background: #f7f7ee;
}
.eco-hero-picture { display: contents; }
.eco-hero-booking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.25cqw, 20px);
}
.eco-hero-booking .eco-button { flex: none; }
.eco-hero-price {
  display: grid;
  gap: 2px;
  color: #385748;
  font-size: clamp(12px, .94cqw, 15px);
  line-height: 1.3;
  text-align: left;
}
.eco-hero-price strong { color: #093e30; }
.eco-hero-price small { font-size: .9em; }
.eco-hero .eco-hero-scene {
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
.eco-hero .eco-hero-description { max-width: 26ch; }

@media (min-width: 741px) {
  .eco-hero {
    display: grid;
    grid-template-columns: 36% 8% 56%;
    align-items: center;
    padding: 0;
    text-align: left;
    background: linear-gradient(110deg, #f1f4e8, #fbf9ee 37%, #e7eddf 66%);
  }
  .eco-hero .eco-hero-scene {
    grid-area: 1 / 2 / 2 / 4;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, rgb(0 0 0 / .06) 4%, rgb(0 0 0 / .35) 10%, rgb(0 0 0 / .78) 17%, #000 25%);
  }
  .eco-hero .eco-hero-content {
    grid-area: 1 / 1 / 2 / 3;
    display: block;
    width: 100%;
    left: 0;
    margin: 0;
    padding: clamp(18px, 2cqw, 32px) 0 clamp(18px, 2cqw, 32px) 3cqw;
    text-align: left;
  }
  .eco-hero h1 {
    max-width: none;
    margin: .2em 0 .34em;
    font-size: clamp(40px, 6.3cqw, 101px);
  }
  .eco-hero h1 br { display: initial; }
  .eco-hero h1 span { display: inline-block; white-space: nowrap; }
  .eco-hero .eco-hero-description {
    margin: 0 0 .45em;
    font-size: clamp(18px, 1.9cqw, 30px);
  }
  .eco-hero .eco-hero-small {
    width: auto;
    max-width: 39ch;
    margin: 0 0 1.25em;
    font-size: clamp(12px, 1.04cqw, 16px);
  }
  .eco-hero .eco-hero-content > .eco-eyebrow,
  .eco-hero .eco-hero-actions,
  .eco-hero .eco-hero-promises { margin-inline: 0; }
  .eco-hero .eco-hero-actions, .eco-hero .eco-hero-promises { justify-content: flex-start; }
  .eco-hero .eco-handwritten { top: 18%; right: 3%; }
}

@media (min-width: 741px) and (max-width: 900px) {
  .eco-hero .eco-hero-content { padding-block: 10px; }
  .eco-hero .eco-hero-actions { gap: 8px 12px; margin-top: 0; max-width: none; }
  .eco-hero .eco-hero-actions .eco-button { min-height: 44px; padding: 10px 15px; }
  .eco-hero .eco-hero-promises { margin-top: 8px; }
}

/* Mid-size phones and small tablets can pair the headline with the photo
   while keeping the booking controls on their own line. */
@media (min-width: 481px) and (max-width: 740px) {
  .eco-hero {
    display: grid;
    grid-template-columns: 37% 8% 55%;
    padding: 0 0 20px;
  }
  .eco-hero .eco-hero-scene {
    grid-area: 1 / 2 / 3 / 4;
    mask-image: linear-gradient(to right, transparent, #000 24%), linear-gradient(to bottom, #000 94%, transparent);
    mask-composite: intersect;
  }
  .eco-hero .eco-hero-content > .eco-eyebrow {
    grid-area: 1 / 1 / 2 / 3;
    align-self: end;
    justify-self: start;
    margin: 12px 12px 4px;
    text-align: left;
  }
  .eco-hero h1 {
    grid-area: 2 / 1 / 3 / 3;
    align-self: start;
    justify-self: start;
    margin: 4px 0 16px 12px;
    max-width: none;
    font-size: 6.45cqw;
    text-align: left;
  }
  .eco-hero h1 span { white-space: nowrap; }
  .eco-hero .eco-hero-description, .eco-hero .eco-hero-small,
  .eco-hero .eco-hero-actions, .eco-hero .eco-hero-promises {
    grid-column: 1 / -1;
    justify-self: center;
  }
  .eco-hero .eco-hero-description { margin: 14px 18px 0; text-align: center; }
}

@media (max-width: 480px) {
  .eco-hero h1 { font-size: clamp(44px, 12vw, 68px); }
  .eco-hero .eco-hero-scene {
    mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 96%, transparent);
  }
}
