/* O CSS crítico foi movido para o HTML. Este arquivo agora contém os estilos não essenciais para a primeira renderização. */

/* Estilos que já estavam no style.css e não são críticos */
.social-top a {
  --hover-color: #18e94c;
  color: var(--hover-color);
  margin-left: 1rem;
  font-size: 2rem;
  transition: color 0.3s;
}

.social-top a:hover {
  color: #fff;
}

.box {
  position: relative;
  border-radius: 10px;
  padding: 1rem;
  height: 150px;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background-size: 230% auto;
  background-position: center;
  z-index: 0;
  margin-top: 0.8rem;
}

.box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.box .content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.box.open .content {
  opacity: 1;
}

.floating {
  /* A regra principal já está no CSS crítico */
  animation: float 3s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateX(-50%) rotateY(-5deg); }
  100% { transform: translateX(-50%) rotateY(5deg); }
}

@keyframes bg-move {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.box.open {
  grid-column: span 2;
  height: 180px;
  background-size: 170% auto;
  animation: bg-move 10s linear infinite;
  position: relative;
  z-index: 2;
}

.expand-content {
  display: none;
  margin-top: 0.5rem;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.box.open .expand-content { display: flex; }
.expand-content .text { font-size: 0.9rem; color: #ccc; flex: 1; }
.links { display: none; justify-content: space-between; gap: 1rem; margin-top: auto; }
.box.open .links { display: flex; }
.links a:hover { filter: brightness(0.95); }
.links a.whatsapp:hover { background: #1ebe5d; }
.links a.telegram:hover { background: #0074b1; }
.box:not(.open).shrunk { opacity: 0.5; transform: scale(0.95); transition: all 0.4s ease; }
.box.hidden-by-js { display: none; }

/* FOOTER */
.footer {
  background: #222;
  color: #ccc;
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 2px solid #333;
}
.footer p { margin-bottom: 1.5rem; }
.footer .social-top a {
    font-size: 1.8rem;
}

/* MEDIA QUERIES */
/* === Smartphones === */
@media (max-width: 767px) {
  .geral-card-static .floating { font-size: 0.85rem; padding: 4px 10px; top: -14px; }
  .geral-card-static .links { flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; }
  .geral-card-static .links a { font-size: 1rem; padding: 10px; }
  .intro-text { font-size: 1.1rem; padding: 0 1rem; }
  .box { height: 140px; padding: 0.7rem; }
  .box .floating { font-size: 0.8rem; padding: 4px 8px; top: -14px; }
  .box.open { grid-column: span 2; height: 200px; }
}
/* === Tablets e celulares grandes === */
@media (min-width: 768px) and (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .box { height: 160px; }
  .box.open { grid-column: span 3; height: 220px; }
}
/* === Notebooks e telas menores === */
@media (min-width: 1025px) and (max-width: 1440px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .box { height: 160px; }
  .box.open { grid-column: span 2; height: 220px; }
}
/* === Monitores médios até 1919px === */
@media (min-width: 1441px) and (max-width: 1919px) {
  .grid { grid-template-columns: repeat(5, 1fr); }
  .box { height: 170px; }
  .box.open { grid-column: span 2; height: 220px; }
}