/**
 * style-front.css
 * CSS overlay da Home institucional (front-page.php).
 * Mobile-first: regras default são p/ celular; breakpoints sobem.
 */

/* ============ HERO ============ */
.home-front-hero {
  background: #fef0e6; /* tom creme do mockup */
  position: relative;
}
.home-front-hero__slide {
  outline: none;
}
.home-front-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 20px;
}
.home-front-hero__text {
  order: 2;
  padding: 24px 4px 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.home-front-hero__title {
  font-family: "Anton", "Open Sans", "Impact", sans-serif;
  font-weight: 400; /* Anton só tem 400, mas é desenhada como display heavy */
  text-transform: uppercase;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0;
  color: #1a1a1a;
  margin: 0 0 28px;
}
.home-front-hero__cta {
  display: inline-block;
  align-self: flex-end; /* empurra pra direita dentro do flex column do __text */
  background: #d36c87;
  color: #1a1a1a !important; /* texto preto, igual ao print */
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: 8px;
  border: 0;
  box-shadow: 0 4px 0 #a14e75, 0 6px 14px rgba(0, 0, 0, 0.15);
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.home-front-hero__cta:hover {
  transform: translateY(1px);
  box-shadow: 0 3px 0 #a14e75, 0 4px 10px rgba(0, 0, 0, 0.18);
}
.home-front-hero__cta:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #a14e75, 0 2px 6px rgba(0, 0, 0, 0.18);
}
.home-front-hero__image {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.home-front-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  max-width: none;
}

/* slick dots */
.home-front-hero .slick-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0;
  margin: 0;
  list-style: none;
}
.home-front-hero .slick-dots li {
  display: inline-block;
  margin: 0 6px;
}
.home-front-hero .slick-dots li {
  margin: 0 8px;
}
.home-front-hero .slick-dots button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d9c8be;
  border: 0;
  font-size: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.home-front-hero .slick-dots button:hover {
  background: #a14e75;
}
.home-front-hero .slick-dots .slick-active button {
  background: #d36c87;
  transform: scale(1.15);
}

/* tablet */
@media (min-width: 768px) {
  .home-front-hero__inner {
    flex-direction: row;
    align-items: stretch;
    padding: 0; /* sem padding: imagem encosta nas bordas */
    max-width: none;
    margin: 0;
    gap: 0;
  }
  .home-front-hero__text {
    order: 1;
    flex: 0 0 38%;
    text-align: left;
    padding: 32px 24px 48px 32px; /* respiro só do lado do texto */
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .home-front-hero__image {
    order: 2;
    flex: 1 1 62%;
    align-self: stretch;
  }
  .home-front-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
  }
  .home-front-hero__title {
    font-size: 4.2rem;
    line-height: 1;
    letter-spacing: 0;
  }
  .home-front-hero .slick-dots {
    bottom: 24px;
  }
}

/* desktop */
@media (min-width: 1200px) {
  .home-front-hero__inner {
    min-height: 540px;
  }
  .home-front-hero__text {
    padding: 64px 32px 64px 64px;
  }
  .home-front-hero__title {
    font-size: 5.2rem;
    line-height: 1;
    letter-spacing: 0;
  }
}

/* ============ CARDS ============ */
.home-front-cards {
  padding: 32px 0 48px;
  background: #fff;
}
.home-front-cards__heading {
  font-family: "Pacifico", "Open Sans", cursive;
  color: #a14e75;
  text-align: center;
  font-size: 1.25rem;
  line-height: 1.35;
  margin: 0 12px 28px;
  font-weight: normal;
}
.home-front-cards__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.home-front-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none !important;
  color: inherit;
  text-align: center;
}
.home-front-card:hover {
  color: inherit;
}
.home-front-card:hover .home-front-card__image {
  transform: translateY(-3px);
}
.home-front-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.home-front-card:hover .home-front-card__image {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
}
.home-front-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-front-card__label {
  margin-top: 16px;
  font-family: "Open Sans", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #2a1a2a;
  transition: color 0.2s ease;
}
.home-front-card:hover .home-front-card__label {
  color: #d36c87;
}

@media (min-width: 576px) {
  .home-front-cards__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .home-front-cards__heading {
    font-size: 1.5rem;
  }
}
@media (min-width: 992px) {
  .home-front-cards__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
  }
  .home-front-cards {
    padding: 56px 0 80px;
  }
  .home-front-cards__heading {
    font-size: 1.75rem;
    margin-bottom: 44px;
  }
}

/* ============ POSTS (Diário Mental) ============ */
.home-front-posts {
  background: #faf5f0;
  padding: 48px 0;
}
.home-front-posts__head {
  text-align: center;
  margin-bottom: 32px;
}
.home-front-posts__heading {
  font-family: "Pacifico", "Open Sans", cursive;
  color: #a14e75;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0;
  font-weight: normal;
}
.home-front-posts__sub {
  display: block;
  font-family: "Open Sans", sans-serif;
  font-size: 0.85rem;
  color: #6b5a6b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  font-weight: 700;
}
.home-front-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.home-front-post {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-front-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  color: inherit;
}
.home-front-post__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f0e9e3 center / cover no-repeat;
}
.home-front-post__thumb--empty {
  background: linear-gradient(135deg, #f0e9e3 0%, #e8ded5 100%);
}
.home-front-post__info {
  padding: 20px 22px 22px;
}
.home-front-post__category {
  display: inline-block;
  background: #d36c87;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.home-front-post__category.eventos { background: #d36c87; }
.home-front-post__category.origens { background: #8a3b58; }
.home-front-post__category.geral   { background: #5a8b6b; }
.home-front-post__category.videos,
.home-front-post__category.video   { background: #5e5e8a; }
.home-front-post__title {
  font-family: "Open Sans", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #2a1a2a;
  margin: 0 0 8px;
}
.home-front-post__excerpt {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #555;
  margin: 0 0 12px;
}
.home-front-post__date {
  display: block;
  font-size: 0.78rem;
  color: #999;
}
.home-front-posts__cta {
  text-align: center;
}

@media (min-width: 576px) {
  .home-front-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .home-front-posts {
    padding: 64px 0 80px;
  }
  .home-front-posts__heading {
    font-size: 2rem;
  }
  .home-front-posts__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 40px;
  }
}

/* ============ EMPTY STATE ============ */
.home-front-empty {
  padding: 80px 16px;
  text-align: center;
}
.home-front-empty p {
  font-size: 1.05rem;
  color: #555;
}
