/* ==========================================================
   Colégio ECCOS — Hero principal
   Depende das variáveis definidas em header.css
   ========================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 8% 0%, var(--turquesa-claro), transparent 70%),
    var(--gelo);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 56px;
  padding-top: 56px;
  padding-bottom: 72px;
}

/* ---------- Texto ---------- */
.hero__selo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 16px 8px 10px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--azul-profundo);
  background: var(--branco);
  border: 1px solid var(--linha);
  border-radius: 999px;
}
.hero__selo svg {
  width: 26px; height: 26px; padding: 5px;
  border-radius: 50%;
  background: var(--sol);
  color: var(--azul-profundo);
}

.hero h1 {
  margin: 0 0 20px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: clamp(2.1rem, 3.9vw, 3.15rem);
  line-height: 1.07;
  letter-spacing: -.015em;
  color: var(--azul-profundo);
  max-width: 17em;
}
.hero__texto {
  margin: 0 0 32px;
  max-width: 52ch;
  font-size: 1.15rem;
  line-height: 1.65;
  color: #3d5273;
}

.hero__acoes { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }

.btn--secundario {
  background: var(--branco);
  color: var(--azul);
  border-color: var(--azul);
}
.btn--secundario:hover { background: var(--azul); color: var(--branco); transform: translateY(-1px); }
.hero .btn { padding: 15px 30px; font-size: 16.5px; }

.hero__pontos {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--azul-profundo);
}
.hero__pontos li { display: inline-flex; align-items: center; gap: 9px; }
.hero__pontos svg {
  width: 22px; height: 22px; padding: 4px;
  border-radius: 50%;
  background: var(--turquesa);
  color: var(--branco);
}

/* ---------- Mosaico bilíngue ---------- */
.mosaico {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 14px;
  aspect-ratio: 1 / 1.02;
  max-width: 560px;
  margin-left: auto;
  width: 100%;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 16px;
  border-radius: 22px;
  color: var(--branco);
  animation: entra .6s cubic-bezier(.2,.8,.3,1) both;
  animation-delay: calc(var(--i, 0) * 70ms + 150ms);
}
@keyframes entra {
  from { opacity: 0; transform: scale(.85) translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* espaços para fotos reais */
.tile--foto {
  background:
    linear-gradient(160deg, rgba(10,47,107,.0) 40%, rgba(10,47,107,.55)),
    var(--fundo, var(--azul));
}
.tile--foto::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 12px, transparent 12px 24px);
}
.tile--foto .tile__rotulo {
  position: relative;
  align-self: flex-start;
  padding: 5px 12px;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 8px;
  background: var(--turquesa-escuro);
}
.tile--grande { grid-column: span 2; grid-row: span 2; }
.tile--grande .tile__rotulo { font-size: 15px; padding: 7px 14px; }

/* azulejos de palavras: o toque bilíngue */
.tile--palavra {
  justify-content: space-between;
  font-family: var(--fonte-titulo);
}
.tile--palavra .pt { font-size: clamp(1.05rem, 1.9vw, 1.45rem); font-weight: 800; line-height: 1; }
.tile--palavra .en { font-size: clamp(.9rem, 1.5vw, 1.05rem); font-weight: 500; }
.tile--palavra svg { width: 32px; height: 32px; opacity: .9; }

.tile--azul   { background: var(--azul); }
.tile--coral  { background: var(--coral-botao); }
.tile--sol    { background: var(--sol); color: var(--azul-profundo); }
.tile--turq   { background: var(--turquesa-escuro); }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 44px;
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .mosaico { margin-inline: auto; max-width: 520px; }
}
@media (max-width: 480px) {
  .hero__acoes .btn { width: 100%; }
  .mosaico { gap: 10px; }
  .tile { padding: 12px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile { animation: none; }
}
