/* ==========================================================================
   Pantera LP design system — layout for the static /pages (vitrine, sobre-nos)
   Loads after tokens/components/motion/landing; reuses the LP shells
   (.lp-nav, .lp-hero, .lp-section, .lp-cta, footer reveal) and adds page bits.
   ========================================================================== */

/* Compact hero for inner pages */
.lp-hero--page { min-height: auto; padding-top: calc(var(--lp-nav-top) + var(--lp-nav-h) + clamp(2.5rem, 6vw, 5rem)); padding-bottom: clamp(2rem, 4vw, 3rem); }
.lp-hero--page .lp-hero__grid { grid-template-columns: 1fr; }
/* width must be definite: the copy is an inline-size container (contained intrinsic size = 0), so a shrink-to-fit grid item would collapse */
.lp-hero--page .lp-hero__copy { align-items: center; text-align: center; width: min(100%, 52rem); justify-self: center; }
.lp-hero--page .lp-hero__desc { max-width: 46rem; }
.lp-hero--page .lp-hero__desc strong { color: var(--lp-accent); }

/* Vitrine: showcase cards (one per niche; ids kept for deep links) */
.lp-showcase { position: relative; display: flex; flex-direction: column; gap: 1rem; padding: var(--lp-card-pad); height: 100%; scroll-margin-top: 7rem; }
.lp-showcase__head { display: flex; align-items: center; gap: 0.9rem; }
.lp-showcase__desc { color: var(--lp-fg-muted); font-size: var(--lp-text-base); line-height: var(--lp-leading-snug); }
.lp-showcase__actions { display: flex; flex-direction: column; gap: 0.75rem; margin-top: auto; padding-top: 0.75rem; }
.lp-showcase__actions .lp-btn { width: 100%; }

/* Preview modal (original ids/classes kept for the page script) */
.lp-modal { display: none; position: fixed; inset: 0; z-index: 10000; background: rgba(0, 0, 0, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lp-modal.active { display: flex; align-items: center; justify-content: center; animation: lp-modal-in var(--lp-dur-fast) var(--lp-ease-out); }
@keyframes lp-modal-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes lp-modal-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.lp-modal__content { width: 95%; height: 95%; display: flex; flex-direction: column; overflow: hidden; background: var(--lp-bg-2); border: 1px solid var(--lp-card-border); border-radius: var(--lp-radius); box-shadow: var(--lp-shadow-float); animation: lp-modal-up var(--lp-dur-fast) var(--lp-ease-out); }
.lp-modal__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--lp-line); }
.lp-modal__title { font-size: var(--lp-text-base); font-weight: 600; }
.lp-modal__close { width: 2.25rem; height: 2.25rem; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: var(--lp-fg); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background-color var(--lp-dur-fast) var(--lp-ease-std), transform var(--lp-dur-fast) var(--lp-ease-std); }
.lp-modal__close:hover { background: rgba(255, 255, 255, 0.12); transform: rotate(90deg); }
.lp-modal__body { flex: 1; position: relative; overflow: hidden; background: #fff; }
.lp-modal__iframe { width: 100%; height: 100%; border: 0; display: block; }
.lp-modal__loading { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; background: var(--lp-bg-2); color: var(--lp-fg-muted); }
.lp-modal__loading.hidden { display: none; }
.lp-modal__loading .spinner { width: 2.5rem; height: 2.5rem; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--lp-accent); border-radius: 50%; animation: lp-spin 1s linear infinite; }
@media (max-width: 767px) { .lp-modal__content { width: 100%; height: 100%; border-radius: 0; } }

/* Sobre nós: content / value cards */
.lp-content-card { display: flex; flex-direction: column; gap: 0.75rem; padding: var(--lp-card-pad); height: 100%; position: relative; }
.lp-content-card h3 { display: flex; align-items: center; gap: 0.6rem; font-size: var(--lp-text-2xl); font-weight: 600; line-height: var(--lp-leading-snug); text-wrap: balance; }
.lp-content-card h3 i { color: var(--lp-accent); font-size: 0.85em; flex-shrink: 0; }
.lp-content-card p { color: var(--lp-fg-muted); font-size: var(--lp-text-base); line-height: var(--lp-leading-body); }
.lp-content-card p strong { color: var(--lp-fg); }
.lp-content-card--intro { max-width: 56rem; margin-inline: auto; text-align: center; align-items: center; }
.lp-content-card--intro h3 { justify-content: center; }
.lp-value { display: flex; flex-direction: column; gap: 0.9rem; padding: var(--lp-card-pad); height: 100%; position: relative; }
.lp-value p { color: var(--lp-fg-muted); font-size: var(--lp-text-base); line-height: var(--lp-leading-body); }
.lp-value p strong { color: var(--lp-fg); }
.lp-section + .lp-section--flush { padding-top: 0; }
@media (prefers-reduced-motion: reduce) { .lp-modal.active, .lp-modal__content { animation: none !important; } }

/* Body copy reads better justified in the narrow single-column phone layout. Left-aligned
   multi-line paragraphs only — .lp-content-card--intro stays centered on purpose. */
@media (max-width: 767px) {
  .lp-showcase__desc, .lp-value p, .lp-content-card:not(.lp-content-card--intro) p {
    text-align: justify;
    hyphens: auto;
  }
}
