/* =========================================================
   Athenas — componentes novos (seção de projetos, páginas das
   propostas, cartões giratórios da equipe, microinterações).
   Usa os tokens de css/style.css; não altera o design system.
   ========================================================= */

/* ---------- Microinterações gerais ---------- */
.btn svg:not(.arrow) { transition: transform .3s var(--ease); }
.btn:hover svg:not(.arrow) { transform: translateX(3px) scale(1.08); }
.nav li { transition: opacity .3s var(--ease), transform .3s var(--ease); }
@media (max-width: 960px) {
    .nav:not(.open) li { opacity: 0; transform: translateY(-6px); }
    .nav.open li { opacity: 1; transform: none; }
    .nav.open li:nth-child(2) { transition-delay: .03s; } .nav.open li:nth-child(3) { transition-delay: .06s; }
    .nav.open li:nth-child(4) { transition-delay: .09s; } .nav.open li:nth-child(5) { transition-delay: .12s; }
    .nav.open li:nth-child(6) { transition-delay: .15s; } .nav.open li:nth-child(7) { transition-delay: .18s; }
}
.group-photo img, .prop-art img { transition: transform .9s var(--ease); }
.group-photo:hover img { transform: scale(1.03); }

/* ---------- Selos de status ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    border: 1px solid var(--line-strong); background: var(--brand-soft); color: var(--brand);
}
.badge.main { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.badge.plan { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 38%, transparent); }
[data-theme="light"] .badge.plan { color: #8a5a00; }
.badge .dot { width: 7px; height: 7px; background: currentColor; }
.badge .dot::after { border-color: currentColor; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Seção "Nossos projetos" ---------- */
.projects-head { max-width: 760px; }
.proj-main { grid-template-columns: .8fr 1.4fr; align-items: stretch; position: relative; transition: border-color .4s, box-shadow .4s var(--ease), transform .4s var(--ease); }
.proj-main:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 45%, var(--line-strong)); }
.proj-main .logo-wrap { align-self: start; position: sticky; top: calc(var(--header-h) + 24px); min-height: 220px; }
.proj-main .logo-full { width: min(280px, 80%); transition: transform .6s var(--ease); }
.proj-main:hover .logo-full { transform: scale(1.04); }
.proj-main h3 { margin: 16px 0 6px; font-size: clamp(30px, 3.6vw, 46px); }
.proj-main .proj-sub { font-family: var(--f-title); font-weight: 600; font-size: clamp(15px, 1.5vw, 18px); color: var(--text); line-height: 1.35; margin-bottom: 14px; }
.proj-main p { margin-bottom: 14px; }
.proj-points { display: grid; gap: 8px; margin: 18px 0 8px; padding: 0; list-style: none; }
.proj-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.proj-points svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.feat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 14px 0 4px; padding: 0; list-style: none; }
.feat-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 13.5px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); transition: border-color .25s, background-color .25s, transform .25s var(--ease); }
.feat-list li:hover { border-color: var(--gold); transform: translateY(-2px); }
.feat-list svg { flex: none; width: 16px; height: 16px; color: var(--gold); }
.proj-more { margin: 18px 0 6px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.proj-more summary { cursor: pointer; list-style: none; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 15px; border-radius: var(--r-md); }
.proj-more summary::-webkit-details-marker { display: none; }
.proj-more summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--gold); transition: transform .3s var(--ease); }
.proj-more[open] summary::after { transform: rotate(45deg); }
.proj-more .more-body { padding: 0 18px 18px; font-size: 14.5px; color: var(--text-2); display: grid; gap: 10px; }
.proj-more .more-body b { color: var(--text); }
.proj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 26px; }

/* botão de acesso ao sistema: maior e com destaque próprio */
.btn-access {
    position: relative; padding: 18px 34px; font-size: 16.5px; font-weight: 700; color: #04201e;
    background: linear-gradient(135deg, #4fd1c5, #8fe9df); border-color: transparent;
    box-shadow: 0 10px 30px rgba(79, 209, 197, .32), 0 0 0 0 rgba(79, 209, 197, .5);
}
[data-theme="light"] .btn-access { color: #fff; background: linear-gradient(135deg, #0b7f7a, #139a93); box-shadow: 0 10px 28px rgba(11, 127, 122, .3); }
.btn-access:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(79, 209, 197, .42); }
.btn-access .live { width: 9px; height: 9px; border-radius: 50%; background: currentColor; position: relative; }
.btn-access .live::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid currentColor; animation: ping 2s infinite; }
.btn-access[aria-disabled="true"] { opacity: .6; cursor: not-allowed; box-shadow: none; filter: saturate(.6); }
.btn-access[aria-disabled="true"]:hover { transform: none; box-shadow: none; }
.access-note { flex-basis: 100%; font-size: 13px; color: var(--text-3); margin: -4px 0 0; }

.subhead { display: flex; align-items: center; gap: 16px; margin: clamp(40px, 6vw, 64px) 0 22px; }
.subhead h3 { font-size: clamp(20px, 2.4vw, 26px); }
.subhead::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.subhead p { color: var(--text-2); font-size: 14.5px; max-width: 52ch; margin-top: 4px; }

.prop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.prop {
    display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg);
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.prop:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.prop-art { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.prop-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prop:hover .prop-art img { transform: scale(1.05); }
.prop-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.prop-body h3 { font-size: 24px; }
.prop-body h3 small { display: block; font-family: var(--f-text); font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: 0; margin-top: 4px; }
.prop-body p { color: var(--text-2); font-size: 15px; }
.prop-body .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.prop-body .chip { font-size: 12.5px; padding: 6px 12px; }
.prop-link { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--brand); }
.prop-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.prop-link:hover { color: var(--text); }
.prop-link:hover svg { transform: translateX(5px); }
.name-note { font-size: 12.5px; color: var(--text-3); }

/* ---------- Cartões giratórios da equipe ---------- */
.team.flipteam { gap: 18px; }
.fcard { position: relative; aspect-ratio: 3 / 4.4; perspective: 1200px; border-radius: var(--r-lg); outline: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fcard-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease); border-radius: inherit; }
.fcard-face {
    position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; border-radius: inherit;
    background: var(--surface); border: 1px solid var(--line);
    -webkit-backface-visibility: hidden; backface-visibility: hidden; box-shadow: var(--shadow-sm);
}
.fcard-front .ph { flex: 1; min-height: 0; overflow: hidden; background: var(--surface-3); }
.fcard-front img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.fcard-front .info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.fcard h3 { font-size: 17px; }
.fcard .role { font-size: 13px; color: var(--text-2); min-height: 2.7em; }
.fcard .role b { color: var(--gold); font-weight: 600; }
.fcard .hint { margin-top: 6px; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); display: inline-flex; align-items: center; gap: 6px; }
.fcard .hint::before { content: "↻"; font-size: 14px; color: var(--gold); }
.fcard-back {
    transform: rotateY(180deg); padding: 22px 20px; gap: 10px; justify-content: space-between;
    background: radial-gradient(90% 70% at 100% 0%, var(--glow-1), transparent 70%), var(--surface-2);
    border-color: var(--line-strong);
}
.fcard-back .back-role { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.fcard-back h3 { font-size: 18px; margin-top: 4px; }
.fcard-back p { font-size: 14px; line-height: 1.55; color: var(--text); margin-top: 10px; text-wrap: pretty; }
.fcard-back a { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; color: var(--brand); transition: background-color .25s, color .25s, border-color .25s; }
.fcard-back a:hover { background: var(--brand-soft); color: var(--text); border-color: var(--brand); }
.fcard-back a svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.fcard-back a:hover svg { transform: rotate(-12deg) scale(1.12); }
.fcard:focus-visible { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.fcard.is-flipped .fcard-inner, .fcard:focus-within .fcard-inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) { .fcard:hover .fcard-inner { transform: rotateY(180deg); } }
@media (max-width: 1100px) { .team.flipteam { grid-template-columns: repeat(3, 1fr); } .fcard { aspect-ratio: 3 / 4.1; } }
@media (max-width: 640px) {
    .team.flipteam { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .fcard { aspect-ratio: 3 / 4.9; }
    .fcard-back { padding: 16px 14px; } .fcard-back p { font-size: 12.5px; margin-top: 8px; } .fcard-back h3 { font-size: 16px; }
    .fcard:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}
@media (max-width: 400px) { .team.flipteam { grid-template-columns: 1fr; } .fcard { aspect-ratio: 3 / 3.7; } .fcard:last-child { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .fcard-inner { transform: none !important; transform-style: flat; }
    .fcard-back { transform: none; opacity: 0; visibility: hidden; transition: opacity .2s linear, visibility 0s linear .2s; }
    .fcard-face { -webkit-backface-visibility: visible; backface-visibility: visible; }
    .fcard.is-flipped .fcard-back, .fcard:focus-within .fcard-back { opacity: 1; visibility: visible; transition: opacity .2s linear; }
    @media (hover: hover) and (pointer: fine) { .fcard:hover .fcard-back { opacity: 1; visibility: visible; transition: opacity .2s linear; } }
}

/* ---------- Páginas das propostas ---------- */
.page-hero { padding: calc(var(--header-h) + 56px) 0 clamp(48px, 7vw, 80px); overflow: hidden; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--text-3); margin-bottom: 28px; }
.crumbs a { color: var(--text-2); } .crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-hero h1 { font-size: clamp(36px, 5.4vw, 66px); margin: 18px 0 8px; }
.page-hero .full-title { font-family: var(--f-title); font-weight: 600; font-size: clamp(17px, 1.9vw, 22px); color: var(--text); line-height: 1.3; }
.page-hero .lead { margin-top: 18px; color: var(--text-2); font-size: clamp(16px, 1.5vw, 18px); max-width: 56ch; text-wrap: pretty; }
.hero-art { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); aspect-ratio: 10 / 7; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.hero-art:hover img { transform: scale(1.04); }
.pj-section { padding: clamp(48px, 6vw, 80px) 0; }
.pj-section + .pj-section { border-top: 1px solid var(--line); }
.pj-section h2 { font-size: clamp(26px, 3.2vw, 38px); margin: 12px 0 14px; max-width: 24ch; text-wrap: balance; }
.pj-section .lead { color: var(--text-2); max-width: 66ch; text-wrap: pretty; }
.pj-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.info-card { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease); }
.info-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.info-card h3 { font-size: 19px; margin-bottom: 8px; }
.info-card p { color: var(--text-2); font-size: 14.8px; }
.info-card.accent { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 28px; }
.fn { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, transform .3s var(--ease); }
.fn:hover { border-color: var(--gold); transform: translateY(-3px); }
.fn .icon-chip { width: 40px; height: 40px; border-radius: 12px; margin: 0; flex: none; }
.fn .icon-chip svg { width: 20px; height: 20px; }
.fn b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.fn span { font-size: 13px; color: var(--text-2); }
.fn.later { border-style: dashed; }
.fn .tagl { display: inline-block; margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); }
[data-theme="light"] .fn .tagl { color: #8a5a00; }
.rivals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 28px; }
.rival { padding: 20px 22px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.rival h3 { font-size: 16px; margin-bottom: 6px; }
.rival p { font-size: 14px; color: var(--text-2); }
.rival small { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--text-3); margin-bottom: 8px; }
.diff { margin-top: 20px; }
.via-tabs { margin-top: 28px; }
.via-tabs .tabs { flex-wrap: wrap; border-radius: var(--r-lg); }
.via-panel { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); animation: fadeUp .5s var(--ease); }
.via-panel[hidden] { display: none; }
.via-panel p { color: var(--text-2); font-size: 15px; max-width: 70ch; }
.via-panel ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.via-panel li { display: flex; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.via-panel li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: var(--gold); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.conclusion { margin-top: 22px; }
.notice {
    display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; padding: clamp(22px, 3vw, 32px);
    border-radius: var(--r-lg); border: 1px dashed color-mix(in srgb, var(--warn) 60%, transparent); background: var(--warn-soft);
}
.notice .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn); }
[data-theme="light"] .notice .ic { color: #8a5a00; }
.notice .ic svg { width: 26px; height: 26px; }
.notice h2 { font-size: clamp(20px, 2.2vw, 26px); margin: 0 0 8px; max-width: none; }
.notice p { color: var(--text-2); font-size: 15px; max-width: 70ch; }
.notice .no-app { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.other-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.other-projects a.info-card { display: flex; flex-direction: column; gap: 6px; }
.other-projects .prop-link { padding-top: 6px; }

@media (max-width: 960px) {
    .proj-main { grid-template-columns: 1fr; } .proj-main .logo-wrap { position: static; min-height: 0; }
    .page-hero-grid, .pj-two { grid-template-columns: 1fr; }
}
@media (max-width: 760px) { .prop-grid, .rivals, .other-projects { grid-template-columns: 1fr; } .notice { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .btn-access { width: 100%; } .proj-actions .btn { width: 100%; } .via-tabs .tab { flex: 1 1 45%; } }
@media (prefers-reduced-motion: reduce) { .via-panel { animation: none; } }


/* ---------- Identidade visual das propostas ---------- */
/* Amparo: tons naturais associados ao cuidado animal, com detalhes rosados. */
.prop-amparo {
    --prop-accent: #b86f83;
    --prop-soft: #f4e4e9;
    border-color: color-mix(in srgb, #b86f83 30%, var(--line));
}
.prop-amparo .prop-art {
    background:
        radial-gradient(circle at 14% 22%, rgba(230, 151, 174, .72) 0 5px, transparent 6px),
        radial-gradient(circle at 86% 28%, rgba(230, 151, 174, .55) 0 4px, transparent 5px),
        radial-gradient(circle at 78% 82%, rgba(113, 151, 116, .55) 0 6px, transparent 7px),
        linear-gradient(135deg, #f4e8e8, #e5eee4 58%, #f7e8ed);
}
.prop-amparo .prop-body .badge.plan {
    color: #98566b;
    background: #f7e8ed;
    border-color: #e7bdca;
}
.prop-amparo .prop-link { color: var(--prop-accent); }
.prop-amparo:hover { border-color: color-mix(in srgb, #b86f83 58%, var(--line-strong)); }

/* Elo: paleta acolhedora de alimentos, com pontos em cores de frutas e vegetais. */
.prop-elo {
    --prop-accent: #b87835;
    border-color: color-mix(in srgb, #b87835 30%, var(--line));
}
.prop-elo .prop-art {
    background:
        radial-gradient(circle at 13% 24%, #e9a34b 0 6px, transparent 7px),
        radial-gradient(circle at 84% 20%, #d96e55 0 5px, transparent 6px),
        radial-gradient(circle at 77% 80%, #7eaa72 0 7px, transparent 8px),
        radial-gradient(circle at 24% 82%, #e6c65c 0 5px, transparent 6px),
        linear-gradient(135deg, #f7edda, #e9efdc 58%, #f5e2d8);
}
.prop-elo .prop-body .badge.plan {
    color: #95602c;
    background: #f8eddc;
    border-color: #e9c99c;
}
.prop-elo .prop-link { color: var(--prop-accent); }
.prop-elo:hover { border-color: color-mix(in srgb, #b87835 58%, var(--line-strong)); }

@media (prefers-reduced-motion: reduce) {
    .prop-amparo .prop-art, .prop-elo .prop-art { transition: none; }
}


/* ---------- Ajustes solicitados: projetos e equipe ---------- */
/* O logo do projeto fica centralizado e estático, sem efeito sticky ou zoom. */
.proj-main .logo-wrap {
    position: static;
    top: auto;
    align-self: center;
    justify-self: center;
    width: min(100%, 360px);
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 30px;
}
.proj-main .logo-full,
.proj-main:hover .logo-full { width: min(82%, 280px); transform: none; }

/* Cinco cartões alinhados como na referência, com destaque para os papéis de liderança. */
.team.flipteam { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.fcard { aspect-ratio: 3 / 4.55; min-width: 0; }
.fcard-front .ph { position: relative; flex: 1 1 auto; min-height: 0; }
.fcard-front img { object-position: center center; }
.team-ribbon {
    position: absolute; z-index: 2; inset: 0 0 auto;
    min-height: 34px; display: flex; align-items: center; justify-content: center;
    padding: 7px 10px; text-align: center;
    color: #17202b; background: #e7c66d;
    font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}
.featured-scrum .team-ribbon { background: #83b5ef; }
.featured-owner .fcard-front { background: #302a18; }
.featured-owner .fcard-face { border-color: #d4ad50; }
.featured-owner .fcard-front .info { color: #f3ead1; }
.featured-owner .fcard-front .role { color: #e8d7a8; }
.featured-scrum .fcard-face { border-color: #6ea8e8; }
.featured-scrum .fcard-front { background: #19314d; }
.featured-owner .fcard-front .hint,
.featured-scrum .fcard-front .hint { color: #e7cf91; }
.fcard-back { overflow-y: auto; }
.fcard-back p { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
    .team.flipteam { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .team.flipteam { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fcard { aspect-ratio: 3 / 4.8; }
}
@media (max-width: 400px) {
    .team.flipteam { grid-template-columns: 1fr; }
    .fcard { aspect-ratio: 3 / 3.8; }
    .fcard:last-child { width: 100%; }
}
