/* ══════════════════════════════════════════════════════════════════════
   projeto.css — Estilo específico das páginas de projeto (posts /projetos).
   Carrega DEPOIS de marca-pessoal.css (base escura compartilhada).
   Cada post define a cor de categoria com uma classe no <body>:
   accent-ia | accent-sistema | accent-site | accent-landing (padrão = sistema).
   ══════════════════════════════════════════════════════════════════════ */

/* Cor de categoria (sobrescrita por body.accent-*) — padrão: roxo/sistema */
:root {
    --accent:     #a78bfa;
    --accent-rgb: 139,92,246;
}
body.accent-ia      { --accent: #38bdf8; --accent-rgb: 14,165,233; }
body.accent-sistema { --accent: #a78bfa; --accent-rgb: 139,92,246; }
body.accent-site    { --accent: #34d399; --accent-rgb: 16,185,129; }
body.accent-landing { --accent: #fbbf24; --accent-rgb: 245,158,11; }

/* ── Orbs do fundo (cores acompanham a categoria) ── */
.bg-orb-1 {
    top: -10%; right: -5%; width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(var(--accent-rgb),.12) 0%, transparent 65%);
    animation: orb1 18s ease-in-out infinite;
}
.bg-orb-2 {
    bottom: 10%; left: -10%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(244,111,31,.08) 0%, transparent 65%);
    animation: orb2 24s ease-in-out infinite;
}
@keyframes orb1 { 0%,100%{transform:translate(0,0)} 40%{transform:translate(-20px,18px)} }
@keyframes orb2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(18px,-22px)} }

/* ── Wrapper ── */
.proj-page {
    position: relative; z-index: 1;
    max-width: 820px; margin: 0 auto;
    padding: 0 24px 80px;
}

/* ── Hero ── */
.proj-hero {
    padding: 52px 0 40px;
    animation: fadeUp .6s cubic-bezier(.16,1,.3,1) both;
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.proj-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-family: var(--font-body); font-weight: 600;
    font-size: .62rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .07em;
    padding: 4px 11px; border-radius: 100px;
    margin-bottom: 16px;
    background: rgba(var(--accent-rgb),.18); color: var(--accent);
    border: 1px solid rgba(var(--accent-rgb),.28);
}
.proj-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.2rem);
    font-weight: 800; letter-spacing: -.03em;
    line-height: 1.1; margin: 0 0 14px;
    color: var(--text);
}
.proj-lead {
    font-size: 1rem; color: var(--text-sub);
    max-width: 620px; line-height: 1.7; margin: 0;
}

/* ── Meta do projeto (cliente · ano · papel) ── */
.proj-meta {
    display: flex; flex-wrap: wrap; gap: 8px 18px;
    margin-top: 22px;
}
.proj-meta-item {
    display: flex; align-items: center; gap: 7px;
    font-size: .8rem; color: var(--text-sub);
}
.proj-meta-item i { color: var(--accent); font-size: .76rem; }
.proj-meta-item strong { color: var(--text); font-weight: 600; }

/* ── Screenshot ── */
.proj-screenshot {
    margin: 36px 0 52px;
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    animation: fadeUp .6s .1s cubic-bezier(.16,1,.3,1) both;
}
.proj-screenshot img { width: 100%; height: auto; display: block; }
.proj-screenshot figcaption {
    font-size: .72rem; color: var(--text-dim);
    text-align: center; padding: 10px 16px;
    background: var(--glass); border-top: 1px solid var(--border);
}

/* ── Seções ── */
.proj-section {
    margin-bottom: 48px;
    animation: fadeUp .5s .15s cubic-bezier(.16,1,.3,1) both;
}
.section-label {
    font-family: var(--font-body); font-weight: 600;
    font-size: .65rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .12em;
    color: var(--orange); margin-bottom: 12px; display: block;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 700;
    color: var(--text); margin: 0 0 12px; line-height: 1.3;
}
.section-body {
    font-size: .9rem; color: var(--text-sub);
    line-height: 1.75; margin: 0;
}
.section-body + .section-body { margin-top: 14px; }
.section-body strong { color: var(--text); font-weight: 600; }

/* ── Pull-quote (depoimento / frase de virada na história) ── */
.proj-quote {
    margin: 24px 0 0;
    padding: 18px 22px;
    border-left: 3px solid var(--accent);
    background: rgba(var(--accent-rgb),.06);
    border-radius: 0 12px 12px 0;
}
.proj-quote p {
    font-size: .95rem; color: var(--text);
    font-style: italic; line-height: 1.65; margin: 0 0 8px;
}
.proj-quote cite {
    font-size: .78rem; color: var(--text-sub);
    font-style: normal; font-weight: 600;
}

/* ── Resultados (cards de número) ── */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px; margin-top: 20px;
}
@media (min-width: 520px) { .results-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 760px) { .results-grid { grid-template-columns: repeat(3,1fr); } }
.result-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 14px; padding: 22px 20px;
    transition: border-color .2s, transform .2s;
}
.result-card:hover {
    border-color: rgba(244,111,31,.28);
    transform: translateY(-3px);
}
.result-number {
    font-family: var(--font-display);
    font-size: 2.1rem; font-weight: 800; line-height: 1;
    letter-spacing: -.03em; margin: 0 0 6px;
    background: linear-gradient(135deg, #000000 0%, #f46f1f 60%, #ff8b4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.result-label {
    font-family: var(--font-display);
    font-size: .86rem; font-weight: 700;
    color: var(--text); margin: 0 0 4px;
}
.result-caption {
    font-size: .76rem; color: var(--text-sub);
    line-height: 1.5; margin: 0;
}

/* ── Melhorias para a empresa (lista de impacto) ── */
.impact-list {
    list-style: none; margin: 20px 0 0; padding: 0;
    display: flex; flex-direction: column; gap: 12px;
}
.impact-item {
    display: flex; gap: 13px; align-items: flex-start;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 15px 17px;
    transition: border-color .2s;
}
.impact-item:hover { border-color: rgba(var(--accent-rgb),.28); }
.impact-check {
    flex-shrink: 0; width: 28px; height: 28px;
    background: rgba(16,185,129,.14);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.impact-check i { color: #34d399; font-size: .82rem; }
.impact-text { flex: 1; }
.impact-text strong {
    display: block;
    font-family: var(--font-display);
    font-size: .9rem; font-weight: 700;
    color: var(--text); margin-bottom: 3px;
}
.impact-text span {
    font-size: .82rem; color: var(--text-sub); line-height: 1.55;
}

/* ── Grade de funcionalidades ── */
.feat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px; margin-top: 20px;
}
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 16px 18px;
    transition: border-color .2s;
}
.feat-card:hover { border-color: rgba(var(--accent-rgb),.28); }
.feat-icon {
    width: 32px; height: 32px;
    background: rgba(var(--accent-rgb),.14);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 10px;
}
.feat-icon i { font-size: .8rem; color: var(--accent); }
.feat-name {
    font-family: var(--font-display);
    font-size: .88rem; font-weight: 700;
    color: var(--text); margin: 0 0 4px;
}
.feat-desc {
    font-size: .78rem; color: var(--text-sub);
    line-height: 1.55; margin: 0;
}

/* ── Stack (lista de tecnologias — usada por posts que a exibem) ── */
.stack-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.stack-tag {
    font-family: var(--font-body); font-weight: 500;
    font-size: .72rem; color: var(--text);
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 6px; padding: 4px 10px;
}

/* ── Divisor ── */
.divider { border: none; border-top: 1px solid var(--border); margin: 0 0 48px; }

/* ── CTA ── */
.proj-cta {
    background: linear-gradient(135deg, rgba(244,111,31,.14) 0%, rgba(163,77,20,.09) 100%);
    border: 1px solid rgba(244,111,31,.22);
    border-radius: 16px; padding: 28px 26px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.proj-cta h2 {
    font-family: var(--font-display);
    font-size: 1rem; font-weight: 800; color: var(--text); margin: 0 0 4px;
}
.proj-cta p { font-size: .82rem; color: var(--text-sub); margin: 0; }
.cta-btns { display: flex; gap: 9px; flex-wrap: wrap; }
.btn-wa {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 18px; min-height: 44px;
    background: linear-gradient(135deg, #25d366, #1ca450);
    color: #fff; border: none; border-radius: 10px;
    font-family: var(--font-body);
    font-size: .86rem; font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37,211,102,.22);
    transition: all .18s ease;
}
.btn-wa:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(37,211,102,.38); color: #fff; }
.btn-sess {
    display: flex; align-items: center; gap: 7px;
    padding: 10px 18px; min-height: 44px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--text-sub); border-radius: 10px;
    font-family: var(--font-body);
    font-size: .86rem; font-weight: 600;
    text-decoration: none; transition: all .18s ease;
}
.btn-sess:hover { background: var(--glass-hov); color: var(--text); }
@media (max-width: 560px) {
    .proj-cta { flex-direction: column; text-align: center; }
    .cta-btns { justify-content: center; width: 100%; }
}

/* ── Navegação entre projetos (próximo / anterior) ── */
.proj-nav {
    display: flex; gap: 12px; margin-top: 16px; flex-wrap: wrap;
}
.proj-nav a {
    flex: 1; min-width: 200px;
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--glass); border: 1px solid var(--border);
    border-radius: 12px; text-decoration: none;
    transition: border-color .2s, background .2s;
}
.proj-nav a:hover { border-color: rgba(var(--accent-rgb),.28); background: var(--glass-hov); }
.proj-nav i { color: var(--accent); font-size: .9rem; }
.proj-nav .pn-dir { font-size: .68rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.proj-nav .pn-name { font-size: .85rem; color: var(--text); font-weight: 600; }
.proj-nav .pn-next { justify-content: flex-end; text-align: right; }
