/* =========================================================
   CAPUTO BASTOS & FRUET — advogado.css
   Estilos das páginas individuais de perfil
   ========================================================= */

/* Importa variáveis e base do styles.css */

/* --- Layout base --------------------------------------- */
.profile-page {
  background: var(--bg);
  min-height: 100vh;
}

/* --- Hero do perfil ------------------------------------ */
.profile-hero {
  position: relative;
  height: 450px;
  background: var(--dark-nav);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.profile-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  opacity: 0.45;
}

.profile-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
  display: flex;
  align-items: flex-end;
  gap: 3rem;
}

.profile-photo-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 260px;
  border-radius: 2px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transform: translateY(48px);
  opacity: 0;
  animation: profilePhotoIn 0.8s cubic-bezier(0.2,0,0.2,1) 0.3s forwards;
}

@keyframes profilePhotoIn {
  to { transform: translateY(0); opacity: 1; }
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

.profile-intro {
  color: #fff;
  padding-bottom: 0.5rem;
  opacity: 0;
  animation: profileTextIn 0.8s cubic-bezier(0.2,0,0.2,1) 0.5s forwards;
}

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

.profile-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
  transition: opacity 0.25s;
}

.profile-back:hover { opacity: 0.7; }

.profile-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.profile-name {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.profile-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
}

/* --- Corpo do currículo -------------------------------- */
.profile-body {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Foto lateral sticky */
.cv-side-photo {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.cv-side-photo img {
  width: 200px;
  height: 260px;
  object-fit: cover;
  object-position: center 10%;
  border-radius: 2px;
  border: 3px solid rgba(0,0,0,0.08);
}

/* Coluna lateral */
.profile-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.sidebar-block {
  margin-bottom: 2.5rem;
}

.sidebar-block:last-child { margin-bottom: 0; }

.sidebar-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-label::before {
  content: '/';
  color: var(--gold);
}

.sidebar-value {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
}

.sidebar-divider {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 2rem 0;
}

/* Coluna principal */
.profile-main section {
  margin-bottom: 3.5rem;
}

.profile-main section:last-child { margin-bottom: 0; }

.profile-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.profile-section-title::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.profile-text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* Lista de áreas / formação */
.profile-list {
  list-style: none;
  padding: 0;
}

.profile-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.profile-list li::before {
  content: '/';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Itens de formação com data */
.formation-item {
  margin-bottom: 1.5rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--border);
  transition: border-color 0.25s;
}

.formation-item:hover { border-color: var(--gold); }

.formation-year {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.formation-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.formation-institution {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- Responsividade ------------------------------------ */
@media (max-width: 860px) {
  .profile-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
  }

  .cv-side-photo {
    position: static;
    display: flex;
    justify-content: center;
  }

  .cv-side-photo img {
    width: 140px;
    height: 180px;
  }

  .profile-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .sidebar-block { margin-bottom: 0; }
  .sidebar-divider { display: none; }
}

@media (max-width: 600px) {
  .profile-hero { height: auto; padding-top: calc(var(--nav-h) + 2rem); }

  .profile-hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 2.5rem;
  }

  .profile-photo-wrap {
    width: 140px;
    height: 180px;
    transform: none;
  }

  .profile-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .profile-body {
    padding: 2.5rem 1.25rem 4rem;
  }

  .profile-name {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
}
