/* ============================================================
   LAP-UNEB · Página inicial
   Depende dos tokens de /assets/css/lap-theme.css.
   Mobile-first; nenhuma imagem externa (o "corte estratigráfico"
   do topo é desenhado em CSS).
   ============================================================ */

.lp {
    --lp-ink: var(--fossil-900);
    --lp-ink-2: #5C4A33;
    --lp-ink-3: #7A6548;
    --lp-line: #E6D9C3;
    --lp-paper: #FFFDF9;
    --lp-max: 1180px;
    color: var(--fossil-800);
    overflow-x: clip;
}
:where(.lp) section { padding: 0; }               /* anula o padding global do tema (sem ganhar de .lp-section) */
.lp-wrap { width: 100%; max-width: var(--lp-max); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .lp-wrap { padding: 0 2rem; } }

.lp-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-family: var(--font-body); font-size: .75rem; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--terracotta-600);
}
.lp-eyebrow::before { content: ""; width: 1.75rem; height: 2px; background: currentColor; }
.lp-h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; margin: .75rem 0 1rem; color: var(--lp-ink); }
.lp-h2 em { color: var(--terracotta-600); }
.lp-lead { font-size: 1.125rem; line-height: 1.65; color: var(--lp-ink-2); max-width: 62ch; }
.lp-section { padding: 4.5rem 0; }
@media (min-width: 992px) { .lp-section { padding: 6.5rem 0; } }
.lp-section-head { max-width: 720px; margin-bottom: 2.75rem; }
.lp-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lp-section-head.center .lp-eyebrow::before { display: none; }

/* ---------- Botões ---------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px;
    font-weight: 600; font-size: 1rem; text-decoration: none !important;
    border: 1.5px solid transparent; transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-primary { background: #B4532F; color: #fff; }               /* 5:1 com texto branco (AA) */
.lp-btn-primary:hover { background: var(--terracotta-600); color: #fff; }
.lp-btn-ghost { border-color: rgba(250, 247, 242, .45); color: var(--fossil-50); }
.lp-btn-ghost:hover { background: rgba(250, 247, 242, .1); border-color: var(--fossil-50); color: #fff; }
.lp-btn-dark { border-color: var(--fossil-300); color: var(--lp-ink); background: transparent; }
.lp-btn-dark:hover { border-color: var(--lp-ink); color: var(--lp-ink); }
.lp :focus-visible { outline: 3px solid var(--ochre-500); outline-offset: 3px; }

/* ---------- Topo ---------- */
.lp-hero {
    position: relative; color: var(--fossil-50); isolation: isolate;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(212, 165, 71, .18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(194, 94, 59, .22), transparent 60%),
        linear-gradient(160deg, #2B2018 0%, #3A2B1F 55%, #2B2018 100%);
}
/* curvas de nível (levantamento topográfico) */
.lp-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600' viewBox='0 0 600 600' fill='none' stroke='%23E8C97A' stroke-width='1'%3E%3Cpath d='M-20 120c80-40 160-40 240 0s160 40 240 0 120-30 160-10'/%3E%3Cpath d='M-20 170c90-50 170-30 250 10s150 30 230-10 110-20 160 0'/%3E%3Cpath d='M-20 230c70-30 150-50 240-10s170 50 250 10 90-30 150-10'/%3E%3Cpath d='M-20 300c100-60 180-20 260 20s140 30 220-20 100-20 160 10'/%3E%3Cpath d='M-20 370c80-20 170-50 250-10s160 50 240 0 110-30 150-10'/%3E%3Cpath d='M-20 440c90-40 170-30 250 10s150 40 230 0 100-20 160 0'/%3E%3Cpath d='M-20 510c80-50 160-30 240 10s170 40 250-10 100-20 150 10'/%3E%3C/svg%3E");
    background-size: 600px 600px;
    mask-image: linear-gradient(to bottom, #000 0%, #000 70%, transparent 100%);
}
.lp-hero-inner {
    display: grid; gap: 3rem; align-items: center;
    padding-top: 3.5rem; padding-bottom: 4rem;   /* só vertical: o lateral vem de .lp-wrap */
}
@media (min-width: 992px) {
    .lp-hero-inner { grid-template-columns: 1.1fr .9fr; gap: 4rem; padding-top: 5.5rem; padding-bottom: 6rem; }
}
.lp-hero .lp-eyebrow { color: var(--ochre-300); }
.lp-hero h1 {
    color: var(--fossil-50); margin: 1rem 0 1.25rem;
    font-size: clamp(2.6rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.015em;
}
.lp-hero h1 em { color: var(--ochre-500); font-style: italic; }
.lp-hero-lead { font-size: 1.15rem; line-height: 1.65; color: rgba(250, 247, 242, .82); max-width: 54ch; margin-bottom: 2rem; }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.lp-hero-note { margin-top: 1.75rem; font-size: .875rem; color: rgba(250, 247, 242, .6); display: flex; align-items: center; gap: .5rem; }

/* Corte estratigráfico ilustrativo */
.lp-strata-card {
    position: relative; border-radius: 22px; overflow: hidden;
    background: #3A2B1F; border: 1px solid rgba(232, 201, 122, .18);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.lp-strata-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: .85rem 1.1rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
    color: rgba(250, 247, 242, .7); background: rgba(0, 0, 0, .18);
}
.lp-strata { list-style: none; margin: 0; padding: 0; position: relative; }
.lp-layer {
    --c: #D9B98A; --ink: #2B2018;
    position: relative; background: var(--c); color: var(--ink);
    padding: 1.35rem 1.1rem 1.05rem 4.25rem; min-height: 86px;
    display: flex; flex-direction: column; justify-content: center;
}
/* borda superior irregular de cada camada */
.lp-layer + .lp-layer::before {
    content: ""; position: absolute; left: 0; right: 0; top: -13px; height: 14px; background: var(--c);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M0 9C30 3 55 12 92 7s70-6 104 1 64 4 98-3 70-3 106 4V14H0z'/%3E%3C/svg%3E") center/100% 100%;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' preserveAspectRatio='none'%3E%3Cpath d='M0 9C30 3 55 12 92 7s70-6 104 1 64 4 98-3 70-3 106 4V14H0z'/%3E%3C/svg%3E") center/100% 100%;
}
/* granulado do sedimento */
.lp-layer::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35; mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .2 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.lp-layer > * { position: relative; z-index: 1; }
.lp-layer-icon {
    position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
    width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .28); font-size: 1.1rem; z-index: 1;
}
.lp-layer-icon .lap-glyph { width: 1.2rem; height: 1.2rem; }
.lp-layer-age { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.lp-layer-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
.lp-layer-text { font-size: .82rem; line-height: 1.4; opacity: .85; }
.lp-layer.l1 { --c: #E8D5B0; }
.lp-layer.l2 { --c: #D4B07C; }
.lp-layer.l3 { --c: #B98652; --ink: #2B2018; }
.lp-layer.l4 { --c: #93613A; --ink: #FFF8EE; }
.lp-layer.l5 { --c: #6B4428; --ink: #FFF3E3; }
.lp-layer.l4 .lp-layer-icon, .lp-layer.l5 .lp-layer-icon { background: rgba(255, 255, 255, .16); }

/* ---------- Números ---------- */
.lp-facts { background: var(--lp-paper); border-bottom: 1px solid var(--lp-line); }
.lp-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 992px) { .lp-facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-fact { padding: 1.75rem 1rem 1.75rem 0; border-top: 1px solid var(--lp-line); }
.lp-fact:nth-child(-n+2) { border-top: 0; }
@media (min-width: 992px) {
    .lp-fact { border-top: 0; padding: 2.25rem 1.5rem 2.25rem 0; }
    .lp-fact + .lp-fact { border-left: 1px solid var(--lp-line); padding-left: 1.5rem; }
}
@media (max-width: 991.98px) { .lp-fact:nth-child(even) { border-left: 1px solid var(--lp-line); padding-left: 1rem; } }
.lp-fact-value { font-family: var(--font-body); font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.35rem); color: var(--lp-ink); line-height: 1.1; letter-spacing: -.01em; }
.lp-fact-label { font-size: .9rem; color: var(--lp-ink-3); margin-top: .35rem; line-height: 1.4; }

/* ---------- Sobre ---------- */
.lp-about { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 992px) { .lp-about { grid-template-columns: 1.15fr .85fr; gap: 4.5rem; } }
.lp-about p { color: var(--lp-ink-2); line-height: 1.75; }
.lp-sectors { background: var(--lp-paper); border: 1px solid var(--lp-line); border-radius: 18px; padding: 1.5rem; }
.lp-sectors h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-ink-3); margin: 0 0 .75rem; }
.lp-sectors ul { list-style: none; margin: 0; padding: 0; }
.lp-sectors li { display: flex; gap: .9rem; padding: .9rem 0; border-top: 1px solid var(--lp-line); }
.lp-sectors li:first-child { border-top: 0; }
.lp-sectors i { flex: 0 0 auto; width: 2.25rem; height: 2.25rem; border-radius: 10px; display: grid; place-items: center; background: #FBEFE9; color: var(--terracotta-600); font-size: 1.05rem; }
.lp-sectors strong { display: block; color: var(--lp-ink); font-size: .98rem; }
.lp-sectors span { font-size: .875rem; color: var(--lp-ink-3); }

/* ---------- Linhas de pesquisa ---------- */
.lp-alt { background: var(--fossil-100); }
.lp-lines { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-lines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-line {
    background: var(--lp-paper); border: 1px solid var(--lp-line); border-radius: 16px;
    padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem;
}
.lp-line-num { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: var(--terracotta-600); }
.lp-line h3 { font-size: 1.4rem; margin: 0; color: var(--lp-ink); }
.lp-line p { font-size: .95rem; color: var(--lp-ink-2); margin: 0; line-height: 1.6; }
.lp-line-wide { background: var(--fossil-900); border-color: var(--fossil-900); color: var(--fossil-100); }
@media (min-width: 640px) and (max-width: 1099.98px) { .lp-line-wide { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .lp-line-wide { grid-column: span 2; } }
.lp-line-wide h3 { color: var(--fossil-50); }
.lp-line-wide p { color: rgba(250, 247, 242, .78); }
.lp-line-wide .lp-line-num { color: var(--ochre-500); }

/* ---------- Destaques ---------- */
.lp-features { display: grid; gap: 1.25rem; }
@media (min-width: 992px) { .lp-features { grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; } }
.lp-feature {
    position: relative; border-radius: 20px; overflow: hidden; padding: 2rem;
    display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px;
    color: var(--fossil-50); isolation: isolate;
}
.lp-feature::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.lp-feature-big { min-height: 420px; }
@media (min-width: 992px) { .lp-feature-big { grid-row: span 2; min-height: 100%; } }
.lp-feature.f-garimpo::before { background: radial-gradient(circle at 75% 20%, rgba(232, 201, 122, .35), transparent 45%), linear-gradient(180deg, #8A5A34, #3D2817); }
.lp-feature.f-megafauna::before { background: radial-gradient(circle at 85% 15%, rgba(143, 184, 158, .3), transparent 45%), linear-gradient(160deg, #3D5C4A, #22362B); }
.lp-feature.f-preventiva::before { background: radial-gradient(circle at 85% 15%, rgba(232, 147, 121, .35), transparent 45%), linear-gradient(160deg, #A04A2C, #5F2A17); }
.lp-feature-glyph { position: absolute; top: 1.75rem; right: 1.75rem; width: 3.25rem; height: 3.25rem; opacity: .35; color: #fff; }
.lp-feature-big .lp-feature-glyph { width: 7rem; height: 7rem; opacity: .22; }
@media (max-width: 991.98px) {
    .lp-feature-glyph, .lp-feature-big .lp-feature-glyph { width: 2.75rem; height: 2.75rem; top: 1.25rem; right: 1.25rem; }
    .lp-feature-tag { margin-right: 3.25rem; }
}
.lp-feature-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.lp-feature h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0 0 .6rem; }
.lp-feature p { margin: 0; color: rgba(255, 255, 255, .84); line-height: 1.6; max-width: 52ch; }

/* ---------- Experiências ---------- */
.lp-xp { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .lp-xp { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-xp-card {
    display: flex; flex-direction: column; text-decoration: none !important; color: inherit;
    background: var(--lp-paper); border: 1px solid var(--lp-line); border-radius: 18px; overflow: hidden;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-xp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--terracotta-300); color: inherit; }
.lp-xp-art { height: 150px; display: grid; place-items: center; font-size: 3.25rem; color: var(--fossil-50); }
.lp-xp-art.a1 { background: linear-gradient(135deg, #5C4A33, #2B2018); }
.lp-xp-art.a2 { background: linear-gradient(135deg, #9E7A2F, #5C4A33); }
.lp-xp-art.a3 { background: linear-gradient(135deg, #C25E3B, #7F3A20); }
.lp-xp-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.lp-xp-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta-600); }
.lp-xp-body h3 { font-size: 1.45rem; margin: 0; color: var(--lp-ink); }
.lp-xp-body p { margin: 0; font-size: .95rem; color: var(--lp-ink-2); line-height: 1.6; flex: 1; }
.lp-xp-go { margin-top: .75rem; font-weight: 600; color: var(--terracotta-600); display: inline-flex; align-items: center; gap: .4rem; }
.lp-xp-card:hover .lp-xp-go i { transform: translateX(3px); }
.lp-xp-go i { transition: transform .2s; }
.lp-note { margin-top: 1.5rem; font-size: .9rem; color: var(--lp-ink-3); text-align: center; }

/* ---------- Linha do tempo ---------- */
.lp-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 992px) { .lp-timeline { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lp-tl { position: relative; padding: 0 0 1.75rem 2rem; border-left: 2px solid var(--fossil-300); }
.lp-tl::before { content: ""; position: absolute; left: -8px; top: .3rem; width: 14px; height: 14px; border-radius: 50%; background: var(--fossil-50); border: 3px solid var(--terracotta-500); }
@media (min-width: 992px) {
    .lp-tl { padding: 2rem 1.25rem 0 0; border-left: 0; border-top: 2px solid var(--fossil-300); }
    .lp-tl::before { left: 0; top: -8px; }
}
.lp-tl-year { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--lp-ink); line-height: 1; font-feature-settings: "lnum"; font-variant-numeric: lining-nums; }
.lp-tl-title { font-weight: 600; color: var(--lp-ink); margin: .45rem 0 .25rem; font-size: .98rem; }
.lp-tl-text { font-size: .875rem; color: var(--lp-ink-3); line-height: 1.5; }

/* ---------- Equipe ---------- */
.lp-team { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .lp-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lp-team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lp-person { background: var(--lp-paper); border: 1px solid var(--lp-line); border-radius: 16px; padding: 1.5rem; }
.lp-avatar {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    font-weight: 700; font-size: 1.05rem; color: #fff; margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--terracotta-500), var(--ochre-700));
}
.lp-person:nth-child(2) .lp-avatar { background: linear-gradient(135deg, var(--fossil-green-500), var(--fossil-green-700)); }
.lp-person:nth-child(3) .lp-avatar { background: linear-gradient(135deg, var(--ochre-500), var(--ochre-700)); }
.lp-person:nth-child(4) .lp-avatar { background: linear-gradient(135deg, var(--fossil-500), var(--fossil-800)); }
.lp-person h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin: 0 0 .2rem; color: var(--lp-ink); }
.lp-person-role { font-size: .8rem; font-weight: 600; color: var(--terracotta-600); margin-bottom: .6rem; }
.lp-person p { font-size: .9rem; color: var(--lp-ink-2); margin: 0; line-height: 1.55; }
.lp-team-note { margin-top: 1.5rem; color: var(--lp-ink-3); font-size: .95rem; }

/* ---------- Visita ---------- */
.lp-visit { background: linear-gradient(160deg, #3D3022, #2B2018); color: var(--fossil-50); position: relative; overflow: hidden; }
.lp-visit::after {
    content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
    border: 1px solid rgba(232, 201, 122, .18); box-shadow: 0 0 0 40px rgba(232, 201, 122, .04), 0 0 0 80px rgba(232, 201, 122, .03);
}
.lp-visit-inner { position: relative; z-index: 1; display: grid; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .lp-visit-inner { grid-template-columns: 1.3fr .7fr; } }
.lp-visit .lp-eyebrow { color: var(--ochre-300); }
.lp-visit h2 { color: var(--fossil-50); }
.lp-visit p { color: rgba(250, 247, 242, .8); line-height: 1.7; max-width: 60ch; }
.lp-visit-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 992px) { .lp-visit-actions { justify-content: flex-end; } }

/* ---------- Animação de entrada (respeita "reduzir movimento") ---------- */
@media (prefers-reduced-motion: no-preference) {
    .lp-rise { animation: lp-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
    .lp-rise.d2 { animation-delay: .12s; }
    .lp-rise.d3 { animation-delay: .24s; }
    @keyframes lp-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    html { scroll-behavior: smooth; }
}
