/* =========================================================
   Efeitos 3D e de rolagem da versão anterior, na paleta branca com azul
   (carrossel da abertura, foto 3D, cartões 3D, caminho guiado pela rolagem,
   etapas que acendem, cartões que viram). Carregado depois de paginas.css.
   ========================================================= */

/* Selo do Sankhya: cantos menos arredondados para não cortar o logotipo */
.sankhya-badge img { border-radius: 12px; padding: 6px 12px; }

/* ---------- Abertura: parallax e indicação de rolagem ---------- */
.page-hero::before { transform: translateY(calc(var(--par, 0) * 60px)); }
.page-hero .scroll-cue { color: var(--blue); }
.page-hero .scroll-cue-icon { border-color: rgba(1, 48, 200, .35); }
.page-hero .scroll-cue-icon::after { background: var(--blue); }
.page-hero .scroll-cue:hover .scroll-cue-icon { border-color: var(--blue); }

/* ---------- Foto 3D (mesma estrutura .tilt), ajustada para fundo claro ---------- */
.page-hero .tilt::before { border-color: rgba(1, 48, 200, .3); }
.page-hero .tilt-depth { background-image: url("../img/isotipo.png"); opacity: .1; }
.page-hero .tilt img { box-shadow: var(--sx, 15px) var(--sy, 25px) 50px rgba(0, 8, 102, .22); }
.hero-photo.hero-visual { max-width: 560px; }
.hero-photo.hero-visual img { background: transparent; }
.tilt .hero-photo-tag { z-index: 2; transform: translateZ(60px); }
@media (max-width: 640px) { .tilt .hero-photo-tag { transform: translateZ(30px); } }

/* ---------- Carrossel da abertura (os 4 slides do site antigo) ---------- */
.hero-slider { padding-bottom: clamp(64px, 7vw, 100px); }
.hero-slider .page-hero-grid { min-height: clamp(500px, 60vh, 620px); }
.hs-slides { display: grid; }
.hs-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.hs-slide.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .1s, transform .6s var(--ease) .1s, visibility 0s; }
.hs-title { font-family: var(--font-head); font-size: clamp(34px, 3.2vw + 16px, 62px); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; color: var(--ink); margin: 0 0 20px; overflow-wrap: break-word; }
.hs-title em { font-style: normal; color: var(--blue); }

.hs-controls { display: flex; align-items: center; gap: 8px; margin-top: 28px; }
.hs-arrow, .hs-pause {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s, transform .25s var(--ease);
}
.hs-arrow:hover, .hs-pause:hover { border-color: var(--blue); color: var(--blue); }
.hs-arrow:active { transform: scale(.94); }
.hs-dots { display: flex; }
.hs-dot { width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hs-dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #c6d3f3; transition: width .35s var(--ease), background-color .35s; }
.hs-dot[aria-current="true"]::before { width: 26px; background: var(--blue); }
.hs-dot:hover::before { background: var(--blue); }
.hs-pause { margin-left: 6px; }
.hs-pause-ico { width: 11px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hs-pause[aria-pressed="true"] .hs-pause-ico { width: 0; height: 0; border-right: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

.hero-slider .hero-visual { max-width: 560px; }
.hs-stage {
  position: relative; display: grid; aspect-ratio: 1 / 1; border-radius: 32px; overflow: hidden;
  background: linear-gradient(150deg, #e9efff 0%, #fff 55%, #dfe8ff 100%); border: 1px solid var(--sky-2);
  box-shadow: var(--sx, 15px) var(--sy, 25px) 50px rgba(1, 48, 200, .18);
}
.hs-stage::before { content: ""; position: absolute; inset: 0; background: url("../img/pattern-chevrons.png") repeat 0 0 / 75px 55px; opacity: .05; filter: invert(1); }
.hs-vis { grid-area: 1 / 1; position: relative; opacity: 0; transform: scale(1.04); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.hs-vis.is-active { opacity: 1; transform: none; }
.hs-stage img, .page-hero .tilt .hs-stage img { aspect-ratio: auto; border-radius: 0; background: none; box-shadow: none; }
.hs-stage .hero-brand-mark { position: absolute; left: 50%; top: 47%; width: 58%; translate: -50% -50%; filter: drop-shadow(0 24px 40px rgba(1, 48, 200, .25)); }
.hs-stage .hero-float img { width: 74px; }
.hs-vis-img > img { position: absolute; right: 0; bottom: 0; width: 96%; height: 86%; object-fit: contain; object-position: right bottom; }
.hs-vis-img .hero-float-1 { top: 7%; left: 6%; }
.hf-s { display: inline; font-size: 18px !important; }

/* ---------- Cartões 3D (mesma mecânica dos cartões de soluções da versão anterior) ---------- */
.tilt-card {
  --rx: 0deg; --ry: 0deg; --lift: 0px; --gx: 50%; --gy: 0%; --glare: 0;
  position: relative; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.tilt-card.is-tilting { transition: border-color .25s, box-shadow .2s; }
.tilt-card.is-tilting:not(:hover) { box-shadow: var(--sx, 0px) calc(16px + var(--sy, 0px)) 40px rgba(0, 8, 102, .14); }
.tilt-card.is-pressed { --lift: -4px; }
.tilt-card .card-glare { z-index: 2; }
.tilt-card:not(.door-main) .card-glare {
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(1, 48, 200, .10), rgba(1, 48, 200, 0) 60%); mix-blend-mode: normal;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tilt-card:hover {
    --lift: -6px;
    transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
    box-shadow: var(--sx, 0px) calc(22px + var(--sy, 0px)) 48px rgba(0, 8, 102, .16);
  }
}
.tilt-card.reveal-pending { transform: perspective(900px) rotateX(18deg) translateY(28px); transform-origin: 50% 100%; }
.tilt-card.reveal-pending.is-revealed {
  transform: perspective(900px) rotateX(0deg) translateY(0);
  transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) { .tilt-card { transform: none !important; } }

/* ---------- Produtos na página inicial ---------- */
.mini-prods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mini-prod { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.mini-prod h3 { font-size: 18px; }
.mini-prod p { margin: 0; font-size: 15px; flex: 1; }
.mini-prod .card-link::after { border-radius: 18px; }

.modules { margin-top: 26px; padding: 22px 26px; border-radius: 18px; background: var(--sky); border: 1px solid var(--sky-2); text-align: center; }
.modules p { margin: 6px 0 0; color: var(--ink); line-height: 1.9; font-size: 15.5px; }

/* ---------- Caminho guiado pela rolagem, em fundo claro ---------- */
.caminho { background: var(--sky); color: var(--text); }
.caminho .h2 { color: var(--ink); }
.caminho .lead { color: var(--muted); }
.caminho-line { background: var(--sky-2); }
.caminho-fill { background: linear-gradient(90deg, #36b8ff, var(--blue)); }
.caminho-dot { background: var(--blue); box-shadow: 0 0 0 6px rgba(1, 48, 200, .15), 0 0 24px rgba(1, 48, 200, .45); }
.caminho-step .cs-n { width: auto; min-width: 58px; padding: 0 10px; background: #fff; border-color: var(--sky-2); color: var(--muted); }
.caminho-step .h4 { color: var(--ink); }
.caminho-step p { color: var(--text); }
.caminho-step .text-link { margin-top: 4px; }
.caminho-step.is-active .cs-n { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 0 30px rgba(1, 48, 200, .35); }
.caminho .spotlight { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(1, 48, 200, .07), transparent 60%); }
.caminho :focus-visible { outline-color: var(--blue); }
@media (max-width: 900px) { .caminho-fill { background: linear-gradient(180deg, #36b8ff, var(--blue)); } }

/* ---------- Por que escolher: etapas que acendem com a rolagem ---------- */
.why-steps { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-steps li { border: 1px solid var(--line); background: #fff; padding: 22px; }
.why-steps .h5 { color: var(--ink); margin-bottom: 6px; }
.why-steps p { color: var(--text); font-size: 15px; margin: 0; }
.why-steps .step-n { background: var(--blue); color: #fff; box-shadow: 4px 4px 0 var(--sky-2); }
.js .why-steps li { opacity: .45; }
.js .why-steps li.is-lit { opacity: 1; background: #fff; border-color: rgba(1, 48, 200, .35); box-shadow: 0 14px 30px rgba(0, 8, 102, .08); }
.why-steps li.is-lit .step-n { box-shadow: 4px 4px 0 var(--sky-2), 0 0 22px rgba(1, 48, 200, .35); }
@media (hover: hover) { .why-steps li:hover { background: #fff; border-color: rgba(1, 48, 200, .35); } }
.why-steps :focus-visible { outline-color: var(--blue); }

/* ---------- Diretores: cartões que viram, com foto ---------- */
.people-photo { grid-template-columns: repeat(auto-fit, minmax(220px, 270px)); justify-content: center; gap: 20px; }
.people-photo .person-front { align-items: center; text-align: center; }
.people-photo .person-front::before { display: none; }
.person-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; box-shadow: 0 0 0 5px var(--sky), 0 0 0 7px var(--blue); }
.people-photo .person-front > span { flex: 0 1 auto; }
.people-photo .person-flip { align-self: center; }
.people-photo .person-back { justify-content: center; background: linear-gradient(150deg, var(--blue), #0a1f9e); }
.people-photo .person-back :focus-visible { outline-color: #fff; }

/* ---------- Instagram ---------- */
.insta { padding: 0 0 8px; background: #fff; }
.insta-inner { display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line); background: #fff; }
.insta-ico { width: 52px; height: 52px; flex: none; padding: 11px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #f58529, #dd2a7b 50%, #8134af 75%, #515bd4); }
.insta-inner > div { flex: 1; }
.insta h2 { margin-bottom: 2px; }
.insta p { margin: 0; color: var(--muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .mini-prods, .why-steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-slider .page-hero-grid { min-height: 0; }
  .hs-stage { aspect-ratio: 5 / 4; }
  .hero-slider .hero-visual { justify-self: start; max-width: 520px; }
}
@media (max-width: 640px) {
  .mini-prods, .why-steps { grid-template-columns: 1fr; }
  .hs-controls { margin-top: 22px; }
  .hs-dot { width: 26px; }
  .hs-stage .hero-float img { width: 58px; }
  .hf-s { font-size: 15px !important; }
  .insta-inner { flex-direction: column; align-items: flex-start; }
  .insta-inner .btn { width: 100%; }
  .person-photo { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide, .hs-vis { transition: none; transform: none; }
  .page-hero::before { transform: none; }
  .js .why-steps li { opacity: 1; }
}

/* ---------- Sobre nós: um quadradinho para cada diretor ---------- */
.team-tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.tile {
  grid-column: span 2; aspect-ratio: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 14px 10px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-align: center;
  box-shadow: 0 10px 24px rgba(0, 8, 102, .06); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.tiles-5 .tile:nth-child(4) { grid-column: 2 / span 2; }
.tiles-5 .tile:nth-child(5) { grid-column: 4 / span 2; }
.tile img, .hero-tiles .tile img {
  width: 56%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; margin-bottom: 8px; position: static;
  background: none; box-shadow: 0 0 0 4px var(--sky), 0 0 0 6px var(--blue);
}
.tile strong { font-family: var(--font-head); font-size: 15px; line-height: 1.2; color: var(--ink); }
.tile span { font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--blue); }
@media (hover: hover) { .tile:hover { transform: translateY(-4px); border-color: rgba(1, 48, 200, .3); box-shadow: 0 18px 34px rgba(0, 8, 102, .12); } }

.about-band-tiles { grid-template-columns: 1fr 1fr; }
.tiles-panel { padding: 22px; border-radius: 28px; background: linear-gradient(150deg, #e9efff 0%, #fff 55%, #dfe8ff 100%); border: 1px solid var(--sky-2); box-shadow: var(--sx, 15px) var(--sy, 25px) 50px rgba(1, 48, 200, .16); }

@media (max-width: 900px) {
  .about-band-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .team-tiles { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .tiles-5 .tile:nth-child(4) { grid-column: span 2; }
  .tiles-5 .tile:nth-child(5) { grid-column: 2 / span 2; }
  .tiles-panel { padding: 14px; }
  .tile strong { font-size: 14px; }
  .tile span { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }
