/* ══════════════════════════════════════════════════════════════
   UNINOVARE — Home Page Styles (index.html)
   Complementa global.css — contém apenas estilos específicos da home
   ══════════════════════════════════════════════════════════════ */


/* ── 1. Banner Hero — Full width, ponta a ponta ── */

.heroBanner {
  padding: 0;
}
.heroBanner > .container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.heroBanner__frame {
  border-radius: 0;
  overflow: hidden;
  border: none;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.heroBanner__frame:hover {
  box-shadow: 0 12px 40px rgba(31,42,46,.12);
}

.heroBanner__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.heroBanner__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
.heroBanner__bar strong {
  display: block;
  font-family: "Baloo 2", system-ui;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.heroBanner__bar span {
  font-size: .86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}


/* ── 2. Hero Grid ── */

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.hero__text h1 {
  margin-bottom: 16px;
}

.hero__text .lead {
  margin-bottom: 24px;
}

/* Card UNINOVARE — Estilo original (card com padding, borda, sombra) */
.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.heroLogo {
  width: min(420px, 100%);
  background: rgba(255,255,255,.65);
  border: 1px solid var(--border);
  border-radius: 34px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.heroLogo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Badge Campina Grande — centralizado abaixo do card */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--border);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  font-family: "Baloo 2", system-ui;
  font-weight: 800;
  font-size: .9rem;
  color: var(--ink-soft);
}

.hero__dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(255,200,87,.22);
  flex-shrink: 0;
}


/* ── 3. Por Que Escolher ── */

.porqueSection .porqueGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.porqueCard {
  text-align: center;
  padding: 28px 20px;
}

.porqueCard__icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    rgba(58, 125, 68, 0.18) 100%
  );
  color: var(--primary);
  font-size: 1.5rem;
}

.porqueCard__icon img,
.porqueCard__icon svg {
  width: 28px;
  height: 28px;
}

.porqueCard h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.porqueCard p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.65;
}


/* ── 4. Cursos em Destaque ── */

.cursosDestaque .carousel__track {
  padding-bottom: 20px;
}

.cursoCard {
  min-width: 360px;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cursoCard__img {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cursoCard__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cursoCard:hover .cursoCard__img img {
  transform: scale(1.06);
}

.cursoCard:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.cursoCard__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cursoCard__body h3 {
  margin-bottom: 0;
}

.cursoCard__body p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.65;
  flex: 1;
}

.cursoCard__body .btn {
  align-self: flex-start;
  margin-top: 6px;
}


/* ── 5. Depoimentos ── */

.depSection .depGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.depCard {
  position: relative;
  padding: 32px 28px 24px;
}

.depCard::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: "Baloo 2", Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--primary-light);
  pointer-events: none;
}

.depCard blockquote {
  position: relative;
  font-size: 1rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.75;
  padding-left: 4px;
  margin-bottom: 16px;
}

.depCard__author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.depCard__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}

.depCard__meta strong {
  display: block;
  font-family: "Baloo 2", system-ui;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink);
}

.depCard__meta span {
  font-size: 0.82rem;
  color: var(--ink-muted);
}


/* ── 6. Galeria — Aprimoramentos estilo álbum ── */

.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--wide img {
  height: 260px;
}

.gallery__item--tall img {
  height: 300px;
}

.gallery__item:hover {
  transform: translateY(-3px) rotate(-0.8deg);
}

.gallery__item:nth-child(even):hover {
  transform: translateY(-3px) rotate(0.8deg);
}


/* ══════════════════════════════════════════════════════════════
   RESPONSIVO — Home
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
  }

  .hero__text .lead {
    margin-inline: auto;
  }

  .hero__text .section__actions {
    justify-content: center;
  }

  .heroLogo {
    max-width: 320px;
    margin: 0 auto;
    padding: 14px;
  }

  .hero__visual {
    align-items: center;
  }

  .porqueSection .porqueGrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .depSection .depGrid {
    grid-template-columns: 1fr;
  }

  .gallery__item--wide {
    grid-column: span 1;
  }

  .gallery__item--wide img {
    height: 170px;
  }
}

@media (max-width: 740px) {
  .heroBanner__bar {
    flex-direction: column;
    text-align: center;
    padding: 14px 18px;
  }
  .heroBanner__bar .btn {
    width: 100%;
    justify-content: center;
  }

  .cursoCard {
    min-width: 300px;
  }
}

@media (max-width: 480px) {
  .bannerHero__img {
    max-height: 280px;
  }

  .bannerHero__overlay h2 {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
  }

  .porqueSection .porqueGrid {
    grid-template-columns: 1fr;
  }

  .cursoCard {
    min-width: 260px;
  }

  .depCard {
    padding: 28px 20px 20px;
  }

  .depCard::before {
    font-size: 3.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery__item:hover,
  .gallery__item:nth-child(even):hover {
    transform: none;
  }

  .cursoCard:hover .cursoCard__img img {
    transform: none;
  }
}
