/* home.css v2 — linguagem editorial de consultoria B2B */

/* ===== HERO — foto + overlay escuro + barra de stats ===== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(29,22,86,0.85) 0%,
    rgba(29,22,86,0.60) 50%,
    rgba(29,22,86,0.40) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: calc(var(--topbar-height) + var(--header-height) + 40px) 2rem 60px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.hero-text { max-width: 640px; }
.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  display: block;
}
.hero-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin: 0 0 1.5rem;
}
.hero-accent { color: var(--color-purple-light); }
.hero-line {
  width: 56px;
  height: 3px;
  background: var(--color-purple-main);
  margin: 0 0 1.5rem;
}
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.75;
  margin: 0 0 2.5rem;
  max-width: 520px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}
.btn-hero-primary {
  background: var(--color-purple-main);
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.btn-hero-primary:hover { background: var(--color-purple-light); transform: translateY(-1px); }
.btn-hero-ghost {
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  transition: border-color 0.2s;
}
.btn-hero-ghost:hover { border-color: white; }

.hero .btn-ghost {
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  transition: border-color 0.2s;
}
.hero .btn-ghost:hover {
  border-bottom-color: white;
  color: white;
}

/* Barra de stats integrada no hero */
.hero-stats-bar {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
  margin-top: auto;
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-stat {
  padding: 28px 2rem;
  border-right: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat:last-child { border-right: none; }
.hstat-num {
  font-size: 32px;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.hstat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

@media (max-width: 768px) {
  .hero-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { padding: 20px 1rem; }
  .hstat-num { font-size: 24px; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ===== NÚMEROS DE IMPACTO — colunas com divisórias, sem cards ===== */
.section-numbers {
  background: var(--color-purple-dark);
  padding: var(--section-py) 0;
}

.numbers-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.number-col {
  padding: 2.5rem var(--space-xl);
  border-right: 1px solid rgba(255,255,255,0.15);
  text-align: left;
}
.number-col:last-child { border-right: none; }

.number-val {
  display: block;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 0.4rem;
}

.number-label {
  display: block;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.25rem;
  font-weight: 400;
}

.number-context {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
}

/* ===== SERVIÇOS — LISTA EDITORIAL ===== */
.section-services {
  background: var(--color-white);
}

.services-list {
  margin-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.service-row {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: none;
  text-decoration: none;
  cursor: default;
}

.service-row:hover .service-ordinal { color: var(--color-purple-main); }
.service-row:hover .service-title   { color: var(--color-purple-main); }

.service-ordinal {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-border);
  line-height: 1;
  width: 64px;
  flex-shrink: 0;
  transition: color var(--transition-base);
}

.service-main {
  flex: 1;
}

.service-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.35rem;
  transition: color var(--transition-base);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 560px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-purple-main);
  white-space: nowrap;
  transition: gap var(--transition-fast);
  margin-left: auto;
  flex-shrink: 0;
}
.service-row:hover .service-link { gap: 0.6rem; }

/* ===== POR QUE A EVOPRO — foto + lista ===== */
.por-que { background: var(--color-off-white); }
.pq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.pq-image {
  position: relative;
  border-radius: 8px;
  overflow: visible;
}
.pq-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  object-position: right center;
}
.pq-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--color-purple-main);
  color: white;
  border-radius: 8px;
  padding: 20px 24px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 8px 32px rgba(91,54,173,0.3);
}
.pq-badge-num {
  display: block;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}
.pq-badge-text {
  display: block;
  font-size: 12px;
  opacity: 0.85;
  margin-top: 4px;
}
.pq-intro {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0 0 2rem;
}
.pq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.pq-list li {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}
.pq-list li:first-child { border-top: 1px solid var(--color-border); }
.pq-check {
  min-width: 28px;
  height: 28px;
  background: var(--color-purple-pale);
  color: var(--color-purple-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
  flex-shrink: 0;
}
.pq-list strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 4px;
}
.pq-list p { font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin: 0; }
.pq-list a { color: var(--color-purple-main); text-decoration: none; }
.pq-list a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .pq-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pq-badge { bottom: -16px; right: 16px; }
}

/* ===== DEPOIMENTOS ===== */
.section-testimonials {
  background: var(--color-white);
}

/* ===== QUEM SOMOS — teaser fundadoras com fotos ===== */
.quem-somos { background: var(--color-off-white); }
.founders-teaser {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem;
  align-items: start;
  margin: 3rem 0 2.5rem;
}
.founder-divider {
  width: 1px;
  background: var(--color-border);
  align-self: stretch;
}
.founder-teaser-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.founder-teaser-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
  border: 3px solid var(--color-purple-pale);
}
.founder-teaser-info h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-text-dark);
  margin: 0 0 4px;
}
.founder-role {
  font-size: 12px;
  color: var(--color-purple-main);
  font-weight: 500;
  margin: 0 0 .75rem;
  display: block;
}
.founder-teaser-info p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin: 0;
}
.founders-link { text-align: center; }
.founders-link a {
  color: var(--color-purple-main);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  border-bottom: 1px solid var(--color-purple-main);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.founders-link a:hover { opacity: 0.7; }
@media (max-width: 768px) {
  .founders-teaser { grid-template-columns: 1fr; }
  .founder-divider { display: none; }
}

/* ===== CTA FINAL — diferenciado do footer ===== */
.section-cta-final {
  background: var(--color-purple-main);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.cta-divider {
  background: rgba(255,255,255,0.2);
  width: 1px;
  height: 100%;
  min-height: 200px;
}

.cta-left h2 {
  color: var(--color-white);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  margin-bottom: 0.75rem;
}

.cta-left p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
}

.cta-form { display: flex; flex-direction: column; gap: 0.75rem; }

.cta-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--color-white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
.cta-form input::placeholder { color: rgba(255,255,255,0.45); }
.cta-form input:focus { border-color: rgba(255,255,255,0.5); }

.cta-form-footer {
  margin-top: 0.5rem;
}

.cta-form-footer a {
  color: rgba(255,255,255,0.6);
  font-size: 0.8125rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: color var(--transition-fast);
}
.cta-form-footer a:hover { color: var(--color-white); }

.por-que-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.cta-form-success {
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: rgba(255,255,255,0.9);
  padding: 1.5rem 0;
}
.cta-success-icon {
  width: 48px;
  height: 48px;
  background: var(--color-success);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ===== SEGMENTOS / SETORES ATENDIDOS ===== */
.section-logos {
  padding: 3rem 0;
  background: var(--color-off-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.logos-label {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}
.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.segment-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.segment-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.segment-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--color-purple-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-purple-main);
}
.segment-name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-dark);
}
.segment-location {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.logos-total {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}
.logos-total strong { color: var(--color-purple-main); font-weight: 700; }

/* ===== RESPONSIVIDADE HOME ===== */
@media (max-width: 1024px) {
  .numbers-cols { grid-template-columns: 1fr 1fr; }
  .number-col:nth-child(2) { border-right: none; }
  .number-col:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.15); }
}

@media (max-width: 768px) {
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(29, 22, 86, 0.80) 0%,
      rgba(29, 22, 86, 0.75) 60%,
      rgba(29, 22, 86, 0.65) 100%
    );
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: var(--space-xl) var(--space-sm);
  }
  .hero-ghost { display: none; }
  .hero-actions { flex-direction: column; align-items: flex-start; }

  .numbers-cols { grid-template-columns: 1fr 1fr; }

  .service-ordinal { display: none; }
  .service-link { display: none; }

  .why-grid { grid-template-columns: 1fr; border-left: none; }
  .why-block { border-right: none; }

  .founders-duo { grid-template-columns: 1fr; }
  .founder-block:first-child { border-right: none; border-bottom: 1px solid var(--color-border); }

  .cta-grid { grid-template-columns: 1fr; gap: var(--space-xl); }
  .cta-divider { display: none; }

  .segments-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== CORREÇÕES MOBILE ===== */

/* FIX 1 — Hero title: evitar quebra silábica em 390px */
@media (max-width: 480px) {
  .hero-title {
    font-size: clamp(1.8rem, 7vw, 3.5rem);
    line-height: 1.2;
  }
  .hero-sub { font-size: 15px; }
}

/* FIX 3 — Stats grid: reduzir numerais em telas muito pequenas */
@media (max-width: 480px) {
  .hero-stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-stat { padding: 16px 0.75rem; }
  .hstat-num { font-size: 20px; }
  .number-val { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .number-col { padding: 1.5rem 1rem; }
  .segments-grid { grid-template-columns: 1fr; }
}

/* FIX 4 — Seção fundadoras: evitar corte de texto */
@media (max-width: 600px) {
  .founder-teaser-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .founder-teaser-photo { width: 64px; height: 64px; }
  .founder-teaser-info {
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .founder-teaser-info h3,
  .founder-role,
  .founder-teaser-info p {
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
  }
}

/* ===== AVAILABILITY NOTICE — urgência sutil ===== */
.availability-notice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1rem;
}
.dot-pulse {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  animation: dot-pulse-anim 1.5s infinite;
}
@keyframes dot-pulse-anim {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

/* ===== TESTIMONIALS — avatares aprimorados ===== */
.testimonial-meta .avatar {
  width: 52px;
  height: 52px;
  font-size: 1rem;
}
.testimonial-meta .avatar-grad-1 {
  background: linear-gradient(135deg, #1d1656 0%, #5b36ad 100%);
  color: white;
}
.testimonial-meta .avatar-grad-2 {
  background: linear-gradient(135deg, #5b36ad 0%, #9f7ef0 100%);
  color: white;
}
.testimonial-meta .avatar-grad-3 {
  background: linear-gradient(135deg, #312378 0%, #7f6bc4 100%);
  color: white;
}
.testimonial-meta-info strong {
  font-weight: 700;
  font-size: 0.9rem;
}
.testimonial-meta-info span {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.testimonial-segment-icon {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-weight: 500;
}
.testimonial-segment-icon svg { color: var(--color-purple-light); }
