/* The nine banners (Lojas, Serviços, Classificados, Imóveis and the five transport catalogs):
   add button in the top right corner, then on the left the line, one heading in capitals, the search form. */
.banner-v2 .hero-content { gap: 0; }

.hero-add {
  position: absolute;
  z-index: 4;
  top: 24px;
  right: max(3%, calc((100% - 1656px) / 2));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: calc(100% - 32px);
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  background: var(--mk-green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  /* A white ring keeps the button apart from any photo, green ones included. */
  box-shadow: 0 0 0 2px #ffffffe6, 0 5px 16px #07281c40;
  transition: background .2s;
}
.hero-add span { font-size: 19px; font-weight: 500; line-height: 1; }
.hero-add:hover { background: #064636; color: #fff; text-decoration: none; }
.hero-add:focus-visible { outline: 3px solid var(--mk-ink); outline-offset: 3px; }

/* The line above the heading: a darker orange than the brand one, so that it reads on the photo
   washed with the page colour (contrast of 4.5:1 and more on the washed part of the image). */
.banner-v2 .hero-eyebrow {
  margin: 0 0 12px;
  max-width: min(54%, 680px);
  color: #b5520c;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .1em;
  line-height: 1.45;
  width: fit-content;
  padding: 3px 10px;
  margin-left: -10px;
  border-radius: 8px;
  background: rgba(251, 249, 245, .84);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.banner-v2 .hero-content h1 {
  max-width: min(62%, 780px);
  margin: 0 0 26px;
  color: var(--mk-green);
  font-size: clamp(34px, 3.5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 0 16px rgba(251, 249, 245, .95), 0 0 7px rgba(251, 249, 245, .95), 0 0 2px rgba(251, 249, 245, .9);
}

@media (max-width: 700px) {
  /* The transport banners keep their own mobile layout (the picture in the flow, transport-discovery.css). */
  .banner-v2.luanda-hero:not(.transport-hero) { min-height: 0; }
  .banner-v2:not(.transport-hero) .hero-content { padding-top: 252px; padding-bottom: 28px; }
  .hero-add { top: 14px; right: 16px; padding: 0 16px; }
  .banner-v2 .hero-eyebrow {
    max-width: 100%;
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: .06em;
  }
  .banner-v2 .hero-content h1 {
    max-width: 100%;
    margin-bottom: 18px;
    font-size: clamp(25px, 8.2vw, 36px);
    line-height: 1.1;
  }
}

@media (max-width: 380px) {
  .hero-add { gap: 6px; padding: 0 12px; font-size: 13px; }
}

/* Proportion 20/80 (owner order 2026-11-08): the photo is washed with the page colour only over about the
   left fifth of the banner and is clear over the rest. Where the text runs on over the photo it gets its own
   contrast, under the text itself (the highlight of the line, the halo of the heading), not from a wider wash. */
@media (min-width: 701px) {
  .banner-v2:not(.transport-hero) .luanda-hero-wash { background: var(--banner-wash); }
}
@media (min-width: 821px) {
  .banner-v2.transport-hero .luanda-hero-wash { background: var(--banner-wash); }
}
.banner-v2 {
  --banner-wash: linear-gradient(90deg, #fbf9f5 0%, rgba(251,249,245,.96) 8%, rgba(251,249,245,.7) 14%,
    rgba(251,249,245,.26) 18.5%, rgba(251,249,245,0) 21%);
}

@media (max-width: 820px) {
  /* The picture of a transport banner is in the flow: keep the line off its lower edge. */
  .transport-hero.banner-v2 .hero-content { padding-top: 16px; }
}

/* Phone: the photo is on top and the text below it on the page colour; only the lower fifth of the photo
   fades into the page colour. */
@media (max-width: 700px) {
  .banner-v2:not(.transport-hero) .luanda-hero-wash {
    inset: 0 0 auto;
    height: 245px;
    background: linear-gradient(0deg, #fbf9f5 0%, rgba(251, 249, 245, .55) 9%, rgba(251, 249, 245, 0) 20%);
  }
}
@media (max-width: 820px) {
  .banner-v2.transport-hero .luanda-hero-wash {
    background: linear-gradient(0deg, #fbf9f5 0%, rgba(251, 249, 245, .55) 9%, rgba(251, 249, 245, 0) 20%);
  }
  .banner-v2 .hero-eyebrow { margin-left: -10px; background: transparent; }
}
