/* ============================================
   ELEVA3 — solucoes.css
   Ecossistema único: abas + funcionalidades expansíveis
   Depende de style.css e product.css
   ============================================ */

/* ---------- HUB HEADER (abas) ---------- */
.hub-hero {
  background: var(--navy);
  padding: 3rem 0 3.5rem;
  text-align: center;
}
.hub-hero__inner { max-width: 680px; margin-inline: auto; }
.hub-hero .hero__eyebrow { justify-content: center; }
.hub-hero__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.18;
  margin: 1rem 0 0.8rem;
}
.hub-hero__sub {
  font-size: 0.98rem;
  color: var(--text2);
  margin-bottom: 2rem;
}

.hub-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.hub-tab {
  font-family: inherit;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 0.65em 1.3em;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text2);
  background: rgba(255,255,255,0.04);
  transition: var(--transition);
}
.hub-tab:hover { border-color: rgba(0,102,255,0.4); color: var(--white); }
.hub-tab.is-active { background: var(--gold); color: #fff; border-color: var(--gold); }

/* ---------- PAINÉIS ---------- */
.hub-panel { padding: 4.5rem 0 6rem; }
.hub-panel[hidden] { display: none; }

.hub-panel__header { max-width: 720px; margin-bottom: 2.75rem; }
.hub-panel__actions { margin-top: 1.5rem; }

/* ---------- FUNCIONALIDADES (accordion) ---------- */
.hub-features {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 3rem;
}
.hub-feature {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(11,31,58,0.02);
  overflow: hidden;
}
.hub-feature--muted { opacity: 0.7; }
.hub-feature__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}
.hub-feature__head--static { cursor: default; }
.hub-feature__title { display: flex; flex-direction: column; gap: 0.2rem; }
.hub-feature__title strong { font-size: 0.98rem; font-weight: 700; color: var(--white); }
.hub-feature__title small { font-size: 0.82rem; color: var(--text2); font-weight: 400; }
.hub-feature__toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.hub-feature__toggle svg { width: 11px; height: 11px; transition: transform var(--transition); }
.hub-feature.open .hub-feature__toggle svg { transform: rotate(180deg); }

.hub-feature__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition);
}
.hub-feature__body > div {
  overflow: hidden;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 0 1.4rem;
}
.hub-feature.open .hub-feature__body { grid-template-rows: 1fr; }
.hub-feature.open .hub-feature__body > div { padding-bottom: 1.25rem; }
.hub-feature__content { flex: 1; min-width: 0; }
.hub-feature__content p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
}
.hub-feature__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1.5rem;
}
.hub-feature__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text2);
}
.hub-feature__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
}
.hub-feature__media { flex-shrink: 0; width: 200px; }
.hub-feature__media img,
.hub-feature__media .visual-placeholder {
  width: 200px;
  height: 130px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  aspect-ratio: auto;
}

.hub-panel__combo {
  margin-top: 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--white);
  background: rgba(0,102,255,0.06);
  border: 1px solid rgba(0,102,255,0.2);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
  display: inline-block;
}
.hub-panel__combo a { color: var(--gold); text-decoration: underline; }

/* ---------- GALERIA (reaproveita .shot-frame do product.css) ---------- */
.hub-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hub-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-feature__list { grid-template-columns: 1fr; }
  .hub-feature__body > div { flex-direction: column; }
  .hub-feature__media, .hub-feature__media img, .hub-feature__media .visual-placeholder { width: 100%; }
  .hub-feature__media img, .hub-feature__media .visual-placeholder { height: 170px; }
}
@media (max-width: 560px) {
  .hub-tabs { gap: 0.4rem; }
  .hub-tab { padding: 0.55em 1em; font-size: 0.8rem; }
  .hub-gallery { grid-template-columns: 1fr; }
  .hub-feature__head { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
  .hub-feature__toggle { align-self: flex-start; }
}

/* ---------- AMPLIAÇÃO DAS IMAGENS ---------- */

[data-panel] img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.85);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__image {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 25px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.25);
}