/* ════════════════════════════════════════════════════════
   HECT HERO BANNER v3 — Front-end CSS
   Animações de título/subtítulo/botão são controladas
   por JS — o CSS apenas define os estados base.
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ── Wrapper ──────────────────────────────────────── */
.hect-hero-outer {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  position: relative;
  z-index: 1;
}
#top .hect-hero-outer,
#wrap_all .hect-hero-outer {
  margin-top: 0 !important;
}

/* ── Seção principal ──────────────────────────────── */
.hect-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  color: #edf2f7;
  font-family: 'DM Sans', sans-serif;
  background: #020e1a;
}

/* ── Background ───────────────────────────────────── */
.hect-hero .hh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 0%;
  will-change: background-position;
}

/* ── Overlay ──────────────────────────────────────── */
.hect-hero .hh-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(1, 14, 32, 0.7);
  pointer-events: none;
}

/* ── Slides container ─────────────────────────────── */
.hect-hero .hh-slides {
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* ── Slide ────────────────────────────────────────── */
.hect-hero .hh-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 8vw;
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 900ms cubic-bezier(0.76, 0, 0.24, 1),
    opacity   450ms ease;
  pointer-events: none;
}
.hect-hero .hh-slide.is-active {
  transform: translateY(0%);
  opacity: 1;
  pointer-events: all;
}
.hect-hero .hh-slide.is-past {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ── Conteúdo ─────────────────────────────────────── */
.hect-hero .hh-content {
  max-width: min(660px, 88vw);
}

/* ── Título ───────────────────────────────────────── */
.hect-hero .hh-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 5.2vw, 5rem);
  line-height: 1.07;
  letter-spacing: -0.01em;
  color: #edf2f7;
  text-shadow: none;
  margin-bottom: 20px;
  opacity: 0; /* estado inicial — JS anima */
}

/* Linhas do título (usadas pelo reveal) */
.hect-hero .hh-title .hh-line {
  display: block;
  overflow: hidden; /* impede que linhas "apareçam" antes da animação */
}

/* ── Subtítulo ────────────────────────────────────── */
.hect-hero .hh-subtitle {
  font-size: clamp(0.82rem, 1.25vw, 0.93rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(237, 242, 247, 0.65);
  max-width: 430px;
  margin-bottom: 32px;
  text-shadow: none;
  opacity: 0; /* estado inicial — JS anima */
}

/* ── Botão ────────────────────────────────────────── */
.hect-hero .hh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(0.65rem, 1vw, 0.72rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4ab8e0;
  text-decoration: none;
  border-bottom: 1px solid rgba(74, 184, 224, 0.35);
  padding-bottom: 3px;
  opacity: 0; /* estado inicial — JS anima */
  transition: color 0.3s ease, border-color 0.3s ease;
}
.hect-hero .hh-btn:hover {
  color: #edf2f7;
  border-color: rgba(237, 242, 247, 0.4);
}
.hect-hero .hh-arr {
  display: inline-block;
  transition: transform 0.3s;
}
.hect-hero .hh-btn:hover .hh-arr {
  transform: translateX(5px);
}

/* ── Nav lateral ──────────────────────────────────── */
.hect-hero .hh-nav {
  position: absolute;
  right: clamp(22px, 3.5vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hect-hero .hh-nav-track {
  position: relative;
  width: 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}
.hect-hero .hh-nav-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  border-radius: 2px;
  background: #4ab8e0;
  box-shadow: 0 0 10px rgba(74, 184, 224, 0.7);
}
.hect-hero .hh-nav-dots {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.hect-hero .hh-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.35s, background 0.35s, box-shadow 0.35s, transform 0.25s;
}
.hect-hero .hh-dot:hover {
  border-color: rgba(237, 242, 247, 0.85);
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.25);
}
.hect-hero .hh-dot.active {
  border-color: #4ab8e0;
  background: #4ab8e0;
  box-shadow: 0 0 0 4px rgba(74, 184, 224, 0.25), 0 0 12px rgba(74, 184, 224, 0.5);
  transform: scale(1.2);
}
.hect-hero .hh-dot.active::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(74, 184, 224, 0.4);
  animation: hh-dot-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hh-dot-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  60%      { transform: scale(2.4); opacity: 0; }
}

/* ════════════════════════════════════════════════════════
   RADAR / SONAR EFFECTS
════════════════════════════════════════════════════════ */

/* ── Bioluminescent particles canvas ──────────────── */
.hect-hero .hh-ocean-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.55;
}

/* ── Bathymetric grid (submarine chart) ───────────── */
.hect-hero .hh-bathy {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(180deg, transparent, transparent 79px, rgba(54,168,224,0.022) 80px),
    repeating-linear-gradient(90deg,  transparent, transparent 79px, rgba(54,168,224,0.016) 80px);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ── Sonar sweep ──────────────────────────────────── */
.hect-hero .hh-sonar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 700px;
  height: 700px;
  margin: -350px 0 0 -350px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    transparent 0deg,
    rgba(54,168,224,0.04) 20deg,
    transparent 42deg);
  animation: hh-sonar-spin 12s linear infinite;
  z-index: 4;
  pointer-events: none;
}
@keyframes hh-sonar-spin {
  to { transform: rotate(360deg); }
}

/* ── Sonar rings ──────────────────────────────────── */
.hect-hero .hh-rings {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hect-hero .hh-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(54,168,224,0.07);
  animation: hh-ring-pulse 8s ease-out infinite;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 50%;
}
.hect-hero .hh-ring:nth-child(1) { width: 180px;  height: 180px;  animation-delay: 0s;   }
.hect-hero .hh-ring:nth-child(2) { width: 340px;  height: 340px;  animation-delay: 1.4s; }
.hect-hero .hh-ring:nth-child(3) { width: 520px;  height: 520px;  animation-delay: 2.8s; }
.hect-hero .hh-ring:nth-child(4) { width: 720px;  height: 720px;  animation-delay: 4.2s; }
.hect-hero .hh-ring:nth-child(5) { width: 960px;  height: 960px;  animation-delay: 5.6s; }
@keyframes hh-ring-pulse {
  0%  { opacity: 0; transform: translate(-50%, -50%) scale(0.80); }
  12% { opacity: 1; }
  100%{ opacity: 0; transform: translate(-50%, -50%) scale(1.10); }
}

/* ── Caustic light rings (refracted underwater light) */
.hect-hero .hh-caustics {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.hect-hero .hh-caustic {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(54,168,224,0.055);
  animation: hh-caustic-expand 9s ease-out infinite;
  transform: translate(-50%, -50%);
}
.hect-hero .hh-caustic:nth-child(1){ width:260px; height:200px; left:44%; top:58%; animation-delay:0s;   border-radius:55% 45% 60% 40%; }
.hect-hero .hh-caustic:nth-child(2){ width:160px; height:110px; left:22%; top:42%; animation-delay:2.2s; border-radius:60% 40% 50% 50%; }
.hect-hero .hh-caustic:nth-child(3){ width:220px; height:150px; left:72%; top:62%; animation-delay:4.8s; border-radius:45% 55% 40% 60%; }
.hect-hero .hh-caustic:nth-child(4){ width:360px; height:360px; left:56%; top:72%; animation-delay:1.4s; opacity:0.5; }
.hect-hero .hh-caustic:nth-child(5){ width:130px; height:90px;  left:82%; top:32%; animation-delay:3.5s; border-radius:50% 50% 55% 45%; }
@keyframes hh-caustic-expand {
  0%  { transform: translate(-50%,-50%) scale(0.25); opacity: 0.75; }
  65% { opacity: 0.18; }
  100%{ transform: translate(-50%,-50%) scale(2.4);  opacity: 0; }
}

/* ── Radar crosshair center dot ───────────────────── */
.hect-hero .hh-radar-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
}
.hect-hero .hh-radar-center::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(74 184 224 / 10%);
  box-shadow: 0 0 12px rgba(74,184,224,0.8), 0 0 32px rgba(74,184,224,0.35);
  margin: -3px 0 0 -3px;
}
.hect-hero .hh-radar-center::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(74,184,224,0.1);
  animation: hh-center-ping 2.8s ease-out infinite;
}
@keyframes hh-center-ping {
  0%  { transform: scale(1);   opacity: 1; }
  100%{ transform: scale(3.5); opacity: 0; }
}


/* ── Nav: horizontal bottom (mobile) ─────────────── */
@media (max-width: 768px) {
  .hect-hero .hh-nav {
    right: auto;
    top: auto;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
  }
  .hect-hero .hh-nav-track {
    width: auto;
    height: 2px;
    background: rgba(255, 255, 255, 0.18);
  }
  .hect-hero .hh-nav-fill {
    top: 0; bottom: 0;
    left: 0; right: auto;
    height: 100%;
    width: 0%;
    transition: width 900ms cubic-bezier(0.76, 0, 0.24, 1);
  }
  .hect-hero .hh-nav-dots {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    flex-direction: row;
  }
}