/* ============================================================================
   P8 Venture Builder — vb-pages.css
   Versão 1.0 — estilos complementares para páginas internas
   (contacto, programas, FAQ, sobre, investidores, founders)
   ============================================================================ */

/* ============================================================
   1. FORMULÁRIO DE CONTACTO
   ============================================================ */

.vb-contact-form {
  display: grid;
  gap: 24px;
  margin-top: 48px;
}

/* Seletor de perfil (radio buttons com visual de pill) */
.vb-perfil {
  border: 1px solid var(--line);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: var(--panel);
  position: relative;
}
@media (max-width: 700px) {
  .vb-perfil { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .vb-perfil { grid-template-columns: 1fr; }
}
.vb-perfil legend {
  position: absolute;
  top: -12px;
  left: 24px;
  padding: 0 12px;
  background: var(--bg);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.vb-perfil label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}
.vb-perfil label:hover {
  border-color: var(--mute);
}
.vb-perfil input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid var(--line);
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  cursor: pointer;
}
.vb-perfil input[type="radio"]:checked {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--bg);
}
.vb-perfil label:has(input:checked) {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, var(--bg));
  color: var(--ink);
}

/* Inputs e textarea */
.vb-contact-form input[type="text"],
.vb-contact-form input[type="email"],
.vb-contact-form input[type="tel"],
.vb-contact-form textarea,
.vb-contact-form select {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 16px 18px;
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.vb-contact-form input:hover,
.vb-contact-form textarea:hover {
  border-color: var(--mute);
}
.vb-contact-form input:focus,
.vb-contact-form textarea:focus,
.vb-contact-form select:focus {
  outline: none;
  border-color: var(--red);
  background: var(--panel);
}
.vb-contact-form input::placeholder,
.vb-contact-form textarea::placeholder {
  color: var(--mute);
  opacity: 0.7;
}
.vb-contact-form textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}
.vb-contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a9a7a0' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  padding-right: 48px;
  cursor: pointer;
}
.vb-contact-form .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 620px) {
  .vb-contact-form .row2 { grid-template-columns: 1fr; }
}

/* Botão de submit */
.vb-contact-form button[type="submit"] {
  justify-self: start;
  padding: 16px 32px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-width: 200px;
}
.vb-contact-form button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Mensagem de estado */
.vb-contact-msg {
  min-height: 1.5em;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
}
.vb-contact-msg.is-ok { color: #22c55e; }
.vb-contact-msg.is-err { color: #ef4444; }
.vb-contact-msg.is-ok::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}
.vb-contact-msg.is-err::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
}

/* Alternativa (email/WhatsApp) */
.vb-contact-alt {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--mute);
  line-height: 1.8;
}
.vb-contact-alt p { margin: 8px 0; }
.vb-contact-alt a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.vb-contact-alt a:hover {
  border-bottom-color: var(--red);
}

/* ============================================================
   2. PROGRAMAS
   ============================================================ */

.programas-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
@media (max-width: 900px) {
  .programas-list { grid-template-columns: 1fr; }
}

.programa {
  position: relative;
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s, transform 0.3s;
  background: var(--bg);
}
.programa:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}
.programa::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.programa:hover::before {
  transform: scaleX(1);
}

.programa__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.programa__kind {
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.programa__kind::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--red);
}
.programa__status {
  padding: 6px 12px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.programa__status--aberto {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}
.programa__status--aberto::before {
  content: '●';
  margin-right: 6px;
  animation: vbPulse 2s ease-in-out infinite;
}
.programa__status--em-breve {
  color: var(--mute);
}
.programa__status--fechado {
  color: var(--mute);
  opacity: 0.6;
}
@keyframes vbPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.programa h3 {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.programa p {
  color: var(--mute);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.programa__info {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 0.9rem;
}
.programa__info li {
  color: var(--mute);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.programa__info strong {
  color: var(--ink);
  font-weight: 700;
  min-width: 90px;
}

.programa .btn {
  align-self: flex-start;
  padding: 12px 24px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   3. FAQ
   ============================================================ */

.faq-grupo {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.faq-grupo:last-of-type {
  border-bottom: none;
}

.faq-grupo__titulo {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 40px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
}

.faq-list {
  max-width: 900px;
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
  transition: background 0.2s;
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}
.faq-item summary {
  padding: 28px 60px 28px 0;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  list-style: none;
  color: var(--ink);
  transition: color 0.2s;
  line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--red);
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-item summary:hover {
  color: var(--red);
}
.faq-item[open] summary {
  color: var(--red);
  padding-bottom: 12px;
}
.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
  padding: 0 60px 28px 0;
  color: var(--mute);
  line-height: 1.7;
  font-size: 0.98rem;
  animation: faqFade 0.3s ease-out;
}
@keyframes faqFade {
  from { opacity: 0; transform: translateY(-4px); }
}
@media (max-width: 620px) {
  .faq-item summary { padding: 22px 44px 22px 0; font-size: 1rem; }
  .faq-item p { padding: 0 44px 22px 0; }
  .faq-item summary::after { font-size: 1.5rem; }
}

/* ============================================================
   4. PÁGINAS "SOBRE", "FOUNDERS", "INVESTIDORES", "MODELOS"
   ============================================================ */

/* Bloco de modelo (na página /modelos) */
.modelo-block {
  max-width: 1000px;
}
.modelo-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid var(--red);
  border-radius: 2px;
}
.modelo-block h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 24px;
}
.modelo-block .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 820px) {
  .modelo-block .two-col { grid-template-columns: 1fr; gap: 40px; }
}
.modelo-block .two-col h3 {
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  font-weight: 800;
}
.modelo-block .two-col p {
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.7;
}

/* Sections alternadas (inv, red) já têm estilo no vb.css */

/* Card de "porquê investir" — reaproveita .models, mas adiciona ícone */
.models div h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.models div small {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}

/* ============================================================
   5. DETALHES DE VENTURE (página individual fallback)
   ============================================================ */

.vb-venture-detail {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 72px;
  align-items: start;
}
@media (max-width: 900px) {
  .vb-venture-detail { grid-template-columns: 1fr; gap: 48px; }
}

.vb-venture-meta {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 32px;
  background: var(--panel);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .vb-venture-meta { position: static; }
}
.vb-venture-meta__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vb-venture-meta__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.vb-venture-meta__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.vb-venture-body {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.vb-venture-section h2 {
  font-size: clamp(1.4rem, 2vw, 1.7rem);
  margin-bottom: 20px;
  padding-left: 18px;
  border-left: 4px solid var(--red);
  line-height: 1.15;
}
.vb-venture-section p {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ============================================================
   6. AJUSTES GERAIS DE PÁGINAS INTERNAS
   ============================================================ */

/* Hero de página interna — padding ligeiramente maior */
.hero-page {
  padding: 140px 0 96px;
}
@media (max-width: 720px) {
  .hero-page { padding: 100px 0 64px; }
}

/* Eyebrow com link */
.hero-page .eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color 0.2s;
}
.hero-page .eyebrow a:hover {
  color: var(--ink);
}

/* Badge de prazo/fase (reaproveitado da PMO) */
.prazo-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 12px 20px;
  background: var(--panel);
  border-left: 4px solid var(--red);
  font-size: 0.95rem;
}
.prazo-badge strong {
  color: var(--red);
  font-weight: 800;
}

/* Bullets (reaproveitado) */
.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullets li {
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 1rem;
  line-height: 1.5;
  transition: padding-left 0.25s, color 0.25s;
}
.bullets li:hover {
  padding-left: 40px;
  color: var(--ink);
}
.bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 24px;
  width: 12px;
  height: 2px;
  background: var(--red);
  transition: width 0.25s;
}
.bullets li:hover::before {
  width: 20px;
}
.bullets li:last-child {
  border-bottom: none;
}

/* Inv / Red — pequenos ajustes em páginas internas */
.inv .bullets li { border-color: var(--line); }
.inv .bullets li::before { background: var(--red); }
.red .bullets li { border-color: rgba(255,255,255,0.3); }
.red .bullets li::before { background: #fff; }

/* ============================================================
   7. PREFERÊNCIAS E IMPRESSÃO
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .programa,
  .programa::before,
  .faq-item,
  .faq-item summary::after,
  .vb-perfil label,
  .vb-perfil input[type="radio"],
  .bullets li,
  .bullets li::before {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .vb-perfil,
  .vb-contact-form button,
  .programa .btn,
  .vb-contact-alt { display: none !important; }
  body { background: #fff; color: #000; }
  .programa, .faq-item { page-break-inside: avoid; }
}

/* ============================================================
   8. MODAL DE PROGRAMA
   ============================================================ */

/* Estado no card */
.programa {
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.programa:focus-visible {
  outline: none;
  border-color: var(--red);
}
.programa__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap 0.25s;
}
.programa:hover .programa__cta { gap: 14px; }

/* Modal */
.vb-programa-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  overflow-y: auto;
}
.vb-programa-modal.is-open { display: flex; }

.vb-programa-modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: vbProgFade 0.3s ease;
}
@keyframes vbProgFade { from { opacity: 0; } }

.vb-programa-modal__panel {
  position: relative;
  width: min(920px, 100%);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  animation: vbProgSlide 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  margin: auto;
}
@keyframes vbProgSlide {
  from { opacity: 0; transform: translateY(32px) scale(0.98); }
}

.vb-programa-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}
.vb-programa-modal__close:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: rotate(90deg);
}

.vb-programa-modal__content {
  padding: 60px 52px 52px;
}
@media (max-width: 620px) {
  .vb-programa-modal__content { padding: 52px 28px 40px; }
  .vb-programa-modal__close { top: 12px; right: 12px; }
}

/* Cabeçalho do modal */
.vb-prog-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.vb-prog-kind {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.vb-prog-kind::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
}
.vb-prog-status {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.vb-prog-status--aberto   { color: #22c55e; background: rgba(34, 197, 94, 0.08); }
.vb-prog-status--em-breve { color: var(--mute); }
.vb-prog-status--fechado  { color: var(--mute); opacity: 0.6; }

.vb-prog-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 850;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink);
}
.vb-prog-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--mute);
  margin-bottom: 40px;
}

/* Grelha de metadados */
.vb-prog-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px 40px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.vb-prog-meta__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vb-prog-meta__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
}
.vb-prog-meta__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

/* Secções */
.vb-prog-section { margin-bottom: 32px; }
.vb-prog-section h4 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.vb-prog-section h4::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red);
}
.vb-prog-section p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink);
  white-space: pre-line;
}

/* CTA */
.vb-prog-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}