:root {
  --green: #2e8b57;
  --green-dark: #256b45;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: #f0f0e8;
  padding: 1rem;
  color: #333;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}
.logo {
  max-width: 180px;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(1.25rem, 2.2vw + 1rem, 2rem);
  color: var(--green);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}
.sub {
  font-size: 0.98rem;
  color: #666;
  margin-top: 0.5rem;
}

/* ====== ENCARTE (PDFs) ====== */
.lista-pdfs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pdf-thumb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.pdf-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-link {
  /* link invisível (mobile); no desktop não intercepta cliques */
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 12px;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
  pointer-events: none;
}
.card-link:focus {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.pdf-desktop {
  width: 100%;
}
.pdf-preview {
  width: 100%;
  height: 420px; /* altura padrão */
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

/* Aumenta a altura SÓ no desktop */
@media (min-width: 1024px) {
  .pdf-preview {
    height: 650px;
  } /* ajuste aqui o valor desejado */
}

.pdf-mobile {
  display: none;
  width: 100%;
}
.pdf-cover {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  margin-bottom: 0.75rem;
  max-height: 65vh;
  object-fit: contain;
}
.pdf-mobile-card {
  width: 100%;
  height: 160px;
  border: 1px dashed #bbb;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  color: #666;
  background: #fafafa;
  margin-bottom: 0.75rem;
}
.pdf-mobile-card i {
  font-size: 2rem;
  color: #c0392b;
}

/* ====== IMAGENS DESTAQUE ====== */
.produtos-destaque {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
}
.img-preview {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  margin-bottom: 0.75rem;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s;
}
.img-preview:hover {
  transform: scale(1.02);
}
.img-horizontal {
  grid-column: 1 / -1;
} /* horizontais ocupam a linha toda */
.img-vertical .img-preview {
  width: 100%;
  height: auto;
}

/* ====== TÍTULOS ====== */
.titulo-link,
.titulo-link:visited {
  position: relative;
  z-index: 6;
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-weight: 700;
  font-size: clamp(0.95rem, 1vw + 0.8rem, 1.05rem);
  letter-spacing: 0.2px;
  color: var(--green);
  text-decoration: none;
  display: inline-block;
  margin-top: 0.25rem;
  transition: color 0.2s, transform 0.2s;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}
.titulo-link:hover {
  color: var(--green-dark);
  transform: translateY(-1px);
}

.titulo-card {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  font-size: clamp(0.92rem, 1vw + 0.7rem, 1rem);
  font-weight: 600;
  margin-top: 0.25rem;
  text-align: center;
  color: var(--green);
}

/* ====== TÍTULO DA SEÇÃO ====== */
.nenhum {
  text-align: center;
  font-style: italic;
  color: #888;
  font-size: 1rem;
}
.titulo-secundario {
  text-align: center;
  margin: 3rem 0 1rem;
  font-size: clamp(1.1rem, 1.4vw + 0.9rem, 1.6rem);
  color: #d2691e;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

/* ====== MOLDURA ANIMADA (sem giro) ====== */
.destaque-frame {
  position: relative;
  isolation: isolate;
  margin: 0 auto 2rem;
  max-width: 1200px;
  border-radius: 18px;
  padding: 1px; /* espessura da borda */
  background: linear-gradient(120deg, #2e8b57, #4b9f6a, #c7d083, #2e8b57);
  background-size: 300% 300%;
  animation: borderMove 6s linear infinite;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08); /* sombra base */
}
/* glow colorido que acompanha a borda */
.destaque-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 26px;
  background: inherit;
  background-size: inherit;
  animation: inherit;
  filter: blur(24px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}
.destaque-inner {
  border-radius: 16px;
  background: #ffffffcc;
  backdrop-filter: saturate(140%) blur(0px);
  padding: 1rem;
}
@keyframes borderMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ====== RODAPÉ & WHATS ====== */
footer {
  margin-top: 3rem;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}
.whatsapp-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #25d366;
  color: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: background 0.3s;
  display: flex;
  align-items: center;
}
.whatsapp-btn i {
  margin-right: 8px;
  font-size: 1.3rem;
}
.whatsapp-btn:hover {
  background: #1da851;
}

/* ====== BREAKPOINTS ====== */
@media (max-width: 900px) {
  .produtos-destaque {
    grid-template-columns: 1fr;
  } /* mobile: 1 por linha */
}
@media (max-width: 768px) {
  .lista-pdfs {
    grid-template-columns: 1fr;
  }
  .pdf-desktop {
    display: none;
  }
  .pdf-mobile {
    display: block;
  }
  .card-link {
    pointer-events: auto;
  } /* no mobile o card inteiro vira link */
}
@media (max-width: 480px) {
  body {
    padding: 0.75rem;
  }
  .logo {
    max-width: 150px;
  }
  .sub {
    font-size: 0.92rem;
  }
  .pdf-thumb {
    padding: 0.85rem;
    border-radius: 10px;
  }
  .pdf-mobile-card {
    height: 140px;
  }
  .lista-pdfs,
  .produtos-destaque {
    gap: 1rem;
  }
  .whatsapp-btn {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
  }
  .whatsapp-btn i {
    font-size: 1.15rem;
    margin-right: 6px;
  }
}
@media (max-width: 360px) {
  body {
    padding: 0.6rem;
  }
  .logo {
    max-width: 130px;
  }
  .pdf-thumb {
    padding: 0.7rem;
    border-radius: 9px;
  }
  .lista-pdfs,
  .produtos-destaque {
    gap: 0.75rem;
  }
  .pdf-mobile-card {
    height: 130px;
  }
  .whatsapp-btn {
    right: 12px;
    bottom: 12px;
    padding: 9px 12px;
  }
  .whatsapp-btn i {
    font-size: 1rem;
    margin-right: 6px;
  }
}

/* acessibilidade: menos animação */
@media (prefers-reduced-motion: reduce) {
  .pdf-thumb,
  .img-preview,
  .titulo-link {
    transition: none;
  }
  .destaque-frame {
    animation: none;
  }
  .destaque-frame::before {
    display: none;
  }
}
