﻿/* ============================================================
   HERO GALLERY â€” FutureSight Light Edition
   Fundo claro Â· Blob colorido Â· Cards flutuantes
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* â”€â”€ TOKENS â”€â”€ */
.hag {
  --bg:        #FFFFFF;
  --text:      #111118;
  --muted:     #6B7280;
  --teal:      #D4A017;   /* turquesa claro â€” headlines grandes   */
  --teal-dark: #B8880F;   /* turquesa escuro â€” textos pequenos    */
  --border:    rgba(0,0,0,0.08);
  --shadow:    rgba(0,0,0,0.13);
}

/* ── BASE ── */
.hag {
  position: relative;
  background: #FFFFFF;
  min-height: auto;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
}

/* Quando o HAG é a hero section — ocupa a tela cheia */
.hag.hag--hero {
  min-height: 100vh;
}

.hag.hag--hero .hag__inner {
  padding-top: calc(var(--navbar-height) + 48px);
  padding-bottom: 72px;
  align-content: center;
}

/* â”€â”€ BLOB GRADIENTE â”€â”€ */
/* Vanta.js canvas container */
.hag__blob {
  position: absolute;
  width: 26%;
  height: 280%;
  top: -90%;
  left: 37%;
  transform: rotate(20deg);
  transform-origin: center center;
  background: linear-gradient(
    to bottom,
    transparent                        0%,
    rgba(180, 180, 180, 0.18)         15%,
    rgba(160, 160, 160, 0.26)         38%,
    rgba(150, 150, 150, 0.28)         60%,
    rgba(168, 168, 168, 0.18)         80%,
    transparent                       100%
  );
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
  animation: hagBlobPulse 14s ease-in-out infinite;
}

@keyframes hagBlobPulse {
  0%, 100% { opacity: 0.82; }
  50%       { opacity: 1.00; }
}

/* Dot grid â€” metade direita */
.hag::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 58%;
  pointer-events: none;
  z-index: 0;
}

/* â”€â”€ INNER GRID 50/50 â”€â”€ */
.hag__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-rows: auto auto auto;
  align-items: start;
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: var(--section-py) clamp(24px, 5vw, 68px);
  gap: 0;
}

/* Desktop: headline col 1 row 1 · subtexto col 1 row 2 · galeria col 2 span 2 linhas */
.hag__content      { grid-column: 1; grid-row: 1; align-self: end; padding-bottom: 20px; }
.hag__sub-wrap     { grid-column: 1; grid-row: 2; align-self: start; }
.hag__hero-product { grid-column: 1; grid-row: 3; align-self: start; padding-top: 20px; }
.hag__gallery      { grid-column: 2; grid-row: 1 / 4; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   COLUNA ESQUERDA â€” ConteÃºdo
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hag__content { max-width: 480px; }

/* Eyebrow */
.hag__eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 18px;
  animation: hagFadeUp 700ms ease-out both;
}

/* Acento dourado na headline */
.hag__hl-accent {
  color: var(--teal); /* #D4A017 dourado no contexto .hag */
}

/* Acento teal na headline */
.hag__hl-teal {
  color: #00B4A6;
}

/* Headline */
.hag__headline {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: var(--text);
  margin-bottom: 20px;
  animation: hagFadeUp 700ms ease-out 80ms both;
}

/* Subheadline */
.hag__sub {
  font-size: 15.5px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.74;
  max-width: 400px;
  margin-bottom: 0;
  animation: hagFadeIn 800ms ease-out 160ms both;
}

/* Produto hero */
.hag__hero-product {
  display: flex;
  justify-content: center;
  max-width: 480px;
}

.hag__hero-product-img {
  max-height: 240px;
  width: auto;
  filter:
    drop-shadow(0 24px 52px rgba(0,0,0,0.22))
    drop-shadow(0 0 32px rgba(0,180,166,0.18));
  animation:
    hagScaleIn 900ms ease-out 240ms both,
    heroProductFloat 4.8s ease-in-out 1.1s infinite;
}

@keyframes heroProductFloat {
  0%, 100% { transform: translateY(0)    rotate(-0.5deg); }
  50%       { transform: translateY(-12px) rotate(0.5deg); }
}

/* CTA BotÃ£o escuro */
.hag__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  background: var(--text);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  letter-spacing: 0.01em;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(17,17,24,0.28);
  transition: transform .22s ease, box-shadow .22s ease;
  animation: hagScaleIn 900ms ease-out 400ms both;
}

/* Shimmer */
.hag__cta::before {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left .58s ease;
}

.hag__cta:hover { transform: translateY(-2px); box-shadow: 0 16px 48px rgba(17,17,24,0.34); }
.hag__cta:hover::before { left: 140%; }
.hag__cta:active { transform: translateY(0); }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   COLUNA DIREITA â€” Cards flutuantes
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hag__gallery {
  position: relative;
  height: 560px;
  will-change: transform;
  animation: hagScaleIn 900ms ease-out 60ms both;
}

/* â”€â”€ BASE do card â”€â”€ */
.hag__card {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.44),
    0 0 0 1px rgba(255,255,255,0.65);
  background: #ffffff;
}

.hag__card img,
.hag__card-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   LAYOUT â€” 2 colunas sem sobreposiÃ§Ã£o
   Col. esquerda (0â€“46%) : sm-top topo  +  main abaixo
   Gap central  (46â€“54%) : 8% de respiro
   Col. direita (54â€“98%) : lg-tr topo  +  sm-br abaixo
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Coluna esquerda â”€â”€ */

.hag__card--sm-top {
  left: 3%;
  top: 0%;
  width: 22%;
  height: 20%;
  z-index: 3;
  animation: hagFloat2 4.6s ease-in-out infinite .5s;
  box-shadow: 0 16px 48px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,255,255,0.75);
}

.hag__card--main {
  left: 0%;
  top: 23%;
  width: 52%;
  height: 77%;
  z-index: 2;
  box-shadow: 0 32px 80px rgba(0,0,0,0.52), 0 0 0 1px rgba(255,255,255,0.55);
  animation: hagFloat1 5.2s ease-in-out infinite;
}

/* â”€â”€ Coluna direita â”€â”€ */

/* Superior: card mais ALTO e largo â€” destaque principal */
.hag__card--lg-tr {
  left: 53%;
  top: -4%;
  width: 46%;
  height: 57%;
  z-index: 1;
  animation: hagFloat3 5.6s ease-in-out infinite 1s;
}

/* Inferior: card mais BAIXO e estreito â€” subordinado */
.hag__card--sm-br {
  left: 55%;
  bottom: 0%;
  width: 40%;
  height: 37%;
  z-index: 1;
  animation: hagFloat2 4.9s ease-in-out infinite 1.8s;
}

/* â”€â”€ FOTO NOS CARDS â€” mesma imagem, crops e filtros diferentes â”€â”€ */

.hag__card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.hag__card:hover .hag__card-photo {
  transform: scale(1.04);
}

/* sm-top: imagem prÃ³pria â€” sem filtro aplicado */
.hag__card--sm-top .hag__card-photo {
  object-position: center center;
  filter: none;
}

/* lg-tr: foto prÃ³pria â€” cores naturais */
.hag__card--lg-tr .hag__card-photo {
  object-position: center center;
  filter: none;
}

/* sm-br: foto prÃ³pria â€” cores naturais */
.hag__card--sm-br .hag__card-photo {
  object-position: center center;
  filter: none;
}

/* Overlay sutil no card principal */
.hag__card--main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.07) 100%);
  pointer-events: none;
}

/* Float keyframes */
@keyframes hagFloat1 {
  0%, 100% { transform: rotate(-0.8deg) translateY(0); }
  50%       { transform: rotate(-0.2deg) translateY(-10px); }
}
@keyframes hagFloat2 {
  0%, 100% { transform: rotate(-2.4deg) translateY(0); }
  50%       { transform: rotate(-1.7deg) translateY(-13px); }
}
@keyframes hagFloat3 {
  0%, 100% { transform: rotate(1.5deg) translateY(0); }
  50%       { transform: rotate(0.8deg) translateY(11px); }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   BARRA INFERIOR
â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.hag__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 20px 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
}

.hag__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 68px);
}

/* Contador 01 | 03 */
.hag__counter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.02em;
  user-select: none;
}

.hag__cnt-curr  { font-weight: 800; color: var(--text); }
.hag__cnt-sep   { color: rgba(0,0,0,0.24); font-weight: 300; }
.hag__cnt-total { font-weight: 500; color: var(--muted); }

/* Dots â€” linha estilo slider */
.hag__progress {
  display: flex;
  align-items: center;
  gap: 7px;
}

.hag__prog-dot {
  height: 3px;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  padding: 0;
  background: rgba(0,0,0,0.16);
  width: 22px;
  transition: width .3s ease, background .3s ease;
}

.hag__prog-dot--active {
  width: 44px;
  background: var(--text);
}

.hag__prog-dot:hover:not(.hag__prog-dot--active) {
  background: rgba(0,0,0,0.32);
}

/* Setas */
.hag__arrows { display: flex; align-items: center; gap: 10px; }

.hag__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,0.15);
  background: transparent;
  color: var(--text);
  font-size: 17px;
  cursor: pointer;
  line-height: 1;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.hag__arrow:hover {
  border-color: var(--text);
  background: var(--text);
  color: #ffffff;
  transform: scale(1.06);
}

.hag__arrow:active { transform: scale(.95); }

/* â”€â”€ ANIMAÃ‡Ã•ES â”€â”€ */
@keyframes hagFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hagFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hagScaleIn {
  from { opacity: 0; transform: scale(.93) translateY(16px); }
  to   { opacity: 1; transform: scale(1)   translateY(0); }
}

/* ══════════════════════════════════════════════════════
   SLIDES — 3 painéis com transição de opacidade
══════════════════════════════════════════════════════ */

.hag__slides {
  flex: 1;
  position: relative;
}

.hag__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
  display: flex;
  flex-direction: column;
}

.hag__slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* Coluna direita slides 2 e 3 — posicionada no grid */
.hag__slide-right {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hag__slide-right--visual {
  justify-content: center;
  align-items: center;
}

/* ── Item cards — slide 2 Quem Somos ── */
.hag__slide-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.hag__slide-item:hover {
  border-color: rgba(0, 180, 166, 0.25);
  background: rgba(0, 180, 166, 0.03);
}

.hag__slide-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.hag__slide-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.hag__slide-item-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Produto — slide 3 Como Funciona ── */
.hag__slide-product-img {
  width: 100%;
  max-width: 300px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.16));
}

/* ── Mini timeline — slide 3 ── */
.hag__slide-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.hag__slide-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hag__slide-step-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: #00B4A6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}

.hag__slide-step-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.hag__slide-step-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}

/* Italic gold para títulos dos slides 2 e 3 */
.hag__hl-gold-italic {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--teal); /* #D4A017 no contexto .hag */
}

/* ── RESPONSIVO ── */

/* Tablet grande (≤900px) — coluna única, galeria acima — revert espelho */
@media (max-width: 900px) {
  .hag { background: #FFFFFF; }
  .hag__bottom { background: rgba(249,249,252,0.95); border-top-color: rgba(0,0,0,0.06); backdrop-filter: blur(8px); }
  .hag__cnt-curr  { color: var(--text); }
  .hag__cnt-sep   { color: rgba(0,0,0,0.24); }
  .hag__cnt-total { color: var(--muted); }
  .hag__prog-dot  { background: rgba(0,0,0,0.16); }
  .hag__prog-dot--active { background: var(--text); }
  .hag__prog-dot:hover:not(.hag__prog-dot--active) { background: rgba(0,0,0,0.32); }
  .hag__arrow { border-color: rgba(0,0,0,0.15); color: var(--text); }
  .hag__arrow:hover { border-color: var(--text); background: var(--text); color: #ffffff; }
}

@media (max-width: 900px) {
  .hag__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: var(--section-py) clamp(20px, 5vw, 48px);
    text-align: center;
  }
  /* Reordenação mobile: título → galeria → subtexto → produto */
  .hag__content      { grid-column: 1; grid-row: auto; order: 1; max-width: 100%; padding-bottom: 0; }
  .hag__gallery      { grid-column: 1; grid-row: auto; order: 2; height: 380px; max-width: 520px; margin: 24px auto; width: 100%; }
  .hag__sub-wrap     { grid-column: 1; grid-row: auto; order: 3; }
  .hag__hero-product { grid-column: 1; grid-row: auto; order: 4; padding-top: 24px; justify-content: center; }
  .hag__hero-product-img { max-height: 180px; }

  .hag__headline { font-size: clamp(2rem, 4.5vw, 2.8rem); }
  .hag__sub      { margin: 0 auto 28px; max-width: 540px; }
  .hag__cta      { margin: 0 auto; }

  /* 2 colunas: esq (0-45%) + dir (48-100%) — sem sobreposição */
  .hag__card--sm-top { left: 1%;  top: 0%;    width: 22%; height: 19%; margin: 0; }
  .hag__card--main   { left: 0%;  top: 21%;   width: 45%; height: 77%; right: auto; margin: 0; }
  .hag__card--lg-tr  { left: 48%; top: 0%;    width: 51%; height: 55%; }
  .hag__card--sm-br  { left: 51%; bottom: 0%; width: 46%; height: 34%; }

  /* Slides 2 e 3: coluna direita vira coluna única reordenada */
  .hag__slide-right {
    grid-column: 1;
    grid-row: auto;
    order: 3;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .hag__slide-right--visual {
    order: 2;
  }
  .hag__slide-right--visual .hag__slide-product-img {
    max-width: 200px;
  }
}

/* Tablet pequeno (≤600px) */
@media (max-width: 600px) {
  .hag__gallery  { height: 300px; max-width: 420px; }
  .hag__headline { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .hag__sub      { font-size: 14.5px; }
  .hag__cta      { padding: 14px 28px; font-size: 14px; }
  /* Mantém layout 2 colunas — sem centralizar o main */
  .hag__card--main { left: 0%; top: 21%; width: 45%; height: 77%; right: auto; margin: 0; }
}

/* Mobile (≤480px) */
@media (max-width: 480px) {
  .hag__inner    { padding: var(--section-py) 16px; }
  .hag__headline { font-size: clamp(1.7rem, 8vw, 2.1rem); }
  .hag__eyebrow  { font-size: 9px; letter-spacing: 0.16em; }
  .hag__gallery  { height: 280px; margin-bottom: 16px; }
  .hag__card--sm-top { left: 1%;  top: 0%;    width: 20%; height: 18%; margin: 0; }
  .hag__card--main   { left: 0%;  top: 20%;   width: 44%; height: 78%; right: auto; margin: 0; }
  .hag__card--lg-tr  { left: 47%; top: 0%;    width: 52%; height: 54%; }
  .hag__card--sm-br  { left: 50%; bottom: 0%; width: 47%; height: 35%; }
  .hag__bottom   { padding: 14px 0; }
}



