@font-face {
  font-family: "Capela Assinatura";
  src: url("assets/fonts/capela-assinatura-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1.4fr) minmax(0, .6fr);
  background: #14291f;
  overflow-anchor: none;
  transition: grid-template-rows 900ms cubic-bezier(.22, .68, .18, 1);
}
.hero-split[data-active="farm"] { grid-template-rows: minmax(0, 1.4fr) minmax(0, .6fr); }
.hero-split[data-active="cacao"] { grid-template-rows: minmax(0, .6fr) minmax(0, 1.4fr); }
.hero-panel {
  --copy-scale: .88;
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  color: #fff8e8;
}
.hero-panel + .hero-panel { border-top: 1px solid #fff8e833; }
.hero-split[data-active="farm"] .hero-panel--farm,
.hero-split[data-active="cacao"] .hero-panel--cacao { --copy-scale: 1; }
.hero-split[data-active="farm"] .hero-panel--cacao,
.hero-split[data-active="cacao"] .hero-panel--farm { --copy-scale: .58; }
.hero-split[data-active="farm"] .hero-panel--cacao { --copy-scale: .72; }
.hero-panel:focus-visible { outline: 3px solid #e9cb91; outline-offset: -8px; }
.hero-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #071a1230, #071a1240 45%, #071a126b);
  transition: background-color 650ms;
}
.hero-panel--cacao::after { background: linear-gradient(180deg, #061c1938, #061c1945 45%, #061c196b); }
.hero-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(.75rem, 2.8svh, 1.75rem);
  width: 100%;
  padding: 2rem 4vw;
  text-align: center;
  text-shadow: 0 2px 24px #0006;
  transform: scale(var(--copy-scale));
  transition: transform 900ms cubic-bezier(.22, .68, .18, 1);
  pointer-events: none;
}
.hero-brand {
  display: block;
  width: min(78vw, 34rem, 60svh);
  height: auto;
  filter: drop-shadow(0 2px 12px #0004);
}
.hero-copy--brand { font-size: inherit; font-weight: 400; line-height: 0; }
.hero-brand .brand-part:not(.brand-simbolo) path { fill: #fff; }
.hero-title {
  font-family: "Capela Assinatura", "Segoe Print", cursive;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0;
  color: #fff;
  max-width: 58rem;
  font-size: clamp(2.75rem, 5.6vw, 5.25rem);
}
.hero-title span { display: block; }
.hero-panel--cacao .hero-copy { padding-bottom: 4.5rem; }
.hero-scroll-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 44px;
  max-width: calc(100% - 32px);
  padding: .5rem .85rem;
  border: 1px solid #fff8e84d;
  border-radius: 999px;
  background: #0b241d70;
  backdrop-filter: blur(6px);
  color: #fff8e8;
  font: 400 .875rem/1.4 "Segoe UI", Arial, sans-serif;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: background-color 250ms ease, border-color 250ms ease, opacity 250ms ease;
  touch-action: manipulation;
}
.hero-scroll-cue:hover { background: #0b241db3; border-color: #fff8e899; }
.hero-scroll-cue:focus-visible { outline: 2px solid #fff8e8; outline-offset: 5px; }
.hero-scroll-cue__track { position: relative; display: block; flex: 0 0 17px; width: 17px; height: 26px; border: 1.5px solid currentColor; border-radius: 10px; }
.hero-scroll-cue__dot { position: absolute; top: 5px; left: 50%; width: 3px; height: 5px; margin-left: -1.5px; border-radius: 3px; background: currentColor; animation: hero-scroll-hint 2s ease-in-out infinite; animation-play-state: paused; }
body[data-section="inicio"] .hero-scroll-cue__dot { animation-play-state: running; }
.hero-split[data-covered="true"] .hero-scroll-cue { visibility: hidden; opacity: 0; pointer-events: none; }
@keyframes hero-scroll-hint {
  0%, 15% { transform: translateY(0); opacity: .9; }
  65% { transform: translateY(7px); opacity: .4; }
  80%, 100% { transform: translateY(0); opacity: .9; }
}
.hero-media-toggle {
  position: absolute;
  z-index: 4;
  right: clamp(1rem, 3vw, 3rem);
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .65rem .85rem;
  border: 1px solid #fff8e855;
  border-radius: 2px;
  background: #0b241d55;
  backdrop-filter: blur(8px);
  color: #fff8e8;
  font-size: .875rem;
}
.hero-media-toggle:hover { background: #0b241da6; }
.hero-media-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.hero-media-toggle .hero-play-icon { display: none; }
.hero-media-toggle[aria-pressed="true"] .hero-play-icon { display: block; }
.hero-media-toggle[aria-pressed="true"] .hero-pause-icon { display: none; }
body[data-section="inicio"] .home-visit-link,
body[data-section="inicio"] .section-navigation { visibility: hidden; pointer-events: none; }

@media (max-width: 700px) {
  .hero-scroll-cue { bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
}
@media (max-width: 700px) and (orientation: portrait) {
  .hero-copy { gap: 1rem; padding: 1.5rem; }
  .hero-brand { width: min(88%, 24rem); }
  .hero-title { font-size: clamp(1.6rem, 8.4vw, 3.25rem); }
  .hero-panel--cacao .hero-copy { padding-bottom: 9rem; }
}
@media (hover: none), (pointer: coarse) {
  .hero-split { transition: none; }
  .hero-copy { transform: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .hero-copy { gap: .5rem; padding: 1rem; }
  .hero-split[data-active="farm"] { grid-template-rows: minmax(0, 1.2fr) minmax(0, .8fr); }
  .hero-panel--cacao .hero-copy { padding: 0 1rem 4rem; }
  .hero-scroll-cue { left: 50%; right: auto; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); }
  .hero-brand { width: min(62vw, 17rem); }
  .hero-title { font-size: 2rem; }
}
@media (max-height: 600px) and (orientation: portrait) {
  .hero-split[data-active="farm"] { grid-template-rows: minmax(0, 1.2fr) minmax(0, .8fr); }
  .hero-panel--cacao .hero-copy { padding-bottom: 8rem; }
  .hero-scroll-cue { bottom: calc(4.25rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-split, .hero-copy { transition: none; }
  .hero-scroll-cue { transition: none; }
  .hero-scroll-cue__dot { animation: none; }
}
