/* ==========================================================================
   Página CAULE — Central de Análise Universal de Licitações e Editais
   Reutiliza os tokens e componentes de style-v2.css
   ========================================================================== */

/* ---------- Hero ---------- */
.caule-hero {
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(169, 197, 32, .14), transparent 60%),
    linear-gradient(150deg, var(--green-950), var(--green-800));
  color: #fff;
  padding: calc(var(--header-h) + 48px) 0 72px;
}

.caule-hero__grid {
  display: grid;
  grid-template-columns: 1.35fr .85fr;
  gap: 3.5rem;
  align-items: center;
}

.caule-hero__award {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: linear-gradient(120deg, rgba(169, 197, 32, .2), rgba(169, 197, 32, .08));
  border: 1px solid rgba(169, 197, 32, .45);
  border-radius: 999px;
  padding: .45rem 1.1rem .45rem .6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  color: var(--lime-300);
}
.caule-hero__award svg { width: 26px; height: 26px; flex-shrink: 0; }

.caule-hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 1.2rem 0 1.1rem;
}
.caule-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lime-300), var(--lime-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.caule-hero__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
  margin-bottom: .4rem;
}
.caule-hero__name strong { color: var(--lime-300); }

.caule-hero__sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, .82);
  max-width: 620px;
  margin-bottom: 1.4rem;
}

.caule-hero__motto {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--lime-300);
  margin-bottom: 1.8rem;
}

.caule-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.caule-hero__stats { display: grid; gap: 1rem; }
.caule-stat {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.caule-stat strong {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--lime-300);
  min-width: 110px;
}
.caule-stat span { font-size: .87rem; color: rgba(255, 255, 255, .8); }

.btn--ghost-light {
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

/* ---------- O problema ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  max-width: 980px;
  margin: 0 auto;
}
.problem {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 4px solid #c9553f;
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
}
.problem h3 {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #a33d2e;
  margin-bottom: .7rem;
}
.problem h3 svg { width: 24px; height: 24px; flex-shrink: 0; }
.problem p { font-size: .95rem; color: var(--ink-soft); }
.problem strong { color: var(--green-900); }

.problem-note {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  max-width: 980px;
  margin: 1.8rem auto 0;
  background: linear-gradient(120deg, rgba(169, 197, 32, .12), rgba(169, 197, 32, .04));
  border: 1px solid rgba(143, 175, 27, .35);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  font-size: .96rem;
  color: var(--ink-soft);
}
.problem-note strong { color: var(--green-900); }
.problem-note svg { width: 28px; height: 28px; color: var(--green-700); flex-shrink: 0; }

/* ---------- O que o CAULE faz (steps escuros) ---------- */
.caule-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.caule-step {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem 1.6rem;
}
.caule-step__num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(120deg, var(--lime-500), var(--lime-400));
  color: var(--green-950);
  margin-bottom: .9rem;
}
.caule-step h3 { font-size: 1.04rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.caule-step p { font-size: .91rem; color: rgba(238, 243, 236, .8); }

.caule-quote {
  max-width: 900px;
  margin: 2rem auto 0;
  text-align: center;
  background: rgba(169, 197, 32, .12);
  border: 1px solid rgba(169, 197, 32, .35);
  border-radius: var(--radius);
  padding: 1.6rem 2rem;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, .9);
}
.caule-quote strong { color: var(--lime-300); }

/* ---------- Ganhos por perfil ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.audience {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.8rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.audience:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(169, 197, 32, .5); }
.audience--wide { grid-column: 1 / -1; }

.audience__head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.1rem;
}
.audience__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(26, 77, 46, .1), rgba(169, 197, 32, .18));
  color: var(--green-700);
}
.audience__icon svg { width: 24px; height: 24px; }
.audience h3 { font-size: 1.05rem; font-weight: 800; color: var(--green-900); }

.audience li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: .6rem;
  font-size: .93rem;
  color: var(--ink-soft);
}
.audience li::before {
  content: "";
  position: absolute;
  left: 0; top: .22rem;
  width: 17px; height: 17px;
  border-radius: 5px;
  background: rgba(169, 197, 32, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e6a3c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.audience li strong { color: var(--green-900); }

/* ---------- Efeito dissuasório (faixa) ---------- */
.deterrence {
  background: linear-gradient(120deg, var(--green-900), var(--green-800));
  color: rgba(255, 255, 255, .9);
  padding: 64px 0;
}
.deterrence__inner {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}
.deterrence__inner svg { width: 40px; height: 40px; color: var(--lime-300); margin-bottom: 1rem; }
.deterrence__inner h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}
.deterrence__inner p { font-size: 1.02rem; }
.deterrence__inner strong { color: var(--lime-300); }

/* ---------- Implantação: fases ---------- */
.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.2rem;
}
.phase {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  display: flex;
  flex-direction: column;
}
.phase--accent {
  background: linear-gradient(165deg, var(--green-900), var(--green-950));
  border-color: var(--green-800);
}

.phase__tag {
  align-self: flex-start;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--green-950);
  background: linear-gradient(120deg, var(--lime-400), var(--lime-300));
  border-radius: 999px;
  padding: .28rem .9rem;
  margin-bottom: .9rem;
}
.phase h3 { font-size: 1.08rem; font-weight: 800; color: var(--green-900); margin-bottom: .2rem; }
.phase__period {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  color: var(--ink-mute);
  margin-bottom: .8rem;
}
.phase p { font-size: .91rem; color: var(--ink-soft); }
.phase__todo {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .87rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  margin-top: 1.1rem;
}
.phase__todo strong { display: block; font-family: var(--font-head); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--green-700); margin-bottom: .3rem; }

/* fase com fundo escuro: especificidade dupla garante texto claro */
.phase.phase--accent h3 { color: #fff; }
.phase.phase--accent .phase__period { color: rgba(238, 243, 236, .65); }
.phase.phase--accent p, .phase.phase--accent .phase__todo { color: rgba(238, 243, 236, .82); }
.phase.phase--accent .phase__todo { border-top-color: rgba(255, 255, 255, .2); }
.phase.phase--accent .phase__todo strong { color: var(--lime-300); }

.phases-note {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  max-width: 980px;
  margin: 0 auto;
  background: var(--bg-alt);
  border-left: 4px solid var(--lime-400);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  font-size: .93rem;
  color: var(--ink-soft);
}
.phases-note svg { width: 26px; height: 26px; color: var(--green-700); flex-shrink: 0; }
.phases-note strong { color: var(--green-900); }

/* ---------- Pré-requisitos + modalidades ---------- */
.adopt-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.adopt-grid h3 { font-size: 1.2rem; font-weight: 800; color: var(--green-950); margin-bottom: 1.1rem; }

.modes { display: grid; gap: .9rem; }
.modes li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.05rem 1.3rem;
}
.modes strong { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--green-900); }
.modes span { font-size: .87rem; color: var(--ink-mute); }

/* ---------- Reconhecimento ---------- */
.award-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 3rem;
  align-items: center;
}
.award-grid figure { margin: 0; }
.award-grid img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  object-position: 50% 26%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.award-grid figcaption { margin-top: .6rem; font-size: .82rem; color: var(--ink-mute); text-align: center; }
.award-grid .section__title { margin: 0 0 1rem; }
.award-grid p { color: var(--ink-soft); margin-bottom: 1rem; }
.award-grid p strong { color: var(--green-900); }

/* ---------- CTA final ---------- */
.caule-cta {
  background:
    radial-gradient(ellipse 70% 60% at 10% 100%, rgba(169, 197, 32, .14), transparent 60%),
    linear-gradient(150deg, var(--green-950), var(--green-800));
  color: #fff;
  padding: 88px 0;
  text-align: center;
}
.caule-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 1rem; }
.caule-cta p { color: rgba(255, 255, 255, .82); max-width: 640px; margin: 0 auto 1.8rem; }
.caule-cta strong { color: var(--lime-300); }
.caule-cta__motto {
  margin-top: 2.2rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: rgba(255, 255, 255, .65);
}

/* ---------- Infográficos SVG inline ---------- */
.caule-fig {
  max-width: 900px;
  margin: 2.5rem auto;
}
.caule-fig svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.caule-fig figcaption {
  margin-top: .7rem;
  font-size: .84rem;
  color: var(--ink-mute);
  text-align: center;
}
.section--dark .caule-fig svg {
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .55);
}
.section--dark .caule-fig figcaption { color: rgba(238, 243, 236, .7); }
.audience-grid .caule-fig { grid-column: 1 / -1; width: 100%; margin: .5rem auto; }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .caule-hero__grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .caule-hero__stats { grid-template-columns: repeat(3, 1fr); }
  .caule-steps { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .adopt-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .award-grid { grid-template-columns: 1fr; gap: 2rem; }
  .award-grid img { max-height: 420px; }
}

@media (max-width: 700px) {
  .caule-hero__stats { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
}
