/* ─── MODAL PORTFÓLIO ALB SEVEN ─── */

/* Overlay (fundo escuro) */
.pm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: pm-fade-in 0.3s ease both;
}

/* Estado fechado */
.pm-overlay.pm-hidden {
  pointer-events: none;
  animation: pm-fade-out 0.25s ease both;
}

/* Card do modal */
.pm-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  max-width: 460px;
  width: 100%;
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  animation: pm-slide-up 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─── HEADER ESCURO ─── */
.pm-header {
  background: #0b1428;
  padding: 32px 32px 26px;
  text-align: center;
}

.pm-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.pm-logo-icon {
  width: 40px;
  height: 40px;
  background: #2563eb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* Quando a logo real for inserida */
.pm-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.pm-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #f0f6ff;
  letter-spacing: -0.01em;
}

.pm-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #64748b;
}

/* ─── BODY BRANCO ─── */
.pm-body {
  padding: 28px 32px 32px;
  background: #fff;
}

.pm-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.97rem;
  line-height: 1.65;
  color: #374151;
  text-align: center;
  margin-bottom: 18px;
}

.pm-text strong {
  color: #111827;
}

/* Links centralizados */
.pm-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

.pm-links a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.pm-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.pm-links .pm-sep {
  color: #d1d5db;
  user-select: none;
}

/* Botão primário — EXPLORAR O SITE */
.pm-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  background: #0b1428;
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.pm-btn-primary:hover {
  background: #1a2a4a;
  transform: translateY(-1px);
}

.pm-btn-primary:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
}

/* Botão secundário — VER PORTFÓLIO */
.pm-btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 15px 20px;
  background: transparent;
  color: #1e293b;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.pm-btn-secondary:hover {
  border-color: #2563eb;
  background: #eff6ff;
  transform: translateY(-1px);
}

.pm-btn-secondary:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

/* ─── ANIMAÇÕES ─── */
@keyframes pm-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pm-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes pm-slide-up {
  from { transform: translateY(36px) scale(0.97); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ─── RESPONSIVO ─── */
@media (max-width: 480px) {
  .pm-header { padding: 26px 24px 20px; }
  .pm-body   { padding: 22px 24px 26px; }
}

/* ─── RESPEITA PREFERS-REDUCED-MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  .pm-overlay,
  .pm-card {
    animation: none;
  }
}
