/* =====================================================================
   Componente ObHero · Oliveira & Bolzan
   Anatomia: kicker · título com rotador de dor · texto · CTA + garantia ·
             retrato no "O" da marca (crescente dourado + anel) · selo de
             credencial · trilho "Qual é o seu caso?"
   Variantes: .ob-hero (escuro, padrão) · .ob-hero--claro
   Documentação: componente-hero.html
   ===================================================================== */
.ob-hero{
  --h-bg:var(--marinho); --h-txt:var(--marfim); --h-lead:#C9D1DC; --h-mute:#9FAABA;
  --h-acento:var(--ouro); --h-linha:rgba(217,211,199,.14); --h-caso-hover:rgba(198,161,91,.1);
  --h-selo-bg:var(--papel); --h-selo-txt:var(--grafite);
  position:relative; overflow:hidden; isolation:isolate;
  background:
    radial-gradient(ellipse 55% 70% at 78% 42%, rgba(198,161,91,.14), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(62,85,115,.35), transparent 70%),
    var(--h-bg);
  color:var(--h-lead);
}
.ob-hero::before{ /* grão sutil */
  content:""; position:absolute; inset:0; z-index:-1; opacity:.07; pointer-events:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ob-hero--claro{
  --h-bg:var(--marfim); --h-txt:var(--marinho); --h-lead:var(--aco); --h-mute:var(--aco);
  --h-acento:var(--bronze-texto); --h-linha:var(--nevoa); --h-caso-hover:rgba(198,161,91,.12);
  --h-selo-bg:var(--marinho); --h-selo-txt:#E3E7ED;
}
.ob-hero--claro::before{opacity:.04}

.ob-hero__corpo{display:grid;grid-template-columns:1.12fr .88fr;gap:clamp(32px,5vw,80px);align-items:center;
  padding-top:clamp(40px,4.5vw,72px);padding-bottom:clamp(44px,4.5vw,64px)}

/* Texto */
.ob-hero__kicker{display:flex;width:fit-content;align-items:center;gap:12px;font:700 .8rem/1.2 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--h-acento);margin:0 0 26px}
.ob-hero__kicker::before{content:"";width:34px;height:1.5px;background:currentColor}
.ob-hero__titulo{font:600 clamp(2.5rem,5vw,4.2rem)/1.02 var(--serif);letter-spacing:-.015em;color:var(--h-txt);margin:0;max-width:15ch}
.ob-hero__rotador{display:block;min-height:2.04em;font-style:italic;font-weight:500;color:var(--h-acento)}
.ob-hero__rotador span{display:inline-block;transition:opacity .45s var(--ease),transform .45s var(--ease)}
.ob-hero__rotador.sai span{opacity:0;transform:translateY(-.25em)}
.ob-hero__rotador.entra span{opacity:0;transform:translateY(.25em)}
.ob-hero__texto{font-size:clamp(1.05rem,1.3vw,1.2rem);line-height:1.6;color:var(--h-lead);max-width:50ch;margin:20px 0 30px}
.ob-hero__acao{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px}
.ob-hero__acao .btn{min-height:56px;padding:0 30px;font-size:1rem}
.ob-hero__garantia{display:flex;flex-direction:column;gap:2px;font-size:.86rem;line-height:1.4;color:var(--h-mute)}
.ob-hero__garantia b{display:flex;align-items:center;gap:8px;color:var(--h-txt);font-weight:600}
.ob-hero__garantia b i{width:8px;height:8px;border-radius:50%;background:#58C58A;box-shadow:0 0 0 4px rgba(88,197,138,.2)}

/* Retrato no "O" */
.ob-hero__retrato{position:relative;justify-self:end;width:min(100%,clamp(280px,30vw,430px));margin:0}
.ob-hero__crescente{position:absolute;inset:0;translate:-9% -4%;border-radius:50%;background:var(--ouro);opacity:.95}
.ob-hero__anel{position:absolute;inset:-5%;border:1.5px solid var(--h-acento);border-radius:50%;opacity:.45;transform:rotate(-6deg)}
.ob-hero__oval{position:relative;aspect-ratio:52/66;border-radius:50%;overflow:hidden;background:#E9E6E0;box-shadow:0 40px 80px -40px rgba(0,0,0,.6)}
.ob-hero__oval img{width:100%;height:100%;object-fit:cover;object-position:96% 30%}
.ob-hero__selo{position:absolute;left:-14%;bottom:9%;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;
  background:var(--h-selo-bg);color:var(--h-selo-txt);border-radius:14px;padding:12px 18px 12px 12px;box-shadow:0 24px 44px -22px rgba(0,0,0,.55);max-width:290px}
.ob-hero__selo img{width:40px;height:auto}
.ob-hero__selo b{display:block;font:600 1.12rem/1.15 var(--serif);color:inherit}
.ob-hero__selo small{display:block;font:700 .68rem/1.4 var(--sans);letter-spacing:.12em;color:var(--bronze);margin-top:3px}
.ob-hero--claro .ob-hero__selo small{color:var(--ouro)}
.ob-hero__selo span{font-size:.8rem;line-height:1.35}

/* Trilho de casos */
.ob-hero__casos{border-top:1px solid var(--h-linha);position:relative}
.ob-hero__casos-rotulo{position:absolute;top:0;left:max(var(--gutter),calc((100% - var(--max)) / 2 + var(--gutter)));transform:translateY(-50%);background:var(--h-bg);padding:0 12px 0 0;
  font:700 .74rem/1 var(--sans);letter-spacing:.2em;text-transform:uppercase;color:var(--h-acento);margin:0}
.ob-hero__casos ul{list-style:none;margin:0 auto;padding:0;max-width:var(--max);display:grid;grid-auto-flow:column;grid-auto-columns:1fr}
.ob-caso{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;gap:6px 12px;align-content:start;min-height:120px;height:100%;
  padding:30px var(--gutter) 28px;text-decoration:none;border-right:1px solid var(--h-linha);transition:background .25s}
.ob-hero__casos li:first-child .ob-caso{padding-left:var(--gutter)}
.ob-hero__casos li:last-child .ob-caso{border-right:0}
.ob-caso svg{grid-column:1;width:24px;height:24px;color:var(--h-acento);margin-bottom:8px}
.ob-caso b{grid-column:1;font:700 .98rem/1.25 var(--sans);color:var(--h-txt)}
.ob-caso small{grid-column:1;font-size:.84rem;line-height:1.4;color:var(--h-mute)}
.ob-caso i{grid-column:2;grid-row:1/4;align-self:center;font-style:normal;color:var(--h-acento);font-size:1.2rem;transition:transform .25s var(--ease)}
.ob-caso:hover,.ob-caso:focus-visible{background:var(--h-caso-hover)}
.ob-caso:hover i,.ob-caso:focus-visible i{transform:translateX(4px)}
.ob-caso:focus-visible{outline:2px solid var(--ouro);outline-offset:-2px;border-radius:0}

/* Entrada (uma única coreografia) */
@keyframes obSobe{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes obRevela{from{clip-path:ellipse(0% 0% at 50% 55%)}to{clip-path:ellipse(50% 50% at 50% 50%)}}
@keyframes obGira{from{opacity:0;transform:rotate(-30deg) scale(.9)}to{opacity:.45;transform:rotate(-6deg)}}
.ob-hero [data-in]{animation:obSobe .8s var(--ease) both;animation-delay:calc(var(--i,0) * 110ms + 100ms)}
.ob-hero__oval{animation:obRevela 1.1s var(--ease) .25s both}
.ob-hero__anel{animation:obGira 1.4s var(--ease) .4s both}
.ob-hero__crescente{animation:obSobe 1s var(--ease) .15s both}

/* Esqueleto */
body.lofi .ob-hero::before{display:none}
body.lofi .ob-hero{background:var(--h-bg)}
body.lofi .ob-hero__oval{background:repeating-linear-gradient(45deg,#DADADA 0 10px,#E6E6E6 10px 20px)}
body.lofi .ob-hero__oval img{opacity:0}
body.lofi .ob-hero__oval::after{content:"FOTO · sócios no oval do O";position:absolute;inset:0;display:grid;place-items:center;font:700 .75rem/1.3 var(--sans);letter-spacing:.08em;color:#555}
body.lofi .ob-hero__crescente{background:#9C9C9C}

@media (max-width:1100px){
  .ob-hero__corpo{grid-template-columns:1fr 1fr}
  .ob-hero__casos ul{grid-auto-columns:minmax(200px,1fr);overflow-x:auto;scroll-snap-type:x mandatory;max-width:none}
  .ob-hero__casos li{scroll-snap-align:start}
  .ob-hero__selo{left:-6%}
}
@media (max-width:760px){
  .ob-hero__corpo{grid-template-columns:1fr;gap:44px;padding-top:40px}
  .ob-hero__retrato{justify-self:center;width:min(78%,330px);margin-right:6%}
  .ob-hero__selo{left:-18%;bottom:4%;max-width:240px;padding:10px 14px 10px 10px}
  .ob-hero__selo img{width:32px}
  .ob-hero__acao .btn{width:100%;justify-content:center}
  .ob-hero__titulo{max-width:none}
  .ob-caso{min-height:0;padding:24px 20px}
  .ob-hero__casos li:first-child .ob-caso{padding-left:var(--gutter)}
}
@media (prefers-reduced-motion:reduce){
  .ob-hero [data-in],.ob-hero__oval,.ob-hero__anel,.ob-hero__crescente{animation:none}
  .ob-hero__anel{opacity:.45}
}
.ob-hero--claro{background:radial-gradient(ellipse 55% 70% at 78% 42%, rgba(198,161,91,.16), transparent 70%),var(--h-bg)}
.ob-hero__titulo{text-wrap:balance}
