/* Canonical homepage photo treatment. build-source.mjs publishes this file.
   Apply brightness to photographs only; the slide and its copy stay opaque. */
.hero {
  --hero-mask-angle:90deg;
  --hero-mask-start:.28;
  --hero-mask-middle:.12;
  --hero-photo-brightness:1.02;
}
html[dir="rtl"] .hero {--hero-mask-angle:270deg}
.hero .slide[data-slide-index="1"] {
  --hero-mask-start:.25;
  --hero-mask-middle:.10;
  --hero-photo-brightness:1.05;
}
.hero .slide[data-slide-index="2"] {
  --hero-mask-start:.28;
  --hero-mask-middle:.12;
  --hero-photo-brightness:1.07;
}
.hero .hero-media img {filter:brightness(var(--hero-photo-brightness))}
.hero .slide::after {
  background:linear-gradient(var(--hero-mask-angle),
    rgba(10,38,29,var(--hero-mask-start)) 0%,
    rgba(13,42,31,var(--hero-mask-middle)) 28%,
    rgba(13,42,31,.02) 57%,
    rgba(13,42,31,0) 70%);
  mix-blend-mode:normal;
}
.hero-copy :is(h1,h2) {
  text-shadow:0 1px 3px rgba(4,26,18,.75),0 2px 8px rgba(4,26,18,.28);
}
.hero-copy p {
  text-shadow:0 1px 2px rgba(4,26,18,.88),0 2px 6px rgba(4,26,18,.30);
}
.hero-controls {
  text-shadow:0 1px 3px rgba(4,26,18,.9),0 2px 8px rgba(4,26,18,.65);
}
.hero-controls :is(#prev,#next,#pause) {
  background:rgba(12,44,34,.42);
  border-color:rgba(255,249,238,.8);
}
.hero .dots button {box-shadow:0 0 0 2px rgba(12,44,34,.4)}
@media(min-width:761px) {
  /* Stack all three in one grid cell. The longest translated copy determines
     one stable height, so neither controls nor CTAs clip during crossfades. */
  .hero {height:auto;min-height:720px}
  .hero #slides {display:grid;grid-template-columns:minmax(0,1fr)}
  .hero .slide {
    position:relative;inset:auto;grid-area:1/1;
    min-height:720px;min-width:0;
  }
  .hero .slide.is-outgoing {
    opacity:1;visibility:visible;z-index:0;transition:none;
  }
  .hero .slide:not(.is-active):not(.is-outgoing) {transition:none}
  .hero-copy {padding-bottom:120px}
}
@media(max-width:760px) {
  /* Copy already flows below the image. Only the final image edge blends into
     the solid green copy area; there is no horizontal darkening mask. */
  .hero .slide::after {
    background:linear-gradient(0deg,#173f35 0%,
      rgba(23,63,53,.45) 4%,rgba(23,63,53,.08) 9%,
      rgba(23,63,53,0) 16%);
  }
  .hero .slide[data-slide-index="1"] {--hero-photo-brightness:1.03}
  .hero .slide[data-slide-index="2"] {--hero-photo-brightness:1.05}
  .hero-copy :is(h1,h2,p) {text-shadow:none}
  /* The WhatsApp launcher stays at the physical right edge. Reserve that
     edge in RTL too, so it cannot cover the carousel arrows. */
  html[dir="rtl"] .hero-controls {
    padding-inline-start:120px;
    padding-inline-end:0;
  }
}
