/* ===== Variáveis e reset ===== */
:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-300: #93c5fd;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-800: #1e40af;
  --blue-900: #1e3a8a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --sidebar-width: 320px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  min-height: 100vh;
}

/* ===== Navbar flutuante (consultoria + idioma) ===== */
.top-nav {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Seletor de idioma ===== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.lang-btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 10px;
  border: none;
  background: transparent;
  color: var(--gray-500);
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.lang-btn:hover {
  color: var(--gray-700);
}

.lang-btn.active {
  background: var(--gray-800);
  color: var(--white);
}

.lang-divider {
  color: var(--gray-300);
  font-size: 12px;
}

/* Botão flutuante de Consultoria (ao lado do seletor de idiomas) */
.nav-consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--gray-800);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: var(--shadow);
  border: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.nav-consult-btn:hover {
  background: var(--gray-900);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ===== Layout principal ===== */
.layout {
  display: flex;
  min-height: 100vh;
}

/* ===== Sidebar ===== */
.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--white);
  color: var(--gray-800);
  padding: 48px 32px 32px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--gray-200);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  flex: 1;
  min-height: 0;
}

.profile-photo-wrap {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gray-300);
  flex-shrink: 0;
}

.profile-home-link {
  display: inline-block;
  border-radius: 50%;
}

.profile-home-link:hover .profile-photo-wrap {
  border-color: var(--gray-400);
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-initials {
  font-family: 'Outfit', sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--gray-700);
  letter-spacing: -1px;
}

.sidebar-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--gray-800);
}

.sidebar-headline {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  line-height: 1.4;
}

.sidebar-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  width: 100%;
  color: var(--gray-700);
}

.contact-link {
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--gray-900);
  text-decoration: underline;
}

.contact-location {
  color: var(--gray-600);
}

/* KPIs na sidebar ===== */
.kpis {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.kpi-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.kpi-card:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

.kpi-value {
  color: var(--gray-800);
}

.kpi-label {
  color: var(--gray-700);
}

/* Ações: download CV + LinkedIn ===== */
.sidebar-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}

.btn-download-cv {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: var(--gray-800);
  color: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  transition: background 0.2s, transform 0.2s;
  flex: 1;
  max-width: 200px;
}

.btn-download-cv:hover {
  background: var(--gray-900);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-800);
  color: var(--white);
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.btn-social:hover {
  background: var(--gray-900);
  color: var(--white);
  transform: translateY(-2px);
}

.icon-linkedin {
  width: 18px;
  height: 18px;
}

/* Assinatura / logo no fim da sidebar ===== */
.sidebar-signature {
  margin-top: auto;
  padding-top: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.sidebar-signature .signature-img {
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  filter: brightness(0);
  opacity: 0.85;
}

.kpi-value {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.kpi-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.95;
  margin-top: 4px;
  line-height: 1.3;
}

/* ===== Conteúdo principal ===== */
.content {
  flex: 1;
  padding: 48px 48px 64px 56px;
  max-width: 720px;
}

.section {
  margin-bottom: 40px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gray-300);
}

.about-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gray-700);
}

/* ===== Página de consultoria ===== */
.consult-intro {
  font-size: 1rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
}

.consult-highlight {
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
}

.consult-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.consult-details {
  font-size: 0.95rem;
  color: var(--gray-700);
}

.consult-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-700);
  margin-top: 24px;
  margin-bottom: 8px;
}

.consult-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 8px;
}

.consult-list li {
  font-size: 0.95rem;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.consult-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 12px 24px;
  background: var(--gray-800);
  color: var(--white);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s;
}

.consult-cta:hover {
  background: var(--gray-900);
  color: var(--white);
  transform: translateY(-1px);
}

/* Timeline experiência ===== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  padding-left: 24px;
  border-left: 3px solid var(--gray-300);
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gray-700);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}

.timeline-period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.timeline-role {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Achievements ===== */
.achievements-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.achievement-item {
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border-left: 4px solid var(--gray-600);
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

/* Education ===== */
.education-item {
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.education-period {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.education-course {
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 4px;
}

.education-school {
  font-size: 0.9rem;
  color: var(--gray-500);
}

/* Skills ===== */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--gray-300);
  transition: background 0.2s, color 0.2s;
}

.skill-tag:hover {
  background: var(--gray-200);
  color: var(--gray-900);
}

/* Certifications e Awards ===== */
.certifications-text,
.awards-text {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.awards-text {
  padding: 16px 20px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  font-weight: 500;
  color: var(--gray-800);
}

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    height: auto;
    position: relative;
    padding: 32px 24px 28px;
  }

  .sidebar-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: left;
    gap: 16px;
  }

  .profile-photo-wrap {
    width: 100px;
    height: 100px;
  }

  .placeholder-initials {
    font-size: 32px;
  }

  .sidebar-name {
    flex: 1;
    min-width: 0;
    font-size: 1.25rem;
  }

  .sidebar-headline {
    width: 100%;
    order: 3;
    text-align: center;
  }

  .sidebar-contact {
    width: 100%;
    order: 4;
    align-items: center;
  }

  .kpis {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    order: 5;
    margin-top: 4px;
  }

  .sidebar-actions {
    order: 6;
    width: 100%;
  }

  .sidebar-signature {
    order: 7;
    margin-top: 16px;
    padding-top: 16px;
  }

  .kpi-card {
    flex: 1;
    min-width: 0;
  }

  .kpi-value {
    font-size: 1.4rem;
  }

  .content {
    padding: 32px 24px 48px;
  }

  .lang-switcher {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .kpis {
    flex-direction: column;
  }

  .sidebar-inner {
    flex-direction: column;
    text-align: center;
  }

  .sidebar-name {
    text-align: center;
  }
}
