/*
 * page-sobrenos.css — template de pagina "Sobre nos".
 *
 * Extraido do <style> inline do page-sobrenos.php: eram ~12 KB reenviados no
 * HTML da pagina, sem cache de navegador, fora da minificacao e como mais um
 * objeto CSSStyleSheet no CSSOM.
 *
 * Enfileirado por inc/performance.php -> cdc_perf_css_sobrenos(), so quando o
 * template desta pagina esta ativo. Nenhuma pagina de receita paga por isto.
 */

  /* ======================================================================
     RESET DE LARGURA E FUNDO — escopado só a esta página. Como este
     <style> só é impresso quando o template "Sobre nos" carrega, sobrescrever
     estas classes do tema aqui não afeta nenhuma outra página do site.
     ====================================================================== */
  body.page,
  .page .site-main.page,
  .page .content,
  .page .wrapper.content-wrapper,
  .page .content-wrapper .content-info,
  .page .sobrenos {
    background: #ffffff !important;
  }
  .page .wrapper.content-wrapper {
    max-width: 1360px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .page .content-wrapper .content-info {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }
  .page .content-wrapper .content-sidebar {
    display: none !important;
  }

  /* ======================================================================
     TOKENS E BASE
     ====================================================================== */
  .cdc-wrapper {
    --wine: #881813;
    --wine-deep: #5B1311;
    --line: #EFE6D6;
    --ink: #2B2320;
    --muted: #7A7167;
    --font-display: 'Baloo 2', 'Baloo 2 Fallback', ui-rounded, 'Segoe UI', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-family: var(--font-body);
    color: var(--ink);
    background: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 96px;
    line-height: 1.75;
  }
  .cdc-wrapper * { box-sizing: border-box; }

  /* Trava genérica: nenhuma imagem dentro da página pode estourar a largura
     do próprio container, seja qual for o tamanho do arquivo original. */
  .cdc-wrapper img { max-width: 100%; }

  .cdc-hero { text-align: center; margin-bottom: 72px; }
  .cdc-title-main {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(32px, 4.6vw, 50px);
    color: var(--wine);
    margin: 0 0 14px;
    letter-spacing: 0.2px;
  }
  .cdc-kicker {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0 0 22px;
  }
  .cdc-divider {
    width: 64px; height: 4px;
    background: var(--wine);
    border-radius: 4px;
    margin: 0 auto;
  }

  /* ======================================================================
     SEÇÕES DA LINHA DO TEMPO
     ====================================================================== */
  .cdc-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 48px 0 48px 36px;
    border-left: 3px solid var(--line);
    margin-bottom: 16px;
  }
  .cdc-section.reverse { grid-template-columns: 1fr 1fr; }
  .cdc-section.reverse .cdc-col-text { order: 2; }
  .cdc-section.reverse .cdc-col-media { order: 1; }

  .cdc-year-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 32px;
    padding: 0 16px;
    background: var(--wine);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    border-radius: 20px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
  }

  .cdc-subtitle {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--wine);
    margin: 0 0 18px;
    line-height: 1.3;
  }
  .cdc-col-text p { margin: 0 0 16px; color: var(--ink); font-size: 16.5px; }
  .cdc-col-text p:last-child { margin-bottom: 0; }
  .cdc-col-text strong { color: var(--wine-deep); }

  .cdc-col-media img {
    width: 100% !important;
    height: 340px !important;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(91, 19, 17, 0.16);
  }
  .cdc-video-box {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(91, 19, 17, 0.16);
  }
  .cdc-video-box iframe {
    position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  }

  /* ======================================================================
     CITAÇÃO
     ====================================================================== */
  .cdc-highlight {
    background: #ffffff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--wine);
    border-radius: 6px;
    padding: 36px 40px;
    margin: 56px 0;
  }
  .cdc-highlight p {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 20px;
    color: var(--ink);
    margin: 0;
    line-height: 1.65;
  }
  .cdc-highlight-author {
    text-align: right;
    font-weight: bold;
    color: var(--wine);
    margin-top: 16px;
    font-size: 14px;
  }

  /* ======================================================================
     LISTA HACKATHON
     ====================================================================== */
  .cdc-list-check { list-style: none; margin: 0; padding: 0; }
  .cdc-list-check li {
    position: relative;
    padding: 7px 0 7px 28px;
    font-size: 16.5px;
    border-bottom: 1px solid var(--line);
  }
  .cdc-list-check li:last-child { border-bottom: none; }
  .cdc-list-check li::before {
    content: "✓";
    position: absolute; left: 0; top: 7px;
    color: var(--wine);
    font-weight: bold;
  }
  .cdc-list-check strong { color: var(--wine-deep); }

  /* ======================================================================
     LIDERANÇA
     ====================================================================== */
  .cdc-section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 32px;
    text-align: center;
    color: var(--wine);
    margin: 96px 0 8px;
  }
  .cdc-section-title + .cdc-divider { margin-bottom: 48px; }

  .cdc-leaders-area {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
  }
  .cdc-leader-card {
    flex: 1 1 320px;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 36px 30px;
    text-align: center;
    box-shadow: 0 10px 26px rgba(43, 35, 32, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .cdc-link-card { display: block; text-decoration: none; color: inherit; }
  .cdc-leader-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(136, 24, 19, 0.18);
    border-color: var(--wine);
  }
  .cdc-leader-photo {
    width: 136px !important;
    height: 136px !important;
    max-width: 136px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    border: 4px solid var(--line);
    margin-bottom: 20px;
  }
  .cdc-leader-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    color: var(--wine);
    margin: 0 0 4px;
  }
  .cdc-leader-role {
    display: block;
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
  }
  .cdc-leader-card p:not(.cdc-leader-role) {
    font-size: 15px;
    color: var(--ink);
    margin: 0 0 20px;
  }
  .cdc-linkedin-btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--wine);
    color: #fff;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s ease;
  }
  .cdc-leader-card:hover .cdc-linkedin-btn { background: var(--wine-deep); }

  /* ======================================================================
     TIME / EDITORIAL
     ====================================================================== */
  .cdc-team-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 48px 32px;
    margin-top: 96px;
  }
  .cdc-panel-title {
    text-align: center;
    color: var(--wine);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 36px;
  }

  .cdc-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .cdc-tech-item { text-align: center; }
  .cdc-tech-photo {
    width: 92px !important;
    height: 92px !important;
    max-width: 92px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    margin-bottom: 12px;
    box-shadow: 0 6px 16px rgba(43,35,32,0.12);
  }
  .cdc-tech-item strong { display: block; font-size: 14.5px; color: var(--ink); }
  .cdc-tech-item small { color: var(--muted); font-size: 12.5px; }

  .cdc-team-divider {
    border: 0; border-top: 1px solid var(--line);
    margin: 48px 0 36px;
  }

  .cdc-editorial-note {
    text-align: center; color: var(--muted);
    margin-bottom: 24px; font-size: 14.5px;
  }
  .cdc-editorial-tags {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  }
  .cdc-tag {
    background: #ffffff;
    border: 1.5px solid var(--wine);
    color: var(--wine-deep);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 20px;
  }

  /* ======================================================================
     RODAPÉ DA HISTÓRIA
     ====================================================================== */
  .cdc-closing { margin-top: 80px; text-align: center; }
  .cdc-closing img {
    border-radius: 14px;
    max-width: 100%;
    box-shadow: 0 18px 40px rgba(43,35,32,0.14);
  }
  .cdc-closing p {
    margin-top: 24px;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 17px;
    color: var(--muted);
  }

  /* ======================================================================
     RESPONSIVO
     ====================================================================== */
  @media (max-width: 780px) {
    .cdc-wrapper { padding: 36px 18px 64px; }
    .cdc-hero { margin-bottom: 48px; }
    .cdc-section, .cdc-section.reverse {
      grid-template-columns: 1fr;
      padding-left: 22px;
      gap: 24px;
    }
    .cdc-section.reverse .cdc-col-text,
    .cdc-section.reverse .cdc-col-media { order: initial; }
    .cdc-col-media img { height: 220px; }
    .cdc-section-title { margin-top: 64px; font-size: 26px; }
    .cdc-leaders-area { grid-template-columns: 1fr; }
    .cdc-tech-grid { grid-template-columns: repeat(2, 1fr); }
    .cdc-team-panel { padding: 32px 20px; margin-top: 64px; }
  }
