/* ============================================================
   Canal de Denúncias — styles
   Tokens: var(--color-fill), --background-item, --color-text,
           --color-headline, --color-text-contrast, --border-color,
           --color-theme, --color-theme-rgb
   Spacing: sections use .spacing / .spacing-fill-top from _global.scss
   ============================================================ */

/* ── Scroll-reveal states ── */
[data-reveal] {
  opacity: 0;
  transition: opacity .65s cubic-bezier(.22,.68,0,1.2),
              transform .65s cubic-bezier(.22,.68,0,1.2);
}
[data-reveal="fade-up"]   { transform: translateY(40px); }
[data-reveal="fade-down"] { transform: translateY(-24px); }
[data-reveal="fade-in"]   { transform: scale(.97); }
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ── Hero ── */
.cd-hero {
  position: relative;
  min-height: 580px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* subtle slow-zoom on the background */
.cd-hero::before {
  content: '';
  position: absolute;
  inset: -5%;
  background: inherit;
  background-size: cover;
  background-position: center;
  animation: cd-hero-zoom 18s ease-in-out infinite alternate;
}

@keyframes cd-hero-zoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

.cd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.5) 55%,
    rgba(0,0,0,.3) 100%
  );
  z-index: 1;
}

.cd-hero__content {
  position: relative;
  z-index: 2;
  padding-top: 3rem;
  padding-bottom: 4rem;
  max-width: 700px;
}

.cd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: rgba(var(--color-theme-rgb), .22);
  border: 1px solid rgba(var(--color-theme-rgb), .55);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.6rem;
  backdrop-filter: blur(6px);
}

.cd-hero__title {
  font-size: clamp(2.2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: -.02em;
}

.cd-hero__title span {
  color: var(--color-theme);
}

.cd-hero__desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  margin-bottom: 2.2rem;
  line-height: 1.7;
  max-width: 560px;
}

/* ── Pillars section — spacing from .spacing class ── */
.cd-pillars {
  background: var(--color-fill-secondary);
}

.cd-pillar {
  background: var(--background-item);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2.75rem 2.25rem 2.5rem;
  text-align: center;
  height: 100%;
  transition: transform .3s ease, box-shadow .3s ease;
}

.cd-pillar:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
}

.cd-pillar--featured {
  border-color: var(--color-theme);
  box-shadow: 0 0 0 1px var(--color-theme),
              0 10px 40px rgba(var(--color-theme-rgb), .18);
}

.cd-pillar__icon-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  background: rgba(var(--color-theme-rgb), .1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-theme);
  font-size: 2.6rem;
  transition: background .3s, color .3s, transform .3s;
}

.cd-pillar:hover .cd-pillar__icon-wrap {
  transform: scale(1.1) rotate(-4deg);
}

.cd-pillar--featured .cd-pillar__icon-wrap {
  background: var(--color-theme);
  color: #fff;
  animation: cd-pulse 2.8s ease-in-out infinite;
}

@keyframes cd-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--color-theme-rgb), .35); }
  50%       { box-shadow: 0 0 0 14px rgba(var(--color-theme-rgb), 0); }
}

.cd-pillar__title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-headline);
  margin-bottom: .65rem;
}

.cd-pillar__desc {
  font-size: .93rem;
  color: var(--color-text-contrast);
  line-height: 1.7;
  margin: 0;
}

/* ── Section headers ── */
.cd-section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.cd-section-header__sup {
  /* color comes from .text-default in HTML */
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.cd-section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-headline);
  margin-bottom: .85rem;
  letter-spacing: -.02em;
}

.cd-section-header__desc {
  color: var(--color-text-contrast);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: .97rem;
}

/* ── Topics section — spacing from .spacing class ── */
.cd-topics {
  background: var(--color-fill);
}

.cd-topic {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--background-item);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  height: 100%;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}

.cd-topic:hover {
  border-color: var(--color-theme);
  box-shadow: 0 6px 24px rgba(var(--color-theme-rgb), .1);
  transform: translateX(4px);
}

.cd-topic__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(var(--color-theme-rgb), .1);
  color: var(--color-theme);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  transition: background .25s, color .25s;
}

.cd-topic:hover .cd-topic__icon {
  background: var(--color-theme);
  color: #fff;
}

.cd-topic__label {
  font-size: .93rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.35;
}

/* ── Split section ── */
.cd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

@media (max-width: 767px) {
  .cd-split { grid-template-columns: 1fr; }
  .cd-split__image { min-height: 300px; }
}

.cd-split__image {
  background-size: cover;
  background-position: center;
}

.cd-split__content {
  background: var(--color-theme);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
}

@media (max-width: 991px) {
  .cd-split__content { padding: 2.5rem; }
}

.cd-split__icon {
  font-size: 3.2rem;
  margin-bottom: 1.4rem;
  opacity: .85;
  animation: cd-float 4s ease-in-out infinite;
}

@keyframes cd-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.cd-split__content h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.cd-split__content p {
  font-size: .97rem;
  opacity: .88;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.cd-split__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.cd-split__list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  font-weight: 500;
}

.cd-split__list li i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  flex-shrink: 0;
}

/* ── Form section — spacing from .spacing + .spacing-fill-bottom ── */
.cd-form-section {
  background: var(--color-fill-secondary);
}

.cd-form-card {
  background: var(--background-item);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 8px 60px rgba(0,0,0,.07);
}

@media (max-width: 575px) {
  .cd-form-card { padding: 2rem 1.5rem; }
}

/* Steps indicator */
.cd-form-steps {
  display: grid;
  grid-template-columns: 1fr min-content 1fr min-content 1fr;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2.5rem;
}

.cd-form-step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-text-contrast);
  text-align: center;
}

.cd-form-step__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(var(--color-theme-rgb), .12);
  color: var(--color-theme);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  flex-shrink: 0;
  border: 2px solid rgba(var(--color-theme-rgb), .25);
}

.cd-form-step__sep {
  height: 2px;
  width: 100%;
  min-width: 24px;
  background: var(--border-color);
}

.cd-form-card__note {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .82rem;
  color: var(--color-text-contrast);
  margin-top: 1.5rem;
  margin-bottom: 0;
  line-height: 1.55;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.cd-form-card__note i {
  margin-top: .1rem;
  flex-shrink: 0;
  color: var(--color-theme);
  font-size: 1rem;
}
