/* ==========================================================================
   Becker AV — Cartão de Visita Digital Executivo (Single-Screen)
   Tipografia: Nunito Exclusiva | Fundo em Degradê Sóbrio | Modal QR WhatsApp
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary-navy: #030812;
  --primary-blue: #00173D;
  --primary-royal: #003183;
  --accent-cyan: #00A8CE;
  
  --text-main: #FFFFFF;
  --text-body: #CBD5E1;
  --text-muted: #8E9FB8;
  
  --card-bg: rgba(7, 18, 40, 0.86);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-border-hover: rgba(0, 168, 206, 0.35);
  
  --pill-bg: rgba(255, 255, 255, 0.05);
  --pill-border: rgba(255, 255, 255, 0.1);
  --pill-text: #E2E8F0;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden; /* Sem rolagem de página */
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fundo em Degradê Sóbrio */
body {
  background: linear-gradient(135deg, #030812 0%, #00173D 45%, #002B70 100%);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
}

/* Cartão Central */
.card-container {
  width: 100%;
  max-width: 660px;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 4px 16px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Topo do Cartão (Logo + Idiomas) */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Seletor de Idioma */
.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.lang-btn.active {
  background: var(--primary-royal);
  color: #FFFFFF;
}

/* Perfil & Briefing */
.card-profile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.name {
  font-family: var(--font-family);
  font-size: 2.15rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.role {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.briefing {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* Seção de Certificados & Plataformas */
.certs-section {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.section-label {
  font-family: var(--font-family);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.certs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.cert-pill {
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pill-text);
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cert-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: var(--text-main);
}

.cert-pill .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

/* Botões de Ação */
.actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.65rem 0.95rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary-royal);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: #0044aa;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* Contatos */
.contacts-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.contact-link svg {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.contact-link:hover {
  color: var(--text-main);
}

/* Mini Rodapé */
.card-footer-mini {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0.75;
}

/* ==========================================================================
   Modal do QR Code WhatsApp
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 18, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #0B1933;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  max-width: 380px;
  width: 100%;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  position: relative;
  text-align: center;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-backdrop.active .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}

.modal-title {
  font-family: var(--font-family);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.modal-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 1.15rem;
}

.qr-image-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  background: #000;
}

.qr-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0B1E3F;
  border: 1px solid var(--accent-cyan);
  color: #FFFFFF;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 1001;
}

.toast.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsividade Mobile */
@media (max-width: 640px) {
  html, body {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
    padding: 1rem 0.75rem;
  }

  .card-container {
    padding: 1.5rem 1.25rem;
    gap: 1.15rem;
  }

  .name {
    font-size: 1.65rem;
  }

  .role {
    font-size: 0.95rem;
  }

  .actions-row {
    grid-template-columns: 1fr;
  }

  .contacts-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }
}
