/* ==========================================
   PÁGINA DE CLUSTER — TCC E COGNIÇÃO
   V4.2 — hero off-white + overlay escuro leve + listagem
   Complementa o style.css da homepage.
========================================== */

.cluster-page {
  --cluster-taupe: #f1eee9;
  --hero-shift: 0px;
  background: var(--soft-white);
}

.cluster-page .submenu a[aria-current="page"] {
  opacity: 1;
  font-weight: 500;
}

/* ==========================================
   HERO EDITORIAL
========================================== */

.cluster-hero {
  position: relative;
  min-height: 54svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--soft-white);
  padding: 96px 24px 54px;
}

.cluster-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -6% 0;
  background-image: url("../../assets/clusters/psicoterapia-hero-mobile.webp");
  background-size: cover;
  background-position: center calc(50% + var(--hero-shift));
  background-repeat: no-repeat;
  filter: grayscale(.18) saturate(.82) contrast(.96);
  transform: scale(1.035);
  opacity: .88;
  will-change: background-position;
}

.cluster-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(34,34,34,.16) 0%,
      rgba(34,34,34,.20) 48%,
      rgba(34,34,34,.24) 100%
    );
}

.cluster-hero-inner,
.cluster-list {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.cluster-hero-inner {
  position: relative;
  z-index: 1;
  text-align: left;
  transform: translateY(1.5vh);
}

.cluster-title {
  max-width: 690px;
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.85rem, 12vw, 4.25rem);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.04em;
  text-wrap: balance;
  color: var(--soft-white);
  text-shadow: 0 1px 12px rgba(0,0,0,.16);
}

.cluster-intro {
  max-width: 590px;
  margin: 22px 0 0;
  font-size: clamp(.96rem, 3.8vw, 1.06rem);
  line-height: 1.66;
  font-weight: 300;
  text-wrap: balance;
  color: rgba(248,248,245,.90);
  text-shadow: 0 1px 10px rgba(0,0,0,.14);
}

/* ==========================================
   LISTAGEM EDITORIAL
========================================== */

.cluster-list-section {
  background: var(--soft-white);
  padding: 62px 24px 56px;
}

.cluster-list {
  border-top: 1px solid rgba(84,84,84,.22);
}

.cluster-entry {
  border-bottom: 1px solid rgba(84,84,84,.18);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .68s ease,
    transform .68s cubic-bezier(.22,.61,.36,1);
}

.cluster-entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cluster-entry-link {
  position: relative;
  display: block;
  padding: 34px 0 36px;
  color: inherit;
  text-decoration: none;
}

.cluster-entry h2 {
  max-width: 680px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 8.5vw, 2.55rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.025em;
  transition: opacity .25s ease, transform .3s cubic-bezier(.22,.61,.36,1);
}

.cluster-entry p {
  max-width: 650px;
  margin-top: 15px;
  font-size: clamp(.95rem, 3.9vw, 1.02rem);
  line-height: 1.68;
  font-weight: 300;
  opacity: .82;
  transition: opacity .25s ease;
}

.cluster-entry-link:focus-visible {
  outline: 1px solid rgba(84,84,84,.48);
  outline-offset: 8px;
}

@media (hover: hover) {
  .cluster-entry-link:hover h2 {
    opacity: .68;
    transform: translateX(4px);
  }

  .cluster-entry-link:hover p {
    opacity: .68;
  }
}

/* ==========================================
   FECHAMENTO / FOOTER EM TAUPE CLARO
========================================== */

.cluster-page .contact-section {
  position: relative;
  background: var(--cluster-taupe);
  border-top: 1px solid rgba(84,84,84,.10);
}

.cluster-page .contact-social-links,
.cluster-page .contact-social-links a,
.cluster-page .contact-signature {
  border-color: rgba(84,84,84,.18);
}

/* ==========================================
   RESPONSIVO
========================================== */

@media (min-width: 700px) {
  .cluster-hero {
    min-height: 62svh;
    padding: 116px 48px 72px;
  }

  .cluster-hero-inner {
    text-align: center;
    transform: translateY(-1vh);
  }

  .cluster-title {
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(4rem, 8vw, 5.45rem);
  }

  .cluster-intro {
    margin: 26px auto 0;
  }

  .cluster-list-section {
    padding: 72px 48px 64px;
  }

  .cluster-entry-link {
    padding: 42px 0 44px;
  }

  .cluster-entry p {
    max-width: 590px;
    margin-top: 16px;
  }
}

@media (min-width: 900px) {
  .cluster-hero::before {
    background-image: url("../../assets/clusters/psicoterapia-hero-desktop.webp");
    background-position: center calc(50% + var(--hero-shift));
  }
}

@media (min-width: 1024px) {
  .cluster-hero {
    min-height: 68svh;
    padding: 132px 56px 88px;
  }

  .cluster-hero-inner {
    transform: none;
  }

  .cluster-hero-inner,
  .cluster-list {
    max-width: 920px;
  }

  .cluster-title {
    max-width: none;
    white-space: nowrap;
    font-size: clamp(4.4rem, 6.2vw, 5.9rem);
  }

  .cluster-intro {
    max-width: 650px;
    margin-top: 30px;
  }

  .cluster-list-section {
    padding-top: 84px;
    padding-bottom: 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cluster-hero::before {
    background-position: center;
    will-change: auto;
  }

  .cluster-entry {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .cluster-entry h2,
  .cluster-entry p {
    transition: none;
  }
}
